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

Error when displaying a loan if the item has been deleted #3710

Closed
PascalRepond opened this issue Jun 26, 2024 · 0 comments · Fixed by #3787
Closed

Error when displaying a loan if the item has been deleted #3710

PascalRepond opened this issue Jun 26, 2024 · 0 comments · Fixed by #3787
Assignees
Labels
bug Breaks something but is not blocking dev: sentry For PRs that are created to correct an error raised by Sentry.

Comments

@PascalRepond
Copy link
Contributor

Bug description:

If I delete an item that was linked to a loan, the serialization creates an error if I try to see the loan in the API.
Usually we don't use it but it still creates an error in the API.

Moreover, this can create problems in the interface when displaying past fees linked to this loan (error in the console).

Expected behavior:

  • The serialization for a loan should take into account that the item/document may not exist anymore and say "unknown" when it needs info that doesn't exist anymore OR implement soft delete

Steps to Reproduce:

  1. Find a loan with a fee
  2. Checkin the item and "pay" the fee
  3. Delete the item
  4. Go to the patron profile and check fee history /professional/circulation/patron/[pid]/fees
  5. See console and Sentry error

Example: https://bib.rero.ch/api/loans/412553

@PascalRepond PascalRepond added the bug Breaks something but is not blocking label Jun 26, 2024
@PascalRepond PascalRepond added the dev: sentry For PRs that are created to correct an error raised by Sentry. label Jun 26, 2024
@PascalRepond PascalRepond moved this from Inbox to Product Backlog in RERO ILS issues Jun 26, 2024
@rerowep rerowep self-assigned this Nov 26, 2024
@rerowep rerowep moved this from Product Backlog to In Development in RERO ILS issues Nov 26, 2024
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 26, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 26, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 26, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 26, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 26, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 26, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 27, 2024
* Closes rero#3710

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
@rerowep rerowep moved this from In Development to Ready to test in RERO ILS issues Nov 27, 2024
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Closes rero#3710

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Closes rero#3710

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Closes rero#3710

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Closes rero#3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Closes rero#3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 28, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 29, 2024
* Closes rero#3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 29, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 29, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Nov 30, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 2, 2024
* Closes rero#3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 2, 2024
* Closes rero#3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
PascalRepond pushed a commit that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes #3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
PascalRepond pushed a commit that referenced this issue Dec 3, 2024
* Closes #3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 3, 2024
* Closes rero#3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes #3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit that referenced this issue Dec 3, 2024
* Closes #3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 3, 2024
* Closes rero#3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes #3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit that referenced this issue Dec 3, 2024
* Closes #3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
rerowep added a commit that referenced this issue Dec 3, 2024
* Closes #3710
* Cleans code for `organisation_pid` function.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
@github-project-automation github-project-automation bot moved this from Ready to test to Done in RERO ILS issues Dec 3, 2024
rerowep added a commit to rerowep/rero-ils that referenced this issue Dec 3, 2024
* Adds `patron_pid` to scope.
* Closes rero#3710.

Co-Authored-by: Peter Weber <peter.weber@rero.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Breaks something but is not blocking dev: sentry For PRs that are created to correct an error raised by Sentry.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants