Avoid calling QA, notify or correctiontypes endpoints for anonymous users on item pages - #5932
Avoid calling QA, notify or correctiontypes endpoints for anonymous users on item pages#5932alexklbuckley wants to merge 8 commits into
Conversation
|
Hi @alexklbuckley, thank you for noting and submitting this fix! |
|
Dear @alexklbuckley thanks for the fix! We encountered the issue as well. Could you fix the linting errors, so we can do a review or test? I also saw similar errors on https://demo.dspace.org/browse/dateissued?bbm.page=1&startsWith=2023 for the paths Update: I filed a different bug ticket for that #6055 |
…sers on item pages - This should reduce the number of 401 responses written to the console and backend logs. Sponsored-by: Auckland University of Technology, New Zealand
Sponsored-by: Auckland University of Technology, New Zealand
5408818 to
83157a6
Compare
|
Thanks for your replies @lgeggleston and @tinsch . I've pushed a follow-up which fixes failing lint tests. I see there are some unit tests that need fixing also. I am checking with our partner library if it's alright for us to spend the time fixing those up. I'll be in touch once I hear back. |
|
Hi @alexklbuckley, |
Sponsored-by: Auckland University of Technology, New Zealand
|
Our partner library has approved us to work on this so I am working through fixing the unit tests |
Sponsored-by: Auckland University of Technology, New Zealand
|
@alexklbuckley thanks for working on this again! There are still two linting errors, just some sorting of imports I think. |
81523f0 to
e5cb70d
Compare
|
thanks @tinsch ! I think Ive got the lint errors resolved now. I've been working through unit test fixes for src/app/item-page/full/full-item-page.component.spec.ts , do you happen to know what I need to do to fix up https://github.com/DSpace/dspace-angular/actions/runs/31074594056/job/92529716941?pr=5932#step:13:11250 ? |
References
Add references/links to any related issues or PRs. These may include:
Description
We should avoid unnecessarily filling the browser console and backend logs with 401 responses from anonymous users triggering calls to restricted API endpoints.
Sponsored-by: Auckland University of Technology, New Zealand
Instructions for Reviewers
Please add a more detailed description of the changes made by your PR. At a minimum, providing a bulleted list of changes in your PR is helpful to reviewers.
List of changes in this PR:
Include guidance for how to test or review your PR. This may include: steps to reproduce a bug, screenshots or description of a new feature, or reasons behind specific changes.
To Reproduce the bug
Steps to reproduce the behavior:
Apply the PR
Checklist
This checklist provides a reminder of what we are going to look for when reviewing your PR. You do not need to complete this checklist prior creating your PR (draft PRs are always welcome).
However, reviewers may request that you complete any actions in this list if you have not done so. If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!
mainbranch of code (unless it is a backport or is fixing an issue specific to an older branch).npm run lintnpm run check-circ-deps)package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.