-
Notifications
You must be signed in to change notification settings - Fork 53
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
Add extra fields and indices to audit tables, based on configuration #61
base: master
Are you sure you want to change the base?
Conversation
@WhatsOn Thanks for the contribution! I'll have a closer look at it asap. |
@DamienHarper do you still plan on taking a look at this? Would be greatly appreciated. For example; we're looking to use this to let users also add an (optional) comment as to why a certain change was made. |
@Swahjak @WhatsOn sure, it's still on my roadmap but I have to figure out some "issues" or edge cases before merging this feature (eg. if a user can add new "columns" from config file, he probably can also remove them, so how does the |
@DamienHarper completely understand and not trying to rush you. Just wanted to know if this is still something that you would consider merging (at some point). You make some valid points about the updating / removing of fields. My initial thought would be to only allow columns to be added through configuration and update / remove would be something the user has to take care of through custom migrations. Although doctrine would / might be able to manage this there would always be that edge case. Maybe this shouldn't be a configuration at all, but just a 'hook' that allows others to fiddle with the columns (and inserts), that way the responsibility does not lie with the library / bundle but with the user. |
DamienHarper#61 Add extra fields and indices to audit tables, based on configuration
Suggestion: Never remove a field that was not part of the core auditor field. This feature is way too useful to not include. |
Hi, a dumb question: this pull is not inside master yet, right ? |
It is not. |
Hello, have you plan to merge this feature soon ? |
@etiennecotin Well, it depends on what you consider as "soon" :) It won't happen until 2023 though. |
@DamienHarper Thx for the answer :) |
@DamienHarper could you devote yourself to this again? :) |
@DamienHarper Is there an update for this feature? :-) |
+1 on this one as we were discussing extending the auditor in this way. |
@DamienHarper Hi, have you a plan to merge this feature soon :-) ? We are in 2023 ^^
Thank's |
This pull request allows users to create extra columns in their audit tables. This is useful when You need to group audit events with an external parameter for easy retrieval later on.
Adds the options "extra_fields" and "extra_indices" to the Configuration object:
Adds the ability to query the audit table on the configured extra_indices via filters, eg.
The extra column values can be set using an EventSubscriber: