Update website to read stats from new distribution - #2286
Merged
Conversation
lenaunderwood22
marked this pull request as ready for review
August 14, 2026 14:29
There was a problem hiding this comment.
Pull request overview
Updates the website’s certificate daily statistics graph to load data from a new distribution location/file (cert-daily-stats.tsv), while keeping other graph artifacts on the existing distribution URL.
Changes:
- Switch stats fetch from
cert-timeline.tsvtocert-daily-stats.tsvand introduce a separate base URL for that file. - Add a header row to the locally checked-in
cert-daily-stats.tsvfixture/sample file. - Update CSP
connect-srcallowlist to permit fetching stats from the new CloudFront distribution.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| static/js/stats.js | Fetches daily stats TSV from the new distribution URL while keeping other artifacts on the old URL. |
| static/js/cert-daily-stats.tsv | Adds TSV header row to match the new upstream format. |
| netlify.toml | Adds the new CloudFront domain to CSP connect-src. |
| config/_default/server.toml | Adds the new CloudFront domain to CSP connect-src for the dev server config. |
| _maintenance_update_graph_data.sh.example | Updates the example maintenance script to use the new stats TSV filename/source. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Update source of certificate daily stats, which is now
cert-daily-stats.tsvfrom a different distribution URL. Other artifacts are still retrieved from the old distribution URL.New TSV file has the same columns in the same order as old TSV file. Only difference is the new TSV file has headers, which will get safely skipped.