Comments

This section provides information on how to delay comment notifications, and configure comment threading.

Comment notification delay

By default, comment notifications are delayed to allow reviewers to add or edit comments as they progress through a review without sending a notification for each individual comment on the review. Comment notifications are rolled up into a single notification and sent either manually by the reviewer, or automatically after the notification delay time has been exceeded.

The delay countdown is reset each time the reviewer adds or edits a comment on the review, by default the notification delay time is set to 30 minutes.

Tip

The comment notification delay does not delay the posting of the comments, only the comment notification is delayed.

Note

Comment notifications are only delayed for comments on reviews. Comments on commits or jobs produce notifications immediately.

To change the comment notification delay time, update the SWARM_ROOT/data/config.php file to include the following configuration item within the reviews block:

<?php
'comments' => array(
'notification_delay_time' => 1800, //Default to 30 minutes 1800 seconds
),

notification_delay_time: Specifies the comment notification delay time in seconds.

Comment threading

By default, you can reply to comments, replies are displayed in a thread below the parent comment. Comment thread depth is set to 4 by default, this means you can have up to 4 levels of replies for a parent comment. The Reply link is not displayed for replies at or above the maximum thread depth set for Swarm. If the parent comment is archived, replies are archived with the parent, see Archiving comments. Comment threading depth is set by the max_depth configurable.

Tip

If the thread depth is reduced by a Swarm administrator, earlier replies at a deeper level will continue to be displayed but you cannot reply to them.

To configure comment threading, update the SWARM_ROOT/data/config.php file to include the following configuration item within the reviews block:

<?php
'comments' => array(
'threading' => array(
'max_depth' => 4, // default depth 4, to disable comment threading set to 0
),
),

max_depth: Specifies maximum depth of a comment thread.