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

✨ Render thumbnails for graphers by uuid #3880

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Conversation

danyx23
Copy link
Contributor

@danyx23 danyx23 commented Aug 19, 2024

This PR duplicates the thumbnail rendering logic into the top level so that we can render pngs at /grapher/SLUG.png and svgs at /grapher/SLUG.svg. It also adds thumbnail rendering at /grapher/by-uuid/UUID.png and .svg.

The HTML rewriting (of og images) is changed to point to the new /grapher/SLUG.png route.

The old thumbnail rendering at /grapher/thumbnail/SLUG is kept for now so that existing fetches will still work until the various cached versions of the HTML have expired.

@danyx23 danyx23 marked this pull request as ready for review August 19, 2024 09:42
@owidbot
Copy link
Contributor

owidbot commented Aug 19, 2024

Quick links (staging server):

Site Admin Wizard

Login: ssh owid@staging-site-render-thumbnails-by-uuid

SVG tester:

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

Edited: 2024-08-19 15:15:55 UTC
Execution time: 1.21 seconds

@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 28327df to e5c06a1 Compare August 19, 2024 14:59
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from b754a9f to 265637f Compare August 19, 2024 14:59
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from e5c06a1 to 57c64eb Compare August 21, 2024 10:17
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 265637f to 91f193d Compare August 21, 2024 10:17
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 57c64eb to 8d270f1 Compare August 21, 2024 11:03
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 91f193d to 41b9260 Compare August 21, 2024 11:03
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 8d270f1 to 7c74a5b Compare August 21, 2024 12:54
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 41b9260 to 1dd7bdb Compare August 21, 2024 12:54
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 7c74a5b to 1c77908 Compare August 21, 2024 15:09
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 1dd7bdb to 019831b Compare August 21, 2024 15:09
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 1c77908 to 29146e2 Compare August 21, 2024 15:17
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 019831b to b96dde4 Compare August 21, 2024 15:17
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 29146e2 to 9e8ac98 Compare August 22, 2024 15:52
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from b96dde4 to 9490433 Compare August 22, 2024 15:53
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 9490433 to 6d5c3bc Compare August 22, 2024 15:56
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 9e8ac98 to 30eb978 Compare August 22, 2024 17:12
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 6d5c3bc to b6d10f1 Compare August 22, 2024 17:12
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 30eb978 to 9a5e0e5 Compare August 23, 2024 11:21
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from b6d10f1 to 6189190 Compare August 23, 2024 11:21
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 9a5e0e5 to ac04f5c Compare August 26, 2024 20:45
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 6189190 to 845c2ab Compare August 26, 2024 20:46
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 2b29a3a to e287fc3 Compare September 9, 2024 09:33
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from b837314 to dd90777 Compare September 9, 2024 11:53
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from e287fc3 to 940738b Compare September 9, 2024 11:53
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from dd90777 to 54273d0 Compare September 9, 2024 14:44
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 940738b to 0df5bff Compare September 9, 2024 14:45
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 54273d0 to 7e42ffd Compare September 10, 2024 07:59
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 0df5bff to 2a74086 Compare September 10, 2024 07:59
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 7e42ffd to de9ef7a Compare September 10, 2024 08:06
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 2a74086 to fa93186 Compare September 10, 2024 08:06
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from de9ef7a to 02ef8d3 Compare September 10, 2024 09:56
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from fa93186 to 8152321 Compare September 10, 2024 09:56
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 02ef8d3 to 9088888 Compare September 10, 2024 10:24
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 8152321 to 2163513 Compare September 10, 2024 10:24
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 9088888 to 5538fc3 Compare September 10, 2024 10:35
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 2163513 to dd56e2b Compare September 10, 2024 10:35
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 5538fc3 to 77b8e58 Compare September 10, 2024 10:55
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from dd56e2b to eb1de29 Compare September 10, 2024 10:55
@danyx23 danyx23 force-pushed the fetch-grapher-config-by-uuid branch from 77b8e58 to d8b5bc0 Compare September 10, 2024 11:14
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from eb1de29 to 380b1f5 Compare September 10, 2024 11:15
@danyx23 danyx23 changed the base branch from fetch-grapher-config-by-uuid to graphite-base/3880 September 10, 2024 11:31
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 380b1f5 to 02cf775 Compare September 10, 2024 11:31
@danyx23 danyx23 changed the base branch from graphite-base/3880 to master September 10, 2024 11:31
@danyx23 danyx23 force-pushed the render-thumbnails-by-uuid branch from 02cf775 to 2689b72 Compare September 10, 2024 11:31
Copy link
Contributor Author

danyx23 commented Sep 10, 2024

Merge activity

  • Sep 10, 7:47 AM EDT: @danyx23 started a stack merge that includes this pull request via Graphite.
  • Sep 10, 7:47 AM EDT: @danyx23 merged this pull request with Graphite.

@danyx23 danyx23 merged commit 8c2edee into master Sep 10, 2024
18 of 20 checks passed
@danyx23 danyx23 deleted the render-thumbnails-by-uuid branch September 10, 2024 11:47
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