-
Notifications
You must be signed in to change notification settings - Fork 19
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
Do a much more thorough job with item times #728
Conversation
ha I assumed these failures were all because 0.4.0 of stac4s wasn't available yet oops. ANYWAY 🤞🏻 for this one |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💯
@@ -153,7 +153,7 @@ class CatalogStacImport(val catalogRoot: String) { | |||
) | |||
), | |||
().asJsonObject, | |||
forItem.properties, | |||
forItem.properties.asJson.asObject.getOrElse(JsonObject.empty), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ouf, I also don't know how to handle it better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I spent about four seconds adding an Encoder.AsObject
in stac4s
but decided not to -- it's not hard but it didn't seem important enough
Some( | ||
fr"(datetime >= $start AND datetime <= $end) OR (start_datetime >= $start AND end_datetime <= $end)" | ||
) | ||
case Some(start) :: _ => | ||
Some(fr"datetime >= $start") | ||
Some(fr"(datetime >= $start OR start_datetime >= $start)") | ||
case _ :: Some(end) :: _ => | ||
Some(fr"datetime <= $end") | ||
Some(fr"(datetime <= $end OR end_datetime <= $end)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
Overview
This PR makes a few changes now that
stac4s
models datetimes better:datetime
,start_datetime
, andend_datetime
fields as appropriate on item insert, bulk insert, and updatedatetime
columnChecklist
Notes
CI is gonna fail until the stac4s release that just happened is resolvable in Maven. Might be soon.
Testing Instructions
Closes #724