only render edit files when hasValidTermsOfAccess #8742#8863
Merged
only render edit files when hasValidTermsOfAccess #8742#8863
Conversation
sekmiller
approved these changes
Jul 28, 2022
Member
Author
|
I just merged the latest from develop into this branch to pick up the 5.11.1 changes. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
One gets very strange behavior when the yellow "Info – Datasets with restricted files are required to have Request Access enabled or Terms of Access to help people access the data. Please edit the dataset to confirm Request Access or provide Terms of Access to be in compliance with the policy" message is present at the top of the dataset page.
The kebabs in the file listing on the dataset page are missing the dropdown and are non-functional.
This pull request removes the kebabs to be more in line with what we do on the file landing page. That is, now in both cases we prevent files from being edited until the dataset is in compliance. To get the dataset in compliance, you follow the instructions in the yellow info message.
Which issue(s) this PR closes:
Special notes for your reviewer:
At standup we said we'd like the dataset page to be like the file page in that we don't users editing files when the dataset is out of compliance. That's fine but the file page was only disabling the "Edit File" dropdown in CSS. It's easy to enable the button again using browser tools. So, for both the file page and the dataset page this pull request renders out the "edit file" option. More secure that way.
Suggestions on how to test this:
fileaccessrequestto false. I only have one dataset so I ranupdate termsofuseandaccess set fileaccessrequest = false;scripts/issues/8191/datasets_without_toa_or_request_accessfrom the 5.11 release notes to see that this is now a dataset that's out of compliance. It has no terms and it doesn't allow access requests.Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Yes, if the dataset is out of compliance with the terms policy:
Here are some screenshots:
Is there a release notes update needed for this change?:
No.
Additional documentation:
None.