Skip to content

Add cursor-based pagination, group tree index, and BFS expansion#65

Open
Dig-Doug wants to merge 2 commits intomainfrom
storage-refactor-pagination-groups
Open

Add cursor-based pagination, group tree index, and BFS expansion#65
Dig-Doug wants to merge 2 commits intomainfrom
storage-refactor-pagination-groups

Conversation

@Dig-Doug
Copy link
Owner

Summary

  • Extends MetadataStorage trait with get_observations, get_payloads, get_direct_descendants_page, and get_group_tree_bfs methods for cursor-based pagination and group tree traversal
  • Adds group_children sled tree for indexing parent-child relationships at write time, enabling efficient group tree queries
  • Replaces offset/limit pagination with UUIDv7 cursor-based page tokens in the observations list API (retains old methods for UI backward compatibility)

Test plan

  • cargo build --workspace --all-features compiles cleanly with no warnings
  • cargo test --workspace --all-features — all 76 tests pass (including 6 new unit tests)
  • Manual verification of cursor-based pagination via API
  • Manual verification of group tree BFS expansion

🤖 Generated with Claude Code

Dig-Doug and others added 2 commits February 28, 2026 13:27
…torage layer

Extends MetadataStorage trait with get_observations, get_payloads,
get_direct_descendants_page, and get_group_tree_bfs methods. Adds a
group_children sled tree for indexing parent-child relationships at
write time, enabling efficient group tree traversal. Replaces
offset/limit pagination with UUIDv7 cursor-based page tokens in the
observations list API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Dig-Doug Dig-Doug force-pushed the storage-refactor-pagination-groups branch from ae67ecc to aa62e71 Compare February 28, 2026 18:30
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.

1 participant