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

Merged
merged 1 commit into from
Feb 26, 2025
Merged

Add catalogPath to mdims #4576

merged 1 commit into from
Feb 26, 2025

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

@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

@rakyi rakyi force-pushed the mdim-catalog-path branch from b87e787 to 16b157f Compare February 19, 2025 14:19
@rakyi rakyi linked an issue Feb 20, 2025 that may be closed by this pull request
Copy link
Member

@marcelgerber marcelgerber left a comment

Choose a reason for hiding this comment

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

nice!

@rakyi rakyi force-pushed the mdim-catalog-path branch 2 times, most recently from b761cad to d9ec34d Compare February 26, 2025 13:57
@rakyi rakyi force-pushed the graphite-base/4576 branch from 0306200 to 132cfc2 Compare February 26, 2025 13:57
@rakyi rakyi changed the base branch from graphite-base/4576 to remove-mdim-feature-flag February 26, 2025 13:57
@rakyi rakyi force-pushed the mdim-catalog-path branch from d9ec34d to cb3b623 Compare February 26, 2025 14:05
@rakyi rakyi force-pushed the remove-mdim-feature-flag branch from 132cfc2 to 60c0d5d Compare February 26, 2025 14:05
Copy link
Contributor Author

rakyi commented Feb 26, 2025

Merge activity

  • Feb 26, 9:31 AM EST: A user started a stack merge that includes this pull request via Graphite.
  • Feb 26, 9:37 AM EST: Graphite rebased this pull request as part of a merge.
  • Feb 26, 9:38 AM EST: A user merged this pull request with Graphite.

@rakyi rakyi changed the base branch from remove-mdim-feature-flag to graphite-base/4576 February 26, 2025 14:33
@rakyi rakyi changed the base branch from graphite-base/4576 to master February 26, 2025 14:35
* 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}`
@rakyi rakyi force-pushed the mdim-catalog-path branch from cb3b623 to f565aa3 Compare February 26, 2025 14:36
@rakyi rakyi merged commit bdfb2f8 into master Feb 26, 2025
19 of 21 checks passed
@rakyi rakyi deleted the mdim-catalog-path branch February 26, 2025 14:38
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
3 participants