✨ Forward attribute update events (#12861)

This commit is contained in:
Marina López 2026-11-05 15:12:47 +01:00 committed by GitHub
parent eae2c5bc95
commit eef6868e9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -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"

View File

@ -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))))))))