-
Notifications
You must be signed in to change notification settings - Fork 493
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
Curator should be able to edit a Dataset that is "In Review" #4139
Comments
For administrators, the edit and bulk download is disabled. Curators no longer can see the "in review" datasets. Not sure why this is, but doesn't seem to work for data curation workflows. |
Admins/curators should be the only ones with the ability to edit a dataset after it's been submitted for review Changing as I described above would correct the workflow for Harvard's installation. |
Here are my notes from sprint planning on Wednesday afternoon: "In the command, check for a lock but override and allow editing if user has edit permission and publish permission." I believe someone said it was a certain kind of lock to check for. |
I'm not sure when this was fixed. Probably 4.8.
In 1f1a79e I added an API test to assert the current behavior. A curator can't edit a dataset because it's locked. Oddly, however, the check for a lock is in the SWORD code. I thought the check for a lock would be in the |
Authors should not be able to edit metadata while in review. The GUI disallows this as of Dataverse 4.8 but it was not fully implemented because authors can make edits via the native API. Also add a sample JSON file for making edits for progress toward closing #3777 some day.
As I mentioned at standup this morning, I added some tests in 445e1ed that (unfortunately) assert that authors can continue to edit metadata while datasets are in review if the native API is used (heads up to @pameyer about this). I was told that @michbarsinai probably implemented the new logic that prevents authors from editing metadata via GUI so it was probably added in pull request #4116. If there was an issue about preventing authors from editing datasets while in review, I can't find it. Perhaps it's #3172 but it was never put through QA due to scope creep. |
In 830fd97 I took a look at the Edit button on the dataset page and made it so that people who can publish can still edit the metadata. However, it's a confusing user experience for these people who are editing metadata while it's in review because you see both of these messages at once:
Here's a screenshot: I'm going to flag this for UI/UX attention and try to pull in @mheppler @TaniaSchlatter @dlmurphy or @jggautier . Please note that #3172 is highly related. Even more problematic than the above is that the rendering of that button is the only thing that's preventing authors from editing metadata. That is to say, if I put a hack in to make is so authors can click the Edit button, authors are also able to edit the metadata just like curators. This makes sense because as I reported in my last comment, in Dataverse 4.8 and 4.8.1 authors are allowed to edit metadata via API but not the GUI. @djbrooke I could use help with the definition of done on this issue. I feel like a stab was made at #3172 but the job was never quite finished. This issue no longer feels like a 3. Please advise. |
I just created pull request #4208 and am putting this issue into Code Review at https://waffle.io/IQSS/dataverse Authors are now prevented from editing metadata at the command level. Somewhat strangely to me, the native API and the GUI use different commands. If I made a small revision to the API Guide I could put #3777 through QA as well since I was testing metadata edits via the native API (and added a convenience method for testing the API via REST Assured). |
Issues: |
All of the issues above have been addressed in my latest check-in except for the second one and the ingest spinner thing. |
Nice! Thanks @mheppler and @sekmiller! |
Gave @sekmiller a code snippet to render a |
OK, I've retested the fixes and updated the list above. Please review. |
… only be checking for the ingest lock there). (this is #4139)
When "In Review" was not considered to be a lock in the same way that File Ingest was a lock(versions prior to the lock redesign), a curator (or someone with dataset publish and edit permission) could edit a dataset that was "In Review". (That is, the edit dataset button was not disabled for them.)
To fix the disabled tag on the edit dataset button so that if the lock reason is in review disabled is false for users with Publish Dataset permission.
The text was updated successfully, but these errors were encountered: