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: bringing metric type icon styles into SelectControl #14531

Merged
merged 1 commit into from
May 8, 2021

Conversation

rusackas
Copy link
Member

@rusackas rusackas commented May 8, 2021

SUMMARY

PR #14485 cleaned up a bunch of LESS styles and moved them into Emotion. One style was also needed by the SelectControl component, and there was fallout from moving it away. This PR fixes it forward, putting the Emotion based styles where they're needed.

I believe this is further indication that we need to standardize our Select components (there are several), to minimize these surprise regressions.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:
image

After:
image

TEST PLAN

Pick any viz with a group by control - e.g. the Table viz. Check that the options in the menu don't look broken.

Test all over the place for related fallout.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@rusackas rusackas added the need:qa-review Requires QA review label May 8, 2021
@codecov
Copy link

codecov bot commented May 8, 2021

Codecov Report

Merging #14531 (f7abce4) into master (6871ad1) will increase coverage by 0.23%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #14531      +/-   ##
==========================================
+ Coverage   77.09%   77.33%   +0.23%     
==========================================
  Files         959      959              
  Lines       48309    48310       +1     
  Branches     5661     5661              
==========================================
+ Hits        37243    37359     +116     
+ Misses      10866    10751     -115     
  Partials      200      200              
Flag Coverage Δ
hive 80.81% <ø> (?)
javascript 72.40% <100.00%> (+<0.01%) ⬆️
mysql 81.07% <ø> (ø)
postgres 81.10% <ø> (ø)
presto 80.79% <ø> (?)
python 81.63% <ø> (+0.44%) ⬆️
sqlite 80.71% <ø> (ø)

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

Impacted Files Coverage Δ
.../src/explore/components/controls/SelectControl.jsx 89.38% <100.00%> (+0.09%) ⬆️
superset/utils/core.py 89.00% <0.00%> (+0.12%) ⬆️
superset/models/core.py 89.13% <0.00%> (+0.27%) ⬆️
superset/db_engine_specs/base.py 88.09% <0.00%> (+0.43%) ⬆️
superset/connectors/sqla/models.py 90.07% <0.00%> (+1.69%) ⬆️
superset/views/database/mixins.py 82.75% <0.00%> (+1.72%) ⬆️
superset/db_engine_specs/presto.py 89.89% <0.00%> (+6.52%) ⬆️
superset/db_engine_specs/hive.py 87.39% <0.00%> (+17.07%) ⬆️
superset/db_engines/hive.py 82.14% <0.00%> (+82.14%) ⬆️

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 6871ad1...f7abce4. Read the comment docs.

@junlincc
Copy link
Member

junlincc commented May 8, 2021

tested locally, LGTM! thanks for the fix! 🟢 added rush! and blocking!
cc @guhan @henryyeh

After:

Screen.Recording.2021-05-07.at.10.55.57.PM.mov

Before:

Screen.Recording.2021-05-07.at.11.27.31.AM.mov

@junlincc junlincc added rush! Requires immediate attention #bug:blocking! Blocking issues with high priority labels May 8, 2021
@rusackas rusackas force-pushed the fix-groupby-metric-type-icons branch from 0346d7b to f7abce4 Compare May 8, 2021 06:42
@junlincc junlincc removed their request for review May 8, 2021 06:54
Copy link
Member

@zhaoyongjie zhaoyongjie left a comment

Choose a reason for hiding this comment

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

LGTM!

@zhaoyongjie zhaoyongjie merged commit 4f000cc into master May 8, 2021
@junlincc
Copy link
Member

junlincc commented May 8, 2021

i agree that we need to standardize our components once and for all, to prevent future regressions. and I think now is probably a good time to finish the project. though we don't have much left, it's necessary to come up with a good testing plan for high-risk PRs.

@rusackas rusackas added the bash! label May 12, 2021
@junlincc junlincc removed #bug:blocking! Blocking issues with high priority rush! Requires immediate attention labels May 17, 2021
@rusackas rusackas deleted the fix-groupby-metric-type-icons branch October 6, 2021 21:58
cccs-RyanS pushed a commit to CybercentreCanada/superset that referenced this pull request Dec 17, 2021
QAlexBall pushed a commit to QAlexBall/superset that referenced this pull request Dec 29, 2021
cccs-rc pushed a commit to CybercentreCanada/superset that referenced this pull request Mar 6, 2024
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 1.3.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 need:qa-review Requires QA review preset-io size/S 🚢 1.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants