-
Notifications
You must be signed in to change notification settings - Fork 433
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
WITHDRAW / REINSTATE requests for an item #2759
WITHDRAW / REINSTATE requests for an item #2759
Conversation
…correction suggestion
… accessible to any logged in user" to CST-12109
…efactor" into [CST-12109]
All those previous points should be addressed now
The framework we are using is the same used for the coar notify PR and the notifications system works in a generic way for all the sources (DSpace, openAIRE or COAR). In the mydpsace or item page context we don't have so accurate information needed to have more specific notification message unless we don't replicate all the rest requests done in the proper notification page. I honestly discourage this in order to not make the page heavier. |
@@ -119,6 +119,7 @@ describe('ItemAlertsComponent', () => { | |||
tick(); | |||
result$.subscribe((result) => { | |||
expect(result).toBeTrue(); | |||
done(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The issue is still there, you can still change this to toBeFalse() and get the test to pass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refactored
@atarix83 and @alisaismailati : A large number of e2e tests are now failing with the latest changes. (Though as I typed that I see another change was pushed, so hopefully that will help fix things up) Regarding @atarix83 's comment above Would it be possible on the Item page ONLY to simply change the notice that appears when you request a withdraw to say: Currently, in this PR, when a reinstatement is requested, you will see a notice that says |
We also reverted the reinstate message because it was based on a changed that is not compatible with the genric use of the framework. The component used is this one |
Hi @alisaismailati, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alisaismailati and @atarix83 : This is looking better to me now. It works based on my latest tests. I'm nearly a +1 except for some very minor things.
- First, I have some suggestions on better text for the "There are [num] pending review to check" message. I understand it needs to be generic, so I tried to suggest a different wording (see inline below)
- There's a minor accessibility bug (see inline below)
The e2e tests are failing in this PR and they are not failing onMy mistake, I realized they are supposed to fail as they depend on the backend PR first being merged. I have verified locally viamain
. I haven't had a chance to dig into why, but it appears to be specific to this PR. We need to obviously get them working before we can merge this.yarn e2e
that these all seem to pass with the backend PR installed
Thanks, overall I'm +1 the code. If you disagree with my suggested rewording (for 1 above), then I'd still merge this. But, I worry we may receive negative feedback from users once they test this.
Hello @tdonohue , |
@alisaismailati or @atarix83 : While this has been updated, somehow a Code Conflict has occurred. Could you rebase this on |
…into CST-12109-WITHDRAWN-REINSTATE-requests
@tdonohue , |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @alisaismailati and @atarix83 ! This looks good to me now & works well. I've also verified locally that e2e tests all pass with the backend installed.
Merged as both frontend & backend are ready. However, this feature requires documentation. So, adding the |
Hi @tdonohue, we worked on documentation. Let us know if any change is needed. Thanks in advance for your help! |
Added the necessary done() calls back & fixed tests
Please note that this development has been funded by the University of California - California Digital Library.
References
RestContract PR: DSpace/RestContract#250
Back-end PR: DSpace/DSpace#9267
Description
This (PR) contains an implementation that enables all logged users to create WITHDRAWN and REINSTATE requests for an item using the quality assurance event mechanism.
Once a WITHDRAWN or REINSTATE request is submitted, it can also be also canceled.
Instructions for Reviewers and guidance
The user is provided with the option to withdraw an item from the details page of the item. Any authenticated user has the permission to withdraw an item.
Administrator:
An administrator can reject the withdrawal
can ignore it, the request can be reconsidered later
or can accept, this item will not be discoverable and will not be archived,it can only be accessed through link
Other users:
As an example, a submitter has the authority to only reject the withdrawal request.
An administrator user will observe an eye icon, allowing them to proceed with a request for reinstatement:
A submitter will have a different view, a “Reinstate” button is available next to the “Take me to the home page” button and they will no longer see the item's details:
In this case, will have the opportunity to revisit the list of topics:
Additionally, there will be the option to accept this reinstatement request, thereby re-opening the possibility for withdrawal.
On check button click the user will be redirected to "Quality Assurance" page
NOTE: e2e tests are failing due to the missing endpoint added on the REST PR (DSpace/DSpace#9267).
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.