archesproject / arches

Arches is a web platform for creating, managing, & visualizing geospatial data. Arches was inspired by the needs of the Cultural Heritage community, particularly the widespread need of organizations to build & manage cultural heritage inventories
GNU Affero General Public License v3.0
211 stars 140 forks source link

"Choose a data type" can be selected for datatype causing error #11034

Closed SDScandrettKint closed 1 month ago

SDScandrettKint commented 1 month ago

dev/7.5.x - possibly in earlier versions too

When selecting a datatype in the graph builder, the option "Choose a data type" can be selected image

This causes the following error in the backend when attempting to save edits, and an endless load in the front end.

Traceback (most recent call last):
  File "/home/samuel/arches_dev/arches_her/arches/arches/app/datatypes/datatypes.py", line 93, in get_instance
    d_datatype = DataTypeFactory._datatypes[datatype]
                 ~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
KeyError: ''
jacobtylerwalls commented 1 month ago

Hey @SDScandrettKint good catch. Noticed it's a duplicate of #10362.

SDScandrettKint commented 1 month ago

Hey @SDScandrettKint good catch. Noticed it's a duplicate of #10362.

Ah, thanks for noticing it was a duplicate @jacobtylerwalls - I tried to search for it in the existing issues but couldn't find it, my bad!