Skip to content

Commit d67624e

Browse files
Update the copy for exports v1 deprecation warning (#1259)
1 parent d7cbdcf commit d67624e

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

labelbox/schema/batch.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,9 @@ def export_data_rows(self,
105105
LabelboxError: if the export fails or is unable to download within the specified time.
106106
"""
107107
warnings.warn(
108-
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. Find out more at this link: https://docs.labelbox.com/reference/label-export."
109-
)
108+
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. To view export v2 details, visit our docs: https://docs.labelbox.com/reference/label-export",
109+
DeprecationWarning)
110+
110111
id_param = "batchId"
111112
metadata_param = "includeMetadataInput"
112113
query_str = """mutation GetBatchDataRowsExportUrlPyApi($%s: ID!, $%s: Boolean!)

labelbox/schema/dataset.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,8 +567,8 @@ def export_data_rows(self,
567567
LabelboxError: if the export fails or is unable to download within the specified time.
568568
"""
569569
warnings.warn(
570-
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. Find out more at this link: https://docs.labelbox.com/reference/label-export."
571-
)
570+
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. To view export v2 details, visit our docs: https://docs.labelbox.com/reference/label-export",
571+
DeprecationWarning)
572572
id_param = "datasetId"
573573
metadata_param = "includeMetadataInput"
574574
query_str = """mutation GetDatasetDataRowsExportUrlPyApi($%s: ID!, $%s: Boolean!)

labelbox/schema/model_run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -472,8 +472,8 @@ def export_labels(
472472
None is returned.
473473
"""
474474
warnings.warn(
475-
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. Find out more at this link: https://docs.labelbox.com/reference/label-export."
476-
)
475+
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. To view export v2 details, visit our docs: https://docs.labelbox.com/reference/label-export",
476+
DeprecationWarning)
477477
sleep_time = 2
478478
query_str = """mutation exportModelRunAnnotationsPyApi($modelRunId: ID!) {
479479
exportModelRunAnnotations(data: {modelRunId: $modelRunId}) {

labelbox/schema/project.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,8 @@ def export_queued_data_rows(
233233
LabelboxError: if the export fails or is unable to download within the specified time.
234234
"""
235235
warnings.warn(
236-
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. Find out more at this link: https://docs.labelbox.com/reference/label-export."
237-
)
236+
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. To view export v2 details, visit our docs: https://docs.labelbox.com/reference/label-export",
237+
DeprecationWarning)
238238
id_param = "projectId"
239239
metadata_param = "includeMetadataInput"
240240
query_str = """mutation GetQueuedDataRowsExportUrlPyApi($%s: ID!, $%s: Boolean!)
@@ -339,8 +339,8 @@ def export_labels(self,
339339
generate during the `timeout_seconds` period, None is returned.
340340
"""
341341
warnings.warn(
342-
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. Find out more at this link: https://docs.labelbox.com/reference/label-export."
343-
)
342+
"You are currently utilizing exports v1 for this action, which will be deprecated after December 31st, 2023. We recommend transitioning to exports v2. To view export v2 details, visit our docs: https://docs.labelbox.com/reference/label-export",
343+
DeprecationWarning)
344344

345345
def _string_from_dict(dictionary: dict, value_with_quotes=False) -> str:
346346
"""Returns a concatenated string of the dictionary's keys and values

0 commit comments

Comments
 (0)