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

   ### Which Issue(s) This PR Fixes
   
   - Fixes #7416
   
   ### Brief Description
   
   `web/src/pages/studio/Producer.tsx` caught three failed reads and answered 
with an empty success-shaped selector: a failed `GET /api/instances` silently 
emptied the instance picker with no error and no recovery; a failing 
producer-group lookup wiped the previously loaded options without any report; a 
failing topic refresh wiped the loaded topic options (the toast fades, the 
empty selector stays).
   
   This PR applies the treatment the broker-cluster page already uses for the 
same family (#6348, and the consumer page's silent-tick rule): the 
instance-discovery failure renders the persistent failure text with a retry 
button and keeps the selector in error status instead of emptying it; the 
producer-group lookup keeps the previously loaded options and toasts 
`producer.fetchProducerGroupsFailed` (new i18n key); the topic refresh keeps 
the loaded options under its existing toast. A failed read is never repainted 
as an empty result.
   
   Vitest: `src/pages/studio/__tests__/Producer.test.tsx` 21/21 pass (18 
pre-existing + 3 new; the 3 new tests fail against the previous behavior).
   


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