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

chore: Migrates RefreshChartOverlay into Chart #13274

Merged

Conversation

michael-s-molina
Copy link
Member

SUMMARY

Migrates RefreshChartOverlay into Chart.

RefreshChartOverlay wasn't used anywhere outside Chart and it's a specific behavior of the chart component. Also, most of its properties weren’t being used.

TEST PLAN

1 - Execute Chart tests
2 - All tests should pass

@rusackas

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 Feb 22, 2021

Codecov Report

Merging #13274 (e44a437) into master (1e3130d) will decrease coverage by 4.37%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #13274      +/-   ##
==========================================
- Coverage   77.04%   72.67%   -4.38%     
==========================================
  Files         894      593     -301     
  Lines       45664    21237   -24427     
  Branches     5490     5489       -1     
==========================================
- Hits        35184    15433   -19751     
+ Misses      10356     5680    -4676     
  Partials      124      124              
Flag Coverage Δ
cypress 57.63% <100.00%> (+<0.01%) ⬆️
hive ?
javascript 62.40% <50.00%> (+<0.01%) ⬆️
mysql ?
postgres ?
presto ?
python ?
sqlite ?

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

Impacted Files Coverage Δ
superset-frontend/src/chart/Chart.jsx 64.81% <100.00%> (+0.66%) ⬆️
...set-frontend/src/dashboard/util/getDropPosition.js 90.90% <0.00%> (ø)
superset/views/base_api.py
superset/reports/dao.py
superset/common/query_context.py
superset/extensions.py
superset/queries/saved_queries/api.py
superset/annotation_layers/commands/delete.py
superset/db_engine_specs/mysql.py
superset/annotation_layers/commands/bulk_delete.py
... and 292 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 1e3130d...441f182. Read the comment docs.

@junlincc
Copy link
Member

added test:component label to track project, but not actually related. Thanks for the PR and review @michael-s-molina @geido 🙏

@michael-s-molina michael-s-molina force-pushed the tests-audit-refresh-chart-overlay branch 2 times, most recently from 9930fc7 to 8748a8c Compare February 23, 2021 17:13
@michael-s-molina
Copy link
Member Author

@rusackas It seems that the Cypress error in explore/control.test.ts is not related to this PR or maybe it's not even an error but the random nature of some tests 😆.

It executes successfully locally:

Screen Shot 2021-02-23 at 3 44 20 PM

I probably spammed reviewers' emails with forced pushes or open/close trying to make this pass (sorry about that). Maybe you are luckier than me? Or maybe it's an error and I'm low on coffee 😩?

@michael-s-molina michael-s-molina force-pushed the tests-audit-refresh-chart-overlay branch 2 times, most recently from 74a7899 to 75ed9a1 Compare February 25, 2021 17:36
@michael-s-molina
Copy link
Member Author

I finally found out what was causing the test to fail. Although width was no longer used in Chart, it was used in ChartRenderer and therefore could not be removed from ChartContainer. Turns out it was the lack of coffee 😬

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.

LGTM! Just needs a rebase to merge.

@michael-s-molina michael-s-molina force-pushed the tests-audit-refresh-chart-overlay branch from 75ed9a1 to 441f182 Compare February 26, 2021 13:36
@rusackas rusackas merged commit a36c833 into apache:master Mar 1, 2021
allanco91 pushed a commit to allanco91/superset that referenced this pull request May 21, 2021
* Migrates RefreshChartOverlay into Chart

* Removes unused Chart width prop
@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 size/M test:component 🚢 1.2.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants