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

New geo-objects created by only specifying the unique ID not appearing in the list #735

Open SteeveEbener opened 2 years ago

SteeveEbener commented 2 years ago

List the CGR information

Describe the bug (clear and concise) The only field that is mandatory when adding a new geo-object is the unique identifier.

This being said, when you add a new geo-object specifying only the unique identifier (no other attributes) the geo-object does not appear in the list.

If you include at least the name then the geo-object appears in the list

To Reproduce As a RA/RM:

  1. Go to (list &spatial data) module
  2. Open one of the list for a geo-object type under the curation mandate of the RA/RM
  3. Add a geo-object existing over the temporal validity of the list
  4. Add a unique identifier
  5. Submit
  6. Refresh the list
  7. See the error: the geo-object is not appearing in the list

Repeat the same process but this time including the name of the geo-object. This time it appears in the list

Expected behavior (clear and concise) Either a geo-object indeed appear if only the unique ID is specified or the name attribute should also be mandatory. Both works for me.

Screenshots

Desktop (please complete the following information):

Additional context (if any)

Connected to ticket #431

jsmethie commented 2 years ago

This fix only applies to list refreshed moving forward

rfromthecastle commented 2 years ago

Tested on v0.19.3 and fix working.

SteeveEbener commented 2 years ago

I can confirm that the record is now appearing in the list after the refresh if you only specify the unique ID but there should not be a need to do the refresh for this to be the case => I am letting this ticket open until this has been fixed. Linked to ticket #655

rfromthecastle commented 1 year ago

When adding a new Geo-Object to a list, you get taken to the editing view to create the Geo-Object, however, the current behavior is that after you submit this, you don't get taken back to the list. When you press the back button to return to the list, it makes sense that you'd need to press the refresh button to see the new Geo-Object.