Duplicated messages in "Notification Center"

Created on 16 January 2023, over 1 year ago
Updated 31 January 2023, over 1 year ago

Problem/Motivation

I added a new custom message template message.template.example with this data:

langcode: en
status: true
dependencies:
  config:
    - filter.format.basic_html
  module:
    - activity_logger
third_party_settings:
  activity_logger:
    activity_bundle_entities:
      node-topic: node-topic
    activity_action: create_entitiy_action
    activity_context: platform_activity_context
    activity_destinations:
      notifications: notifications
    activity_create_direct: false
    activity_aggregate: false
    activity_entity_condition: ''
    email_subject: 'Notification from [site:name]'
template: example
label: Example
description: ''
text:
  -
    value: "<p>This is an example template text</p>\r\n"
    format: basic_html
  -
    value: "<p>This is an example template text</p>\r\n"
    format: basic_html
  -
    value: "<p>This is an example template text</p>\r\n"
    format: basic_html
settings:
  'token options':
    clear: false
    'token replace': true
  purge_override: false
  purge_methods: {  }

Then, if I create a topic multiple messages will appear in "Notification Center":

Steps to reproduce

  1. Login as admin
  2. Disable social_advanced_queueand advancedqueue for testing purposes
  3. Import message template configuration provided above
  4. Create a topic
  5. Run cron jobs Activity Creator and Activity Send Email
  6. Visit "Notification Center" page

Proposed resolution

Improve sql query in \Drupal\activity_viewer\Plugin\views\filter\ActivityNotificationVisibilityAccess views filter plugin

Remaining tasks

n/a

User interface changes

n/a

API changes

n/a

Data model changes

n/a

πŸ› Bug report
Status

Fixed

Version

11.7

Component

Code (back-end)

Created by

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

Comments & Activities

Not all content is available!

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

Production build 0.69.0 2024