feat: add session status filter#248
Conversation
- Add Session interface with SessionStatus type - Add VALID_STATUSES constant (active, completed, expired, cancelled) - Add filterSessionsByStatus controller function - Add unit tests with 4 test cases for filter logic
|
Hey @intagliated, thanks for taking the time to work on this! The idea behind filtering sessions by status is genuinely useful, and we appreciate the effort put into writing tests. Just a few things we'd like to flag before this can move forward: Type mismatch with the existing codebase The The filter function isn't wired to the API yet The actual session list endpoint lives in Project structure The codebase doesn't currently use Suggested path forward The cleanest approach would be:
We'd love to see a revised version — the feature itself is definitely something we want! Happy to help if you have any questions. 🙏 |
summary
Add filtering capability to session list API by status.
changes
Sessioninterface withSessionStatustypeVALID_STATUSESconstant ('active', 'completed', 'expired', 'cancelled')filterSessionsByStatuscontroller functiontesting
related Issue
Closes #247
type of changes
checklist