-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
Add storing single charts to local R2 bucket to syncGraphersToR2 tool #3868
Add storing single charts to local R2 bucket to syncGraphersToR2 tool #3868
Conversation
ed7d910
to
a7ad2fb
Compare
92d502e
to
0777704
Compare
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
a7ad2fb
to
03be17a
Compare
0777704
to
658bd0a
Compare
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2024-08-13 16:49:34 UTC |
03be17a
to
57be3d9
Compare
658bd0a
to
3dbf32c
Compare
… that it supports multiple commands Add support for multiple commands in `syncGraphersToR2.ts` script. * **Refactor existing implementation:** - Move the existing implementation to the "sync" subcommand. - Update the `main` function to handle the new subcommand structure. - Parse the command-line arguments to determine which subcommand to execute. * **Add new subcommand:** - Add a new "store-dev-by-slug" subcommand with a dummy implementation. - Add a help message for the new subcommand. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/owid/owid-grapher?shareId=XXXX-XXXX-XXXX-XXXX).
The syncGraphersToR2 tool let's you sync all needed entries from the chart_configs table to an actual R2 bucket. This is useful for production and staging servers but in local dev the R2 bindings currently can't connect to an actual R2 bucket and instead simulate one using a local folder. This PR adds a tool to store single chart configs by slug from the database into the local R2 bucket by invoking the `wrangler` cli tool for storing R2 objects. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/owid/owid-grapher?shareId=XXXX-XXXX-XXXX-XXXX).
57be3d9
to
cc54317
Compare
5bb7b6f
to
13bceeb
Compare
22eaef8
to
958e4fa
Compare
958e4fa
to
e35e11e
Compare
The syncGraphersToR2 tool let's you sync all needed entries from the chart_configs table to an actual R2 bucket. This is useful for production and staging servers but in local dev the R2 bindings currently can't connect to an actual R2 bucket and instead simulate one using a local folder.
This PR adds a tool to store single chart configs by slug from the database into the local R2 bucket by invoking the
wrangler
cli tool for storing R2 objects.For more details, open the Copilot Workspace session.