New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(audit-logs): migrate audit logs to v5 #20251
base: v5/main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
packages/core/admin/ee/server/src/services/__tests__/audit-logs.test.ts
Outdated
Show resolved
Hide resolved
required: true, | ||
}, | ||
// @ts-expect-error database model is not yet updated to support useJoinTable | ||
user: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this schema is different from v4, we need to create a migration to keep v4 data. I believe all audit-log data will be transfered except the users in this situation.
const ignoredUids = ['plugin::upload.file', 'plugin::upload.folder']; | ||
if (ignoredUids.includes(args[0]?.uid)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Feranchz do you have any idea what this about? As far as I can tell there isn't anything to ignore from the upload plugin 🤔.
Updates:
I think it's ready for another review / QA. You may need to drop your database now that the contentType is back and the model is gone. |
What does it do?
How to test it?
Test audit logs are created for the following events