openspp-modules
openspp-modules copied to clipboard
Improved validation of the farmer member
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
Quality Gate passed
Issues
2 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code