[Bug 8214] Create a bound with function
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=8214 --- Comment #189 from Martin Renvoize (ashimema) <martin.renvoize@openfifth.co.uk> --- Created attachment 212075 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212075&action=edit Bug 8214: Do not send biblio_links when the Cypress tasks create items Bug 8214 adds biblio_links to the item schema, an array of the links of the item to other records, which can be embedded. The Cypress task that creates sample items generates a complete item from the schema and removes the read-only and embedded properties before it posts it to /api/v1/biblios/{biblio_id}/items. biblio_links was not in that list, so the request failed with No property biblio_links for Koha::Item (Koha::Exceptions::Object::PropertyNotFound) and every Cypress test that creates items with insertSampleBiblio or insertSampleCheckout failed. Remove biblio_links from the generated item, as the other embedded properties. To test: 1. Run yarn cypress run --spec t/cypress/integration/Circulation/Checkin_spec.ts => Before the patch: the tests fail in cy.task('insertSampleCheckout') with "Something went wrong, check Koha logs for details", and the API log has "No property biblio_links for Koha::Item" => After the patch: the tests pass Assisted-by: Sonnet 5.5 (Anthropic) -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org