Chart selection persists and is not editable in the admin
See original GitHub issueParent notion issue: https://www.notion.so/owid/Selection-leaks-out-to-URL-f483bf775fe44f86a00cd6383a169082
Description
In some charts, there is a selected entity that persists and cannot be edited out in the admin.
Expected behaviour
All selection should be managed through the admin only.
Examples
The chart indoor-pollution-death-rates-clean-fuels is constantly redirected from https://ourworldindata.org/grapher/indoor-pollution-death-rates-clean-fuels to https://ourworldindata.org/grapher/indoor-pollution-death-rates-clean-fuels?country=~SLB (Solmon Islands selected).
The selection persists after being removed in the admin.
In the chart config, Solomon Islands was in the selectedEntityNames field.
Analysis
There are three ways of specifying selection in the Grapher config:
selectedDataselectedEntityIdsselectedEntityNames
Ideally we would migrate to only using one. The least likely to go wrong is selectedEntityIds.
Issue Analytics
- State:
 - Created 2 years ago
 - Comments:5 (5 by maintainers)
 

Top Related StackOverflow Question
Closing this and tracking it in #1245 instead.
As mentioned in #1241 this is also affecting color selection: If a color is specified in the legacy
selectedData, then we cannot reset to the color scheme default (we can override it, however).