Bug 36629 - Wrong status when removing item from waiting list
Summary: Wrong status when removing item from waiting list
Status: RESOLVED WORKSFORME
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Jonathan Druart
QA Contact:
URL:
Keywords:
Depends on: 30708
Blocks:
  Show dependency treegraph
 
Reported: 2024-04-17 20:31 UTC by Tomás Cohen Arazi (tcohen)
Modified: 2024-04-18 12:30 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tomás Cohen Arazi (tcohen) 2024-04-17 20:31:54 UTC
If the item meets some required conditions, a 404 is returned.
The right code would be 409, conflict.
Comment 1 Jonathan Druart 2024-04-18 06:28:32 UTC
I am not sure, I thought about that at the time.

The waiting list is (currently) an abstract concept as it consists in a list of items with a given status. But we could image it to be a separate DB table at some point.

In that case would not we want to return 404?
Comment 2 Tomás Cohen Arazi (tcohen) 2024-04-18 12:30:21 UTC
Ok, I get it. Hope we can implement it that way soon!.