Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Platform] [User Notifications][TUS] Notifications are generated asynchronously after event is created #177

Open
2 tasks
becevka opened this issue Apr 28, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request Platform

Comments

@becevka
Copy link
Contributor

becevka commented Apr 28, 2024

Summary
In order to support User Notifications, we need to generate them for the subscribed users after event was created.

Describe the solution you'd like
Notifications Collection should consist of the following fields:

  • event, reference to Event Collection
  • user, reference to the user subscribed to Business Entity
  • createdDateTime, date when event was created
  • readDateTime, date when event was marked as read and switched to be inactive

When Event is created, async routine is invoked to generate Notifications as follows:

  • based on event.entityId and event.entityType, select all users from Subscription Collection with 'active' subscriptions.
  • for each user, create new Notification pointing to new event and selected user, keep readDateTime as null.

Acceptance Criteria

Generated by Zenhub AI

  • Scenario: Notifications are generated asynchronously after event creation
    • Given an event is created
    • When the event is created
    • Then an async routine should be invoked to generate notifications for subscribed users
  • Scenario: Notifications Collection
    • Given a Notifications Collection exists
    • When a new notification is generated
    • Then the Notifications Collection should contain the following fields:
      • event, reference to Event Collection
      • user, reference to the user subscribed to Business Entity
      • createdDateTime, date when event was created
      • readDateTime, date when event was marked as read and switched to be inactive
@becevka becevka added the enhancement New feature or request label Apr 28, 2024
@zar92 zar92 added the Platform label Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Platform
Projects
None yet
Development

No branches or pull requests

3 participants