yx9o opened a new pull request, #1271: URL: https://github.com/apache/rocketmq-dashboard/pull/1271
## What is the purpose of the change Enable the Alert Management page to manage persisted alert rules through backend APIs instead of only showing exported YAML and unavailable-change warnings. ## Brief changelog - Added a structured alert rule YAML export endpoint under `/api/alert-rules/export`. - Added frontend APIs for listing, creating, updating, toggling, deleting, and exporting alert rules. - Wired the Alert Management page to persisted alert rule operations while keeping default YAML rules visible as read-only fallback data when no persisted rules exist. - Preserved scoped broker/cluster expressions when persisted rules include rule scope. - Added backend controller tests and frontend API/page tests for the persisted rule editing flow. ## Verifying this change - `/Users/yx9o/home/env/apache-maven-3.9.1/bin/mvn -Dtest=AlertRuleControllerTest test` - `NODE_OPTIONS="--import=data:text/javascript,import%20dns%20from%20'node:dns';const%20p=dns.promises.lookup.bind(dns.promises);dns.promises.lookup=(h,...a)=>p(h==='localhost'?'127.0.0.1':h,...a);const%20l=dns.lookup.bind(dns);dns.lookup=(h,...a)=>l(h==='localhost'?'127.0.0.1':h,...a);" npx vitest run src/api/alertManagement.test.ts src/pages/studio/__tests__/AlertManagement.test.tsx` - `npm run build` - `npm run lint` - `git diff --check` -- 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]
