apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.12k stars 897 forks source link

[BUG] Deleting the component associated with the event prompts an error #2147

Closed LiuTianyou closed 5 days ago

LiuTianyou commented 6 days ago

Is there an existing issue for this?

Current Behavior

If a component is associated with an incident, errors will be displayed when deleting the component. The component can be deleted normally after deleting the corresponding incident.

image

Expected Behavior

Prompt the user that the current component cannot be deleted due to the incident. Prompt the user to delete the corresponding incident before deleting the component

Steps To Reproduce

No response

Environment

HertzBeat version(s):1.6.0

Debug logs

No response

Anything else?

No response

LiuTianyou commented 6 days ago

pls assign it to me, I can fix it.