terraframe / geoprism-registry

GeoPrism Registry is a system for curating interlinked data through time. It's the first framework implementing the Common Geo-Registry specification.
https://geoprismregistry.com/
GNU Lesser General Public License v3.0
18 stars 5 forks source link

Parent hierarchical information not automatically inheriting for newly added Geo-Objects #849

Closed rfromthecastle closed 2 years ago

rfromthecastle commented 2 years ago

List the CGR information

Describe the bug (clear and concise) For a newly added Geo-Object, when selecting a parent Geo-Object in a hierarchy, its parent in turn does not automatically get populated.

To Reproduce

  1. As a Registry Maintainer, create a new Geo-Object for a given type (in this case, a new Referral Hospital named Rica's Referral Hospital added to the Health Facility (Laos) 2 group)
  2. Select a parent district
  3. The parent province of the parent district does not show up

Expected behavior (clear and concise) Any inherited hierarchical information is automatically populated

Screenshots image.png

Desktop (please complete the following information):

Additional context (if any) None

rfromthecastle commented 2 years ago

Because this affects some of the core capabilities of the GPR, to manage multiple hierarchies and changes over time, I'd say this is a high priority bug to address. However, because I only saw this bug in this specific instance (see steps to reproduce), it may be an issue with the test data on Staging (which has been through lots of testing, changes, etc.) rather than the platform itself

rrowlands commented 2 years ago

Hi @rfromthecastle . For this specific example, the "Province" parent field is empty because that District does not have a parent in this hierarchy (Health Facility Management Hierarchy (Laos) 2).

Here is what the parents look like for the Dakchung : LA1503 Geo-Object:

image

You can see that no versions were created for the hierarchy in question.

rfromthecastle commented 2 years ago

Hi @rrowlands, thanks for looking into this! How are we meant to create versions for a hierarchy? Is that by configuring a list that contains information from this hierarchy?

rrowlands commented 1 year ago

You can create them using the explorer. For this example, you would first want to search for "Dakchung" and select LA1503. Once Dakchung is selected, go to the hierarchies tab and create a version for the "Health Facility Management Hierarchy (Laos) 2" hierarchy. Once Dakchung has a parent in this hierarchy, then the parent information for children of Dakchung will be automatically populated.