-
-
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
🔨 change CF thumbnail function to use chart configs from R2 #3867
Merged
+121
−35
Conversation
This file contains 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
This was referenced Aug 13, 2024
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2024-09-09 14:51:24 UTC |
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
August 13, 2024 14:49
19cc89e
to
3436339
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
August 13, 2024 14:49
87f0855
to
1eb1643
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
August 13, 2024 16:36
1eb1643
to
9ceb138
Compare
danyx23
force-pushed
the
grapher-configs-in-r2
branch
2 times, most recently
from
August 13, 2024 16:55
30197c7
to
1821c66
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
August 13, 2024 16:55
9ceb138
to
e002f95
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
August 13, 2024 20:21
e002f95
to
72aa0f2
Compare
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
August 13, 2024 20:50
f683d47
to
ca8b0ab
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
August 13, 2024 20:50
72aa0f2
to
da94610
Compare
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
August 15, 2024 15:00
ca8b0ab
to
5652f95
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
August 15, 2024 15:00
da94610
to
ff6fe4c
Compare
danyx23
changed the title
🔨 configure r2 bindings
🔨 change CF thumbnail function to use chart configs from R2
Aug 15, 2024
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
August 15, 2024 17:01
5652f95
to
4ed3f88
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
3 times, most recently
from
August 15, 2024 19:23
b0d0d92
to
6474c78
Compare
This was referenced Aug 19, 2024
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
September 5, 2024 12:13
691b7ea
to
47ccc78
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
2 times, most recently
from
September 5, 2024 12:31
4e65248
to
2a858eb
Compare
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
September 5, 2024 18:36
47ccc78
to
b6ffcc0
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 5, 2024 18:36
2a858eb
to
1889cde
Compare
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
September 9, 2024 09:33
b6ffcc0
to
c32a418
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 9, 2024 09:33
1889cde
to
fcfa4b2
Compare
danyx23
force-pushed
the
grapher-configs-in-r2
branch
from
September 9, 2024 11:53
c32a418
to
64bf832
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 9, 2024 11:53
fcfa4b2
to
38778bf
Compare
danyx23
changed the base branch from
grapher-configs-in-r2
to
graphite-base/3867
September 9, 2024 14:35
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 9, 2024 14:42
38778bf
to
6179fc0
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 10, 2024 07:59
6179fc0
to
9565e1a
Compare
Merged
danyx23
force-pushed
the
unify-r2-config-paths
branch
from
September 10, 2024 08:05
ca16a84
to
5f1f72a
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 10, 2024 08:05
9565e1a
to
51fd4ca
Compare
danyx23
force-pushed
the
unify-r2-config-paths
branch
from
September 10, 2024 09:55
5f1f72a
to
7fe2699
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 10, 2024 09:55
51fd4ca
to
8da3b43
Compare
danyx23
force-pushed
the
use-r2-in-cf-functions
branch
from
September 10, 2024 10:23
8da3b43
to
884ec4c
Compare
This was referenced Oct 4, 2024
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.
This PR changes how the CF thumnail worker gets the config for a chart. It used to be the case that it would fetch the HTML file of the grapher page at the given slug and extract the config from that HTML. Now it looks up the grapher config json file in an R2 bucket.
This PR only changes this for published charts accessed by slug. A later PR will enable this also by UUID.
Cloudflare is a bit weird with the intersection of support of various features between CF workers/pages functions, R2 and local/remote dev support:
To test this PR, the main change to your local setup is to add an entry to your .dev.vars example to specify the path within the staging R2 bucket to use for thumbnail rendering:
Before you can test the thumnail rendering locally for a particular chart, you will either have to edit one chart in the admin to make sure it gets uploaded to R2, or run the sync script in devTolls/syncGraphersToR2
This PR adds a few new env vars for CF functions: