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

Explorer: Parent Autocomplete Dropdown Missing Labels #913

Open rrowlands opened 1 year ago

rrowlands commented 1 year ago

List the CGR information

Describe the bug (clear and concise) There are times when the labels for the search autocomplete for parents is missing labels. In the past this has been an issue with the label not existing at the date which is being queried, however that is not the case here because I have verified that the label does exist at the date in question. Additionally, when an object in the autocomplete dropdown is selected, the label is populated correctly into the field by the system. This appears to happen on some objects and not others, so it could potentially be something specific to do with the data in question.

To Reproduce

  1. Open the lists
  2. Under "Ministry of Health" org, select "Health Facility (Laos)".
  3. Open the list for the most recent version
  4. View the object in the explorer for "Mittaphap Hospital", H0168
  5. Open the hierarchies tab
  6. Edit
  7. Click X on District for the "Health Facility Management Hierarchy (Laos)" hierarchy
  8. Click on the now empty) District input field

An autocomplete with missing labels appears.

Screenshots image

Desktop (please complete the following information): Happening on staging

rrowlands commented 1 year ago

OK this issue only happens in the scenario where the parent's display label is not one contiguous block in the time range for the relationship. The parent district's label is defined as:

image

Fix committed as 75742fea70fad2c3bae8490a50bfb09a95b8627a and pushing to staging.

rfromthecastle commented 1 year ago

Fix working on Staging