medic / cht-user-management

GNU Affero General Public License v3.0
3 stars 1 forks source link

Optional hierarchy constraints are ignored if specified but unresolved #91

Closed kennsippell closed 3 months ago

kennsippell commented 3 months ago
  1. Create subcounty AA and child CHU A
  2. Stage a new CHP setting subcounty to BB and CHU to A

Expected - This CHU cannot be created since the subcounty BB does not exist Observed - User management tool allows creation ignoring the BB subcounty constraint

kennsippell commented 3 months ago
  1. Create subcounty AA and child CHU A
  2. Stage new CHP setting subcounty to BB and CHU to A
  3. (After bug above is fixed; you'll see an error that bb and a cannot be found)
  4. Edit the staged CHP setting subcounty to empty

Expected - This should resolve issue. Since the subcounty is optional and unspecified, the system should find A Observed - Previous error about BB remains