Bug 24471

Summary: Rename ILL method handle_commit_maybe
Product: Koha Reporter: Andrew Isherwood <bugzilla>
Component: Architecture, internals, and plumbingAssignee: Pedro Amorim <pedro.amorim>
Status: RESOLVED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: enhancement    
Priority: P5 - low CC: catherinem2003, dcook, lucas, m.de.rooy, pedro.amorim
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:
24.11.00
Circulation function:
Attachments: Bug 24471: handle_commit_maybe => redirect_user
Bug 25054: (QA follow-up) Add space after comma for multiple aliases
Bug 24471: Rename handle_commit_maybe method
Bug 24471: Rename handle_commit_maybe method
Bug 24471: Rename handle_commit_maybe method

Description Andrew Isherwood 2020-01-21 16:16:22 UTC
The naming of “handle_commit_maybe” is very misleading. As far as I can see from comments and old commits, it was intended to do more at some point but all it does, and has ever done, is redirect the user based on some conditions. A better name would be something simpler like “redirect_user”
Comment 1 Andrew Isherwood 2020-01-21 16:20:10 UTC
Created attachment 97678 [details] [review]
Bug 24471: handle_commit_maybe => redirect_user

This patch renames all occurrences of handle_commit_maybe to
redirect_user

Test plan:

- Navigate around ILL and check redirections from one action/stage to
another are happening correctly
Comment 2 Catherine 2021-01-18 22:38:17 UTC
Created attachment 115252 [details] [review]
Bug 25054: (QA follow-up) Add space after comma for multiple aliases

Just a little formatting change to help readability by adding
a space after comma: alias1, alias2, ...

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 3 Catherine 2021-01-18 22:48:04 UTC
CONFLICT (content): Merge conflict in ill/ill-requests.pl
Comment 4 David Cook 2021-01-18 23:08:21 UTC
+1 to this bug report. I don't think that "maybe" should ever be in a function name...
Comment 5 Martin Renvoize (ashimema) 2024-06-28 11:45:33 UTC
I have a feeling this is no longer relevant?

I've re-assigned to Pedro as our current lead on ILL, but I'd be happy for it to be a simple check and close if the idea if outdated.
Comment 6 Pedro Amorim 2024-07-03 16:04:38 UTC
Created attachment 168462 [details] [review]
Bug 24471: Rename handle_commit_maybe method

To test (k-t-d):
1) Enable ILLModule and install FreeForm, run:
  bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) Checkout 24.05.x branch, run:
  cd /kohadevbox/koha/Koha/Illbackends/FreeForm
  git checkout 24.05.x
3) Create a new ILL request from:
  http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl
4) Confirm the request creation works as before
Comment 7 David Nind 2024-07-05 01:30:47 UTC
Created attachment 168525 [details] [review]
Bug 24471: Rename handle_commit_maybe method

To test (k-t-d):
1) Enable ILLModule and install FreeForm, run:
  bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) Checkout 24.05.x branch, run:
  cd /kohadevbox/koha/Koha/Illbackends/FreeForm
  git checkout 24.05.x
3) Create a new ILL request from:
  http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl
4) Confirm the request creation works as before

Signed-off-by: David Nind <david@davidnind.com>
Comment 8 Marcel de Rooy 2024-08-02 09:24:14 UTC
Created attachment 169994 [details] [review]
Bug 24471: Rename handle_commit_maybe method

To test (k-t-d):
1) Enable ILLModule and install FreeForm, run:
  bash <(curl -s https://raw.githubusercontent.com/ammopt/koha-ill-dev/master/start-ill-dev.sh)
2) Checkout 24.05.x branch, run:
  cd /kohadevbox/koha/Koha/Illbackends/FreeForm
  git checkout 24.05.x
3) Create a new ILL request from:
  http://localhost:8081/cgi-bin/koha/ill/ill-requests.pl
4) Confirm the request creation works as before

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Comment 9 Marcel de Rooy 2024-08-02 09:24:39 UTC
Moving to enh
Comment 10 Katrin Fischer 2024-08-23 17:14:15 UTC
Pushed for 24.11!

Well done everyone, thank you!
Comment 11 Pedro Amorim 2024-11-12 10:43:09 UTC
No release notes needed here, just code clean-up. Changing component to "Architecture, internals, and plumbing".