Closed (fixed)
Project:
DANSE Drupal - Audit - Notification - Subscription - Event
Version:
2.2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
21 Nov 2019 at 12:45 UTC
Updated:
15 Mar 2023 at 15:59 UTC
Jump to comment: Most recent
Comments
Comment #2
jurgenhaasComment #3
jurgenhaasComment #4
jurgenhaasComment #5
carsoncho commentedHi @jurgenhaas, I was curious about the status of this. Is there any help that can be provided to push this forward? I was about to create a separate issue to ask how one might go about achieving a view showing notifications for the currently logged in user.
In my case I would like to utilize the danse_content_moderation module to create Events for users when nodes transition through their various workflow states. To that end, I would like to create a view that shows the user their recent notifications and provide a link to the node revision. I'm not sure how to go about that currently.
It's my understanding that the Event stores a reference to the entity that triggered the creation of the Event as well as including the relevant info as part of the Payload. However, there's no way to utilize the Reference or Payload as a relationship so I don't have a way to create a link to the node's revisions.
In my head I see this as a view of Notifications with a relationship to the Event. The event relationship could then open up a relationship to the Payload's reference (in my case a content moderation state) which in turn can be used for a relationship to get the node's revision. Is there a better way to implement this or is my thinking here correct in your mind.
Comment #6
jurgenhaasHe @carsoncho thanks for pinging me on this. In fact, this one is related to #3284137: Notifications widget which is already assigned to myself together with a bunch of other DANSE issues that are next on my todo list. Shouldn't take long before the implementation will be available in the dev release.
Your description of your expectation is pretty much what we will be doing. And your help would be much appreciated in testing the code as soon as we will make it available.
Comment #7
jurgenhaasClosing this in favour of #3284137: Notifications widget where a first implementation is available for testing.