Skip to content

Notification for NetDebitCap changes - publish to notifications and send email based on the change #566

Description

@elnyry-sam-k

Goal:
As a Switch
I would like to send email alerts for changes to NetDebitCap or Position adjustments (only adjustments based on Position resets, not changes)
so that participating FSPs and the Hub Operator can be notified of such changes

Tasks:

  • Publish a message to the notifications topic for changes in NetDebitCap from central-ledger api [@vgenev]
  • Publish a message to the notifications topic for initialization of the NetDebitCap from central-ledger api [@vgenev]
  • Update CEP to get message from notifications topic for changes in NetDebitCap limit based on the message published by before task [@vgenev]
  • Make only threshold breach event to work with "spam control oscilation" [@vgenev]
  • Update CEP to get data for Threshould breach adjustment to relay on the limit data from the message instead of making another API call [@vgenev]
  • Update kafka lib code in CEP
  • Update kafka lib code in Email Notifier
  • Update the messages in CEP, Email Notifier and Central Ledger to match the standard message format used in the central-settlement task [@vgenev @bothadeon]
    • Add limit-adjustment action to the Central Ledger topic map [@vgenev]
    • Add Enums for Hub operator as it was done in the Settlements service [@vgenev]
    • Change the code of CEP to react on limit-adjustment event action [@vgenev]
    • Change the code of CEP to produce message with event action dedicated to email notifier [@vgenev]
    • Change the code of the email notifier to react on dedicated messages [@vgenev]
  • Update central-settlements to be able to publish a message to the notifications topic [@ggrg]
  • Define and use standard message format [@ggrg]
  • Publish a message for Position Adjustments based on Settlements [@ggrg]
  • Test functionality and add unit tests for full coverage of settlement [@ggrg]
  • Update current functionality to send email alerts for changes in NetDebitCap based on settlement transfers (but only based on the update notifications published now) [@bothadeon]
  • Format percentage of position left in the email notification to have two decimal places [@vgenev]
  • Edit email text for clarity
  • Tests
  • Update flow diagrams to UML [@bothadeon @HenkKodde @vgenev ]

Acceptance Criteria:

  • An email alert (or notification) is sent to an FSP when a change is made to the Net Debit Cap
  • An email alert (or notification) is sent to an FSP when a Position adjustment (based on Position resets) is done

PRs

Dependencies:

  • [ ]

Accountability:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions