SimplyStaking / panic

PANIC Monitoring and Alerting For Blockchains
Apache License 2.0
82 stars 31 forks source link

Alert Router must latest & updated mappings #374

Closed itsciccio closed 1 year ago

itsciccio commented 1 year ago

Summary of bug

'As is' behaviour

PANIC Alerter currently keeps the same mapping when no configs are recieved.

'To be' behaviour

When a channel is either deleted/removed from a configuration, the router must not include this mapping in the configuration.

Steps to reproduce

1) Created a valid Substrate Polkadot chain on PANIC with a single valid Slack configuration. 2) Started getting alerts, so works as intended. 3) Removed the channel from this config. 4) alert_router.log still shows the following after recieving a new alert:

19/10/2022 01:46:28 PM - AlertRouter - INFO - ['634fff30a7d1b84a6b792d88']
19/10/2022 01:47:18 PM - AlertRouter - INFO - Obtaining list of channels to alert
19/10/2022 01:47:18 PM - AlertRouter - INFO - ['634fff30a7d1b84a6b792d88']
19/10/2022 01:49:38 PM - AlertRouter - INFO - Obtaining list of channels to alert
19/10/2022 01:49:38 PM - AlertRouter - INFO - ['634fff30a7d1b84a6b792d88']

Steps to fix

Acceptance criteria

Given: PANIC running with a configuration including a channel When: Channel removed from the config Then: Alert router receives the correct updated mapping

itsciccio commented 1 year ago

No bug was found. Closing.