-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: remove status_array from mutations (#1521)
Co-authored-by: theodu <[email protected]>
- Loading branch information
Showing
2 changed files
with
6 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -73,8 +73,7 @@ def append_many_to_dataset( | |
If None, random identifiers are created. | ||
id_array: Disabled parameter. Do not use. | ||
is_honeypot_array: Whether to use the asset for honeypot | ||
status_array: By default, all imported assets are set to `TODO`. Other options: | ||
`ONGOING`, `LABELED`, `REVIEWED`. | ||
status_array: DEPRECATED and does not have any effect. | ||
json_content_array: Useful for `VIDEO` or `TEXT` projects only. | ||
- For `VIDEO` projects, each element is a sequence of frames, i.e. a | ||
|
@@ -134,8 +133,8 @@ def append_many_to_dataset( | |
|
||
if status_array is not None: | ||
warnings.warn( | ||
"status_array is deprecated, asset status is automatically computed based on" | ||
" its labels and cannot be overwritten.", | ||
"status_array is deprecated and will not be sent in the call. Asset status is" | ||
" automatically computed based on its labels and cannot be overwritten.", | ||
DeprecationWarning, | ||
stacklevel=1, | ||
) | ||
|
@@ -154,7 +153,6 @@ def append_many_to_dataset( | |
"json_content": json_content_array, | ||
"external_id": external_id_array, | ||
"id": id_array, | ||
"status": status_array, | ||
"json_metadata": json_metadata_array, | ||
"is_honeypot": is_honeypot_array, | ||
} | ||
|
@@ -213,8 +211,7 @@ def update_properties_in_assets( | |
is a text formatted using RichText. | ||
- For a Video project, the`json_content` is a json containg urls pointing | ||
to each frame of the video. | ||
status_array: Each element should be in `TODO`, `ONGOING`, `LABELED`, | ||
`TO_REVIEW`, `REVIEWED`. | ||
status_array: DEPRECATED and does not have any effect. | ||
is_used_for_consensus_array: Whether to use the asset to compute consensus kpis or not. | ||
is_honeypot_array: Whether to use the asset for honeypot. | ||
project_id: The project ID. Only required if `external_ids` argument is provided. | ||
|
@@ -238,7 +235,6 @@ def update_properties_in_assets( | |
is_honeypot_array=[True, True], | ||
is_used_for_consensus_array=[True, False], | ||
priorities=[None, 2], | ||
status_array=['LABELED', 'REVIEWED'], | ||
to_be_labeled_by_array=[['[email protected]'], None], | ||
) | ||
|
@@ -266,12 +262,11 @@ def update_properties_in_assets( | |
|
||
if status_array is not None: | ||
warnings.warn( | ||
"status_array is deprecated, asset status is automatically computed based on" | ||
" its labels and cannot be overwritten.", | ||
"status_array is deprecated and will not be sent in the call. Asset status is" | ||
" automatically computed based on its labels and cannot be overwritten.", | ||
DeprecationWarning, | ||
stacklevel=1, | ||
) | ||
|
||
if asset_ids is not None and external_ids is not None: | ||
warnings.warn( | ||
"The use of `external_ids` argument has changed. It is now used to identify" | ||
|
@@ -294,7 +289,6 @@ def update_properties_in_assets( | |
to_be_labeled_by_array=to_be_labeled_by_array, | ||
contents=contents, | ||
json_contents=json_contents, | ||
status_array=status_array, | ||
is_used_for_consensus_array=is_used_for_consensus_array, | ||
is_honeypot_array=is_honeypot_array, | ||
resolution_array=resolution_array, | ||
|
This file contains 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