MEDIUM: community/posts response shape inconsistent — total field missing in normal path #96
Labels
No labels
accessibility
backlog
beta-feedback
bug
duplicate
enhancement
feature-request
help wanted
invalid
needs-design
needs-triage
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Circuit-Forge/kiwi#96
Loading…
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?
Summary
GET /api/v1/community/postsreturns different response shapes depending on whether the community DB is available.When community DB is unavailable (most dev/local instances):
When community DB is available:
The
totalfield is present in the stub but absent from the real response. Thenotefield is present in the stub but absent from the real response. The frontend may crash or behave incorrectly if it readsresponse.total.Fix
Standardize the response shape. The normal path should include
total:And the stub should match: