I'm aware that you're currently working on a patch (yes, I looked at the queue!) to try to disable notifications by content type. Since that's not working, and I'm about to update my site with a lot of pictures (which would generate a lot of notifications), what should I do to prevent those notifications from going out? Or can I?

Basically, if I turn off notify, upload the content, and then turn notify back on, will the updates go out? Or do I have to wait for my notification time period to expire, and then turn it back on? Or will it detect there hasn't been a notification sent out about these updates, and it will send them out no matter how long I have notify turned off?

Comments

gisle’s picture

Version: 5.x-1.1 » 7.x-1.0-alpha2
Assigned: Unassigned » gisle
Issue summary: View changes
Status: Active » Fixed

I happy to report that notifications can be disabled by content type.

In addition, in the latest release of the 7.x branch, there has been added a control to the user interface (Truncate queue) that can be used for the effect you want. It truncate the notification queue, so that notifications that up to that point has been queued for being sent on the next cron run, will not be sent.

This issue is fixed for the 7.x -branch. It will not be backported to the 5.x-branch, since that is no longer supported.

For your mass update use case, you can either disable notification for the picture type, or you can use the following procedure:

  1. Put your site in maintenance node to prevent anyone else from adding content while you do this.
  2. Go to the Notify admin interface. Under the Users tab, select Send batch and press Process queue. This will send any pending notifications in the queue.
  3. Do your mass update,
  4. Go to the Notify admin interface. Under the Users tab, select Truncate queue and press Process queue. This will remove any notifications resulting from your mass update from the queue without any notifications being sent.
  5. Put your site back online.

And to answer your questions:

Basically, if I turn off notify, upload the content, and then turn notify back on, will the updates go out?

Yes, they will. Notify builds its queue from all nodes that has been published since the last time a batch was sent or the queue truncated. Toggling Notify on and off have no effect on the queue.

Or do I have to wait for my notification time period to expire, and then turn it back on? Or will it detect there hasn't been a notification sent out about these updates, and it will send them out no matter how long I have notify turned off?

The latter. But now, you can prevent it from going out by truncating the queue.

gisle’s picture

Title: Temporarialy Disabling Notify for a Mass Picture Update? » Disabling Notify temporary (e.g. for a Mass Picture Update)

Fixed typo in title.

Status: Fixed » Closed (fixed)

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

gisle’s picture

Bug: Need to add a spurious comment to remove from queue.