feat(api): API improvements — pagination, bulk ops, comments, members, archival#1065
Open
RainyPixel wants to merge 2 commits intousekaneo:mainfrom
Open
feat(api): API improvements — pagination, bulk ops, comments, members, archival#1065RainyPixel wants to merge 2 commits intousekaneo:mainfrom
RainyPixel wants to merge 2 commits intousekaneo:mainfrom
Conversation
…rchival API improvements: - Pagination metadata (total, page, pageSize, totalPages) on task list - Sorting (sortBy, sortOrder) and due date range filtering (dueBefore, dueAfter) - Bulk operations endpoint (PATCH /task/bulk) for status, priority, assignee, delete, labels - Comments as first-class resource (GET/POST/PUT/DELETE /comment) - Workspace members endpoint (GET /workspace/:id/members) - Project archival with soft-delete (archive/unarchive endpoints, includeArchived filter)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses items from #1041 and adds additional API improvements:
GET /tasks/:projectIdnow returns{ data, pagination }with total/page/pageSize/totalPages. Pagination only applied whenpageorlimitparams are passed (no breaking change for existing clients).sortByandsortOrderquery params on task list (createdAt, priority, dueDate, position, title, number)dueBeforeanddueAfterquery params with date validationPATCH /task/bulksupporting updateStatus, updatePriority, updateAssignee, delete, addLabel, removeLabelGET/POST/PUT/DELETE /commentendpoints with author-only edit/deleteGET /workspace/:id/membersreturns name, email, image, rolePUT /project/:id/archive|unarchivewith soft-delete,includeArchivedfilterTest plan
?page=1&limit=10— verify pagination metadata