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

🐛 (explorer) remove duplicate columns / TAS-613 #3957

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

sophiamersmann
Copy link
Member

@sophiamersmann sophiamersmann commented Sep 13, 2024

Fixes #3943

In #3793, we added a dimensions field to all existing ETL-authored indicator configs, but explorers don't expect partial grapher configs to come with dimensions.

Explorers specify their own dimensions, which led to the indicator of the partial grapher config being added twice. What made this worse is that the dimensions array of the partial grapher config got mutated every time a different view was selected, which led to dimensions being added multiple times to the same Grapher.

Copy link
Member Author

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

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

@sophiamersmann sophiamersmann changed the title 🐛 (explorer) remove duplicate columns 🐛 (explorer) remove duplicate columns / TAS-613 Sep 13, 2024
Copy link

@owidbot
Copy link
Contributor

owidbot commented Sep 13, 2024

Quick links (staging server):

Site Admin Wizard

Login: ssh owid@staging-site-fix-explorer-duplicate-columns

SVG tester:

Number of differences (default views): 1 (9882f0) ❌
Number of differences (all views): 0 ✅

Edited: 2024-09-13 13:06:23 UTC
Execution time: 1.28 seconds

@sophiamersmann sophiamersmann marked this pull request as ready for review September 13, 2024 14:57
Copy link
Member

@ikesau ikesau left a comment

Choose a reason for hiding this comment

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

Thank you! I knew there'd be a better way to do it 🙂

@sophiamersmann sophiamersmann merged commit d86af64 into master Sep 17, 2024
28 checks passed
@sophiamersmann sophiamersmann deleted the fix-explorer-duplicate-columns branch September 17, 2024 07:46
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.

Explorers: Indicators are shown more than once in the same chart
3 participants