question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Chart selection persists and is not editable in the admin

See original GitHub issue

Parent 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:

  • selectedData
  • selectedEntityIds
  • selectedEntityNames

Ideally we would migrate to only using one. The least likely to go wrong is selectedEntityIds.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
larsyenckencommented, May 17, 2022

Closing this and tracking it in #1245 instead.

0reactions
marcelgerbercommented, Mar 8, 2022

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).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Edit data greyed out - Microsoft Community
Edit data greyed out. I have made several charts in PowerPoint 2010 and when I go back to edit them later, the entire...
Read more >
Troubleshooting guide - Looker Studio Help - Google Support
Steps to resolve. Fix or remove any invalid calculated fields. Choose different fields for the chart. Refresh the data source fields. Reconnect the...
Read more >
New issue: The selected role is not editable. - WordPress.org
I've been using this plugin for several years now, but recently I attempted to edit a role and was met with an error:...
Read more >
Admin settings - Persistent Derived Tables | Looker
View information about and troubleshoot persistent derived tables.
Read more >
Edit the Peer Selection Settings in an Active Review Cycle
Navigate to review cycle settings. Navigate to Admin > Reviews > Auditing. Select and enter the desired review cycle. Select Edit review cycle....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found