You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by "yyqdbngt (via GitHub)" <gi...@apache.org> on 2026/08/13 04:32:06 UTC

[PR] fix(web): preserve alert rule cluster and broker scope when editing [rocketmq-dashboard]

yyqdbngt opened a new pull request, #2056:
URL: https://github.com/apache/rocketmq-dashboard/pull/2056

   ## What is the purpose of the change
   
   Fix #1986.
   
   The persisted alert-rule editor rendered clusterName and brokerName as a PromQL selector in the expression field, but toAlertRuleRequest later submitted the entire metric{labels} fragment as metric and omitted both scope fields. Editing and saving therefore dropped the cluster and broker scope.
   
   ## Brief changelog
   
   - AlertManagement: parse cluster and broker labels out of the expression when building the update request and preserve them in clusterName/brokerName
   - other labels (e.g. job) are kept in the metric expression
   
   ## How was this patch verified
   
   - npx vitest run src/pages/studio/__tests__/AlertManagement.test.tsx (9 passed)
   - npx tsc -b clean
   - npx eslint . clean
   


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(web): preserve alert rule cluster and broker scope when editing [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins commented on PR #2056:
URL: https://github.com/apache/rocketmq-dashboard/pull/2056#issuecomment-5289156719

   Consolidated into #2098 as part of the batch consolidation of @yyqdbngt's web PRs (merged into rocketmq-studio). The change is preserved in the merged commit.


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix(web): preserve alert rule cluster and broker scope when editing [rocketmq-dashboard]

Posted by "lizhimins (via GitHub)" <gi...@apache.org>.
lizhimins closed pull request #2056: fix(web): preserve alert rule cluster and broker scope when editing
URL: https://github.com/apache/rocketmq-dashboard/pull/2056


-- 
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: commits-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org