Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@em-ingram
Copy link
Contributor

https://ctds-planx.atlassian.net/browse/PXP-3968

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'.

Guppy PR for this bugfix: uc-cdis/guppy#66

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.

- 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'.
- guppy had been bumped to `0.3.11`, but that version has not
  been released yet.
Copy link
Collaborator

@mfshao mfshao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@em-ingram em-ingram merged commit e5f406a into master Nov 5, 2019
@em-ingram em-ingram deleted the fix/pxp-3968 branch November 5, 2019 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants