Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: create helpers to save chart configs to DB and R2 simultaneously #4189

Merged
merged 5 commits into from
Nov 20, 2024

Conversation

marcelgerber
Copy link
Member

@marcelgerber marcelgerber commented Nov 19, 2024

This makes it a bit better & more consistent to work with grapher configs, and to push them to the DB and R2 in one single call.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@marcelgerber marcelgerber requested a review from rakyi November 19, 2024 20:28
@marcelgerber marcelgerber marked this pull request as ready for review November 19, 2024 20:28
@marcelgerber marcelgerber changed the title refactor: create helper file for common chart config writes refactor: create helpers to save chart configs to DB and R2 simultaneously Nov 19, 2024
@owidbot
Copy link
Contributor

owidbot commented Nov 19, 2024

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-chart-config-helpers

SVG tester:

Number of differences (default views): 0 ✅
Number of differences (all views): 0 ✅

Edited: 2024-11-19 20:43:52 UTC
Execution time: 1.29 seconds

Copy link
Contributor

@rakyi rakyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks for the refactor! Left just a few minor comments.

adminSiteServer/chartConfigHelpers.ts Show resolved Hide resolved
adminSiteServer/multiDim.ts Outdated Show resolved Hide resolved
@marcelgerber marcelgerber merged commit 844a20b into master Nov 20, 2024
16 of 19 checks passed
@marcelgerber marcelgerber deleted the chart-config-helpers branch November 20, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants