Skip to content
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

Make "Return book" button go to loans page not editions page #5935

Merged
merged 2 commits into from
Dec 6, 2021

Conversation

michellejli77
Copy link
Contributor

Closes #2777

feature

Technical

For redirecting after a book is returned, the route used is exactly the same as a different page that also redirects to loans. After returning a book, a function is called to update and remove the book from the loan list.

Testing

To test, return a book and ensure redirection to the original loans page. In addition, make sure the returned book is not on the list anymore (without having to refresh).

Screenshot

This feature does not directly touch UI, but we included a screenshot to display an empty loans page.
Screen Shot 2021-12-04 at 7 40 30 PM

Stakeholders

N/A

@cclauss cclauss requested review from hornc and mekarpeles December 6, 2021 06:31
@cclauss cclauss added the Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed] label Dec 6, 2021
@mekarpeles
Copy link
Member

Solution LGTM, solves #2777 for @JeffKaplan.

I originally implemented this to go to the editions page and feel OK about this change :)

@mekarpeles mekarpeles merged commit 6e0dc95 into internetarchive:master Dec 6, 2021
@michellejli77 michellejli77 deleted the 17313/returnLoans branch December 6, 2021 21:11
@michellejli77 michellejli77 restored the 17313/returnLoans branch December 6, 2021 21:13
@cdrini cdrini changed the title 17313/return loans Make "Return book" button go to loans page not editions page Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Review This issue/PR needs to be reviewed in order to be closed or merged (see comments). [managed]
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Return book button should go to loans page not editions page
4 participants