You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you open a subview in a different dialog which tries to render a field that has already been rendered in the parent form, the field is hidden.
From @emenslin:
for example if you were to go to the CO form, open cataloger agent, add new group, then you can see the new agent form doesn't show the group
01-21-2025_09.27.mp4
Context from @melton-jason:
Previously, if there was a cyclical referencing of Views (e.g., both sides of the relationship are rendered CollectionObject -> accession, Accession -> collectionObjects), then this would cause an infinite loop of rendering loops (See #5253 (review)).
Now behind-the-scenes subviews keep track of which relationships have already been rendered in a specific SubView hierarchy. If a relationship (like RepositoryAgreement -> accessions) would be rendered as a SubView but it already is being rendered, then Specify will not render that relationship.
#6114 adds a naive hotfix to avoid this problem in COGs, where it is most commonly seen. The problem doesn't seem to occur often enough for now but eventually we should try to generalize the code for cyclical detection.
Related to #6067, originates from #5253
If you open a subview in a different dialog which tries to render a field that has already been rendered in the parent form, the field is hidden.
01-21-2025_09.27.mp4
#6114 adds a naive hotfix to avoid this problem in COGs, where it is most commonly seen. The problem doesn't seem to occur often enough for now but eventually we should try to generalize the code for cyclical detection.
specify7/specifyweb/frontend/js_src/lib/components/Forms/SubView.tsx
Lines 141 to 146 in 4c6327e
The text was updated successfully, but these errors were encountered: