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: refactor ResultSet to functional component #21186

Merged
merged 18 commits into from
Sep 6, 2022
Merged

chore: refactor ResultSet to functional component #21186

merged 18 commits into from
Sep 6, 2022

Conversation

EugeneTorap
Copy link
Contributor

SUMMARY

Converted ResultSet class component into functional component.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

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

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

Copy link
Member

@lyndsiWilliams lyndsiWilliams left a comment

Choose a reason for hiding this comment

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

Hi, thanks for the conversion! I found a few things that need to be adjusted - also now that this component is functional, its test file will need to be converted to React Testing Library so that the frontend tests can pass.

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@codecov
Copy link

codecov bot commented Aug 25, 2022

Codecov Report

Merging #21186 (684b5fc) into master (0c87ff7) will increase coverage by 0.01%.
The diff coverage is 57.39%.

❗ Current head 684b5fc differs from pull request most recent head cf55134. Consider uploading reports for the commit cf55134 to get more accurate results

@@            Coverage Diff             @@
##           master   #21186      +/-   ##
==========================================
+ Coverage   66.41%   66.42%   +0.01%     
==========================================
  Files        1784     1784              
  Lines       68185    68196      +11     
  Branches     7265     7270       +5     
==========================================
+ Hits        45284    45301      +17     
+ Misses      21032    21027       -5     
+ Partials     1869     1868       -1     
Flag Coverage Δ
javascript 52.52% <57.39%> (+0.03%) ⬆️

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

Impacted Files Coverage Δ
...lLab/components/ExploreCtasResultsButton/index.tsx 8.33% <0.00%> (ø)
...c/SqlLab/components/ExploreResultsButton/index.tsx 100.00% <ø> (ø)
...rontend/src/SqlLab/components/QueryTable/index.tsx 70.17% <ø> (ø)
...frontend/src/SqlLab/components/SouthPane/index.tsx 66.66% <ø> (ø)
...-frontend/src/components/FilterableTable/index.tsx 72.63% <ø> (+0.29%) ⬆️
...frontend/src/SqlLab/components/ResultSet/index.tsx 56.41% <59.09%> (+4.70%) ⬆️
...rset-frontend/src/components/ProgressBar/index.tsx 80.00% <100.00%> (ø)
superset-frontend/src/SqlLab/actions/sqlLab.js 61.64% <0.00%> (+0.26%) ⬆️
... and 1 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

2 similar comments
@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

@github-actions
Copy link
Contributor

Storybook has completed and can be viewed at

Copy link
Member

@lyndsiWilliams lyndsiWilliams left a comment

Choose a reason for hiding this comment

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

Looks good! Thanks for the conversion, this is great 😁

@lyndsiWilliams
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@lyndsiWilliams Ephemeral environment spinning up at http://54.188.192.217:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@hughhhh hughhhh self-requested a review August 30, 2022 00:23
Copy link
Member

@hughhhh hughhhh left a comment

Choose a reason for hiding this comment

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

Can we have some additional testing from QA before merging

@hughhhh hughhhh added the need:qa-review Requires QA review label Aug 30, 2022
@jinghua-qa
Copy link
Member

Sure, love to test it!

@kgabryje
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@kgabryje Ephemeral environment spinning up at http://35.86.88.190:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@kgabryje
Copy link
Member

/testenv up

@github-actions
Copy link
Contributor

@kgabryje Ephemeral environment spinning up at http://35.91.158.0:8080. Credentials are admin/admin. Please allow several minutes for bootstrapping and startup.

@kgabryje
Copy link
Member

kgabryje commented Sep 1, 2022

The changes look good to me. @jinghua-qa Would you like to test it? The test env http://35.91.158.0:8080/ contains a fix for diappearing results when switching tabs

@andrey-zayats
Copy link

QA tested and verified. LGTM

@EugeneTorap
Copy link
Contributor Author

EugeneTorap commented Sep 6, 2022

@kgabryje @lyndsiWilliams @hughhhh Can we merge it?

@kgabryje
Copy link
Member

kgabryje commented Sep 6, 2022

@hughhhh I've overriden your change request since it was about waiting for QA, and that's done. Thanks @andrey-zayats !

@kgabryje kgabryje merged commit f603295 into apache:master Sep 6, 2022
@EugeneTorap EugeneTorap deleted the refactor/ResultSet-to-fc branch September 6, 2022 14:57
@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

Ephemeral environment shutdown and build artifacts deleted.

sadpandajoe added a commit to preset-io/superset that referenced this pull request Oct 4, 2022
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 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 need:qa-review Requires QA review size/XXL 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants