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: refine shouldUseLegacyApi and add tests #10148

Merged
merged 2 commits into from
Jun 24, 2020

Conversation

villebro
Copy link
Member

@villebro villebro commented Jun 24, 2020

SUMMARY

The bug that #10147 fixes exposed a shortcoming in the shouldUseLegacyApi function in exploreUtils. This fixes the bug and adds unit tests to catch all possible cases I could think of.

TEST PLAN

CI + new tests

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

getChartMetadataRegistry().remove('my_legacy_viz').remove('my_v1_viz');
});

it('return true for legacy viz', () => {
Copy link
Member

@rusackas rusackas Jun 24, 2020

Choose a reason for hiding this comment

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

NIT, but maybe "returns" for these so it('reads like a sentence')

@villebro
Copy link
Member Author

@rusackas thanks for nittery, comments addressed!

Copy link
Member

@rusackas rusackas left a comment

Choose a reason for hiding this comment

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

image

Copy link
Member

@bkyryliuk bkyryliuk left a comment

Choose a reason for hiding this comment

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

LGTM !

@villebro villebro merged commit 38667b7 into apache:master Jun 24, 2020
@villebro villebro deleted the villebro/shouldUseLegacyApi-fix branch June 24, 2020 16:38
auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
* fix: refine shouldUseLegacyApi and add tests

* address review comments
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Mar 12, 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/M v0.37 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants