-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
fix: refine shouldUseLegacyApi and add tests #10148
Conversation
getChartMetadataRegistry().remove('my_legacy_viz').remove('my_v1_viz'); | ||
}); | ||
|
||
it('return true for legacy viz', () => { |
There was a problem hiding this comment.
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')
@rusackas thanks for nittery, comments addressed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM !
* fix: refine shouldUseLegacyApi and add tests * address review comments
SUMMARY
The bug that #10147 fixes exposed a shortcoming in the
shouldUseLegacyApi
function inexploreUtils
. This fixes the bug and adds unit tests to catch all possible cases I could think of.TEST PLAN
CI + new tests
ADDITIONAL INFORMATION