openspp-modules icon indicating copy to clipboard operation
openspp-modules copied to clipboard

Improved validation of the farmer member

Open reichie020212 opened this issue 1 year ago • 1 comments

Why is this change needed?

To improve the validation of modifying the members of a farm

How was the change implemented?

Added validations on the modification of the member

New unit tests

spp_farmer_registry_base/tests/init.py::MembershipTest

Unit tests executed by the author

spp_farmer_registry_base/tests/init.py::MembershipTest

How to test manually

  • Install spp_farmer_registry_base module
  • Create or Generate a farm
  • If there's no head member, add a head member then save
  • Try to delete the head member then save again.
  • Check if there will be an error.
  • Change head member.
  • Check if the information in the Farmer tab is also changed.

Related links

https://github.com/OpenSPP/openspp-acf/issues/38

reichie020212 avatar Aug 16 '24 11:08 reichie020212