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.

CommentFileSizeAuthor
#2 entity_bundles.patch16.56 KBmxrtinax

Comments

mxrtinax created an issue. See original summary.

mxrtinax’s picture

StatusFileSize
new16.56 KB

Added a patch to filter by content bundle. Also included the patch from 3490232

  • ahmad-alyasaki committed f05ce23f on 1.0.x
    [#3551189] feat: Allow filtering activity logging by entity bundles
    
ahmad-alyasaki’s picture

Status: Active » Fixed

Thanks for the contribution

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.