-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
feat(native-filters): Add default first value to select filter #13726
Merged
Merged
Changes from 21 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
3eb7524
feat: native filters first default value
simcha90 b070c1c
fix: fix CR notes
simcha90 53f2a17
feat: add support for `Place` type
simcha90 ee84375
Merge branch 'master' of github.com:apache/superset into selec_first
simcha90 5da45bb
refactor: sync with master
simcha90 37b3f0e
feat: add first value to Select filters
simcha90 4d4b371
refactor: fix CR notes
simcha90 58b9199
refactor: updates usage of `ownFilters` to `ownState`
simcha90 ce4b2aa
Revert "refactor: updates usage of `ownFilters` to `ownState`"
simcha90 22d7f7a
fix: revert mocks
simcha90 10cec8a
fix: fix CR notes
simcha90 21040f4
Merge branch 'master' of github.com:apache/superset into selec_first
simcha90 5e0e87a
chore: update package json
simcha90 10b9557
chore: update package json
simcha90 de733f3
chore: update package json
simcha90 caed773
Merge branch 'master' of github.com:apache/superset into selec_first
simcha90 95baf89
test: fix tests
simcha90 1c2f278
fix: fix BE empty metrics
simcha90 8ccb6f0
Merge branch 'master' of github.com:apache/superset into selec_first
simcha90 5f37308
lint: fix lint
simcha90 9db8487
fix: fix BE empty metrics
simcha90 4919889
refactor: fix Cr notes
simcha90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the new logic this section is becoming slightly difficult to follow and could potentially be simplified. There's a few
value === FIRST_VALUE
checks, and the namesvalue
,selectValue
,stateValue
make it not obvious to the casual reader what these mean. I propose making these more explicit, e.g. renamingvalue
toselectedValue
(=what's the current selection) and constructingstateValue
(=what goes incurrentState
) earlier on so we don't need to do alater on. It would be nice if
stateValue
would already be fully ready by the time we arrive at that point, making the finalcurrentState
look more like this:There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I simplified logic can you look please one more time?