-
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
refactor(native-filters): allow cascading only for filter_select #14441
Conversation
� Conflicts: � superset-frontend/src/dashboard/util/getPermissions.ts
Codecov Report
@@ Coverage Diff @@
## master #14441 +/- ##
==========================================
+ Coverage 76.79% 76.99% +0.20%
==========================================
Files 955 955
Lines 48247 48029 -218
Branches 6030 6040 +10
==========================================
- Hits 37051 36981 -70
+ Misses 11001 10850 -151
- Partials 195 198 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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!
@@ -186,6 +189,8 @@ export const FiltersConfigForm: React.FC<FiltersConfigFormProps> = ({ | |||
formFilter?.filterType, | |||
); | |||
|
|||
const isCascadingFilter = CASCADING_FILTERS.includes(formFilter?.filterType); |
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.
const isCascadingFilter = CASCADING_FILTERS.includes(formFilter?.filterType); | |
const isCascadingFilterAllowed = CASCADING_FILTERS.includes(formFilter?.filterType); |
isClearable | ||
/> | ||
</StyledFormItem> | ||
{isCascadingFilter && ( |
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.
{isCascadingFilter && ( | |
{isCascadingFilterAllowed && ( |
* master: (38 commits) refactor(native-filters): allow cascading only for filter_select (apache#14441) test(maximize-chart): Add tests to maximize chart action (apache#14371) fix: fixing mysql error message (apache#14416) feat: Logic added to limiting factor column in Query model (apache#13521) change relationship (apache#14435) fix: bootstrap data permissions (apache#14348) fix: parse simple string error message values (apache#14360) chore: add stack trace to all calls of logger.error (apache#14382) update README with new docs and recordings (apache#14432) Renamed impyla from implya in impala.mdx and Renamed PIP package impyla from impala in index.mdx (apache#14425) fix(native-filters): fix filter scope error (apache#14426) feat: Adding limiting_factor column to Query model (apache#14234) feat: Add etag caching to dashboard APIs (apache#14357) chore: Moves Card to the components folder (apache#14139) feat: Dynamic imports for the Icons component (apache#14318) feat: Support env vars configuration for WebSocket server (apache#14398) fix: SQLLab role permissions (apache#14372) fix(native-filters): always show filters without dataset (apache#14409) fix error getting partitionQuery from table.partition (apache#14369) refactor: Boostrap to AntD - Tabs (apache#14048) ...
) * fix:fix get permission function * refactor: allow cascading only for filter_select (cherry picked from commit abbf4bf)
a bit too late, but thanks for making the change! @simcha90 @amitmiran137 |
…che#14441) * fix:fix get permission function * refactor: allow cascading only for filter_select (cherry picked from commit abbf4bf)
…che#14441) * fix:fix get permission function * refactor: allow cascading only for filter_select
…che#14441) * fix:fix get permission function * refactor: allow cascading only for filter_select
…che#14441) * fix:fix get permission function * refactor: allow cascading only for filter_select
SUMMARY
Allows apply cascading logic only for Select filters
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION