Open grantfitzsimmons opened 5 months ago
This issue was caused by #3304.
Specifically, this happens because as of https://github.com/specify/specify7/pull/3240, the frontend overrides the CollectionRelType -> name
field to be a picklist with items matching the name
of CollectionRelTypes
.
When Specify is formatting the CollectionRelType
, it has to fetch this frontend picklist and in this case, fetch all of the picklist items.
The picklist items for picklists based on a field are fetched via the below lines.
In #3304, it was made so that Specify will always try and scope the returned results for the picklist (for example, if you define a picklist based off of CollectionObject -> catalogNumber
, only the catalogNumber's for CollectionObjects in the current collection will be converted into picklist items).
Previously, all picklist items for picklists of this type were unscoped.
The issue here is that CollectionRelType
can not be reliably scoped, so the backend throws the HierarchyException
.
See related #3564.
This issue has been mentioned on Specify Community Forum. There might be relevant details there:
https://discourse.specifysoftware.org/t/error-querying-the-collection-relationship-table/1827/3
This issue has been mentioned on Specify Community Forum. There might be relevant details there:
https://discourse.specifysoftware.org/t/create-a-collection-relationship-in-specify-7/1837/3
Very excited to see this get fixed so we can update to newest S7! Thanks for putting this in the 7.9.8 milestone!
Describe the bug When displaying the
collectionRelType
field as a query combo box, the user is presented with the following error:This leads to the form being unable to load and the user no longer being able to use the application.
Form XML
To Reproduce Steps to reproduce the behavior:
Screenshots
Left is
[v7.9.3.1](https://mpabi20240604-v793.test.specifysystems.org/specify/view/collectionobject/2135/?recordsetid=41)
and right is[edge](https://mpabi20240604-edge.test.specifysystems.org/specify/view/collectionobject/2135/?recordsetid=41)
(duringv7.9.6
testing)Crash Report Specify 7 Crash Report - 2024-06-05T17_42_31.246Z.txt
Reported By University of Michigan
User reports the following: Problematic in
v7.9.4
Originally working inv7.9.1.1
Tested to seemingly be working ok inv7.9.3.1
but the test was not exhaustive.