https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38666
--- Comment #134 from Andrii Nugged <[email protected]> --- Created attachment 212083 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212083&action=edit Bug 38666: Separate closed stack requests in record hold tables Apply the selected view to the actual REST rows as well as the visible hold count. Add an optional closed_stack_request selector to the current holds endpoint; omitted selectors preserve the existing all-holds list. Old holds reject this active classification selector. Use a filtered ID subquery so the model's item join does not make public query parameters such as biblio_id ambiguous. Keep priority choices based on the complete record queue, including holds outside the visible view. Test plan: Before applying this follow-up, with the preceding CSR patches applied: 1. Prepare one ordinary hold and one pending closed stack request on different items of the same record. 2. Open the record's Holds view in the staff interface. 3. Observe that both holds appear although the navigation count is one. 4. Open Closed stack requests. Observe the same mixed table. Apply this follow-up and rebuild the normal API assets. After applying this follow-up: 1. Open the same record's Holds view. 2. Confirm it contains only the ordinary hold. 3. Open Closed stack requests. 4. Confirm it contains only the closed stack request. 5. Open a priority selector and confirm the complete queue's priorities remain available in either view. Automated regression covers true, false and omitted selectors with the preference enabled and disabled, query parameters, embeds, pagination, and old-hold compatibility: prove -v t/db_dependent/api/v1/closed_stack_requests.t Co-Authored-By: Loontik <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
