Skip to content

Add "descendingOrder" parameter to filters and CSAPI#326

Merged
alexrobin merged 5 commits intoopensensorhub:masterfrom
earocorn:query-filter-sorting
Mar 29, 2026
Merged

Add "descendingOrder" parameter to filters and CSAPI#326
alexrobin merged 5 commits intoopensensorhub:masterfrom
earocorn:query-filter-sorting

Conversation

@earocorn
Copy link
Copy Markdown

@earocorn earocorn commented Dec 8, 2025

This adds the descendingOrder parameter to TemporalFilter, which can be used to sort observations, commands, and command statuses. One note is that we cannot currently have an efficient implementation in H2 without upgrading our H2 version, as the newer version of H2's Cursor supports reverse iteration efficiently.

@earocorn earocorn marked this pull request as draft December 8, 2025 21:17
@alexrobin
Copy link
Copy Markdown
Member

No worries about H2. I think we can do the reverse iteration easily even in this version.

@earocorn earocorn marked this pull request as ready for review December 9, 2025 17:10
@earocorn
Copy link
Copy Markdown
Author

earocorn commented Dec 9, 2025

I just changed the initial TemporalFilter's range from Range.all(); to Range.open(Instant.MIN, Instant.MAX); and it is working now.

@earocorn earocorn requested a review from alexrobin March 28, 2026 21:37
@alexrobin alexrobin merged commit 8760332 into opensensorhub:master Mar 29, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants