Skip to content

Commit 2753c10

Browse files
authored
Merge pull request #189 from Labelbox/ms/remove-created-by-conversion
remove created by conversion
2 parents 3b2aa8e + 67bdbfd commit 2753c10

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
# Version 2.7b1+mea (2021-06-27)
4+
## Fix
5+
* No longer convert `ModelRun.created_by_id` to cuid on construction of a `ModelRun`.
6+
* This was causing queries for ModelRuns to fail.
7+
38
# Version 2.7b0+mea (2021-06-27)
49
## Fix
510
* Update `AnnotationGroup` to expect labelId to be a cuid instead of uuid.

examples/model_assisted_labeling/image_mea.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"metadata": {},
3030
"outputs": [],
3131
"source": [
32-
"!pip install labelbox==2.7b0 \\\n",
32+
"!pip install labelbox==2.7b1 \\\n",
3333
" requests \\\n",
3434
" ndjson \\\n",
3535
" scikit-image \\\n",

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "2.7b0"
2+
__version__ = "2.7b1"
33

44
from labelbox.client import Client
55
from labelbox.schema.model import Model

labelbox/schema/model_run.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Dict, Iterable, Union
22
from pathlib import Path
33

4-
from labelbox.utils import uuid_to_cuid
54
from labelbox.pagination import PaginatedCollection
65
from labelbox.schema.annotation_import import MEAPredictionImport
76
from labelbox.orm.query import results_query_part
@@ -16,10 +15,6 @@ class ModelRun(DbObject):
1615
created_by_id = Field.String("created_by_id", "createdBy")
1716
model_id = Field.String("model_id")
1817

19-
def __init__(self, client, field_values):
20-
field_values['createdBy'] = uuid_to_cuid(field_values['createdBy'])
21-
super().__init__(client, field_values)
22-
2318
def upsert_labels(self, label_ids):
2419

2520
if len(label_ids) < 1:

tests/integration/test_label.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ def test_labels(label_pack):
3131
assert list(data_row.labels()) == []
3232

3333

34-
3534
def test_label_export(configured_project_with_label):
3635
project = configured_project_with_label
3736
exported_labels_url = project.export_labels()

0 commit comments

Comments
 (0)