[Koha-bugs] [Bug 14391] Granular permissions for the administration module

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 24 10:02:23 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14391

--- Comment #7 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Marcel de Rooy from comment #6)
> QA Comment:
> Looks good! Nice addition. Some minor comments which should take much time:
> 
> manage_classifications No text on form? => typo CASE 'manage_classfications'
> Missing letter !
> Spelling Manage column configuation / SRU server confiugration / search
> enginge
> 
> installer/data/mysql/atomicupdate/bug14391_granular_admin_permissions.sql
> The atomic update queries could be further optimized. You add separate
> inserts for each permission with subqueries for borrowers. Easy to read, but
> more costly to run.
> Do you have figures about how long it takes on a larger patron table ?
> Why not something like:
> INSERT INTO user_permissions (borrowernumber, module_bit, code)
> SELECT borrowers.borrowernumber, permissions.module_bit, permissions.code
> FROM borrowers 
> LEFT JOIN user_permissions USING (borrowernumber)
> LEFT JOIN permissions ON module_bit =3 AND code NOT IN ( * list existing
> permissions for admin * )
> WHERE user_permissions.code='parameters_remaining_permissions'
> This replaces most separate inserts and uses joins instead of subqueries.
> 
> admin/localization.pl, svc/localization
> Need manage_itemtypes
> Understand why you do it, but it seems not logical in the long run. Better
> add a specific one.
> 
> admin/printers.pl
> parameters => '*'
> Only case where we refer to *. Why not separate?

much time => not much time :)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list