-
-
Notifications
You must be signed in to change notification settings - Fork 229
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
🔨 (db) add chart_configs table / TAS-563 #3767
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. Join @sophiamersmann and the rest of your teammates on Graphite |
6c1ed65
to
b8af815
Compare
Quick links (staging server):
Login:
SVG tester:Number of differences (default views): 0 ✅ Edited: 2024-07-08 14:35:44 UTC |
f15f1c5
to
94680ac
Compare
98345c7
to
f587577
Compare
Looks good overall! I think we should add the slug as a materialized computed column on chart_configs for now and add an index - even if we move it back to chart eventually. We use this quite extensively and loosing the ability to use an index could hurt performance quite a bit, especially if we start pushing more and more stuff into chart_configs later in the cycle. |
Just to note that I haven't run this locally yet - the PR review so far was just about looking at the code. Ping me again when you are ready and then I'll run through the migration and QA the code a bit more :) |
7673208
to
be4487e
Compare
2a095cc
to
d2e38e0
Compare
d2e38e0
to
74a1dfe
Compare
74a1dfe
to
675fa45
Compare
675fa45
to
3448335
Compare
3448335
to
f49fc05
Compare
f49fc05
to
bacf654
Compare
bacf654
to
f49fc05
Compare
f49fc05
to
bacf654
Compare
bacf654
to
f49fc05
Compare
f49fc05
to
434ff19
Compare
434ff19
to
fd2bb43
Compare
Merge activity
|
Summary
Adds a
chart_configs
table to the database, adds aconfigId
column to thecharts
table that points to achart_configs
row, and removes theconfig
column.Shouldn't result in any functionality change.
Details
charts
table to thechart_configs
table (for now,patch config = full config
since inheritance hasn't been implemented yet)Testing
Site:
Admin:
On the ETL side
Mojmir opened a PR for changes to the ETL: owid/etl#2957
To do
Is it safe to rewrite the config's id?I think it's okaycreatedAt
andupdatedAt
since the db inserts values on insert/update?To do after merging