Bug 24471 - Rename ILL method handle_commit_maybe
Summary: Rename ILL method handle_commit_maybe
Status: RESOLVED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Architecture, internals, and plumbing (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Pedro Amorim
QA Contact: Marcel de Rooy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-21 16:16 UTC by Andrew Isherwood
Modified: 2024-11-15 17:39 UTC (History)
5 users (show)

See Also:
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 (4.18 KB, patch)
2020-01-21 16:20 UTC, Andrew Isherwood
Details | Diff | Splinter Review
Bug 25054: (QA follow-up) Add space after comma for multiple aliases (1.38 KB, patch)
2021-01-18 22:38 UTC, Catherine
Details | Diff | Splinter Review
Bug 24471: Rename handle_commit_maybe method (3.51 KB, patch)
2024-07-03 16:04 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 24471: Rename handle_commit_maybe method (3.56 KB, patch)
2024-07-05 01:30 UTC, David Nind
Details | Diff | Splinter Review
Bug 24471: Rename handle_commit_maybe method (3.65 KB, patch)
2024-08-02 09:24 UTC, Marcel de Rooy
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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".