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(explore): Certificate icon not displaying for certified metrics #13133

Merged
merged 3 commits into from
Feb 16, 2021

Conversation

kgabryje
Copy link
Member

@kgabryje kgabryje commented Feb 15, 2021

SUMMARY

Certificate icon was not displayed for certified saved metrics in metrics panel and in select options in metrics popover. This PR fixes it and adds some basic tests for OptionControls using react-testing-library.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before: see #13078
After:
image

TEST PLAN

ADDITIONAL INFORMATION

CC: @junlincc @villebro @nikolagigic @etr2460

@codecov-io
Copy link

Codecov Report

Merging #13133 (3c436b8) into master (2ce7982) will increase coverage by 8.76%.
The diff coverage is 33.86%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13133      +/-   ##
==========================================
+ Coverage   53.06%   61.82%   +8.76%     
==========================================
  Files         489      553      +64     
  Lines       17314    20252    +2938     
  Branches     4482     5300     +818     
==========================================
+ Hits         9187    12521    +3334     
+ Misses       8127     7517     -610     
- Partials        0      214     +214     
Flag Coverage Δ
cypress ?
javascript 61.82% <33.86%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...end/src/SqlLab/components/RunQueryActionButton.tsx 64.28% <ø> (+11.50%) ⬆️
superset-frontend/src/chart/ChartContainer.jsx 100.00% <ø> (ø)
superset-frontend/src/chart/ChartRenderer.jsx 39.18% <0.00%> (-37.53%) ⬇️
...perset-frontend/src/common/components/Dropdown.tsx 54.76% <ø> (+4.76%) ⬆️
...ontend/src/components/ListViewCard/ImageLoader.tsx 86.36% <0.00%> (+11.36%) ⬆️
...set-frontend/src/components/URLShortLinkButton.jsx 100.00% <ø> (ø)
...src/dashboard/components/HeaderActionsDropdown.jsx 54.79% <ø> (-12.78%) ⬇️
...end/src/dashboard/components/StickyVerticalBar.tsx 50.00% <ø> (-50.00%) ⬇️
...ponents/nativeFilters/FilterBar/CascadePopover.tsx 20.28% <0.00%> (-76.38%) ⬇️
...d/components/nativeFilters/FilterBar/FilterBar.tsx 70.93% <0.00%> (-24.46%) ⬇️
... and 521 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 312cbf7...3c436b8. Read the comment docs.

@junlincc junlincc added explore:metrics Related to metrics of Explore hold:testing! On hold for testing labels Feb 15, 2021
Copy link
Member

@junlincc junlincc left a comment

Choose a reason for hiding this comment

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

lgtm! approving as product sign-off! Thanks for the quick fix @kgabryje 🙏

Screen.Recording.2021-02-15.at.7.20.43.AM.mov

@etr2460 ready for you code review :)

@junlincc junlincc added need:review Requires a code review and removed hold:testing! On hold for testing labels Feb 15, 2021
@junlincc junlincc requested a review from etr2460 February 15, 2021 15:27
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.

LGTM. Still have some getting used to with RTL (I still kind of prefer the enzyme way of checking for child components).

@junlincc junlincc removed the need:review Requires a code review label Feb 15, 2021
Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

a couple nits, otherwise lgtm. And thanks so much for adding tests!

@junlincc junlincc merged commit 44723ea into apache:master Feb 16, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.2.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 explore:metrics Related to metrics of Explore size/M 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants