Skip to content

Commit 6658436

Browse files
authored
fix: add missing issue status (#1867)
1 parent 952b608 commit 6658436

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/kili/domain/issue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from kili.domain.project import ProjectId
77

88
IssueType = Literal["ISSUE", "QUESTION"]
9-
IssueStatus = Literal["OPEN", "SOLVED"]
9+
IssueStatus = Literal["CANCELLED", "OPEN", "SOLVED"]
1010
IssueId = NewType("IssueId", str)
1111

1212

src/kili/presentation/client/asset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ def assets(
264264
label_honeypot_mark_gte: Optional[float] = None,
265265
label_honeypot_mark_lte: Optional[float] = None,
266266
issue_type: Optional[Literal["QUESTION", "ISSUE"]] = None,
267-
issue_status: Optional[Literal["OPEN", "SOLVED"]] = None,
267+
issue_status: Optional[Literal["CANCELLED", "OPEN", "SOLVED"]] = None,
268268
external_id_strictly_in: Optional[List[str]] = None,
269269
external_id_in: Optional[List[str]] = None,
270270
label_output_format: Literal["dict", "parsed_label"] = "dict",
@@ -330,7 +330,7 @@ def assets(
330330
label_honeypot_mark_gte: Returned assets should have a label whose honeypot is greater or equal to this number.
331331
label_honeypot_mark_lte: Returned assets should have a label whose honeypot is lower or equal to this number.
332332
issue_type: Returned assets should have issues of type `QUESTION` or `ISSUE`.
333-
issue_status: Returned assets should have issues of status `OPEN` or `SOLVED`.
333+
issue_status: Returned assets should have issues of status `CANCELLED`, `OPEN` or `SOLVED`.
334334
external_id_strictly_in: Returned assets should have external ids that match exactly the ones in the list.
335335
external_id_in: Returned assets should have external ids that partially match the ones in the list.
336336
For example, with `external_id_in=['abc']`, any asset with an external id containing `'abc'` will be returned.

src/kili/presentation/client/issue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def update_issue_status(self, issue_id: str, status: IssueStatus) -> Dict[str, A
215215
216216
Args:
217217
issue_id: Identifier of the issue.
218-
status: New status of the issue. "OPEN" or "SOLVED"
218+
status: New status of the issue. "CANCELLED", "OPEN" or "SOLVED"
219219
220220
Returns:
221221
A dict with the changed properties which indicates if the mutation was successful,

0 commit comments

Comments
 (0)