Skip to content

Commit

Permalink
v1.17.0 (#263)
Browse files Browse the repository at this point in the history
* Run+weakly supervise ran without problem, but modal for last run shows weird output

* refetch cache

* Record Downlaod is not working

---------

Co-authored-by: LennartSchmidtKern <[email protected]>
  • Loading branch information
lumburovskalina and LennartSchmidtKern authored Oct 23, 2024
1 parent c72cc90 commit 0456f99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion controller/transfer/record_export_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,10 @@ def __extract_table_meta_classification_data(
break
task = tasks_by_id.get(task_id)

if task.task_type == enums.LabelingTaskType.INFORMATION_EXTRACTION.value:
if (
not task
or task.task_type == enums.LabelingTaskType.INFORMATION_EXTRACTION.value
):
continue

attribute_name = attribute_names.get(str(task.attribute_id))
Expand Down
2 changes: 2 additions & 0 deletions controller/user/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def get_or_create_user(user_id: str) -> User:
user_item = user.get(user_id)
if not user_item:
user_item = user.create(user_id, with_commit=True)
kratos.__refresh_identity_cache()
update_last_interaction(user_item.id)
return user_item

Expand Down Expand Up @@ -152,3 +153,4 @@ def get_mapped_sorted_paginated_users(
def delete_user(user_id: str) -> None:
user.delete(user_id, with_commit=True)
user_activity.delete_user_activity(user_id, with_commit=True)
kratos.__refresh_identity_cache()
3 changes: 3 additions & 0 deletions controller/weak_supervision/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def run_then_weak_supervision(
"Weak Supervision Task",
)
notification.send_organization_update(project_id, "weak_supervision_started")
source_names = (
", ".join(source_names) if isinstance(source_names, list) else source_names
)

weak_supervision_task = ws_manager.create_task(
project_id=project_id,
Expand Down

0 comments on commit 0456f99

Please sign in to comment.