feat: add filtered comments list route #85
No reviewers
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit!85
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-4e8d17d3-comments-list-filters"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary\n- Add GET /api/v1/comments with status, postSlug, author, receivedFrom, and receivedTo filters.\n- Remove the special-purpose /comments/pending route from routing and OpenAPI.\n- Update docs/specs and tests for the new global comments list route and combined filters.\n\n## Verification\n- npm exec --workspace @slugkit/template-site -- vitest run --config ../../vitest.config.ts src/api/tests/comments.test.ts src/api/tests/routes.test.ts\n- npm test\n- npm run lint\n- npm run typecheck\n- ./scripts/pre-pr.sh\n\nTask: #task-4e8d17d3
PR Review
Summary
Reviewed PR #85 for task
task-4e8d17d3. The changes addGET /api/v1/commentswith combinable filters, remove the special-purpose pending comments route from routing/OpenAPI, preserve post-scoped comments, and update docs/specs/tests.Acceptance criteria
GET /api/v1/comments?status=pendinglists pending comments across posts.GET /api/v1/comments?postSlug=<slug>filters comments by post.GET /api/v1/comments?author=<search>filters by author name, handle, or profile URL.receivedFromandreceivedTofilter comments by received timestamp.GET /api/v1/comments/pendingis no longer routed or documented.GET /api/v1/posts/{slug}/commentsstill works for post-scoped comment listing.Blocking issues
None.
Warnings
None.
Verification reviewed
npm testpassed.npm run lintpassed.npm run typecheckpassed../scripts/pre-pr.shpassed.successfor commit8688964a15a91e090ed86896e27e1ff223b35534.Verdict
Approved. Ready for human merge approval.
PR Review Worker Result
8688964a155f0bc977d1PR update
Included the required
docs/CONTRIBUTING.mdclarification in this PR: approval requests must include the implementation plan in normal chat text in the same message.Updated head commit:
5f0bc977d1323bea373831e10525d4aec4e742cb.Verification after amend:
./scripts/pre-pr.shpassed.success.Review remains approved; no new blockers or warnings.