From eef6868e9f97cb3442c4af33402a0eec8b896a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marina=20L=C3=B3pez?= Date: Thu, 5 Nov 2026 15:12:47 +0100 Subject: [PATCH] :sparkles: Forward attribute update events (#12861) --- backend/src/app/loggers/audit/consumer_task.clj | 1 + .../test/backend_tests/loggers_audit_consumer_task_test.clj | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/backend/src/app/loggers/audit/consumer_task.clj b/backend/src/app/loggers/audit/consumer_task.clj index 3180f936f0..20b6255163 100644 --- a/backend/src/app/loggers/audit/consumer_task.clj +++ b/backend/src/app/loggers/audit/consumer_task.clj @@ -255,6 +255,7 @@ "success-activate-organization-sso" "success-apply-organization-sso-changes" "unassign-organization-attribute" + "update-organization-attribute" "update-organization-invitation" "update-organization-permissions" "update-team-invitation" diff --git a/backend/test/backend_tests/loggers_audit_consumer_task_test.clj b/backend/test/backend_tests/loggers_audit_consumer_task_test.clj index 17a5a2bbc3..db7de3ace4 100644 --- a/backend/test/backend_tests/loggers_audit_consumer_task_test.clj +++ b/backend/test/backend_tests/loggers_audit_consumer_task_test.clj @@ -117,13 +117,17 @@ http-mock {:target 'app.http.client/req :return {:status 204}}] (insert-audit-row! (:id prof) "create-project") (insert-audit-row! (:id prof) "create-organization-attribute") + (insert-audit-row! (:id prof) "update-organization-attribute") (insert-audit-row! (:id prof) "auditlog-exported") (insert-audit-row! (:id prof) "unrelated-event") (run-both! {:uri archive-uri}) (t/is (:called? @admin-console-mock)) (t/is (:called? @http-mock)) (let [[_ _ params] (:call-args @admin-console-mock)] - (t/is (= #{"create-project" "create-organization-attribute" "auditlog-exported"} + (t/is (= #{"create-project" + "create-organization-attribute" + "update-organization-attribute" + "auditlog-exported"} (into #{} (map :name) (:events params))))) (let [rows (th/db-exec! ["select * from audit_log"])] (t/is (= 0 (count rows))))))))