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
Fixes #27346 - show audit records for host create #6969
Fixes #27346 - show audit records for host create #6969
Conversation
Issues: #27346 |
Thanks @kgaikwad! I think this may be an outcome of having multiple different ways we do auditing currently around STI. perhaps we should try to think how we can make it simpler in a way that works for everything? Some differences off the top of my head:
I wonder if simplifying these options (maybe just using the last two - so the audit definition is on the class we care about) would be possible and make some of the rest of the work around audits easier and less error prone? |
Thank you @tbrisker for bringing this. |
@tbrisker is this acceptable at least as an interim solution? While I'd like to investigate if unification of STI classes auditing make sense, I'd also like to get this fixed. Quick comment on your findings, points 3 and 4 makes sense to me from user perspective. Point 1 seems reasonable. Point 2 - I can understand taxnomy and lookup keys, not sure about nics though. |
@ares my comment was more of an observation and thinking out loud than a requirement. If @kgaikwad found a simple way to fix part of it in this PR it would be good, but if not we can stay with this solution, or do an explicit workaround for the hosts so we know to remove it once we fix the sti handling. |
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.
test
c75ee5d
to
86459fe
Compare
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.
Fixes #27346 - show audit records for host create (theforeman#6969) (cherry picked from commit 5b47a90)
adding @ares, @tbrisker in loop.
Instead of adding hard-coded list into main objects, I have considered parent classes which are not abstract and having DB table.