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(explore): hide a control wrapped with StashFormDataContainer correctly #28555

Conversation

justinpark
Copy link
Member

SUMMARY

With the introduction of StashFormDataContainer to stash form data while hidden, the control row visibility logic has been affected. This is because it currently only checks the direct element properties.
This commit fixes the logic to check with the correct Control component

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

Before:

before--invalid-visible-check.mov

After:

after--fix-invalid-visibility.mov

TESTING INSTRUCTIONS

Open a explore to create a table chart
Resize the window over 1200px and then check the control panel

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

@dosubot dosubot bot added the explore:control Related to the controls panel of Explore label May 16, 2024
@justinpark justinpark force-pushed the fix--invalid-col-size-due-to-hidden-control branch from 3b1f50d to 0d7b2ac Compare May 16, 2024 20:50
@justinpark justinpark requested a review from a team as a code owner May 16, 2024 20:50
@github-actions github-actions bot added the risk:db-migration PRs that require a DB migration label May 16, 2024
@michael-s-molina michael-s-molina removed the risk:db-migration PRs that require a DB migration label May 16, 2024
Copy link

codecov bot commented May 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.54%. Comparing base (76d897e) to head (0d7b2ac).
Report is 139 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #28555      +/-   ##
==========================================
+ Coverage   60.48%   64.54%   +4.05%     
==========================================
  Files        1931      521    -1410     
  Lines       76236    37483   -38753     
  Branches     8568        0    -8568     
==========================================
- Hits        46114    24193   -21921     
+ Misses      28017    13290   -14727     
+ Partials     2105        0    -2105     
Flag Coverage Δ
hive 49.09% <ø> (-0.08%) ⬇️
javascript ?
presto 53.64% <ø> (-0.16%) ⬇️
python 64.54% <ø> (+1.05%) ⬆️
unit 58.94% <ø> (+1.31%) ⬆️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justinpark justinpark force-pushed the fix--invalid-col-size-due-to-hidden-control branch from 0d7b2ac to 89885fa Compare May 16, 2024 21:10
@michael-s-molina michael-s-molina added the v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch label May 16, 2024
@michael-s-molina michael-s-molina merged commit 956511f into apache:master May 16, 2024
32 checks passed
michael-s-molina pushed a commit that referenced this pull request May 16, 2024
EnxDev pushed a commit to EnxDev/superset that referenced this pull request May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
explore:control Related to the controls panel of Explore size/L v4.0 Label added by the release manager to track PRs to be included in the 4.0 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants