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

--- Comment #245 from Andrew Fuerste-Henry <[email protected]> ---
Created attachment 211270
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211270&action=edit
Bug 42625: Add record source editing flag to library groups API

Expose the new library group flag on GET /api/v1/library_groups as
is_record_source_editing_group: in the API mapping and in the swagger
definition, where it is required like the other flags. Mark the column
as a boolean in the schema, below the generated part.

To test:
1. Apply the patches, then run updatedatabase.pl, yarn api:bundle and
   restart_all
2. Administration > Library groups: create a group "Editors" with "Use
   for record source editing" checked, and another group without it
3. Log in to the staff interface as a superlibrarian and visit
   /api/v1/library_groups
=> SUCCESS: "Editors" has is_record_source_editing_group true, and the
   other group has it false
4. Visit /api/v1/library_groups?q={"is_record_source_editing_group":true}
=> SUCCESS: only "Editors" is listed
5. Run: prove t/db_dependent/api/v1/library_groups.t xt/api.t
=> SUCCESS: Tests pass

Sponsored-by: CLAMS
Signed-off-by: Andrew Fuerste Henry <[email protected]>
Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to