Open aripollak opened 3 years ago
!!!!
That's definitely a bug. We round trip test items with point-in-time datetimes and datetime ranges (generator is here), so this definitely seems like a Franklin problem. Thanks for the report!
Oh, nevermind, I see what happened here. The spec says:
Important: Using one of the fields REQUIRES inclusion of the other field as well to enable a user to search STAC records by the provided times. So if you use start_datetime you need to add end_datetime and vice-versa. Both fields are also REQUIRED if the datetime field is set to null. The datetime property in a STAC Item and these fields are not mutually exclusive.
But we decode the incoming JSON to either have a point-in-time datetime or to have a time range (we're using Either
when we should be using something like These
). I'll fix this upstream in stac4s
Thanks! Is it now just a matter of updating to the latest stac4s?
Yup, I have a PR up to do that but I started failing a test because filtering isn't working quite as expected now 😨 and I haven't had a chance to dig in yet. It's covered as part of #930
Describe the bug
If an input STAC item has
start_datetime
andend_datetime
properties, like:When requesting the item from Franklin, the start/end are missing:
Expected behavior I think start_datetime and end_datetime should be in the item STAC shown in Franklin.