Skip to content
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

Move audit log to database #96

Merged
merged 11 commits into from
Nov 22, 2024
Merged

Conversation

GeorgeJahad
Copy link
Collaborator

#81

@@ -0,0 +1,7 @@
class SqlAuditLog < ApplicationRecord
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we name this (and the table) AuditLog -- since the Sql part is kind of implicit?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good idea. will fix.

assert_equal value, @sql_audit_log.send(key), "Attribute #{key} was not set correctly"
end
end

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe test the negative case too?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, I merged before I saw this comment. I'll add it as a separate PR.

Copy link
Collaborator

@suprjinx suprjinx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@GeorgeJahad GeorgeJahad merged commit 9bef1bc into G-Research:main Nov 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants