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(ViewQuery-Modal): Copy icon is out of box when resize query modal #21243

Merged
merged 3 commits into from
Sep 3, 2022

Conversation

paulo-eduardo
Copy link
Contributor

SUMMARY

Adding a fail safe to get default resize config when receive an empty object.

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

BEFORE

Screen.Recording.2022-08-29.at.17.21.54.mov

AFTER

Screen.Recording.2022-08-29.at.17.21.18.mov

TESTING INSTRUCTIONS

  • open a chart in explore, click on ... menu in the top right and select 'View query'
  • Minimize the view query window and observe

@yousoph
Copy link
Member

yousoph commented Aug 29, 2022

/testenv up

@github-actions
Copy link
Contributor

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

@codecov
Copy link

codecov bot commented Aug 29, 2022

Codecov Report

Merging #21243 (2826c28) into master (8772e2c) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #21243   +/-   ##
=======================================
  Coverage   66.43%   66.43%           
=======================================
  Files        1784     1784           
  Lines       68163    68169    +6     
  Branches     7264     7266    +2     
=======================================
+ Hits        45285    45291    +6     
+ Misses      21010    21009    -1     
- Partials     1868     1869    +1     
Flag Coverage Δ
javascript 52.50% <100.00%> (+<0.01%) ⬆️

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

Impacted Files Coverage Δ
superset-frontend/src/components/Modal/Modal.tsx 89.18% <100.00%> (+0.78%) ⬆️
...tend/src/views/CRUD/data/database/DatabaseList.tsx 66.00% <0.00%> (-2.37%) ⬇️
...ols/DndColumnSelectControl/ColumnSelectPopover.tsx 3.37% <0.00%> (+0.10%) ⬆️
...-frontend/src/components/FilterableTable/index.tsx 72.63% <0.00%> (+0.29%) ⬆️

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

@paulo-eduardo paulo-eduardo changed the title fix(): Copy icon is out of box when resize query modal fix(ViewQuery-Modal): Copy icon is out of box when resize query modal Aug 29, 2022
@@ -289,6 +290,13 @@ const CustomModal = ({
}
};

const getResizableConfig = () => {
Copy link
Member

Choose a reason for hiding this comment

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

It would be nice if we can use useMemo to reduce called.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OHH, THAT IS RIGHT! Thank you 😊 working on it!

Copy link
Member

@stephenLYZ stephenLYZ left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for the fix.

@stephenLYZ stephenLYZ merged commit 1cc2148 into apache:master Sep 3, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Sep 3, 2022

Ephemeral environment shutdown and build artifacts deleted.

@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 size/M 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants