Replace pending comments route with filters #80
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit#80
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Goal
Replace the special-purpose pending comments endpoint with a general comments listing endpoint that supports moderation and search filters.
Requirements
GET /api/v1/commentsas the global comments list endpoint.status=pending|approved|hidden|allpostSlug=<slug>author=<search>matching author name, handle, or profile URLreceivedFrom=<date-or-datetime>receivedTo=<date-or-datetime>statusbehavior should be explicit in the spec and implementation.GET /api/v1/comments/pendingfrom routing and OpenAPI.GET /api/v1/comments?status=pendingfor moderation queues.GET /api/v1/posts/{slug}/commentsfor post-scoped comment listing.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.Dependencies
Synced from todu comment by @todu on 2026-06-02T16:14:13.422Z
PR review
PR #85 reviewed and approved.
Acceptance criteria: 9 total, 9 met, 0 missing.
Blocking issues: 0.
Warnings: 0.
Verification reviewed: targeted comments/OpenAPI tests passed,
npm testpassed,npm run lintpassed,npm run typecheckpassed,./scripts/pre-pr.shpassed, and Forgejo CI issuccessfor commit8688964a15a91e090ed86896e27e1ff223b35534.Verdict: approved; waiting for explicit human merge approval.
Synced from todu comment by @todu on 2026-06-02T17:13:42.040Z
Completed
feat: add filtered comments list route) is merged intomain; localmainis clean and aligned withorigin/mainat merge commit1668b1e.GET /api/v1/comments?status=pendingis routed bycomments.list, filters by moderation status, and is covered by the pending-across-posts test.postSlug,author,receivedFrom, andreceivedToare validated and passed intolistComments;listCommentscombines filters withANDclauses and tests cover each filter plus combined filters.GET /api/v1/comments/pendingis absent from OpenAPI/routing and has a 404 test.GET /api/v1/posts/{slug}/commentsremains routed and tested for post-scoped listing.GET /commentswithstatus,postSlug,author,receivedFrom, andreceivedTo, and docs preferGET /comments?status=pendingfor moderation queues.npm test,npm run lint,npm run typecheck,./scripts/pre-pr.sh, and Forgejo CI all passing; no stack-specific verification commands were rerun for close gate.