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

   ## What is the purpose of the change
   
   This PR adds a Topic deletion impact precheck in RocketMQ Studio.
   
   Before deleting a single Topic or selected Topics in batch, the UI now 
checks visible consumer dependencies, consumer lag, active consumption, message 
statistics, and broker routes. It summarizes the delete risk before 
confirmation and blocks deletion for RocketMQ system Topics to avoid accidental 
removal of internal retry, DLQ, schedule, or system resources.
   
   ## Brief changelog
   
   - Add Topic delete impact analysis for consumer groups, lag, traffic, 
writable routes, and system Topic names.
   - Replace the direct delete confirmation with a precheck modal for single 
and batch Topic deletion.
   - Keep normal high-risk Topic deletion confirmable, while blocking detected 
system Topics.
   - Add focused unit and page tests for the precheck analyzer and delete flow.
   
   ## Verifying this change
   
   - `git diff --check`
   - `npm run test -- --run src/utils/topicDeleteImpact.test.ts 
src/pages/instance/__tests__/TopicPage.test.tsx`
   - `npm run lint -- src/components/TopicDeleteImpactModal.tsx 
src/utils/topicDeleteImpact.ts src/utils/topicDeleteImpact.test.ts 
src/pages/instance/topic.tsx src/pages/instance/__tests__/TopicPage.test.tsx`
   - `npm run build`
   - `npm run test -- --run`


-- 
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]

Reply via email to