mirror of
https://github.com/penpot/penpot.git
synced 2025-03-12 15:51:37 -05:00
🐛 Skip unnecesary mutation events from audit log
This commit is contained in:
parent
3dfd87eee1
commit
86712f977d
3 changed files with 10 additions and 6 deletions
|
@ -247,7 +247,7 @@
|
||||||
from audit_log
|
from audit_log
|
||||||
where archived_at is null
|
where archived_at is null
|
||||||
order by created_at asc
|
order by created_at asc
|
||||||
limit 256
|
limit 128
|
||||||
for update skip locked;")
|
for update skip locked;")
|
||||||
|
|
||||||
(defn archive-events
|
(defn archive-events
|
||||||
|
|
|
@ -996,7 +996,8 @@
|
||||||
:opt-un [::data]))
|
:opt-un [::data]))
|
||||||
|
|
||||||
(sv/defmethod ::upsert-file-object-thumbnail
|
(sv/defmethod ::upsert-file-object-thumbnail
|
||||||
{::doc/added "1.17"}
|
{::doc/added "1.17"
|
||||||
|
::audit/skip true}
|
||||||
[{:keys [pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}]
|
[{:keys [pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}]
|
||||||
(db/with-atomic [conn pool]
|
(db/with-atomic [conn pool]
|
||||||
(check-edition-permissions! conn profile-id file-id)
|
(check-edition-permissions! conn profile-id file-id)
|
||||||
|
@ -1026,7 +1027,8 @@
|
||||||
(sv/defmethod ::upsert-file-thumbnail
|
(sv/defmethod ::upsert-file-thumbnail
|
||||||
"Creates or updates the file thumbnail. Mainly used for paint the
|
"Creates or updates the file thumbnail. Mainly used for paint the
|
||||||
grid thumbnails."
|
grid thumbnails."
|
||||||
{::doc/added "1.17"}
|
{::doc/added "1.17"
|
||||||
|
::audit/skip true}
|
||||||
[{:keys [pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}]
|
[{:keys [pool] :as cfg} {:keys [::rpc/profile-id file-id] :as params}]
|
||||||
(db/with-atomic [conn pool]
|
(db/with-atomic [conn pool]
|
||||||
(check-edition-permissions! conn profile-id file-id)
|
(check-edition-permissions! conn profile-id file-id)
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
[app.common.logging :as l]
|
[app.common.logging :as l]
|
||||||
[app.common.spec :as us]
|
[app.common.spec :as us]
|
||||||
[app.db :as db]
|
[app.db :as db]
|
||||||
[app.loggers.audit :as audit]
|
[app.loggers.audit :as-alias audit]
|
||||||
[app.rpc.climit :as-alias climit]
|
[app.rpc.climit :as-alias climit]
|
||||||
[app.rpc.commands.files :as cmd.files]
|
[app.rpc.commands.files :as cmd.files]
|
||||||
[app.rpc.commands.files.create :as cmd.files.create]
|
[app.rpc.commands.files.create :as cmd.files.create]
|
||||||
|
@ -176,7 +176,8 @@
|
||||||
|
|
||||||
(sv/defmethod ::upsert-file-object-thumbnail
|
(sv/defmethod ::upsert-file-object-thumbnail
|
||||||
{::doc/added "1.13"
|
{::doc/added "1.13"
|
||||||
::doc/deprecated "1.17"}
|
::doc/deprecated "1.17"
|
||||||
|
::audit/skip true}
|
||||||
[{:keys [pool] :as cfg} {:keys [profile-id file-id] :as params}]
|
[{:keys [pool] :as cfg} {:keys [profile-id file-id] :as params}]
|
||||||
(db/with-atomic [conn pool]
|
(db/with-atomic [conn pool]
|
||||||
(cmd.files/check-edition-permissions! conn profile-id file-id)
|
(cmd.files/check-edition-permissions! conn profile-id file-id)
|
||||||
|
@ -192,7 +193,8 @@
|
||||||
"Creates or updates the file thumbnail. Mainly used for paint the
|
"Creates or updates the file thumbnail. Mainly used for paint the
|
||||||
grid thumbnails."
|
grid thumbnails."
|
||||||
{::doc/added "1.13"
|
{::doc/added "1.13"
|
||||||
::doc/deprecated "1.17"}
|
::doc/deprecated "1.17"
|
||||||
|
::audit/skip true}
|
||||||
[{:keys [pool] :as cfg} {:keys [profile-id file-id] :as params}]
|
[{:keys [pool] :as cfg} {:keys [profile-id file-id] :as params}]
|
||||||
(db/with-atomic [conn pool]
|
(db/with-atomic [conn pool]
|
||||||
(cmd.files/check-edition-permissions! conn profile-id file-id)
|
(cmd.files/check-edition-permissions! conn profile-id file-id)
|
||||||
|
|
Loading…
Add table
Reference in a new issue