Page MenuHomePhabricator

Notify aggregate message groups subscribers of changes
Closed, ResolvedPublic4 Estimated Story Points

Description

If there is a change in a group that's part of an aggregate group, all subscribers of the aggregate group should be notified of the change. After the changes we made for T363902: Notify translators when messages have been changed this is no longer the case.

Special care needs to be taken to avoid sending duplicate notifications to users who might be subscribed to a specific group and a parent aggregate group.

Event Timeline

Change #1074729 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] Send notification to members of aggregate groups

https://gerrit.wikimedia.org/r/1074729

Sample test data:

  • Aggregate group: AG
  • Translatable page: TP
  • 2 Translatable page under aggregate group - AG-TP1, AG-TP2

2 Users:

  • User UR1 I'm subscribed to TP, AG, and AG-TP1
  • User UR2 is subscribed to AG.

Few tests:

  1. Change is made in AG-TP2.
    • UR1 and UR2 should receive a notification that there is a new or updated message in AG.
  2. Change is made in AG-TP1.
    • UR1 should receive a notification that there is a new or updated message in AG-TP1.
    • UR2 should receive a notification that there is a new or updated message in AG.
  3. Change is made in TP:
    • UR1 should receive a notification that there is a new or updated message in TP.
    • UR2 should not receive any notification.

Tested using the test cases above:

Change is made in AG-TP2Change is made in AG-TP1Changes made in TP
image.png (1,916×487 px, 66 KB)
image.png (1,919×523 px, 117 KB)
image.png (1,902×563 px, 82 KB)

Change #1074729 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] Send notification to subscribers of aggregate groups

https://gerrit.wikimedia.org/r/1074729

abi_ changed the task status from Open to In Progress.Sep 30 2024, 4:46 AM

Change #1076825 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] MessageGroupSubscription: Send notifications to aggregate groups

https://gerrit.wikimedia.org/r/1076825

Change #1076825 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] MessageGroupSubscription: Send notifications to aggregate groups

https://gerrit.wikimedia.org/r/1076825

Change #1091017 had a related patch set uploaded (by Abijeet Patro; author: Abijeet Patro):

[mediawiki/extensions/Translate@master] MessageGroupSubscription: Use groupId when queueing messages

https://gerrit.wikimedia.org/r/1091017

Change #1091017 merged by jenkins-bot:

[mediawiki/extensions/Translate@master] MessageGroupSubscription: Use groupId when queuing messages

https://gerrit.wikimedia.org/r/1091017

Tested on translatewiki.net, and this works as expected.