[Koha-bugs] [Bug 28948] Add a /public counterpart for the libraries REST endpoints

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 16 10:05:44 CEST 2021


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

--- Comment #20 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Martin Renvoize from comment #10)

> This patch updates the patchset to use the ::Allowlist structure
> introduced with bug 28935.  I think we need more work here to provide
> for 'read' and 'write' allowlists.. we also need a way to alter the
> allowlist from the Koha object when required as with the load time at
> to_api here we currently have no way to pass overrides to the allowlist.

The ColumnSet allows you to create lists for various contexts. You can make
that as complex as you want. You could just create a complete attribute list
for each use case initially, but surely get_column_set could return the merge
of two sets or the intersection etc.
$column_sets = { stuff };
$column_sets->{another1} = [ uniq( @$set1, @$set2) ];
$column_sets->{another2} = [ intersect( $set1, $set2) ];
where $set1 and $set2 refer to entries in $column_sets

As to overriding, I would tend to leave that to the controller. After running
the specified filter, you can always add overrides like:
$data = { $obj->filter, @overrides };
The number of needed overrides may be an indication for the need of improving
the defined sets.

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


More information about the Koha-bugs mailing list