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.

[Explore] Single metric selector is inoperable if the referenced metric no longer exists

See original GitHub issue

If 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

Screen Shot 2021-04-09 at 8 24 04 AM

How to reproduce the bug

  1. Using the example data visit the “Number of Girls” chart.
  2. Edit the datasource by deleting the sum_num metric and then clicking SAVE.
  3. Reload the page.
  4. 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:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Bonifacio2commented, May 14, 2021

I’ll take a look at this over the weekend.

0reactions
rusackascommented, Oct 19, 2021

@kgabryje said he’d be willing to do a little investigation here, so I’m (at least temporarily) sticking his name on it 😃

Read more comments on GitHub >

github_iconTop 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 >

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