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

Add catalogPath to mdims #4576

Open
wants to merge 1 commit into
base: graphite-base/4576
Choose a base branch
from
Open

Conversation

rakyi
Copy link
Contributor

@rakyi rakyi commented Feb 19, 2025

  • Catalog path will now be the main ID used by ETL
  • It's temporarily allowed to be null; we'll disallow that once existing
    data is migrated
  • Slug is now allowed to be null, since it will be only set in admin at
    some point
  • For that reason we'll use the catalog path as a slug for previews of
    mdims in the admin, i.e. /admin/grapher/{catalogPath}

Copy link
Contributor Author

rakyi commented Feb 19, 2025

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.
Learn more

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

@rakyi rakyi requested a review from marcelgerber February 19, 2025 10:37
@rakyi rakyi marked this pull request as ready for review February 19, 2025 10:37
Comment on lines +392 to +396
await deleteGrapherConfigFromR2(
R2GrapherConfigDirectory.multiDim,
`${multiDim.slug}.json`
)
await retrieveMultiDimConfigFromDbAndSaveToR2(knex, multiDim.id)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related to catalog path, I just forgot to do this in the previous PR.

@rakyi rakyi force-pushed the mdim-catalog-path branch 2 times, most recently from b6d81b2 to b87e787 Compare February 19, 2025 10:49
@rakyi rakyi changed the base branch from remove-mdim-feature-flag to graphite-base/4576 February 19, 2025 10:49
@rakyi rakyi force-pushed the graphite-base/4576 branch from e36a891 to 0306200 Compare February 19, 2025 10:50
@owidbot
Copy link
Contributor

owidbot commented Feb 19, 2025

Quick links (staging server):

Site Dev Site Preview Admin Wizard Docs

Login: ssh owid@staging-site-mdim-catalog-path

SVG tester:

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

Edited: 2025-02-19 11:18:04 UTC
Execution time: 1.23 seconds

* Catalog path will now be the main ID used by ETL
* It's temporarily allowed to be null; we'll disallow that once existing
  data is migrated
* Slug is now allowed to be null, since it will be only set in admin at
  some point
* For that reason we'll use the catalog path as a slug for previews of
  mdims in the admin, i.e. `/admin/grapher/{catalogPath}`
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.

Store ETL path for each multidimensional data page
2 participants