-
Notifications
You must be signed in to change notification settings - Fork 36
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
Correctly set isAccepted on Tree node save #5028
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing instructions
For any Tree Record (Geography, Taxon, Storage, Chronostratigraphy, and/or Lithostratigraphy):
- Save the record without setting a Preferred Node
- Ensure the
Is Preferred
(isAccepted
field) checkbox is checked (True) - Set a Preferred Node for the record and save
- Ensure the
Is Preferred
(isAccepted
field) checkbox is unchecked (False)
Looks good!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing instructions
For any Tree Record (Geography, Taxon, Storage, Chronostratigraphy, and/or Lithostratigraphy):
- Save the record without setting a Preferred Node
- Ensure the
Is Preferred
(isAccepted
field) checkbox is checked (True) - Set a Preferred Node for the record and save
- Ensure the
Is Preferred
(isAccepted
field) checkbox is unchecked (False)
Looks good, changes get properly updated!
While I have only made changes to the test files, can this be testing briefly again more merge? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Testing instructions
For any Tree Record (Geography, Taxon, Storage, Chronostratigraphy, and/or Lithostratigraphy):
- Save the record without setting a Preferred Node
- Ensure the
Is Preferred
(isAccepted
field) checkbox is checked (True) - Set a Preferred Node for the record and save
- Ensure the
Is Preferred
(isAccepted
field) checkbox is unchecked (False)
Fixes #5027
Caused by #4257
Specifically, the business rule was disabled and the logic was put on the TreeDefItem class
save
method when it should have either remained a business rule or have been put in the Tree classsave
method.Checklist
and self-explanatory (or properly documented)
Testing instructions
For any Tree Record (Geography, Taxon, Storage, Chronostratigraphy, and/or Lithostratigraphy):
Is Preferred
(isAccepted
field) checkbox is checked (True)Is Preferred
(isAccepted
field) checkbox is unchecked (False)