Aias00 opened a new pull request, #1299:
URL: https://github.com/apache/rocketmq-dashboard/pull/1299
## What is the purpose of the change
Disabled alert rules were still serialized into the Prometheus rule YAML
export, so loading that YAML could activate a rule that an operator had
disabled in Studio.
Closes #1298
## Brief changelog
- Filter persisted alert rules by `enabled` before producing Prometheus YAML.
- Preserve the bundled default rule fallback when no enabled configured
rules remain.
- Add mixed enabled/disabled and disabled-only regression coverage.
## Verifying this change
```bash
cd server
JAVA_HOME=$(/usr/libexec/java_home -v 21) PATH="$JAVA_HOME/bin:$PATH" \
mvn -q -Dtest=AlertServiceTest test
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]