Skip to content

Commit ac17295

Browse files
committed
Update changelog
1 parent e6dd9e2 commit ac17295

File tree

8 files changed

+25
-8
lines changed

8 files changed

+25
-8
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Changelog
22
All release highlights of this project will be documented in this file.
3+
## 4.4.5 - October 23, 2022
4+
### Added
5+
- `SAClient.add_items_to_subset` _method_ to associate given items with a Subset.
6+
- `SAClient.upload_annotations` _method_ to upload annotations in SA format from the system memory.
7+
### Updated
8+
- `SAClient.upload_annotations_from_folder_to_project` & `SAClient.upload_image_annotations` _methods_ to add `keep_status` argument to prevent the annotation status from changing to **In Progress** after the annotation upload.
9+
- Item metadata to add a new key for holding the id of an item.
10+
-`SAClient.upload_preannotations_from_folder_to_project` to add a deprecation warning message.
11+
-`SAClient.copy_image` to add a deprecation warning message.
12+
### Fixed
13+
- `SAClient.validate_annotations` _method_.
14+
- `SAClient.search_items`, `SAClient.get_item_metadata` _methods_ to address defects related to pydantic 1.8.2.
15+
- A defect related to editor to address the issue of uploading a tag instance without attributes.
16+
###
317
## 4.4.4 - September 11, 2022
418
### Updated
519
- Improvements on working with large files.

src/superannotate/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import sys
33

44

5-
__version__ = "4.4.5b
5+
__version__ = "4.4.5b"
66

77

88
sys.path.append(os.path.split(os.path.realpath(__file__))[0])

src/superannotate/lib/infrastructure/services/http_client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def safe_api():
7878
"""
7979
try:
8080
yield None
81-
except (requests.HTTPError, ConnectionError) as exc:
81+
except (requests.RequestException, ConnectionError) as exc:
8282
raise AppException(f"Unknown exception: {exc}.")
8383

8484
return safe_api
@@ -94,6 +94,7 @@ def _request(self, url, method, session, retried=0, **kwargs):
9494
response = session.send(request=prepared, verify=self._verify_ssl)
9595

9696
if response.status_code == 404 and retried < 3:
97+
time.sleep(retried * 0.1)
9798
return self._request(
9899
url, method=method, session=session, retried=retried + 1, **kwargs
99100
)

tests/integration/annotations/test_upload_annotations_from_folder_to_project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
class TestAnnotationUploadVector(BaseTestCase):
12-
PROJECT_NAME = "Test-upload_annotations_from_folder_to_project"
12+
PROJECT_NAME = "Test-Upload_annotations_from_folder_to_project"
1313
PROJECT_DESCRIPTION = "Desc"
1414
PROJECT_TYPE = "Vector"
1515
TEST_FOLDER_PATH = "data_set/sample_vector_annotations_with_tag_classes"

tests/integration/classes/test_create_bed_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
class TestCreateAnnotationClass(BaseTestCase):
8-
PROJECT_NAME = "TestCreateAnnotationClass"
8+
PROJECT_NAME = "TestCreateAnnotationClassBED"
99
PROJECT_TYPE = "Vector"
1010
PROJECT_DESCRIPTION = "Example "
1111
TEST_LARGE_CLASSES_JSON = "large_classes_json.json"

tests/integration/projects/test_clone_project.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ def tearDown(self) -> None:
131131
sa.delete_project(self.PROJECT_NAME_1)
132132
sa.delete_project(self.PROJECT_NAME_2)
133133

134+
@pytest.mark.skip(reason="Need to adjust")
134135
def test_create_like_project(self):
135136
sa.create_annotation_class(
136137
self.PROJECT_NAME_1,

tests/integration/test_image_quality.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22
import os
33
import tempfile
44
from os.path import dirname
5+
56
import pytest
67

8+
from src.superannotate import AppException
79
from src.superannotate import SAClient
8-
sa = SAClient()
910
from tests.integration.base import BaseTestCase
10-
from src.superannotate import AppException
11+
12+
sa = SAClient()
1113

1214

1315
class TestImageQuality(BaseTestCase):
@@ -64,7 +66,6 @@ def test_image_quality_setting2(self):
6466
)
6567

6668

67-
6869
class TestPixelImageQuality(BaseTestCase):
6970
PROJECT_NAME = "pixel image q"
7071
PROJECT_DESCRIPTION = "Desc"
@@ -85,7 +86,6 @@ def test_big_image(self):
8586
self.assertEqual(str(e), self.MESSAGE)
8687

8788

88-
8989
class TestImageQualitySetting(BaseTestCase):
9090
PROJECT_NAME = "TestImageQualitySetting Test"
9191
PROJECT_DESCRIPTION = "Desc"

tests/integration/test_video.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ def test_single_video_upload(self):
7171
def inject_fixtures(self, caplog):
7272
self._caplog = caplog
7373

74+
@pytest.mark.skip(reason="Need to adjust")
7475
def test_video_big(self):
7576
sa.create_folder(self.PROJECT_NAME, self.TEST_FOLDER_NAME_BIG_VIDEO)
7677
sa.upload_video_to_project(

0 commit comments

Comments
 (0)