[Bug 43868] New: Log viewer search does not find circulation entries by item barcode
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Bug ID: 43868 Summary: Log viewer search does not find circulation entries by item barcode Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Tools Assignee: koha-bugs@lists.koha-community.org Reporter: slavashishkin@gmail.com QA Contact: testopia@bugs.koha-community.org Depends on: 29016 Target Milestone: --- Searching the log entries table by item barcode returns no matches, even when the barcode is visible in the Info column of a circulation entry. Reproduced on current community main, with bugs 29016 and 43119 already applied. To reproduce: 1. Open a patron's modification log containing a checkout or check-in entry with a visible item barcode. 2. Copy the barcode into the table's Search box. 3. Observe that no matching records are found. 4. Search by the item's internal itemnumber. 5. Observe that the entry is found. Expected: Searching by the displayed item barcode finds the matching circulation entries. Actual: Searching by barcode returns no matches, while searching by itemnumber finds the entries. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29016 [Bug 29016] Improve performance of the Log viewer when working with a high volume of action logs -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 --- Comment #1 from Slava Shishkin <slavashishkin@gmail.com> --- Created attachment 208608 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208608&action=edit Bug 43868: Restore barcode search in circulation logs The log viewer displays item barcodes using embedded item data, but server-side searching only checks the original action log fields. Add a database relationship resolving circulation items from JSON or legacy itemnumber values in info. Include the related barcode in the Info column search while retaining server-side pagination. Test plan: Before applying the patch: 1. Open a patron's modification log containing checkout or check-in entries with a visible item barcode. 2. Search the table using that barcode. 3. Confirm that no matching records are found. 4. Search by the item's internal itemnumber. 5. Confirm that the entries are found. After applying the patch: 1. Restart Plack and reload the page. 2. Repeat the full barcode search. 3. Confirm that the matching entries are found. 4. Search using part of the barcode and confirm that they are found. 5. Confirm that searching by itemnumber still works. 6. Clear the search and confirm that all original entries return. -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Slava Shishkin <slavashishkin@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |Needs Signoff -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Slava Shishkin <slavashishkin@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |slavashishkin@gmail.com |ity.org | -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #208608|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 --- Comment #2 from Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> --- Created attachment 208614 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=208614&action=edit Bug 43868: Restore barcode search in circulation logs The log viewer displays item barcodes using embedded item data, but server-side searching only checks the original action log fields. Add a database relationship resolving circulation items from JSON or legacy itemnumber values in info. Include the related barcode in the Info column search while retaining server-side pagination. Test plan: Before applying the patch: 1. Open a patron's modification log containing checkout or check-in entries with a visible item barcode. 2. Search the table using that barcode. 3. Confirm that no matching records are found. 4. Search by the item's internal itemnumber. 5. Confirm that the entries are found. After applying the patch: 1. Restart Plack and reload the page. 2. Repeat the full barcode search. 3. Confirm that the matching entries are found. 4. Search using part of the barcode and confirm that they are found. 5. Confirm that searching by itemnumber still works. 6. Clear the search and confirm that all original entries return. Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off --- Comment #3 from Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> --- Signed off using a sandbox -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |lisette@bywatersolutions.co |y.org |m -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lucas@bywatersolutions.com --- Comment #4 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Is this a duplicate of Bug 43119? -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 --- Comment #5 from Slava Shishkin <slavashishkin@gmail.com> --- Bug 43119 restores the display of item barcodes and links. This report concerns searching by those displayed barcodes. The issue was reproduced on main on October 21, with Bug 43119 already applied: the barcode was visible, but searching for it returned no matches, while searching by itemnumber found the entry. The patch adds the related item barcode to the server-side search. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Signed Off |Passed QA --- Comment #6 from Lisette Scheer <lisette@bywatersolutions.com> --- Works great, I do want to note that the patch that caused this issue also caused filtering for the barcode on 'info' to no longer work and might be worth a followup bug. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Lisette Scheer <lisette@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #208614|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 --- Comment #7 from Lisette Scheer <lisette@bywatersolutions.com> --- Created attachment 209632 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209632&action=edit Bug 43868: Restore barcode search in circulation logs The log viewer displays item barcodes using embedded item data, but server-side searching only checks the original action log fields. Add a database relationship resolving circulation items from JSON or legacy itemnumber values in info. Include the related barcode in the Info column search while retaining server-side pagination. Test plan: Before applying the patch: 1. Open a patron's modification log containing checkout or check-in entries with a visible item barcode. 2. Search the table using that barcode. 3. Confirm that no matching records are found. 4. Search by the item's internal itemnumber. 5. Confirm that the entries are found. After applying the patch: 1. Restart Plack and reload the page. 2. Repeat the full barcode search. 3. Confirm that the matching entries are found. 4. Search using part of the barcode and confirm that they are found. 5. Confirm that searching by itemnumber still works. 6. Clear the search and confirm that all original entries return. Signed-off-by: Christian Stelzenmüller <christian.stelzenmueller@bsz-bw.de> Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal CC| |pedro.amorim@openfifth.co.u | |k --- Comment #8 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Hi all, This is a regression from Bug 29016 (in 26.05.00), not an enhancement, so I'm changing the severity to normal. To confirm: 1) Check out item 3999900000018 to patron 42 2) Run 'git checkout c861e2dafe3^' (just before Bug 29016 converted the log viewer to an ajax table), then 'koha-plack --restart kohadev' 3) Go to http://localhost:8081/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=CIRCULATION 4) Type '3999900000018' in the table's 'Search' box and confirm the checkout row is shown 5) Run 'git checkout c861e2dafe3' (Bug 29016: Convert log viewer to ajax datatable), then 'yarn api:bundle' and 'koha-plack --restart kohadev' 6) Reload the same URL, type '3999900000018' in the 'Search' box and confirm no rows are found 7) Go back with 'git checkout main', 'yarn api:bundle' and 'koha-plack --restart kohadev' There is no test for the barcode search this patch restores. Neither t/db_dependent/api/v1/action_logs.t nor t/db_dependent/Koha/ActionLogs.t queries item.external_id. A follow-up adding one would be welcome. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |rel_26_05_candidate -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Passed QA |Pushed to main Version(s)| |26.11.00 released in| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 --- Comment #9 from Pedro Amorim (ammopt) <pedro.amorim@openfifth.co.uk> --- Thanks everyone! Pushed to main for 26.11! -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Owen Leonard <oleonard@myacpl.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |44068 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44068 [Bug 44068] Log Viewer gives 500 error, if output "to screen in the browser" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Version(s)|26.11.00 |26.11.00,26.05.06 released in| | Status|Pushed to main |Pushed to stable -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 --- Comment #10 from Lucas Gass (lukeg) <lucas@bywatersolutions.com> --- Nice work everyone! Pushed to 26.05.x for the upcoming 26.05.06 release. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Lucas Gass (lukeg) <lucas@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|rel_26_05_candidate | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43868 Fridolin Somers <fridolin.somers@biblibre.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fridolin.somers@biblibre.co | |m Status|Pushed to stable |Needs documenting --- Comment #11 from Fridolin Somers <fridolin.somers@biblibre.com> --- I prefer not backport to 25.11.x, change on ORM looks a bit risky for a oldstable version. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org