owid / owid-grapher

A platform for creating interactive data visualizations
https://ourworldindata.org
MIT License
1.37k stars 230 forks source link

Author page alternate template (topics-focused) #3585

Closed mlbrgl closed 4 months ago

mlbrgl commented 4 months ago

Added a route to get an ArchieML output of all work produced by an author from both gdoc articles and wordpress pages.

Why make this change?

To provide a way to manually populate the secondary section of research and writing blocks on author pages with topics rather than articles. This is relevant for a handful of authors who mostly work on topic pages, as well as data managers.

Screenshot 2024-05-07 at 14.31.06.png

mlbrgl commented 4 months ago

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

Join @mlbrgl and the rest of your teammates on Graphite Graphite

owidbot commented 4 months ago
Quick links (staging server): Site Admin Wizard

Login: ssh owid@staging-site-author-page-alt

SVG tester: Number of differences (default views): 0 Number of differences (all views): 0

Edited: 2024-05-17 14:13:45 UTC Execution time: 1.23 seconds

mlbrgl commented 4 months ago

@ikesau I'm merging this now as we have a session planned with @mrwbkrm to create the remaining author pages with this template early this afternoon.

Let me know if you have thoughts though.

mlbrgl commented 4 months ago

@ikesau disregard what I just said. This PR is dependant on https://github.com/owid/owid-grapher/pull/3578, for which a review is necessary. We'll work on staging for now.

ikesau commented 4 months ago

Hey @mlbrgl - sorry it looks like there's some urgency here but I'm wondering why you chose this approach over adding a new type of attachment? That's the standard way of getting DB state into a Gdoc (see for example, homepageMetadata)

mlbrgl commented 4 months ago

@ikesau yes that makes sense for programmatically managed content. In this case however, the export is just a starting point so that we can more easily populate the "All work" section manually.

This section is not programmatically derived from the DB, its source of truth is the gdoc (as opposed to the "Latest" section of the regular author template, which does use subclass attachments). We fill it once and let authors manage it afterward.

ikesau commented 4 months ago

Ah, lovely - I get it now. Proceeding with a proper review 🙂