Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v1.17.0 #263

Merged
merged 3 commits into from
Oct 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading