-
Notifications
You must be signed in to change notification settings - Fork 494
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
broken kebab on file listing page when dataset out of compliance with new (5.11) terms policy #8742
Comments
Jim came accross this while using the software. |
https://demo.dataverse.org/dataset.xhtml?persistentId=doi:10.70122/FK2/CRN2AW shows this issue for me. Not sure if there is something else about it, or develop has had changes that fix it already? |
Hmm, that "quick test" dataset you also mentioned in #8845 and it doesn't show any versions?!? Very strange. Maybe you and I can do a quick call to try to reproduce this. I can't reproduce it on demo either. |
Ah - the issue is with published datasets that don't have filerequestaccess==true or termsofaccess set. You can no longer produce these, but existing published datasets would have this. (I was able to recreate this by manually setting the filerequestaccess='f' after publication (at QDR which was up-to-date w.r.t. develop as of last week)). |
I'm able to reproduce this now. I had missed the step or restricting a file. Here are the steps:
I will say that the "out of compliance" message is prominently featured at the top ("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."). So if anyone complains about this problem, it's easy enough to ask them to check for this message. Then, to fix the dataset, they can take the following steps:
weird kebab with no dropdown (note also yellow warning at top)strange message when you click any weird kebab in the list of files |
I'd also like to note that on the file landing page the behavior is similar but not quite the same. Instead of a kebab, there is an "Edit File" button but it is disabled. Since you cannot click this button, there is no "Edit File" popup error like we see on the dataset page (screenshot below). As with the dataset page, the instructions on how to fix the dataset are in yellow at the top. |
We just discussed this issue in standup. In short, the file landing page is working the way we want. The "Edit File" dropdown is disabled when the dataset is non-compliant. The task is to apply the same logic to the dataset page. Don't let files be edited. |
There's more strange and disturbing behavior I'm noticing (which I mentioned briefly in #8845 (comment) ). In short, with dvndb=> select * from datasetversion; ... but in the UI it looks like two versions (a ghost draft as reported in #8742) and the real version, which is published/released. From the UI, you are allowed to delete the ghost draft... ... and THE PUBLISHED VERSION IS DELETED! dvndb=> select * from datasetversion; In the UI, you don't get any feedback. It doesn't say "version deleted" or anything. It looks like this... ... but when you refresh the page, you can tell the published version is gone. (See also "zero rows" from the SQL above.) |
only render edit files when hasValidTermsOfAccess #8742
What steps does it take to reproduce the issue? Publish a dataset with files, try to use the kebob menu to restrict the file. The display looks like
and clicking the vertical ... kebab (note there's no down arrow after it) gives:
If I edit some metadata so that a draft version exists, the menus change to have a carat after them:
and it works as normal.
Which version of Dataverse are you using?
develop branch - doesn't seem to occur on 5.10.1
The text was updated successfully, but these errors were encountered: