-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
publish fails with datetime of null #110
Comments
@matthewhanson Do you know where this is failing and/or do you have an example log you could share? |
Never mind, it looks like it must be here: https://github.com/cirrus-geo/cirrus-lib/blob/main/src/cirrus/lib/process_payload.py#L292. |
@matthewhanson In this error case where
|
Good question, I think go with
It's more complicated for the user, but nothing else would make any sense. If I'm subscribed to a topic and I have a particular range of dates in mind then I would want to match all messages where the I think this is an open question with STAC API as well, which I'll bring up at stac-api-spec. If someone searches for a range of datetimes and the Items have a null datetime should it return matches whose interval overlaps? I think yes, and we'll have to figure out how best to implement it. My initial thought is that the API should always set a So maybe in a similar fashion the published SNS message should always set start and end so that subscriptions can only check for overlapping time intervals. I think AND/OR operators are possible with subscriptions but not sure of the syntax. |
To summarize, it sounds like we should always set However, SNS to SQS supports at most 10 attributes, which we are bumping up against. After discussing, it might be worth considering a way for payloads to specify what attributes should be included, potentially also with support for defining custom attributes. We can then have this default set of attributes for backwards compatibility but also have a way out for situations where others are needed in the future. |
Quick little nugget I just found: it appears when using raw mode for SNS -> SQS subscriptions, the attribute limit goes away. |
The publish step will fail if
datetime
is null, even though that is allowable by the STAC spec (in which casestart_datetime
andend_datetime
must be provided):https://github.com/radiantearth/stac-spec/blob/master/item-spec/item-spec.md#datetime
The text was updated successfully, but these errors were encountered: