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
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. |
This comment was marked as spam.
This comment was marked as spam.
packages/core/admin/ee/server/src/audit-logs/services/lifecycles.ts
Outdated
Show resolved
Hide resolved
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.
I didn't test 100% of items since we have a blitz next week, but I did most of them. Everything looks fine ✨
What does it do?
Replaces auditLog contentType with a modelHow to test it?
Test audit logs are created for the following events