https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43486 Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff --- Comment #10 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- QA review of this bug as part of the Bug 42383 dependency chain, applied on current main together with 24401, 42425, 43077 and 42383. Review was done with Claude assistance; items I reproduced are marked, the rest are from reading the code and tests. The permission gate is sound: the embed uses the same is_accessible predicate that already redacts the parent patron, and Patrons.t covers a permitted user and a hidden-patron user. Follow-ups, none blocking: 1. No REST-level test. The test plan of the first patch cites t/db_dependent/api/v1/patrons.t, but none of the three patches touch it; only the model-level to_api subtest covers the gate. Please add API tests for GET /patrons/{id} with the embed (permitted and denied user) and for the checkin hold.patron embed. 2. Koha::Patron::notification_summary calls the legacy C4::Members::Messaging::GetMessagingPreferences twice per patron; Koha::Patron::MessagePreferences already exists and would avoid the raw SQL round trips. 3. The embed is built inside SUPER::to_api before Koha::Patron::to_api deletes it for users who cannot see the patron, so denied callers still pay for the queries. 4. hold_fill_notified changed meaning between the first patch (any messaging preference row) and the follow-up (at least one transport). Worth saying so in the commit message and the POD. 5. The Cypress fix strips the key in insertSamplePatron only; other object-typed embeds have the same exposure in the schema-driven fixtures. 6. notification_summary is added to the shared patron.yaml definition, which is also the write schema, without readOnly. I did not verify whether POST /patrons carrying that key is harmless. Moving this to Needs Signoff so that "git bz apply" follows it as a dependency of 42383 (it silently skips bugs that are ASSIGNED). -- You are receiving this mail because: You are watching all bug changes.