Skip to content

Commit b2e6d47

Browse files
committed
Update project fields
1 parent f4efbcf commit b2e6d47

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4385,6 +4385,7 @@ def attach_items(
43854385
unique_attachments = parse_obj_as(List[AttachmentEntity], unique_attachments)
43864386
uploaded, fails, duplicated = [], [], []
43874387
_unique_attachments = []
4388+
43884389
project, folder = self.controller.get_project_folder(project)
43894390
if any(i.integration for i in unique_attachments):
43904391
integtation_item_map = {
@@ -4412,8 +4413,9 @@ def attach_items(
44124413
_unique_attachments = unique_attachments
44134414

44144415
if _unique_attachments:
4416+
path = project.name + (f"/{folder.name}" if folder.name != "root" else "")
44154417
logger.info(
4416-
f"Attaching {len(_unique_attachments)} file(s) to project {project}."
4418+
f"Attaching {len(_unique_attachments)} file(s) to project {path}."
44174419
)
44184420

44194421
response = self.controller.items.attach(

src/superannotate/lib/app/serializers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ def serialize(
107107

108108
to_exclude = {
109109
"sync_status": True,
110-
"unverified_users": True,
111110
"classes": {
112111
"__all__": {"attribute_groups": {"__all__": {"is_multiselect"}}}
113112
},
@@ -143,7 +142,7 @@ def serialize(
143142
exclude_unset=False,
144143
):
145144

146-
to_exclude = {"sync_status": True, "unverified_users": True, "classes": True}
145+
to_exclude = {"sync_status": True, "classes": True}
147146
if exclude:
148147
for field in exclude:
149148
to_exclude[field] = True

src/superannotate/lib/core/entities/project.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ class ProjectEntity(TimedBaseModel):
110110
sync_status: Optional[int]
111111
upload_state: Optional[int]
112112
users: Optional[List[WMProjectUserEntity]] = []
113-
unverified_users: Optional[List[Any]] = []
114113
contributors: List[WMProjectUserEntity] = []
115114
settings: List[SettingEntity] = []
116115
classes: List[AnnotationClassEntity] = []

src/superannotate/lib/core/usecases/projects.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -868,10 +868,6 @@ def execute(self):
868868
elif user.role == constants.UserRole.CONTRIBUTOR.value:
869869
team_users.add(user.email)
870870

871-
# collecting pending project users which is not admin
872-
for user in self._project.unverified_users:
873-
project_emails.add(user["email"])
874-
875871
role_email_map = defaultdict(list)
876872
to_skip = []
877873
to_add = []

0 commit comments

Comments
 (0)