Describe the bug (clear and concise)
Converting the visibility of a geo-object type's being the lowest child of any hierarchy from public to private does not make the hierarchies that contains this geo-object type private as well
To Reproduce
As the Moh RA and using Tolkien data:
Go to the lists module
Convert the visibility of the community health workers list from public to private (can't change the visibility of a geo-object type without changing the one of the list first => See item No 66 in the user feedback google spreadsheet)
Go to the geo-object types and hierarchies module
Convert the visibility of the Community Health Worker (MOH) geo-object type from public to private
Look at the content of the "CHW-Health Post Hierarchy (MOH)" Hierarchy => CHW are still there (normal)
Log out as Moh RA and log in as Moha RA
Go to the geo-object types and hierarchies module
Look at the Hierarchies section => Error 1: the "CHW-Health Post Hierarchy (MOH)" Hierarchy
Open the "CHW-Health Post Hierarchy (MOH)" Hierarchy => Error 2 => The hierarchy is now incomplete as the CHW geo-object type has been made private (see screenshot below)
Expected behavior (clear and concise)
"Privatizing" The geo-object type at the lowest level of any hierarchy privatize the hierarchies in question
Screenshots
Desktop (please complete the following information):
OS: Windows 10
Browser: Google Chrome
Version: Version 87.0.4280.88 (Official Build) (64-bit)
Additional context (if any)
If you continue "privatizing" the geo-object types from the lowest level to the highest you are most likely going to end up with an empty hierarchy while it still appears in the list
List the CGR information
Describe the bug (clear and concise) Converting the visibility of a geo-object type's being the lowest child of any hierarchy from public to private does not make the hierarchies that contains this geo-object type private as well
To Reproduce As the Moh RA and using Tolkien data:
Expected behavior (clear and concise) "Privatizing" The geo-object type at the lowest level of any hierarchy privatize the hierarchies in question
Screenshots
Desktop (please complete the following information):
Additional context (if any)