-
Notifications
You must be signed in to change notification settings - Fork 13
Fix(PXP-3968): Fix explorer download button not disabled #66
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
Conversation
- Bug: Sometimes, the download button in explorer (button type='data') is not disabled when viewing metadata or files the user does not have access to. - Cause: Data from guppy is validated using the 'accessibleValidationField' in the guppy config, but the 'accessibleValidationField' was not always included by default in the data requested from guppy. If the 'accessibleValidationField' was not included, the data validation check that enables/ disables the 'data' button would fail and default to 'enabled.' - Fix: Always fetch 'accessibleValidationField' from guppy. This is done by always fetching the fields in 'accessibleFieldCheckList', which includes 'accessibleValidationField'.
| onProcessFilterAggsData: PropTypes.func, | ||
| onUpdateAccessLevel: PropTypes.func, | ||
| adminAppliedPreFilters: PropTypes.object, | ||
| accessibleFieldCheckList: PropTypes.arrayOf(PropTypes.string), |
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.
GuppyWrapper now passes accessibleFieldChecklist down as props to its children (including ConnectedFilter.)
|
cool! is this branch deployed to your dev env now? |
Not yet -- it was just on my local! I'll deploy it to my portal, I'll message when it's up. |
|
This version of guppy is running on my dev commons at https://mpingram.planx-pla.net/explorer. (Use dev_login: [email protected] to replicate the conditions the bug was found in) |
mfshao
left a comment
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.
👍
https://ctds-planx.atlassian.net/browse/PXP-3968
Bug Fixes
Fix bug in Windmill explorer in which download buttons would sometimes appear to be enabled, even if users didn't have access to all data.