Skip to content

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Dec 30, 2020

Google Charts is the cause of a significant number of issues on Sentry, and generally it feels bad to load 3rd-party code that could potentially be used for user tracking.

This PR replaces our Google Charts usage in the Crate downloads graph with https://www.chartjs.org/. It looks slightly different and does not show the average values yet, but IMHO this is a good first step. Compared to the old implementation it now also has basic error handling and a loading state built-in, and these states are properly unit tested too.

Bildschirmfoto 2020-12-30 um 01 00 47

r? @jtgeibel

@Turbo87
Copy link
Member Author

Turbo87 commented Dec 30, 2020

this branch is currently deployed on the staging server: https://staging.crates.io/crates/foo

@Turbo87 Turbo87 force-pushed the chart-js branch 3 times, most recently from af39b72 to 2d28be9 Compare December 30, 2020 11:37
@bors
Copy link
Contributor

bors commented Dec 30, 2020

☔ The latest upstream changes (presumably #3145) made this pull request unmergeable. Please resolve the merge conflicts.

@jtgeibel
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Dec 31, 2020

📌 Commit b1a090a has been approved by jtgeibel

@bors
Copy link
Contributor

bors commented Dec 31, 2020

⌛ Testing commit b1a090a with merge 643604b...

@bors
Copy link
Contributor

bors commented Dec 31, 2020

☀️ Test successful - checks-actions
Approved by: jtgeibel
Pushing 643604b to master...

@bors bors merged commit 643604b into rust-lang:master Dec 31, 2020
@Turbo87 Turbo87 deleted the chart-js branch December 31, 2020 08:47
jtgeibel added a commit to jtgeibel/foundation.rust-lang.org that referenced this pull request Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants