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 Idea is created or updated #174

Open
3 tasks
becevka opened this issue Apr 28, 2024 · 0 comments
Open
3 tasks
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 creation or updates.

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 Idea, event is generated with the Title "Idea Submitted Successfully" and content '{userName} added new idea, {ideaName} - {tagline} '.

When idea is updated and status was changed, event is generated with the Title "Idea {ideaName} is {status}" and content '{userName} has updated idea {ideaName} - {status}'

When idea is updated but no status changed, event is generated with the Title "Idea {ideaName} was updated" and content '{userName} has updated idea {ideaName}'

Events endpoints should not be available through API.

Acceptance Criteria

Generated by Zenhub AI

  • Scenario: Event creation upon Idea creation
    • Given a new Idea is created
    • When the Idea is successfully created
    • Then an event with title "Idea Submitted Successfully" and content "{userName} added new idea, {ideaName} - {tagline} " is created
  • Scenario: Event creation upon Idea status change
    • Given an Idea has its status changed
    • When the Idea status is successfully changed
    • Then an event with title "Idea {ideaName} is {status}" and content "{userName} has updated idea {ideaName} - {status}" is created
  • Scenario: Event creation upon Idea update without status change
    • Given an Idea has its content updated without changing the status
    • When the Idea update is successfully made
    • Then an event with title "Idea {ideaName} was updated" and content "{userName} has updated idea {ideaName}" is 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