-
Notifications
You must be signed in to change notification settings - Fork 68
feat(tasks): support for multivalued status in listTasks
#334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
andrii-bodnar
merged 4 commits into
crowdin:master
from
korzol:315-list-tasks-support-multi-valued-status
Sep 24, 2025
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5dd0514
feat: Support for multivalued status as described in issue #315.
korzol 0487c8f
fix: resolve comments from code review
korzol fea82f7
test: add coverage for listTasks with null statuses
korzol be3b07a
Update src/main/java/com/crowdin/client/tasks/TasksApi.java
andrii-bodnar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
src/main/java/com/crowdin/client/tasks/model/ListTasksParams.java
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| package com.crowdin.client.tasks.model; | ||
|
|
||
| import com.crowdin.client.core.model.Pagination; | ||
| import lombok.Data; | ||
| import lombok.EqualsAndHashCode; | ||
|
|
||
| import java.util.EnumSet; | ||
|
|
||
| @EqualsAndHashCode(callSuper = true) | ||
| @Data | ||
| public class ListTasksParams extends Pagination { | ||
| private EnumSet<Status> statuses; | ||
| private Long assigneeId; | ||
| } |
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| { | ||
| "data": { | ||
| "id": 2, | ||
| "projectId": 2, | ||
| "projectId": 12, | ||
| "creatorId": 6, | ||
| "type": 1, | ||
| "status": "todo", | ||
|
|
||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "data": [ | ||
| { | ||
| "data": { | ||
| "id": 2, | ||
| "projectId": 14, | ||
| "creatorId": 6, | ||
| "type": 1, | ||
| "status": "todo", | ||
| "title": "French", | ||
| "assignees": [ | ||
| { | ||
| "id": 1, | ||
| "username": "john_smith", | ||
| "fullName": "john_smith", | ||
| "avatarUrl": "", | ||
| "wordsCount": 5, | ||
| "wordsLeft": 3 | ||
| } | ||
| ], | ||
| "assignedTeams": [ | ||
| { | ||
| "id": 1, | ||
| "wordsCount": 5 | ||
| } | ||
| ], | ||
| "fileIds": [ | ||
| 1 | ||
| ], | ||
| "progress": { | ||
| "total": 24, | ||
| "done": 15, | ||
| "percent": 62 | ||
| }, | ||
| "sourceLanguageId": "en", | ||
| "targetLanguageId": "fr", | ||
| "description": "Proofread all French strings", | ||
| "hash": "dac37aff364d83899128e68afe0de4994", | ||
| "translationUrl": "/proofread/9092638ac9f2a2d1b5571d08edc53763/all/en-fr/10?task=dac37aff364d83899128e68afe0de4994", | ||
| "wordsCount": 24, | ||
| "filesCount": 2, | ||
| "commentsCount": 0, | ||
| "deadline": "2019-09-27T07:00:14+00:00", | ||
| "timeRange": "string", | ||
| "workflowStepId": 10, | ||
| "createdAt": "2019-09-23T09:04:29+00:00", | ||
| "updatedAt": "2019-09-23T09:04:29+00:00" | ||
| } | ||
| } | ||
| ], | ||
| "pagination": { | ||
| "offset": 0, | ||
| "limit": 25 | ||
| } | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| { | ||
| "data": [ | ||
| { | ||
| "data": { | ||
| "id": 2, | ||
| "projectId": 15, | ||
| "creatorId": 6, | ||
| "type": 1, | ||
| "status": "in_progress", | ||
| "title": "French", | ||
| "assignees": [ | ||
| { | ||
| "id": 1, | ||
| "username": "john_smith", | ||
| "fullName": "john_smith", | ||
| "avatarUrl": "", | ||
| "wordsCount": 5, | ||
| "wordsLeft": 3 | ||
| } | ||
| ], | ||
| "assignedTeams": [ | ||
| { | ||
| "id": 1, | ||
| "wordsCount": 5 | ||
| } | ||
| ], | ||
| "fileIds": [ | ||
| 1 | ||
| ], | ||
| "progress": { | ||
| "total": 24, | ||
| "done": 15, | ||
| "percent": 62 | ||
| }, | ||
| "sourceLanguageId": "en", | ||
| "targetLanguageId": "fr", | ||
| "description": "Proofread all French strings", | ||
| "hash": "dac37aff364d83899128e68afe0de4994", | ||
| "translationUrl": "/proofread/9092638ac9f2a2d1b5571d08edc53763/all/en-fr/10?task=dac37aff364d83899128e68afe0de4994", | ||
| "wordsCount": 24, | ||
| "filesCount": 2, | ||
| "commentsCount": 0, | ||
| "deadline": "2019-09-27T07:00:14+00:00", | ||
| "timeRange": "string", | ||
| "workflowStepId": 10, | ||
| "createdAt": "2019-09-23T09:04:29+00:00", | ||
| "updatedAt": "2019-09-23T09:04:29+00:00" | ||
| } | ||
| } | ||
| ], | ||
| "pagination": { | ||
| "offset": 0, | ||
| "limit": 25 | ||
| } | ||
| } |
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.
Uh oh!
There was an error while loading. Please reload this page.