[Explore] Single metric selector is inoperable if the referenced metric no longer exists
See original GitHub issueIf a metric is removed from a datasource the single metric widget is inoperable if saved slice or URL references the previously defined metric. Note this isn’t a problem for visualization types which support multiple metrics.
Expected results
The metric widget to render correctly.
Actual results
The metric widget in inoperable (see attached screenshot).
Screenshots
How to reproduce the bug
- Using the example data visit the “Number of Girls” chart.
- Edit the datasource by deleting the
sum_num
metric and then clickingSAVE
. - Reload the page.
- Verify the METRIC widget is inoperable (see screenshot).
Environment
(please complete the following information):
- superset version:
master
- python version:
3.7
- node.js version:
14
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
Add any other context about the problem here.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Metrics API - Metric selector | Dynatrace Docs
The metric selector is a powerful instrument for specifying which metrics you want to read via the GET metric data points request or...
Read more >Working with tables - Zendesk help
By default, metrics are placed in different columns. You can list the metrics together in one column by selecting Metrics on rows. If...
Read more >Monitor Status - Datadog Docs
The status graph shows your monitor's status over time, broken out by group. Note: If you see None or no groups found ,...
Read more >Explore Azure Monitor Azure Cosmos DB insights
This feature does not require you to enable or configure anything, these Azure Cosmos DB metrics are collected by default. Note. There is...
Read more >Define a metric - Product Documentation | ServiceNow
Navigate to All > Metrics > Definitions. Important: Do not confuse these metric definitions with the metric definitions for the Assessments ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’ll take a look at this over the weekend.
@kgabryje said he’d be willing to do a little investigation here, so I’m (at least temporarily) sticking his name on it 😃