123123213weqw opened a new pull request, #2021:
URL: https://github.com/apache/rocketmq-dashboard/pull/2021

   ## What is the purpose of the change
   
   Fix #2016.
   
   The Message Explorer loaded Topic options for the selected instance before a 
query could run. When that request failed, the page silently replaced the 
options with an empty list, so an unavailable instance, ACL denial or network 
failure looked like an instance with no Topics.
   
   ## Brief changelog
   
   - message.tsx: keep a topicError state, set it when the Topic list request 
fails and clear it on success
   - render an error Alert above the query card so the real runtime failure is 
visible instead of an empty Topic selector
   
   ## How was this patch verified
   
   - npx vitest run src/pages/instance/__tests__/MessagePage.test.tsx 
src/pages/instance/__tests__/MessagePageAsyncState.test.tsx (24 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to