Open
Description
DAPA granules endpoint should not return "incomplete" items i.e. items where status != completed.
ASIPS team discovered an issue when searching for items
unity_sds_client.resources.Collection(collection_id=urn:nasa:unity:asips:int:P1590000-6T___1)
Traceback (most recent call last):
File "/home/steved/code/mdps-tools/mdps_tools/unity/broken.py", line 14, in <module>
objs = ds.get_collection_data(c, limit=10)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/steved/mambaforge/envs/mdps/lib/python3.12/site-packages/unity_sds_client/services/data_service.py", line 78, in get_collection_data
ds = Dataset(dataset['id'], collection.collection_id, dataset['properties']['start_datetime'], dataset['properties']['end_datetime'], dataset['properties']['created'], properties=dataset['properties'])
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^
KeyError: 'start_datetime'
start_datetime doesn't exist for granules in running status. Why the granules are set to running status even though the step function completed successful is a separate issue.
I thought this was fixed with #92 but it seems to have resurfaced?
UDS version 9.4.1.