Skip to content

Conversation

@melton-jason
Copy link
Contributor

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 class save method.

Checklist

  • Self-review the PR after opening it to make sure the changes look good
    and self-explanatory (or properly documented)
  • Add automated tests
  • Add relevant issue to release milestone

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)

@melton-jason melton-jason added this to the 7.9.6 milestone Jun 21, 2024
@melton-jason melton-jason requested review from a team and realVinayak June 21, 2024 00:44
@melton-jason melton-jason changed the title Correctly set isAccepted on Tree save Correctly set isAccepted on Tree node save Jun 21, 2024
Copy link
Contributor

@realVinayak realVinayak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@realVinayak realVinayak requested review from a team June 21, 2024 03:50
Copy link
Collaborator

@emenslin emenslin left a 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!

@Areyes42 Areyes42 self-requested a review June 21, 2024 19:53
Copy link
Contributor

@Areyes42 Areyes42 left a 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!

@melton-jason
Copy link
Contributor Author

While I have only made changes to the test files, can this be testing briefly again more merge?

@melton-jason melton-jason requested a review from a team June 24, 2024 17:21
Copy link
Member

@grantfitzsimmons grantfitzsimmons left a 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)

@melton-jason melton-jason merged commit 812d723 into production Jun 24, 2024
@melton-jason melton-jason deleted the issue-5027 branch June 24, 2024 18:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Abnormal isAccepted checkbox behavior

7 participants