-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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-filter): Hide native filters #14784
Conversation
� Conflicts: � superset-frontend/src/dashboard/util/getPermissions.ts
Codecov Report
@@ Coverage Diff @@
## master #14784 +/- ##
=======================================
Coverage 77.61% 77.62%
=======================================
Files 963 963
Lines 49246 49246
Branches 6197 6198 +1
=======================================
+ Hits 38224 38226 +2
+ Misses 10821 10820 -1
+ Partials 201 200 -1
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.
Two minor comments
export function getUrlParam(paramName: string, type: 'boolean'): boolean; | ||
export function getUrlParam(paramName: string, type: UrlParamType): unknown { | ||
export type UrlParamType = 'string' | 'number' | 'boolean' | 'object'; | ||
export type ParamNameType = typeof URL_PARAMS[keyof typeof URL_PARAMS]; |
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.
is this not the same as string
? I believe it should be export type ParamNameType = keyof typeof URL_PARAMS;
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.
This is one of those common cases that we might want to put in our wiki
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.
* fix:fix get permission function * feat: support showFilters * fix: fix CR notes * fix: fix lint issues
* fix:fix get permission function * feat: support showFilters * fix: fix CR notes * fix: fix lint issues
* fix:fix get permission function * feat: support showFilters * fix: fix CR notes * fix: fix lint issues
SUMMARY
For Thumbnails or Alerts and Reports we need to hide filters bar on first loading
if we pass
show_filters=false
in url on first loading filter bar will be collapsed even if there are some filtersBEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TESTING INSTRUCTIONS
ADDITIONAL INFORMATION