mirror of
https://github.com/penpot/penpot.git
synced 2026-11-10 20:10:37 +00:00
🐛 Forward attribute deletion events to admin console (#12932)
This commit is contained in:
parent
4fb0ea9eee
commit
4e8f05171e
@ -231,6 +231,7 @@
|
||||
"delete-file"
|
||||
"delete-font"
|
||||
"delete-organization"
|
||||
"delete-organization-attribute"
|
||||
"delete-organization-member"
|
||||
"delete-project"
|
||||
"delete-team"
|
||||
|
||||
@ -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)))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user