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: converted QueryAutoRefresh to functional component #18179

Conversation

briannguyen4
Copy link
Contributor

SUMMARY

Converted QueryAutoRefresh class component into functional component.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

Run a query and see if the timer works.

ADDITIONAL INFORMATION

  • Has associated issue:
  • Required feature flags:
  • 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

@AAfghahi AAfghahi added the Superset-Community-Partners Preset community partner program participants label Jan 26, 2022
@briannguyen4 briannguyen4 force-pushed the brian-nguyen/QueryAutoRefreshConversion branch 3 times, most recently from cb42dd5 to 68c26bb Compare January 26, 2022 19:58
@briannguyen4 briannguyen4 force-pushed the brian-nguyen/QueryAutoRefreshConversion branch from 68c26bb to 8694429 Compare January 26, 2022 20:07
@briannguyen4 briannguyen4 force-pushed the brian-nguyen/QueryAutoRefreshConversion branch from 48cc869 to 2a09ab7 Compare January 28, 2022 21:30
@lyndsiWilliams lyndsiWilliams changed the title refactor: converted file to functional component refactor: converted QueryAutoRefresh to functional component Jan 28, 2022
@geido
Copy link
Member

geido commented Feb 11, 2022

Hey @briannguyen4 thanks for the contribution! It looks like unit tests might require some love for this to pass.

@pull-request-size pull-request-size bot added size/L and removed size/M labels Feb 16, 2022
@codecov
Copy link

codecov bot commented Feb 27, 2022

Codecov Report

Merging #18179 (172f178) into master (4ad5ad0) will decrease coverage by 0.04%.
The diff coverage is 77.27%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #18179      +/-   ##
==========================================
- Coverage   66.04%   65.99%   -0.05%     
==========================================
  Files        1591     1620      +29     
  Lines       62398    62961     +563     
  Branches     6283     6420     +137     
==========================================
+ Hits        41210    41552     +342     
- Misses      19567    19747     +180     
- Partials     1621     1662      +41     
Flag Coverage Δ
javascript 51.03% <77.27%> (+0.17%) ⬆️

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

Impacted Files Coverage Δ
...d/src/SqlLab/components/QueryAutoRefresh/index.jsx 83.33% <77.27%> (+22.04%) ⬆️
.../src/explore/components/DataTableControl/index.tsx 74.28% <0.00%> (-23.09%) ⬇️
...rd/components/nativeFilters/FilterBar/keyValue.tsx 18.18% <0.00%> (-21.82%) ⬇️
...board/components/nativeFilters/FilterBar/index.tsx 63.63% <0.00%> (-18.94%) ⬇️
superset-frontend/src/dataMask/actions.ts 54.54% <0.00%> (-18.19%) ⬇️
...rontend/src/explore/components/EmbedCodeButton.jsx 66.66% <0.00%> (-12.29%) ⬇️
...nts/controls/DateFilterControl/DateFilterLabel.tsx 40.86% <0.00%> (-10.76%) ⬇️
...et-frontend/src/explore/reducers/exploreReducer.js 25.71% <0.00%> (-9.58%) ⬇️
...perset-frontend/src/views/components/MenuRight.tsx 72.13% <0.00%> (-8.36%) ⬇️
superset-frontend/src/dataMask/reducer.ts 43.33% <0.00%> (-6.67%) ⬇️
... and 213 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 4ad5ad0...172f178. Read the comment docs.

Copy link
Member

@eschutho eschutho left a comment

Choose a reason for hiding this comment

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

looks great @briannguyen4, thank you!

@eschutho eschutho merged commit f497c19 into apache:master Mar 1, 2022
@eschutho eschutho deleted the brian-nguyen/QueryAutoRefreshConversion branch March 1, 2022 16:59
hughhhh added a commit that referenced this pull request Mar 16, 2022
hughhhh added a commit that referenced this pull request Mar 16, 2022
…nent … (#19226)

* Revert "refactor: converted QueryAutoRefresh to functional component (#18179)"

This reverts commit f497c19.

* lint
sadpandajoe pushed a commit to preset-io/superset that referenced this pull request Mar 17, 2022
…nent … (apache#19226)

* Revert "refactor: converted QueryAutoRefresh to functional component (apache#18179)"

This reverts commit f497c19.

* lint

(cherry picked from commit fc87218)
villebro pushed a commit that referenced this pull request Apr 3, 2022
* converted file to functional component

* refactor: convert class component to functional component

* refactor: convert class component to functional"

* Working on converting the shouldCheckForQueries test to RTL

* Working on converting first test to RTL

* Working on first test for queryAutoRefresh

* Finished Tests, pushing for review

* Cleaned up comments and console logs

Co-authored-by: Josue Lugaro <josuelugaro15@gmail.com>
(cherry picked from commit f497c19)
villebro pushed a commit that referenced this pull request Apr 3, 2022
…nent … (#19226)

* Revert "refactor: converted QueryAutoRefresh to functional component (#18179)"

This reverts commit f497c19.

* lint

(cherry picked from commit fc87218)
@mistercrunch mistercrunch added 🍒 1.5.0 🍒 1.5.1 🍒 1.5.2 🍒 1.5.3 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.0.0 labels Mar 13, 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 lts-v1 size/L Superset-Community-Partners Preset community partner program participants 🍒 1.5.0 🍒 1.5.1 🍒 1.5.2 🍒 1.5.3 🚢 2.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants