You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently have no way to programmatically update the content of google documents, if ever we want to migrate an archie component to have a different shape.
Proposed solution
Create some sort of migration tooling that:
Takes a migration specification
Iterates through all published gdocs
Operates on them (probably as raw blocks)
Converts them back to archie
Replaces the google document content with the new archie
If we operate on raw blocks to update the shape of a component, we'll potentially have to create a "version 1 backup" of the TS interface
e.g.
import{RawBlockImage}from"@ourworldindata/types"typeOldRawBlockImage={// the values this block used to have, before the migration}functionmigrateImage(block: OldRawBlockImage): RawBlockImage{// stuff}
The text was updated successfully, but these errors were encountered:
Core problem
We currently have no way to programmatically update the content of google documents, if ever we want to migrate an archie component to have a different shape.
Proposed solution
Create some sort of migration tooling that:
Possible usecases
filename
and renamingsmallFilename
->filename
)Technical considerations
If we operate on raw blocks to update the shape of a component, we'll potentially have to create a "version 1 backup" of the TS interface
e.g.
The text was updated successfully, but these errors were encountered: