Repository navigation
Push GetRoots limit/offset pagination into SurrealStore::get_children - #1175
Conversation
- Split SurrealStore::get_children(Option<&str>) into get_children(&str) and get_roots(limit, offset) — removes silent discard of limit/offset on the non-root path and makes the separation explicit - Add ORDER BY id ASC to all root query variants for stable pagination - Remove in-memory skip/truncate from daemon GetRoots handler - Add three store-level tests: no pagination, limit only, limit+offset non-overlapping pages - Update GetRootsRequest proto comment to reflect store-level pagination - Declare testing feature in desktop-app Cargo.toml and add matching #[cfg] guard in local_agent.rs AgentSession initializer - Fix missing success field in capture_service.rs test helper Co-Authored-By: Claude <[email protected]>
Review Findings — AddressedAll recommendations from the initial code review have been implemented in commit ✅ Addressed (4/4)🟡 🟡 Split 🟡 Pagination tests — Three new store-level integration tests added:
🟢 Proto comment updated — Also fixed (compilation regressions from main)
⏭️ Skipped: 0 |
#1175) - Split SurrealStore::get_children(Option<&str>) into get_children(&str) and get_roots(limit, offset) — removes silent discard of limit/offset on the non-root path and makes the separation explicit - Add ORDER BY id ASC to all root query variants for stable pagination - Remove in-memory skip/truncate from daemon GetRoots handler - Add three store-level tests: no pagination, limit only, limit+offset non-overlapping pages - Update GetRootsRequest proto comment to reflect store-level pagination - Declare testing feature in desktop-app Cargo.toml and add matching #[cfg] guard in local_agent.rs AgentSession initializer - Fix missing success field in capture_service.rs test helper Co-authored-by: Michael Libio <[email protected]> Co-authored-by: Claude <[email protected]>
Closes #1167