Bug 13418

Summary: The C4::VirtualShelves::Page needs some cleaning
Product: Koha Reporter: Jonathan Druart <jonathan.druart>
Component: Architecture, internals, and plumbingAssignee: Jonathan Druart <jonathan.druart>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: m.de.rooy, tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 13418: Clean C4::VirtualShelves::Page a bit
Bug 13418: Clean C4::VirtualShelves::Page - Part 2
Bug 13418: Clean C4::VirtualShelves::Page a bit
Bug 13418: [QA Follow-up] Use unshift instead of push
[NOT_SIGNED] Bug 13418: Clean C4::VirtualShelves::Page - Part 2
Bug 13418: Clean C4::VirtualShelves::Page - Part 2
[PASSED QA] Bug 13418: Clean C4::VirtualShelves::Page a bit
[PASSED QA] Bug 13418: Clean C4::VirtualShelves::Page a bit
[PASSED QA] Bug 13418: [QA Follow-up] Use unshift instead of push
[PASSED QA] Bug 13418: Clean C4::VirtualShelves::Page - Part 2

Description Jonathan Druart 2014-12-09 15:09:14 UTC

    
Comment 1 Jonathan Druart 2014-12-09 15:57:15 UTC Comment hidden (obsolete)
Comment 2 Jonathan Druart 2014-12-09 15:57:20 UTC Comment hidden (obsolete)
Comment 3 Marcel de Rooy 2015-01-19 14:07:22 UTC Comment hidden (obsolete)
Comment 4 Marcel de Rooy 2015-01-19 14:07:27 UTC Comment hidden (obsolete)
Comment 5 Marcel de Rooy 2015-01-19 14:08:36 UTC
Still looking at the second original patch.
Comment 6 Marcel de Rooy 2015-01-19 14:25:50 UTC Comment hidden (obsolete)
Comment 7 Marcel de Rooy 2015-01-19 14:26:46 UTC
(In reply to M. de Rooy from comment #5)
> Still looking at the second original patch.

Hope to finish this one later this week.
Comment 8 Marcel de Rooy 2015-01-21 12:48:40 UTC Comment hidden (obsolete)
Comment 9 Kyle M Hall 2015-01-30 13:21:27 UTC Comment hidden (obsolete)
Comment 10 Kyle M Hall 2015-01-30 13:21:51 UTC
Created attachment 35621 [details] [review]
[PASSED QA] Bug 13418: Clean C4::VirtualShelves::Page a bit

I tried to reuse this package for a new development, I did not manage.
It's a really hard to read and to understand.

Here my first try, this patch only remove the call to _shelf_count in
the GetShelves subroutine.
Someone might want to get this value for another reason and from
somewhere else.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 11 Kyle M Hall 2015-01-30 13:21:57 UTC
Created attachment 35622 [details] [review]
[PASSED QA] Bug 13418: [QA Follow-up] Use unshift instead of push

Some SQL parameters are added to the wrong side of the list.
This effectively clears all private lists from view :)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 12 Kyle M Hall 2015-01-30 13:22:00 UTC
Created attachment 35623 [details] [review]
[PASSED QA] Bug 13418: Clean C4::VirtualShelves::Page - Part 2

I don't understand at all the usefulness of $privshelflist and
$privtotshelves in C4::VirtualShelves::Page
They look useless.

If you deep in the git history, you will find
    commit 25eb36f21fe952118327d2c84dfef5d38eee31a7
    Bug #2531 Cannot delete private shelf

I am not able to reproduce this issue after this patch

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Comment 13 Tomás Cohen Arazi 2015-02-09 16:46:53 UTC
Patches pushed to master.

Thanks Jonathan!