SimplyStaking / panic

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

Rename feature don't filter by Config Manager #360

Closed rider-cantuaria-eng closed 1 year ago

rider-cantuaria-eng commented 1 year ago

Summary of bug

Rename behavior don't update the monitors image

'As is' behaviour

When rename the sub chain on edit page the config manager don't handle the changes.

'To be' behaviour

Every sub-chain needs to be filtering by config manager, and remove all monitors of the old sub-chain and create new monitors for new subchain.

Steps to reproduce

Edit a sub chain and try rename it

Acceptance criteria

Given: Change the name of sub-chain When: Edit this name on sub-chain page And: Press save button Then: Saves on Database and after that the Change Stream trigger this change to Config Manager, that handle it, remove the monitors of old sub-chain and create a new monitors.