Add extra fields and indices to audit tables, based on configuration (see: #61)#187
Add extra fields and indices to audit tables, based on configuration (see: #61)#187herman-aka-wouter wants to merge 2 commits intoDamienHarper:masterfrom
Conversation
|
Any chance to merge this? |
|
Is this being implemented? Is there another way to do this? |
|
@DamienHarper i wouldn't understand how annoying continuous requests might be, but feedback would be greatly appreciated. Seeing as this issue has ultimately been open for 4 years or so, I doubt it would make it into the system, though potentially having a final word, or outlook on the current issues, on this would be great. |
… see pull DamienHarper#187 on main repo.
|
@wouter-toppy please resolve conflicts |


An extend and finalized version of #61
Closes:
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 field is automaticly detected by using the Symfony Property Accessor
In this case, the
App\Entity\Demoneeds to have a property calledextra_column, and the bundle will automaticly pick it up (doesn't need to be a doctrine property, just an object property) (see: src/Provider/Doctrine/Auditing/Transaction/AuditTrait.php:132)