-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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(native-filters): Fix native filters config modal #15506
Conversation
� Conflicts: � superset-frontend/src/dashboard/util/getPermissions.ts
Codecov Report
@@ Coverage Diff @@
## master #15506 +/- ##
=======================================
Coverage 76.95% 76.96%
=======================================
Files 976 976
Lines 51283 51296 +13
Branches 6901 6911 +10
=======================================
+ Hits 39467 39480 +13
Misses 11597 11597
Partials 219 219
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
� Conflicts: � superset-frontend/src/dashboard/components/gridComponents/ChartHolder.jsx
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.
look good
just a small question before merging
...src/dashboard/components/nativeFilters/FiltersConfigModal/FiltersConfigForm/DefaultValue.tsx
Show resolved
Hide resolved
/testenv up FEATURE_DASHBOARD_NATIVE_FILTERS=true |
@amitmiran137 Ephemeral environment spinning up at http://52.25.166.59:8080. Credentials are |
@simcha90 is that behavior valid? |
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.
LGTM!
tested out all filter types with required and column scenarios and same flow is always the same on every type
- if no column chosen no default value to choose
- if required and default value also checked
- if required but column then only if save validation message of both column and default value appears like :
Fill all required fields to enable "Default Value"
Default value is required
Ephemeral environment shutdown and build artifacts deleted. |
* fix:fix get permission function * fix: native filters * fix: remove unneccesary space fo filters / fix some crashes (cherry picked from commit 2cb13e6)
The removal of "Value is required" was not a regression. It was a design decision to eliminate the unnecessary spacing among filters. That's why we added the asterisk. This PR reintroduced the text and the spacing. @simcha90 Can you please roll back to the previous behavior? |
@amitmiran137 @simcha90 Hi friends! according to the thread, we are seeing some regressions from this PR. To prevent this from happening Please do leave enough time for community reviews, and we would do the same :). One thing that could help the project is all parties to sync what feature goals we each wanna achieve on a weekly basis. We try to stabilize this native filter for prime time, and are investing more resources into QA, we would love to help keeping the PR standard high by testing more, please simply leave us 48 for code reviews and testing. |
Another regression found: the default value Select is not checked when there's a default value. screen-recording-2021-07-06-at-15844-pm_hwyyB5LM.mp4 |
@simcha90 let's make sure we have both behavior reverted. many thanks 🙏 |
Hi @junlincc @michael-s-molina yep, you are right it's good point to wait for some more feedbacks before merge, I will take it in account for next PRs About notes, because of this PR fix some other behavioral bugs, I'd prefer create one new PR to fix your notes rather then revert this one, to fix your notes I have some questions: 1. About Spacing / Coloring: We have here 2 features in one: a. Adding red colors to filters dependent on the type of filter: like border for Select Filter or make Range Filter is red for required state - this feature is not affecting layout, only change color of the filters (see example here: #15506 (comment)) b. Adding
2. Bug with initial value I'll create separate PR for it @junlincc @michael-s-molina can you please give your input for first item? And I will create PR ASAP to fix it, thanks |
1- About Spacing / Coloring: a. Keep as it is with the red colors. b. Remove the text only in the filter bar, not in the modal. The asterisk and the color are sufficient. We don't want the flick effect that happens when we add the text dynamically. Thank you. |
@michael-s-molina @junlincc |
* fix:fix get permission function * fix: native filters * fix: remove unneccesary space fo filters / fix some crashes
* fix:fix get permission function * fix: native filters * fix: remove unneccesary space fo filters / fix some crashes
* fix:fix get permission function * fix: native filters * fix: remove unneccesary space fo filters / fix some crashes
SUMMARY
This PR fix next flows:
There was regression, when you mark filter as
Required
it doesn't shows errors under filter and also not marks it with red (also FilterBar also FiltersConfigModal)When user switch between filter types with Default Value some times it crashes dependent on what filter were changed
For filter without
Column
field it doesn't load default valueBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION