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] Events are created when Comments are added to Idea #175

Open
1 task
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 create events upon Idea comments.

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

  • entityId, numeric id of the business-level entity (IdeaCard)
  • entityType, enum value of business-level entity type (IdeaCard only for now)
  • title, top-level description of event
  • content, details of the event
  • createdDateTime, date when event was created

When user creates a comment to an existing Idea, event is generated with the Title "{userName} commented on {ideaName}" and content will be comment itself.

Note: entityId and entityType will still point to IdeaCard entity
Events endpoints should not be available through API.

Acceptance Criteria

Generated by Zenhub AI

  • Scenario: Create event when comment is added to an idea
    • Given a comment is added to an idea
    • When an event is created for the comment
    • Then the event should have the following fields:
      • entityId: the IdeaCard id
      • entityType: IdeaCard
      • title: "{userName} commented on {ideaName}"
      • content: the comment text
      • createdDateTime: the date when the event was created
@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