From bdf21b848003f7f650e8a71ee35a77f45289f598 Mon Sep 17 00:00:00 2001 From: Lina Date: Wed, 3 Dec 2025 09:21:33 +0100 Subject: [PATCH 1/9] Links in the notification center navigate to a non existing docs --- controller/notification/notification_data.py | 53 -------------------- fast_api/routes/notification.py | 1 - submodules/model | 2 +- 3 files changed, 1 insertion(+), 55 deletions(-) diff --git a/controller/notification/notification_data.py b/controller/notification/notification_data.py index 5b4fc704..789adb6e 100644 --- a/controller/notification/notification_data.py +++ b/controller/notification/notification_data.py @@ -7,154 +7,132 @@ "title": "Data import", "level": enums.Notification.INFO.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.IMPORT_DONE.value: { "message_template": "Completed import.", "title": "Data import", "level": enums.Notification.SUCCESS.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.IMPORT_FAILED.value: { "message_template": "Import of @@arg@@ failed.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.CONVERTING_DATA.value: { "message_template": "Converting data for the upload.", "title": "Data import", "level": enums.Notification.INFO.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.IMPORT_CONVERSION_ERROR.value: { "message_template": "Data type count't be forced (@@arg@@).", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.INVALID_FILE_TYPE.value: { "message_template": "File type @@arg@@ is currently not supported.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.FILE_TYPE_NOT_GIVEN.value: { "message_template": "No filetype was given.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.UNKNOWN_PARAMETER.value: { "message_template": "Unknown parameter for import options: @@arg@@.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.UPLOAD_CONVERSION_FAILED.value: { "message_template": "Upload conversion failed: @@arg@@.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.NEW_ROWS_EXCEED_MAXIMUM_LIMIT.value: { "message_template": "Rows exceed maximum allowed amount (@@arg@@/@@arg@@).", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.TOTAL_ROWS_EXCEED_MAXIMUM_LIMIT.value: { "message_template": "Rows would exceed maximum amount after upload (@@arg@@/@@arg@@).", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.COLS_EXCEED_MAXIMUM_LIMIT.value: { "message_template": "Columns exceed maximum allowed amount (@@arg@@/@@arg@@).", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.COL_EXCEED_MAXIMUM_LIMIT.value: { "message_template": "Attribute @@arg@@ exceeds maximum allowed character count (@@arg@@/@@arg@@).", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.DUPLICATED_COLUMNS.value: { "message_template": "The attributes @@arg@@ are not unique. Please contact the support.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.DUPLICATED_TASK_NAMES.value: { "message_template": "The task names @@arg@@ are not unique. Please contact the support.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.DIFFERENTIAL_ATTRIBUTES.value: { "message_template": "Attributes @@arg@@ are missing in your file. Please contact the support.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.NON_EXISTENT_TARGET_ATTRIBUTE.value: { "message_template": "Attributes @@arg@@ are not present as targets in your file. Please contact the support.", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.DUPLICATED_COMPOSITE_KEY.value: { "message_template": "Please upload a file with your projects primary key(s).", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.BAD_PASSWORD_DURING_IMPORT.value: { "message_template": "Bad password for zip file", "title": "Data import", "level": enums.Notification.ERROR.value, "page": enums.Pages.OVERVIEW.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.INFORMATION_SOURCE_STARTED.value: { "message_template": "Started heuristic @@arg@@.", "title": "Heuristic execution", "level": enums.Notification.INFO.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.INFORMATION_SOURCES.value, }, enums.NotificationType.INFORMATION_SOURCE_COMPLETED.value: { "message_template": "Completed heuristic @@arg@@.", "title": "Heuristic execution", "level": enums.Notification.SUCCESS.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.INFORMATION_SOURCES.value, }, enums.NotificationType.INFORMATION_SOURCE_FAILED.value: { "message_template": "Heuristic @@arg@@ failed. You can contact the support if you need help.", "title": "Heuristic execution", "level": enums.Notification.ERROR.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.INFORMATION_SOURCES.value, }, enums.NotificationType.INFORMATION_SOURCE_CANT_FIND_EMBEDDING.value: { # extracted embedding name, task name, task type (attribute or token) @@ -162,7 +140,6 @@ "title": "Embedding information", "level": enums.Notification.ERROR.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.INFORMATION_SOURCES.value, }, enums.NotificationType.INFORMATION_SOURCE_S3_EMBEDDING_MISSING.value: { # embedding s3 file name, embedding name @@ -170,210 +147,180 @@ "title": "Embedding information", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.INFORMATION_SOURCES.value, }, enums.NotificationType.INFORMATION_SOURCE_S3_DOCBIN_MISSING.value: { "message_template": "Tokenization docs missing in S3 storage. Docs are present once tokenization process is started (not queued).", "title": "Heuristic execution", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.INFORMATION_SOURCES.value, }, enums.NotificationType.WEAK_SUPERVISION_TASK_STARTED.value: { "message_template": "Started weak supervision.", "title": "Weak supervision", "level": enums.Notification.INFO.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.WEAK_SUPERVISION.value, }, enums.NotificationType.WEAK_SUPERVISION_TASK_DONE.value: { "message_template": "Completed weak supervision.", "title": "Weak supervision", "level": enums.Notification.SUCCESS.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.WEAK_SUPERVISION.value, }, enums.NotificationType.WEAK_SUPERVISION_TASK_FAILED.value: { "message_template": "Weak supervision failed.", "title": "Weak supervision", "level": enums.Notification.ERROR.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.WEAK_SUPERVISION.value, }, enums.NotificationType.WEAK_SUPERVISION_TASK_NO_VALID_LABELS.value: { "message_template": "Can't start weak supervision without valid est. precision.", "title": "Weak supervision", "level": enums.Notification.WARNING.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.WEAK_SUPERVISION.value, }, enums.NotificationType.IMPORT_SAMPLE_PROJECT.value: { "message_template": "Copying sample project into workspace.", "title": "Sample project", "level": enums.Notification.INFO.value, "page": enums.Pages.OVERVIEW.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.COLLECTING_SESSION_DATA.value: { "message_template": "Collecting data for the labeling session.", "title": "Session information", "level": enums.Notification.INFO.value, "page": enums.Pages.LABELING.value, - "docs": enums.DOCS.WORKFLOW.value, }, enums.NotificationType.SESSION_INFO.value: { "message_template": "This session holds the first @@arg@@ records. Adjust your filter to collect a different set.", "title": "Session information", "level": enums.Notification.INFO.value, "page": enums.Pages.LABELING.value, - "docs": enums.DOCS.WORKFLOW.value, }, enums.NotificationType.SESSION_RECORD_AMOUNT_CHANGED.value: { "message_template": "The amount of records that have been collected changed.", "title": "Session information", "level": enums.Notification.WARNING.value, "page": enums.Pages.LABELING.value, - "docs": enums.DOCS.WORKFLOW.value, }, enums.NotificationType.WRONG_USER_FOR_SESSION.value: { "message_template": "Requested session belongs to a different user.", "title": "Session information", "level": enums.Notification.WARNING.value, "page": enums.Pages.LABELING.value, - "docs": enums.DOCS.WORKFLOW.value, }, enums.NotificationType.KNOWLEDGE_BASE_ALREADY_EXISTS.value: { "message_template": "List @@arg@@ already exists.", "title": "Lookup lists", "level": enums.Notification.ERROR.value, "page": enums.Pages.KNOWLEDGE_BASE.value, - "docs": enums.DOCS.KNOWLEDGE_BASE.value, }, enums.NotificationType.TERM_ALREADY_EXISTS.value: { "message_template": "Term @@arg@@ already exists for list @@arg@@.", "title": "Lookup lists", "level": enums.Notification.ERROR.value, "page": enums.Pages.KNOWLEDGE_BASE.value, - "docs": enums.DOCS.KNOWLEDGE_BASE.value, }, enums.NotificationType.INVALID_PRIMARY_KEY.value: { "message_template": "The selected primary key combination is not valid.", "title": "Data schema", "level": enums.Notification.WARNING.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.UPLOADING_DATA.value, }, enums.NotificationType.PROJECT_DELETED.value: { "message_template": "Deleted project @@arg@@.", "title": "Project information", "level": enums.Notification.SUCCESS.value, "page": enums.Pages.OVERVIEW.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.MISSING_REFERENCE_DATA.value: { "message_template": "@@arg@@", "title": "Data management", "level": enums.Notification.WARNING.value, "page": enums.Pages.INFORMATION_SOURCES.value, - "docs": enums.DOCS.INFORMATION_SOURCES.value, }, enums.NotificationType.DATA_SLICE_ALREADY_EXISTS.value: { "message_template": "Filter with name @@arg@@ already exists.", "title": "Data management", "level": enums.Notification.WARNING.value, "page": enums.Pages.DATA.value, - "docs": enums.DOCS.DATA_BROWSER.value, }, enums.NotificationType.DATA_SLICE_CREATION_FAILED.value: { "message_template": "Filter creation failed. Please contact the support with the error log @@arg@@.", "title": "Data management", "level": enums.Notification.ERROR.value, "page": enums.Pages.DATA.value, - "docs": enums.DOCS.DATA_BROWSER.value, }, enums.NotificationType.DATA_SLICE_UPDATE_FAILED.value: { "message_template": "Filter update failed. Please contact the support with the error log @@arg@@.", "title": "Data management", "level": enums.Notification.ERROR.value, "page": enums.Pages.DATA.value, - "docs": enums.DOCS.DATA_BROWSER.value, }, enums.NotificationType.CUSTOM.value: { "message_template": "@@arg@@", "title": "Workflow information", "level": enums.Notification.INFO.value, "page": enums.Pages.OVERVIEW.value, - "docs": enums.DOCS.WORKFLOW.value, }, enums.NotificationType.TOKEN_CREATION_STARTED.value: { "message_template": "", "title": "Tokenization creation", "level": enums.Notification.INFO.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.TOKEN_CREATION_DONE.value: { "message_template": "", "title": "Tokenization creation", "level": enums.Notification.INFO.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.TOKEN_CREATION_FAILED.value: { "message_template": "", "title": "Tokenization creation", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.EMBEDDING_CREATION_STARTED.value: { "message_template": "", "title": "Embedding creation", "level": enums.Notification.INFO.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATE_EMBEDDINGS.value, }, enums.NotificationType.EMBEDDING_CREATION_DONE.value: { "message_template": "", "title": "Embedding creation", "level": enums.Notification.INFO.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATE_EMBEDDINGS.value, }, enums.NotificationType.EMBEDDING_CREATION_FAILED.value: { "message_template": "", "title": "Embedding creation", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATE_EMBEDDINGS.value, }, enums.NotificationType.EMBEDDING_CREATION_WARNING.value: { "message_template": "", "title": "Embedding creation", "level": enums.Notification.WARNING.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATE_EMBEDDINGS.value, }, enums.NotificationType.IMPORT_ISSUES_WARNING.value: { "message_template": "Some labels couldn't be imported. Check task import_issues for more information.", "title": "Import issues", "level": enums.Notification.WARNING.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.UNKNOWN_DATATYPE.value: { "message_template": "Some attribute datatypes (@@arg@@) were converted to string since they are not natively supported by refinery.", "title": "Unknown categories", "level": enums.Notification.INFO.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATING_PROJECTS.value, }, enums.NotificationType.RECREATION_OF_EMBEDDINGS_ERROR.value: { "message_template": "Recreation of embeddings failed. Third party embeddings must be recreated manually.", "title": "Embedding creation", "level": enums.Notification.ERROR.value, "page": enums.Pages.SETTINGS.value, - "docs": enums.DOCS.CREATE_EMBEDDINGS.value, }, } diff --git a/fast_api/routes/notification.py b/fast_api/routes/notification.py index d80d3839..3eca290d 100644 --- a/fast_api/routes/notification.py +++ b/fast_api/routes/notification.py @@ -45,7 +45,6 @@ def get_notifications( data = sql_alchemy_to_dict(notifications) for notification in data: notification_data = __notification_data.get(notification["type"]) - notification["docs"] = notification_data["docs"] notification["page"] = notification_data["page"] notification["title"] = notification_data["title"] diff --git a/submodules/model b/submodules/model index df3a8d58..56a4ac3c 160000 --- a/submodules/model +++ b/submodules/model @@ -1 +1 @@ -Subproject commit df3a8d5813bbd7a7f54a1e825ed0f516f31cd581 +Subproject commit 56a4ac3c1593604ba357507dbf5c0a607440e459 From e95c2881c7019cf7d579b96ecaedeeecf563efec Mon Sep 17 00:00:00 2001 From: Lina Date: Thu, 4 Dec 2025 10:16:15 +0100 Subject: [PATCH 2/9] First name not saved when inviting users --- fast_api/routes/organization.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fast_api/routes/organization.py b/fast_api/routes/organization.py index 24b1b6f1..9effcc45 100644 --- a/fast_api/routes/organization.py +++ b/fast_api/routes/organization.py @@ -15,6 +15,7 @@ RemoveUserToOrganizationBody, ) from controller.auth import manager as auth_manager +from controller.auth import kratos from controller.auth.kratos import ( resolve_user_mail_by_id, resolve_user_name_by_id, @@ -95,6 +96,7 @@ def get_user_info(request: Request): @router.get("/get-user-info-extended") def get_user_info_extended(request: Request): user = auth_manager.get_user_by_info(request.state.info) + kratos.__refresh_identity_cache() name = resolve_user_name_by_id(user.id) user_dict = { **sql_alchemy_to_dict( From 1060a8e9571b5e836858bc782b0761402ab40258 Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Thu, 4 Dec 2025 11:04:40 +0100 Subject: [PATCH 3/9] chore: update submodules --- submodules/model | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/model b/submodules/model index df3a8d58..1fcdb079 160000 --- a/submodules/model +++ b/submodules/model @@ -1 +1 @@ -Subproject commit df3a8d5813bbd7a7f54a1e825ed0f516f31cd581 +Subproject commit 1fcdb079ed3ce9b9ed3c867f23115fe69bc7731b From a1493e25d92d33d15c37cb6f50041c2e9a72c395 Mon Sep 17 00:00:00 2001 From: LennartSchmidtKern Date: Mon, 8 Dec 2025 15:02:24 +0100 Subject: [PATCH 4/9] fix sender name --- controller/inbox_mail/manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/controller/inbox_mail/manager.py b/controller/inbox_mail/manager.py index dc4f0091..5ce132af 100644 --- a/controller/inbox_mail/manager.py +++ b/controller/inbox_mail/manager.py @@ -167,7 +167,6 @@ def extend_inbox_mail_sender_receiver_names( user_is_sender = str(user_id) == str(mail_dict["sender_id"]) sender_is_admin = str(mail_dict["sender_id"]) in admin_user_ids if is_auto_generated and user_is_admin: - if not (mail_dict.get("sender_id")): mail_dict["senderName"] = DEFAULT_SYSTEM_AUTOGENERATED_NAME mail_dict["recipientNames"] = [DEFAULT_KERN_AI_ADMIN_NAME] @@ -189,6 +188,9 @@ def extend_inbox_mail_sender_receiver_names( elif user_is_admin and user_is_sender and user_id in participant_ids: mail_dict["senderName"] = kratos.resolve_user_name_by_id(mail_dict["sender_id"]) mail_dict["recipientNames"] = [DEFAULT_KERN_AI_ADMIN_NAME] + elif user_is_admin and sender_is_admin and not user_is_sender: + mail_dict["senderName"] = kratos.resolve_user_name_by_id(mail_dict["sender_id"]) + mail_dict["recipientNames"] = DEFAULT_KERN_AI_ADMIN_NAME elif user_is_admin and sender_is_admin: mail_dict["senderName"] = DEFAULT_KERN_AI_ADMIN_NAME mail_dict["recipientNames"] = [ From f9dc5130737c178cbbe7760836240331aedc77a1 Mon Sep 17 00:00:00 2001 From: LennartSchmidtKern Date: Mon, 8 Dec 2025 15:11:05 +0100 Subject: [PATCH 5/9] recipient name fix --- controller/inbox_mail/manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/inbox_mail/manager.py b/controller/inbox_mail/manager.py index 5ce132af..5b07bd1f 100644 --- a/controller/inbox_mail/manager.py +++ b/controller/inbox_mail/manager.py @@ -190,7 +190,7 @@ def extend_inbox_mail_sender_receiver_names( mail_dict["recipientNames"] = [DEFAULT_KERN_AI_ADMIN_NAME] elif user_is_admin and sender_is_admin and not user_is_sender: mail_dict["senderName"] = kratos.resolve_user_name_by_id(mail_dict["sender_id"]) - mail_dict["recipientNames"] = DEFAULT_KERN_AI_ADMIN_NAME + mail_dict["recipientNames"] = [DEFAULT_KERN_AI_ADMIN_NAME] elif user_is_admin and sender_is_admin: mail_dict["senderName"] = DEFAULT_KERN_AI_ADMIN_NAME mail_dict["recipientNames"] = [ From 2243c3b4b204a008253d7b812dcaa32771729e03 Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Tue, 9 Dec 2025 02:22:53 +0100 Subject: [PATCH 6/9] chore: update submodules --- submodules/model | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/model b/submodules/model index 1fcdb079..05b4b1d9 160000 --- a/submodules/model +++ b/submodules/model @@ -1 +1 @@ -Subproject commit 1fcdb079ed3ce9b9ed3c867f23115fe69bc7731b +Subproject commit 05b4b1d9b9763003ee1f57f7d1f71201f9c50640 From fc99ca06596fa7251f217325bf963872a232852c Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Tue, 9 Dec 2025 02:23:13 +0100 Subject: [PATCH 7/9] fix: add markdown_file_id etl task metadata --- controller/transfer/cognition/minio_upload.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/transfer/cognition/minio_upload.py b/controller/transfer/cognition/minio_upload.py index b0a8f002..005b218e 100644 --- a/controller/transfer/cognition/minio_upload.py +++ b/controller/transfer/cognition/minio_upload.py @@ -100,6 +100,7 @@ def handle_cognition_file_upload(path_parts: List[str]): etl_config_id=markdown_dataset_db_co.get_default_etl_config_id( str(markdown_file.organization_id), markdown_file.dataset_id ), + markdown_file_id=str(markdown_file.id), ) etl_task = etl_task_bo.create( org_id, @@ -110,6 +111,7 @@ def handle_cognition_file_upload(path_parts: List[str]): tokenizer=tokenizer, meta_data={ "file_reference_id": str(file_reference.id), + "markdown_file_id": str(markdown_file.id), }, priority=priority, ) From 6a0ef4687f2e2bdb4609a9d7891a0e23ea580b25 Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Tue, 9 Dec 2025 11:17:03 +0100 Subject: [PATCH 8/9] perf: add INCOGNITO_USE_OVER_TIME admin query tests --- tests/test_admin_queries.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_admin_queries.py b/tests/test_admin_queries.py index 542d66ec..0e53afa0 100644 --- a/tests/test_admin_queries.py +++ b/tests/test_admin_queries.py @@ -98,5 +98,12 @@ def __get_default_filter_for_admin_query(query: AdminQueries) -> dict: "distinct_conversations": False, } + elif query is AdminQueries.INCOGNITO_USE_OVER_TIME: + return { + "period": "days", + "slices": 7, + "organization_id": "", + } + else: raise ValueError(f"Unknown admin query: {query}") From 4777ddcb59c75365cfc268da9fe3351ba461c7ff Mon Sep 17 00:00:00 2001 From: andhreljaKern Date: Tue, 9 Dec 2025 11:55:53 +0100 Subject: [PATCH 9/9] chore: update submodules --- submodules/model | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/submodules/model b/submodules/model index 05b4b1d9..67d2713a 160000 --- a/submodules/model +++ b/submodules/model @@ -1 +1 @@ -Subproject commit 05b4b1d9b9763003ee1f57f7d1f71201f9c50640 +Subproject commit 67d2713ad19a2f4e4b676c5673f0ac3bfec0d1b3