Closed maxpatiiuk closed 2 months ago
@acwhite211 happens consistently in the coldFish
database (you can download it from the test server)
Does not happen for newmexico
and fwri
databases
Edit: happened in the newmexico
database too
@acwhite211 Do you want to discuss potential solutions to this on Monday?
Also, @chanulee1 discovered an issue that is quite related: https://github.com/specify/specify7/pull/2579#issuecomment-1399051961
When merging agents, I modify the canonical record to have the addresses from the duplicates. However, when I call the agent replace endpoint, the endpoint also carries over the dependent records (Address
) from the duplicate to the canonical.
(i.e, there was agent 1 with address 1 and agent 2 with address 2. Just before calling back-end, front end modified agent 1 to have both address 1 and agent 2. then, back-end replaces all references to agent 2 with agent 1 - which in effect also makes agent 2's address 2 point at agent 1, and so agent 1 ends up having a duplicate address 2)
Proposed solutions:
@acwhite211 Can you look into this case to see if we can close this issue?
Should be caught by business rules. Close in the future if this is not rediscovered.
Specify 7 Crash Report - 2022-12-27T14_26_26.175Z.txt
Agent 4458: