🐛 Forward attribute deletion events to admin console (#12932)

This commit is contained in:
Marina López 2026-11-10 13:47:13 +01:00 committed by GitHub
parent 4fb0ea9eee
commit 4e8f05171e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -231,6 +231,7 @@
"delete-file"
"delete-font"
"delete-organization"
"delete-organization-attribute"
"delete-organization-member"
"delete-project"
"delete-team"

View File

@ -117,6 +117,7 @@
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) "delete-organization-attribute")
(insert-audit-row! (:id prof) "update-organization-attribute")
(insert-audit-row! (:id prof) "auditlog-exported")
(insert-audit-row! (:id prof) "unrelated-event")
@ -126,6 +127,7 @@
(let [[_ _ params] (:call-args @admin-console-mock)]
(t/is (= #{"create-project"
"create-organization-attribute"
"delete-organization-attribute"
"update-organization-attribute"
"auditlog-exported"}
(into #{} (map :name) (:events params)))))