Do not send notification if moderation state has not changed

Created on 22 January 2019, about 6 years ago
Updated 7 January 2024, about 1 year ago

It would be nice if notifications weren't sent out when the moderation state isn't changed. I'd personally have some griping if they were.

🐛 Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

🇺🇸United States el1_1el

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • First commit to issue fork.
  • 🇪🇸Spain tunic Madrid

    #31, it seems you are working on a different issue, something related to coding standards, I would say.

  • First commit to issue fork.
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 10 months ago
    10 pass, 2 fail
  • Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 10 months ago
    Not currently mergeable.
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 10 months ago
    10 pass, 2 fail
  • Pipeline finished with Failed
    10 months ago
    Total: 1375s
    #197005
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 10 months ago
    10 pass, 2 fail
  • Pipeline finished with Failed
    10 months ago
    Total: 145s
    #197047
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 10 months ago
    10 pass, 2 fail
  • Pipeline finished with Failed
    10 months ago
    Total: 158s
    #197057
  • Open in Jenkins → Open on Drupal.org →
    Core: 10.2.x + Environment: PHP 8.1 & MySQL 8
    last update 10 months ago
    14 pass
  • Pipeline finished with Success
    10 months ago
    Total: 194s
    #197085
  • Status changed to Needs review 10 months ago
  • 🇺🇦Ukraine Tyapchyc

    Hello @rob-holmes, @jhedstrom

    Could you please review this?

    Thank you

  • 🇧🇪Belgium thierry.beeckmans

    FYI: it seems like the latest work on MR18 prevents sending notifications if the entity is new, which does not seem to be right. Could be a new entity in draft, but it might also be an entity immediately in review state, needing to have a notification sent.

  • Whilst we use notifications for state change transitions, we also use notifications specifically for same state transitions. This isn't a bug for us, it's currently logically working as per the granular one to one transitions we have setup (and have associated to notifications), and it seems this change would break this current feature for us. For context: these notification emails (for same state to same state) have email body content derived from other entities (through various custom twig functions) associated to this page. Yes, we could add this information onto the authenticated user’s page render, but this doesn't notify all reviewers with this new information (with notifications what this module is all about). We therefore have users editing content (e.g. transition state first_reviewer to state first_reviewer) that still need a notification.

    Even though users could configure multiple transitions (to avoid same to same conditions) (like @drclaw #7 noted earlier) and associate applicable ones to notifications there seems to be appetite for this change. Therefore, as part of this fix can there also be an option to continue to allow same to same transitions. e.g. additional code changes for this issue to add a checkbox option with a label of "Send notification even if transition is to the same state" for each configured notification. In this way those of us who want the transitions to same states to still occur (the number that require this is somewhat unknown as I doubt module users would actively be looking for an issue like this) can have an option to continue to allow them.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 187s
    #436697
  • Pipeline finished with Success
    about 1 month ago
    Total: 161s
    #436705
  • 🇺🇦Ukraine Tyapchyc

    @thierrybeeckmans It is sending a notification for a new entity.
    @glena Added a new option to skip notifications for unchanged states.

Production build 0.71.5 2024