New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Agent merge failing unexpectedly #4685
Comments
Ha, this is a funny issue. @CarolineDenis (or @acwhite211) spot the bug. I zoomed it in for you ;) I looked over the changes you made, don't know how I missed this. specify7/specifyweb/specify/record_merging.py Lines 200 to 206 in 0751046
|
Unrelated, but spot the bug here too. This is a less priority than the above one bc the below code wouldn't run to completeness to the best of my knowledge. If it does though, it is a bug which will damage database! And user wouldn't have a clue specify7/specifyweb/specify/record_merging.py Lines 309 to 311 in 0751046
|
Encountered this bug today (or at least the same result/error message), @realVinayak given the bug that you outline above leading to possible database damage (even if the code isn't expected to run to completeness), should we hold off on agent merging until this issue is marked as resolved? |
@mpitblado no, you can go ahead with agent merging. The latter bug mentioned is not a "real" bug, but rather just highlights a minor code smell issue. Based on the current logic, it would never be manifested. I didn't particularly write those specific lines, but @acwhite211 likely didn't include it because of this reason. However, that's what makes it overly complicated: We needed to know internal workings to make sure this bug doesn't occur (especially since it can completely commit an undergoing transaction). I'm not sure if this issue will be resolved soon (it is marked for 7.9.6). The current workaround will be to just delete references manually for the original issue (the one that was reported) |
Reported by VIMS Fish |
Describe the bug
Merging these two agents is failing unexpectedly.
To Reproduce
Steps to reproduce the behavior:
Error:
Screenshots
https://herb32124-edge.test.specifysystems.org/specify/overlay/merge/Agent/?records=299,11910
failing_merge_michael_todd.mp4
Crash Report
Michael Todd – Merging 6282219c-e2d1-4943-9b44-aac1173469ea Crash Report - 2024-03-25T19_03_12.668Z.txt
Reported by: Royal Botanic Gardens Edinburgh
The text was updated successfully, but these errors were encountered: