-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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: Reordering native filters ignored by filter bar #22362
Merged
michael-s-molina
merged 3 commits into
apache:master
from
kgabryje:fix/native-filters-reorder
Dec 7, 2022
Merged
fix: Reordering native filters ignored by filter bar #22362
michael-s-molina
merged 3 commits into
apache:master
from
kgabryje:fix/native-filters-reorder
Dec 7, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
...-frontend/src/dashboard/components/nativeFilters/FilterBar/FilterControls/FilterControls.tsx
Outdated
Show resolved
Hide resolved
@kgabryje There's still a problem with reordering when overflowed and not-overflowed elements are involved. Screen.Recording.2022-12-07.at.2.25.46.PM.mov |
Codecov Report
@@ Coverage Diff @@
## master #22362 +/- ##
==========================================
- Coverage 66.77% 66.77% -0.01%
==========================================
Files 1847 1847
Lines 70558 70559 +1
Branches 7735 7736 +1
==========================================
Hits 47114 47114
Misses 21444 21444
- Partials 2000 2001 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
michael-s-molina
approved these changes
Dec 7, 2022
jinghua-qa
pushed a commit
to preset-io/superset
that referenced
this pull request
Dec 10, 2022
(cherry picked from commit da64fa2)
This was referenced Jan 3, 2023
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
preset:2022.49
size/S
🚢 2.1.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
SUMMARY
When user was tried to reorder native filters placed in overflow dropdown in horizontal bar, the visual changes were not applied and filters were rendered in the same order as before. The problem was using a
key
property around rendered filter - since thekey={id}
wasn't changing when filters were reordered, React ignored the change and didn't redraw the filters.BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Before:
Screen.Recording.2022-12-07.at.20.11.14.mov
After:
Screen.Recording.2022-12-07.at.20.07.04.mov
TESTING INSTRUCTIONS
HORIZONTAL_FILTERS_BAR
ffADDITIONAL INFORMATION