Commit Graph

5 Commits

Author SHA1 Message Date
Sebastian Jeltsch 80a90c5062 Streamline filter query parsing and allow $and/$or sequences of length >= 1. 2025-09-29 12:48:54 +02:00
Shiv Kokroo 02915446e5 Fix multiple filters on the same column. #158
Previously, applying multiple filters to the same column (e.g., $gte and $lte for date ranges) would fail because the filter parsing logic only handled single operators per column. This commit modifies the filter parsing to detect when multiple operators are applied to the same column and automatically converts them into an AND composite filter.

This enables common use cases like filtering records within a date range:
- filter[date][$gte]=2025-01-01&filter[date][$lte]=2025-12-31

The fix is applied to parsing paths in filter.rs and includes a test to verify the behavior.
2025-09-29 11:15:54 +02:00
Sebastian Jeltsch 2b9ca865a3 Allow specifying ?filter= query params on record table subscriptions for per-subscription filtering. 2025-09-25 23:26:55 +02:00
Sebastian Jeltsch fcfc9b8480 Address new "mismatched_lifetime_syntaxes" lint in Rust 1.89.0. 2025-08-07 15:40:35 +02:00
Sebastian Jeltsch 7a8c31c8e9 Cleanup: move all Rust code into a crates/ directory. 2025-08-07 10:02:32 +02:00