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
Describe the bug
Commit 8974c38 which introduced assets attributes indexing, doesn't provide backward compatibility.
To Reproduce
After running newer sfeos app on older os db:
File "/tmp/stac-fastapi-elasticsearch-opensearch/stac_fastapi/core/stac_fastapi/core/serializers.py", line 185, in db_to_stac
a.pop("es_key"): a forain collection.get("assets", [])
^^^^^
AttributeError: 'str' object has no attribute 'pop'
Expected behavior
Provided updates should work with existing instances, also indexing of assets attributes could be optional.