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

[fix] Reverting metic logic from #8901 #9030

Merged
merged 1 commit into from Jan 28, 2020

Conversation

john-bodley
Copy link
Member

CATEGORY

Choose one

  • Bug Fix
  • Enhancement (new features, refinement)
  • Refactor
  • Add tests
  • Build / Development Environment
  • Documentation

SUMMARY

This PR reverts the metric cleanup logic defined in #8901 as the superset-ui currently defines the metrics in the form {"label": <name>} per here.

Given that the superset-ui build is currently broken (though is actively being worked on) it seems like reverting the so-called temporary logic probably makes the most sense for now.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TEST PLAN

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Requires DB Migration.
  • Confirm DB Migration upgrade and downgrade tested.
  • Introduces new feature or API
  • Removes existing feature or API

REVIEWERS

to: @etr2460 @villebro
cc: @williaster

@john-bodley john-bodley force-pushed the john-bodley--fix-regression-8901 branch from 34ec3b1 to 1f60745 Compare January 28, 2020 02:11
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for fixing this @john-bodley . I was not aware superset-ui is not compatible with utils.get_metric_name(). Short term this is probably the right action, but long term it would be great to ensure proper alignment between frontend and backend logic.

@john-bodley
Copy link
Member Author

@villebro agreed. Ideally there should be some CI checks or offline end-to-end test suite which verifies consistency between these packages especially as we are going to lean on the superset-ui package for the frontend logic.

@john-bodley john-bodley merged commit dc60db2 into master Jan 28, 2020
@john-bodley john-bodley deleted the john-bodley--fix-regression-8901 branch January 28, 2020 06:28
john-bodley added a commit to airbnb/superset-fork that referenced this pull request Jan 28, 2020
@williaster
Copy link
Contributor

thanks @john-bodley ! would be curious to hear any thoughts you have on how best to add the end-to-end tests. perhaps if the API v2 gets fleshed out (I think there are plans in the works for this), it would be a good time to add cc @kristw

@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.36.0 labels Feb 28, 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 size/XS 🚢 0.36.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants