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

--- Comment #80 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211239
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211239&action=edit
Bug 38291: (QA follow-up) Tidy up the library group definition and test

- hide_patron_info is required, like the other flags: all the flag
  columns are NOT NULL, and the API always returns them
- created_on and updated_on are date-times, and read only.
  updated_on cannot be null, as library_groups.updated_on is NOT NULL
- remove the List::Util import that the test does not use

To test:
1. Apply the patches, then run yarn api:bundle and restart_all
2. Log in to the staff interface as a superlibrarian and visit
   /api/v1/library_groups
=> SUCCESS: created_on and updated_on are dates, for example
   2026-11-09T11:14:34+00:00, and every group has hide_patron_info
3. Run: prove t/db_dependent/api/v1/library_groups.t xt/api.t
=> SUCCESS: Tests pass

Co-Authored-By: Claude Sonnet 5.5 <[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