Problem/Motivation
Currently, the Activities module allows enabling activity logging per entity type and per operation (create, update, delete).
However, it is not possible to restrict logging by bundle.
For example, when logging activities for Media, all media items (Images, Documents, Videos, etc.) are logged.
This can quickly flood the activity log on large sites, especially when background operations (like cron or automatic imports) update many entities.
Proposed resolution
Add the ability to filter activity logging by bundle (for entities that have bundles).
The configuration form (/admin/config/activities) will display a new "Select bundles to log" section for each entity type.
If no bundles are selected, all bundles are logged (default behavior).
If one or more bundles are selected, only those will be logged.
Entity types without bundles (like file, user, etc.) continue to behave normally.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | entity_bundles.patch | 16.56 KB | mxrtinax |
Comments
Comment #2
mxrtinax commentedAdded a patch to filter by content bundle. Also included the patch from 3490232
Comment #4
ahmad-alyasaki commentedThanks for the contribution