You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am creating records in Invenio RDM where the Locations metadata field contains a Polygon. I am able to post these records via the REST API successfully, but when I go to view the record via the web interface the page fails with the error:
TypeError: float() argument must be a string or a number, not 'list'
I believe this is caused by a limitation in this repo's code.
Package version: 16.5.1
Describe the bug
I am creating records in Invenio RDM where the Locations metadata field contains a Polygon. I am able to post these records via the REST API successfully, but when I go to view the record via the web interface the page fails with the error:
TypeError: float() argument must be a string or a number, not 'list'
I believe this is caused by a limitation in this repo's code.
Steps to Reproduce
UIJSONSerializer().dump_obj(full_to_dict_record)
Expected behavior
The JSON contains the coordinates provide in the original record.
Actual behavior
Receive the error:
TypeError: float() argument must be a string or a number, not 'list'
Additional context
This appears to be cause by the UI Serializer's
GeometrySchema
only expecting/supporting Point coordinates.If you use the REST API to upload a record with non-Point locations, it breaks the search page and record indexing.
The text was updated successfully, but these errors were encountered: