Bug 27542

Summary: It should be possible to cancel an ILL request sent to a partner
Product: Koha Reporter: Andrew Isherwood <bugzilla>
Component: ILLAssignee: Pedro Amorim <pedro.amorim>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P5 - low CC: dcook, fridolin.somers, janet.mcgowan, magnus, Niamh.WalkerHeadon, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
23.11.00
Circulation function:
Attachments: Bug 27542: Allow cancellation of partner ILL
Bug 27542: Allow cancellation of partner ILL
Bug 27542: (follow-up) Capitalization
Bug 27542: (follow-up) Fix unit test
Bug 27542: Allow cancellation of partner ILL
Bug 27542: (follow-up) Capitalization
Bug 27542: (follow-up) Fix unit test
Bug 27542: Allow cancellation of partner ILL
Bug 27542: (follow-up) Capitalization
Bug 27542: (follow-up) Fix unit test

Description Andrew Isherwood 2021-01-25 11:18:02 UTC
After an ILL request has "Place request with partner libraries" status, is it no longer possible to cancel it via the "Revert request" option as this button is not displayed.

This should be possible.
Comment 1 Andrew Isherwood 2021-01-25 11:22:45 UTC
Created attachment 115741 [details] [review]
Bug 27542: Allow cancellation of partner ILL

This commit enables the display of the "Revert request" button when a
request's status is GENREQ / "Requested from partners"

The relevant unit test has also been updated
Comment 2 Andrew Isherwood 2021-01-25 11:25:10 UTC
TEST PLAN

- Create a ILL request
- Place the request with partners
- Modify the request
=> TEST: Observe that the "Revert request" button is displayed
Comment 3 Owen Leonard 2022-09-02 11:00:25 UTC
The button text "Revert Request" has incorrect capitalization.

When I run the test I get these failures:

#   Failed test 'Status Graph tests'
#   Failed test 'Checking out'

I don't know if that's relevant.
Comment 4 Martin Renvoize (ashimema) 2023-03-08 11:23:55 UTC
Created attachment 147897 [details] [review]
Bug 27542: Allow cancellation of partner ILL

This commit enables the display of the "Revert request" button when a
request's status is GENREQ / "Requested from partners"

The relevant unit test has also been updated

Rescued-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Comment 5 Martin Renvoize (ashimema) 2023-03-08 11:23:57 UTC
Created attachment 147898 [details] [review]
Bug 27542: (follow-up) Capitalization
Comment 6 Martin Renvoize (ashimema) 2023-03-08 11:24:00 UTC
Created attachment 147899 [details] [review]
Bug 27542: (follow-up) Fix unit test
Comment 7 Martin Renvoize (ashimema) 2023-03-08 11:24:56 UTC
We've been backporting this into production for 2 years now.. be nice to see it get into 23.05 ;)
Comment 8 Martin Renvoize (ashimema) 2023-05-04 10:38:54 UTC
Created attachment 150641 [details] [review]
Bug 27542: Allow cancellation of partner ILL

This commit enables the display of the "Revert request" button when a
request's status is GENREQ / "Requested from partners"

The relevant unit test has also been updated

Rescued-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Stephen Graham <s.graham4@herts.ac.uk>
Comment 9 Martin Renvoize (ashimema) 2023-05-04 10:38:57 UTC
Created attachment 150642 [details] [review]
Bug 27542: (follow-up) Capitalization

Signed-off-by: Stephen Graham <s.graham4@herts.ac.uk>
Comment 10 Martin Renvoize (ashimema) 2023-05-04 10:38:59 UTC
Created attachment 150643 [details] [review]
Bug 27542: (follow-up) Fix unit test

Signed-off-by: Stephen Graham <s.graham4@herts.ac.uk>
Comment 11 Martin Renvoize (ashimema) 2023-05-04 10:39:47 UTC
Added SO lines from customers using this in production.

My feeling is we should go straight to PQA here.. the code is well and truly tested and working.
Comment 12 Pedro Amorim 2023-05-19 09:00:49 UTC
Created attachment 151458 [details] [review]
Bug 27542: Allow cancellation of partner ILL

This commit enables the display of the "Revert request" button when a
request's status is GENREQ / "Requested from partners"

The relevant unit test has also been updated

Rescued-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Stephen Graham <s.graham4@herts.ac.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Comment 13 Pedro Amorim 2023-05-19 09:00:52 UTC
Created attachment 151459 [details] [review]
Bug 27542: (follow-up) Capitalization

Signed-off-by: Stephen Graham <s.graham4@herts.ac.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Comment 14 Pedro Amorim 2023-05-19 09:00:55 UTC
Created attachment 151460 [details] [review]
Bug 27542: (follow-up) Fix unit test

Signed-off-by: Stephen Graham <s.graham4@herts.ac.uk>
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Comment 15 Tomás Cohen Arazi (tcohen) 2023-09-01 15:09:04 UTC
Pushed to master for 23.11.

Nice work everyone, thanks!
Comment 16 Fridolin Somers 2023-09-08 06:15:11 UTC
Enhancement not backported to 23.05.x