Repository navigation
Normalize group poll path params - #176
Conversation
Consistent path params were applied to group poll endpoints so they match the rest of the group API (`/groups/:groupId/polls`). Minor guard-clause formatting was updated in the group patch handler for clarity. Co-authored-by: Codex <noreply@openai.com> Assisted-By: Codex(gpt-5.4)
|
Caution Review failedPull request was closed or merged during review No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughUpdated Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Summary
This PR makes the group poll UI/API route contract consistent by aligning UI and server-router usage to
/api/groups/:groupId/pollspaths, while keeping backend payload key names (groupActorId) unchanged where needed by controllers.It also improves guard readability in the group update route and keeps group avatar update behavior unchanged.
Why
:groupIdpath segment for group-scoped poll endpoints.groupActorIdbody/query keys expected by controllers.Commit History
Test Plan
pnpm typecheckandpnpm lintfor affected route/controller types./api/groups/<groupId>and POST/api/groups/<groupId>/avatarfrom the edit page in a deployed environment (non-dev origin)./api/groups/<groupId>/pollsand do not 404.Assisted-By: Codex(gpt-5.4)
Summary by CodeRabbit
Release Notes
Bug Fixes
Refactor