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

refactor(explore): move MetricControl and FilterControl to sub-component #12446

Merged
merged 13 commits into from
Jan 19, 2021

Conversation

zhaoyongjie
Copy link
Member

@zhaoyongjie zhaoyongjie commented Jan 12, 2021

SUMMARY

To make the explore code more maintainable, I will refactor some controls, so first I need to move some files to the sub-component.

  • This change will not change any codebase logic
  • This change will not change the filename

TEST PLAN

IT / cypress run ok

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

@codecov-io
Copy link

codecov-io commented Jan 12, 2021

Codecov Report

Merging #12446 (a3f92c2) into master (0f731f2) will decrease coverage by 2.86%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #12446      +/-   ##
==========================================
- Coverage   65.97%   63.10%   -2.87%     
==========================================
  Files        1015      485     -530     
  Lines       49548    29944   -19604     
  Branches     5080        0    -5080     
==========================================
- Hits        32687    18897   -13790     
+ Misses      16714    11047    -5667     
+ Partials      147        0     -147     
Flag Coverage Δ
cypress ?
javascript ?
python 63.10% <ø> (-0.98%) ⬇️

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

Impacted Files Coverage Δ
superset/db_engines/hive.py 0.00% <0.00%> (-85.72%) ⬇️
superset/examples/world_bank.py 30.98% <0.00%> (-69.02%) ⬇️
superset/sql_validators/postgres.py 50.00% <0.00%> (-50.00%) ⬇️
superset/db_engine_specs/hive.py 54.61% <0.00%> (-29.24%) ⬇️
superset/db_engine_specs/mysql.py 79.59% <0.00%> (-12.25%) ⬇️
superset/examples/helpers.py 85.36% <0.00%> (-12.20%) ⬇️
superset/db_engine_specs/sqlite.py 65.62% <0.00%> (-9.38%) ⬇️
superset/databases/commands/create.py 83.67% <0.00%> (-8.17%) ⬇️
superset/databases/commands/update.py 85.71% <0.00%> (-8.17%) ⬇️
superset/connectors/sqla/models.py 84.31% <0.00%> (-6.28%) ⬇️
... and 535 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 0f731f2...a3f92c2. Read the comment docs.

@zhaoyongjie zhaoyongjie reopened this Jan 12, 2021
@junlincc junlincc added hold! On hold explore:control Related to the controls panel of Explore labels Jan 12, 2021
@zhaoyongjie zhaoyongjie reopened this Jan 13, 2021
Copy link
Member

@ktmud ktmud left a comment

Choose a reason for hiding this comment

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

Good call! Tested and everything still works as expected.

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, just a few import nits

zhaoyongjie and others added 3 commits January 15, 2021 00:00
…terEditPopoverSqlTabContent_spec.jsx

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
…terOption_spec.jsx

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
…ricEditPopoverTitle_spec.jsx

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
@zhaoyongjie
Copy link
Member Author

LGTM, just a few import nits

Ville, Thanks for the point out.

@junlincc junlincc added v1.0 and removed hold! On hold v1.0 labels Jan 14, 2021
@zhaoyongjie zhaoyongjie merged commit 9771b82 into apache:master Jan 19, 2021
villebro added a commit that referenced this pull request Jan 25, 2021
…ent (#12446)

* wip

* wip

* wip

* wip

* move spec

* wip

* wip

* remove unused file

* wip

* wip

* Update superset-frontend/spec/javascripts/explore/components/AdhocFilterEditPopoverSqlTabContent_spec.jsx

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* Update superset-frontend/spec/javascripts/explore/components/AdhocFilterOption_spec.jsx

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

* Update superset-frontend/spec/javascripts/explore/components/AdhocMetricEditPopoverTitle_spec.jsx

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>

Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
@mistercrunch mistercrunch added 🍒 1.0.1 🏷️ 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:control Related to the controls panel of Explore v1.0.1 🍒 1.0.1 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants