add "only_active" field to ListLeaseRequest#32
add "only_active" field to ListLeaseRequest#32mangelajo merged 1 commit intojumpstarter-dev:mainfrom
Conversation
defaults to true, pass "false" to get the ended leases as well
WalkthroughAdded an optional only_active boolean (field 5) to ListLeasesRequest in proto/jumpstarter/client/v1/client.proto to enable filtering leases by active state; no other changes. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Client
participant API as LeaseService API
participant Store as Lease Store
rect rgba(230,245,255,0.5)
note over Client,API: List leases with optional active filter (only_active)
Client->>API: ListLeasesRequest { only_active: true|false|null }
API->>Store: Query leases (apply active filter if only_active==true)
Store-->>API: Leases []
API-->>Client: ListLeasesResponse { leases: [...] }
end
opt only_active omitted or false
note over API: Returns all leases (no active-only filter)
end
opt only_active true
note over API: Returns only active leases
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
defaults to true, pass "false" to get the ended leases as well
Summary by CodeRabbit