Skip to main content

🔔 Alerts

We want to notify beekeeper in various cases/features. For that we need a generic way to create and list alerts. We want to store alerts in DB and display them in UI.

User story - configuring alert channels

User story - receiving a queen missing alert

  • User uploads all of the hive frames
  • All frames are processed
  • No queen is detected
    • Alert is generated

    • alert is shown in the header

    • On click, alert popup appears

  • Depending on alert channels, it is delivered to the user
  • Once user has acted upon this alert, user approves an alert effectively hiding/deleting it

Suggested technical solution

Create new alerts microservice

  • add new DB that it will use
  • add graphql API that it will expose
    • add createAlert mutation
    • add alerts query
  • service acts as a proxy. Actual alert generation should be owned by other services that contain the business logic