-
Notifications
You must be signed in to change notification settings - Fork 498
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
Add ability to "Return to Author" via API using JSON, read by author via email #3943
Comments
|
#1684 by @mercecrosas says, "For some features that generate a notification (such as clicking "Return to Author" in a dataset in review, or assigning a role to a user), we should allow to add a custom note that the user gets with the notification." There's the potential for consolidating these issues into one. |
@pdurbin @scolapasta Australian Data Archive has a major interest in this requirement for custom notes - particularly to be useable across multiple notifications. We would use this in several notifications if available:
We would be happy to contribute to the development effort here - we intend to work on developing this functionality ourselves in Q3 2017 anyhow, as we need it for extending our restricted access customisation. Cheers, Steve |
@stevenmce cool. Can you please @mention the developer(s) who would be interested in helping? Please be advised that the scope of this issue is to build the backend, accessible via API only. The note will be put in JSON format and sent at a new API endpoint. In the future we'll be working on the front end so that submitting a note is possible from the Dataverse GUI (I assume we'll use #3702 to work on the frontend and you are welcome to leave a comment there to explain your requirements). |
@scolapasta @pameyer I just made pull request #3962 to demonstrating how I'd like to test this feature with REST Assured and stubbed out some of the methods I'll need. Unfortunately, both "Submit for Review" and "Return to Author" are GUI-only features right now (#3440). Feedback from you, @stevenmce 's developers, and others is welcome but I'll keep coding away. |
@pdurbin :
|
@pameyer yeah, in the tests I wrote the author doesn't have permission to publish, which is my understanding of how you plan to run your installation of Dataverse, so I was planning on having the curator publish the dataset after the author responds to the comments made by the curator during review. Thanks for noticing that I botched the name of the test class. Will fix! No, I don't plan on including any browser-based tests for this issue but I have recently listed browser-based tests under "Future Work" at http://guides.dataverse.org/en/4.7/developers/testing.html#future-work . |
In my brain, wires are crossed such that I'm forever confusing the "Request Access" workflow and the "Submit for Review" workflow.
In 02fb4d1 I added notifications to the new Here are the screenshots. (Sorry for the ugly names but I use these to make objects unique in API tests.) Keep in mind that an dataset can have multiple authors/contributors and multiple curators: What the curators see when an author/contributor clicks "Submit for Review"What the authors/contributors see when one of the curators clicks "Return to Author" |
I chatted with @pameyer in Slack and we agree that the curator's comments need to be persisted somewhere, and I picked a place in 78de1cb mostly to show the places where the code might need to change. I'm certainly open to changing how we persist things. @pameyer seemed fine with me adding an API endpoint for users to read their notifications, which I stubbed out in 55bf5ba . Right now you can only see the robotic looking "type" of notification ( I'm not married to this approach so I'm putting this issue in Code Review at https://waffle.io/IQSS/dataverse (pull request #3962) but I hope that @pameyer agrees that the fundamental requirements for this issue have been met. (In sprint planning we gave this issue an 8 so I expect a certain amount of scope creep.) I tried to write my API tests like a user story that goes like this:
Here's the API test file I'm talking about with the user story above: |
Changed references to authors to be plural, based on a conversation with @pdurbin - there are many cases where multiple authors will be affected and notified when a dataset is returned, so it makes sense to refer to them in the plural here.
Also, completely remove Workflow Action.
Remove references to getting "Reasons for Return" from the documentation of the Notifications API
Seeing some weirdness: First 2 exist only in this branch. The third seems to have found its way into /develop. |
There's definitely some weirdness in the dataverse cards urls (I don't think it was introduced in this branch) This works: This also works: This doesn't (and shows up on dataverse cards in my local): |
Fix for the Dataverse Card Link is in the Return to Author Branch. |
Highly related to #3702; but separate in the spirit of allowing the API to do anything the UI can do (and to allow development prior to UI development):
The text was updated successfully, but these errors were encountered: