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

Add metric warning #3499

Merged
merged 4 commits into from
Sep 22, 2017
Merged

Conversation

michellethomas
Copy link
Contributor

Addressing this issue, I added warning_text to BaseMetric and displayed it in MetricOption.

I added javascript tests, but didn't see changes like this in python tests. Let me know if I should add python tests for this change.

I tested locally:
superset db upgrade
added a warning message on a metric in a sql table
confirmed the message showed up correctly
tested superset db downgrade

image

@mistercrunch
Copy link
Member

LGTM!

@mistercrunch
Copy link
Member

Looks like there's an alembic issue where db migrations need to be merged.

To fix you can run superset db history to view the 2 heads, and then:
superset db merge {HEAD1_SHA} {HEAD2_SHA}

@coveralls
Copy link

coveralls commented Sep 22, 2017

Coverage Status

Coverage increased (+0.005%) to 69.54% when pulling 0457761 on michellethomas:add_metric_warning into 9af34ba on apache:master.

@mistercrunch mistercrunch merged commit 255ea69 into apache:master Sep 22, 2017
timifasubaa pushed a commit to timifasubaa/incubator-superset that referenced this pull request Oct 3, 2017
* Adding warning text to metrics

* Adding javascript tests

* Fixing downgrade script for warning_text

* Adding merge migration
michellethomas added a commit to michellethomas/panoramix that referenced this pull request May 24, 2018
* Adding warning text to metrics

* Adding javascript tests

* Fixing downgrade script for warning_text

* Adding merge migration
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.20.1 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.20.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants