Skip activity
Use the activity configurables to control how activity entries are recorded and displayed in P4 Code Review activity feeds, streams, and RSS feeds.
We recommend contacting Perforce before enabling the activity configurables in the SWARM_ROOT/data/config.php file. For contact information, see Getting help.
Activity configurables
P4 Code Review records activity entries for reviews, commits, comments, and jobs. These activity entries appear in activity feeds and streams throughout P4 Code Review.
Use the activity configurables in SWARM_ROOT/data/config.php to control which activity entries are recorded.
By default, all activity configurables are set to false.
<?php
// this block should be a peer of 'p4'
'activity' => [
'skip_activity' => false,
'skip_groups' => false,
'skip_projects' => false,
'skip_followers' => false,
'skip_review' => false,
]
Example behavior
-
When
skip_groupsandskip_projectsare set totrue, activity entries are not recorded for associated groups or projects. -
When
skip_groups,skip_projects, andskip_followersare set totrue, activity entries are not recorded for associated groups, projects, or followers.
These configurables affect activity feed recording only. They do not affect email notifications, test integrations, webhooks, review creation, review updates, or other P4 Code Review functionality.
This applies to:
-
skip_activity -
skip_groups -
skip_projects -
skip_followers -
skip_review
skip_activity
Set skip_activity to true to disable activity recording.
When enabled:
-
No new activity entries are created.
-
Activity feeds and streams are not updated.
-
RSS feeds are not updated.
-
All other activity configurables effectively behave as though they are enabled.
This setting affects:
-
The Activity tab and activity feed.
-
User activity streams.
-
Group activity streams.
-
Project activity streams.
-
Follower activity streams.
-
Review activity streams.
-
RSS feeds.
This setting does not affect:
-
Email notifications.
-
Test integrations, such as Jenkins integrations.
-
Webhooks.
-
Review creation.
-
Review updates.
-
Other P4 Code Review functionality.
skip_groups
Set skip_groups to true to prevent activity entries from being recorded for groups.
If groups are used as project members or reviewers, group activity streams are not updated.
skip_projects
Set skip_projects to true to prevent activity entries from being recorded for projects associated with a review.
Project activity streams are not updated.
skip_followers
Set skip_followers to true to prevent activity entries from being recorded for users following the user who performed the activity.
Follower activity streams are not updated.
skip_review
Set skip_review to true to prevent activity entries from being recorded for review participants.
Review activity streams are not updated for users and groups associated with the review.
Reload the configuration cache
Configuration changes take effect only after the P4 Code Review configuration cache is reloaded.
A configuration change only takes effect when the configuration cache has been reloaded. You must be an admin or super user to reload the P4 Code Review config cache.
To reload the configuration:
-
Open the User ID menu. (Top-right corner of P4 Code Review).
-
Select System Information.
-
Open the Cache Info tab.
-
Click Reload Configuration.
If changes to config.php cause the P4 Code Review web interface to become unresponsive, remove the problematic changes and clear the configuration cache manually:
rm -f /opt/perforce/swarm/data/cache/module-config-cache.php