@@ -102,8 +102,8 @@ def count_labels(
102102 asset_step_name_in: Returned assets are in a step whose name belong to that list, if given.
103103 Only applicable if the project is in WorkflowV2.
104104 asset_step_status_in: Returned assets have the status of their step that belongs to that list, if given.
105- Possible choices: `TO_DO`, `DOING`, `PARTIALLY_DONE`, `REDO`, `DONE`, `SKIPPED`.
106- Only applicable if the project is in WorkflowV2.
105+ Possible choices: `TO_DO`, `DOING`, `IN_PROGRESS`, ` PARTIALLY_DONE`, `REWORK `, `REDO`, `DONE`, `SKIPPED`.
106+ Only applicable if the project is in WorkflowV2. Note that `DOING` and `REDO` are deprecated, use `IN_PROGRESS` and `REWORK` instead.
107107 author_in: Returned labels should have been made by authors in that list, if given.
108108 An author can be designated by the first name, the last name, or the first name + last name.
109109 created_at: Returned labels should have a label whose creation date is equal to this date.
@@ -126,6 +126,19 @@ def count_labels(
126126 if category_search :
127127 validate_category_search_query (category_search )
128128
129+ if asset_step_status_in is not None and "DOING" in asset_step_status_in :
130+ warnings .warn (
131+ "Step status 'DOING' is deprecated, use 'IN_PROGRESS' instead" ,
132+ DeprecationWarning ,
133+ stacklevel = 1 ,
134+ )
135+ if asset_step_status_in is not None and "REDO" in asset_step_status_in :
136+ warnings .warn (
137+ "Step status 'REDO' is deprecated, use 'REWORK' instead" ,
138+ DeprecationWarning ,
139+ stacklevel = 1 ,
140+ )
141+
129142 asset_step_id_in = None
130143 if (
131144 asset_status_in is not None
@@ -401,8 +414,8 @@ def labels(
401414 asset_step_name_in: Returned assets are in a step whose name belong to that list, if given.
402415 Only applicable if the project is in WorkflowV2.
403416 asset_step_status_in: Returned assets have the status of their step that belongs to that list, if given.
404- Possible choices: `TO_DO`, `DOING`, `PARTIALLY_DONE`, `REDO`, `DONE`, `SKIPPED`.
405- Only applicable if the project is in WorkflowV2.
417+ Possible choices: `TO_DO`, `DOING`, `IN_PROGRESS`, ` PARTIALLY_DONE`, `REWORK `, `REDO`, `DONE`, `SKIPPED`.
418+ Only applicable if the project is in WorkflowV2. Note that `DOING` and `REDO` are deprecated, use `IN_PROGRESS` and `REWORK` instead.
406419 author_in: Returned labels should have been made by authors in that list, if given.
407420 An author can be designated by the first name, the last name, or the first name + last name.
408421 created_at: Returned labels should have their creation date equal to this date.
@@ -455,6 +468,19 @@ def labels(
455468 if category_search :
456469 validate_category_search_query (category_search )
457470
471+ if asset_step_status_in is not None and "DOING" in asset_step_status_in :
472+ warnings .warn (
473+ "Step status 'DOING' is deprecated, use 'IN_PROGRESS' instead" ,
474+ DeprecationWarning ,
475+ stacklevel = 1 ,
476+ )
477+ if asset_step_status_in is not None and "REDO" in asset_step_status_in :
478+ warnings .warn (
479+ "Step status 'REDO' is deprecated, use 'REWORK' instead" ,
480+ DeprecationWarning ,
481+ stacklevel = 1 ,
482+ )
483+
458484 disable_tqdm = resolve_disable_tqdm (disable_tqdm , getattr (self , "disable_tqdm" , None ))
459485 disable_tqdm = disable_tqdm_if_as_generator (as_generator , disable_tqdm )
460486 options = QueryOptions (disable_tqdm , first , skip )
@@ -650,8 +676,8 @@ def predictions(
650676 asset_step_name_in: Returned assets are in a step whose name belong to that list, if given.
651677 Only applicable if the project is in WorkflowV2.
652678 asset_step_status_in: Returned assets have the status of their step that belongs to that list, if given.
653- Possible choices: `TO_DO`, `DOING`, `PARTIALLY_DONE`, `REDO`, `DONE`, `SKIPPED`.
654- Only applicable if the project is in WorkflowV2.
679+ Possible choices: `TO_DO`, `DOING`, `IN_PROGRESS`, ` PARTIALLY_DONE`, `REWORK `, `REDO`, `DONE`, `SKIPPED`.
680+ Only applicable if the project is in WorkflowV2. Note that `DOING` and `REDO` are deprecated, use `IN_PROGRESS` and `REWORK` instead.
655681 author_in: Returned labels should have been made by authors in that list, if given.
656682 An author can be designated by the first name, the last name, or the first name + last name.
657683 created_at: Returned labels should have a label whose creation date is equal to this date.
@@ -676,6 +702,19 @@ def predictions(
676702 Examples:
677703 >>> kili.predictions(project_id=project_id) # returns a list of prediction labels of a project
678704 """
705+ if asset_step_status_in is not None and "DOING" in asset_step_status_in :
706+ warnings .warn (
707+ "Step status 'DOING' is deprecated, use 'IN_PROGRESS' instead" ,
708+ DeprecationWarning ,
709+ stacklevel = 1 ,
710+ )
711+ if asset_step_status_in is not None and "REDO" in asset_step_status_in :
712+ warnings .warn (
713+ "Step status 'REDO' is deprecated, use 'REWORK' instead" ,
714+ DeprecationWarning ,
715+ stacklevel = 1 ,
716+ )
717+
679718 if as_generator :
680719 return self .labels (
681720 project_id = project_id ,
@@ -843,8 +882,8 @@ def inferences(
843882 asset_step_name_in: Returned assets are in a step whose name belong to that list, if given.
844883 Only applicable if the project is in WorkflowV2.
845884 asset_step_status_in: Returned assets have the status of their step that belongs to that list, if given.
846- Possible choices: `TO_DO`, `DOING`, `PARTIALLY_DONE`, `REDO`, `DONE`, `SKIPPED`.
847- Only applicable if the project is in WorkflowV2.
885+ Possible choices: `TO_DO`, `DOING`, `IN_PROGRESS`, ` PARTIALLY_DONE`, `REWORK `, `REDO`, `DONE`, `SKIPPED`.
886+ Only applicable if the project is in WorkflowV2. Note that `DOING` and `REDO` are deprecated, use `IN_PROGRESS` and `REWORK` instead.
848887 author_in: Returned labels should have been made by authors in that list, if given.
849888 An author can be designated by the first name, the last name, or the first name + last name.
850889 created_at: Returned labels should have a label whose creation date is equal to this date.
@@ -869,6 +908,19 @@ def inferences(
869908 Examples:
870909 >>> kili.inferences(project_id=project_id) # returns a list of inference labels of a project
871910 """
911+ if asset_step_status_in is not None and "DOING" in asset_step_status_in :
912+ warnings .warn (
913+ "Step status 'DOING' is deprecated, use 'IN_PROGRESS' instead" ,
914+ DeprecationWarning ,
915+ stacklevel = 1 ,
916+ )
917+ if asset_step_status_in is not None and "REDO" in asset_step_status_in :
918+ warnings .warn (
919+ "Step status 'REDO' is deprecated, use 'REWORK' instead" ,
920+ DeprecationWarning ,
921+ stacklevel = 1 ,
922+ )
923+
872924 if as_generator :
873925 return self .labels (
874926 project_id = project_id ,
0 commit comments