umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.42k stars 2.67k forks source link

User subscribed to 'Send to Publish' is not getting notifications for all nodes they are subscribed to #16944

Open tenshi04 opened 1 month ago

tenshi04 commented 1 month ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

8.18.4

Bug summary

If a user subscribes to 'Send to Publish' on a node (node A), they receive Send to Publish notifications, when a Send to Publish happens on that node. If a user subscribes to ANOTHER 'Send to Publish' on a different node (node B), if the node has a lower ID number than the previous node (node A) then notifications work for node B, but not node A anymore

Specifics

No response

Steps to reproduce

If a user subscribes to 'Send to Publish' on a node (node A), they receive Send to Publish notifications, when a Send to Publish happens on that node. If a user subscribes to ANOTHER 'Send to Publish' on a different node (node B), if the node has a lower ID number than the previous node (node A) then notifications work for node B, but not node A anymore

Example.

  1. User (Id=1) subscribes to Send to Publish on Node A with ID 1200
  2. Entry in DB table ([umbracoUser2NodeNotify]) occurs:
  3. UserId = 1, NodeId=1200, Action=H
  4. Send to publish happens on Node A
  5. User gets email notification

Flow 1

  1. User (Id=1) subscribes to Send to Publish on Node B with ID 1100
  2. Entry in DB table ([umbracoUser2NodeNotify]) occurs (entries seem sorted by nodeid asc)
  3. UserId = 1, NodeId=1100, Action=H UserId = 1, NodeId=1200, Action=H
  4. Send to publish happens on Node A
  5. User DOES NOT gets email notification for Node A
  6. Send to publish happens on Node B
  7. User DOES get email notification for Node B

Flow 2

  1. User (Id=1) subscribes to Send to Publish on Node C with ID 1300
  2. Entry in DB table ([umbracoUser2NodeNotify]) occurs
  3. UserId = 1, NodeId=1200, Action=H UserId = 1, NodeId=1300, Action=H
  4. Send to publish happens on Node A
  5. User DOES get email notification for Node A
  6. Send to publish happens on Node C
  7. User DOES NOT get email notification for Node C

So it seems that the first node in the list (sorted by NodeID) has notifications working for that user, but all other notifications with a higher nodeid do not work.

Expected result / actual result

Notification for Send to Publish should work for all nodes that a user is subscribed to.

github-actions[bot] commented 1 month ago

Hi there @tenshi04!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face: