[Koha-bugs] [Bug 31133] New: TestBuilder fragile on virtual fks
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jul 12 01:29:33 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31133
Bug ID: 31133
Summary: TestBuilder fragile on virtual fks
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
QA Contact: testopia at bugs.koha-community.org
As exposed with the introduction of Koha::Checkouts::Renewal(s), which has two
relationships (checkout and old_checkout) defined at the DBIC level (and not at
DB level) that point the same column name, to the same fk name, TestBuilder
fails in some situations.
Looking at the code I found there's some code for detecting duplicate fk
introduced by bug 16155, but it doesn't seem to be effective: it fails randomly
depending on the key that is picked.
I will submit my attempt to make things work, but more eyes are needed.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list