Skip to content

Ensure collection version is populated in Hydrocron DynamoDB table fields #288

@nikki-t

Description

@nikki-t

JIRA ticket https://bugs.earthdata.nasa.gov/browse/PCESA-3335

When doing some testing, I noticed that the collection_version field in the DynamoDB tables is empty. It looks like the collection_version variable is never set in the code that reads data from the shapefile name:

collection = ""
collection_version = ""
for table_info in constants.TABLE_COLLECTION_INFO:
if (table_info['feature_type'] in filename) & (table_info['collection_name'] in filepath):
collection = table_info['collection_name']
filename_attrs = {
'cycle_id': filename_components[5],
'pass_id': filename_components[6],
'continent_id': filename_components[7],
'range_start_time': datetime.strptime(
filename_components[8],
'%Y%m%dT%H%M%S').strftime('%Y-%m-%dT%H:%M:%SZ'),
'range_end_time': datetime.strptime(
filename_components[9],
'%Y%m%dT%H%M%S').strftime('%Y-%m-%dT%H:%M:%SZ'),
'crid': filename_components[10],
'collection_shortname': collection,
'collection_version': collection_version,
'granuleUR': filename,
'ingest_time': datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingesdisThe associated issues need reporting a ESDIS levelpriority:could-havelow priority level

Type

No type

Projects

Status

No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions