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

   ## What is the purpose of the change
   
   Reset Metrics Explorer to the default Prometheus source when the selected 
data source is no longer available for the active instance, so metric refreshes 
do not keep using an out-of-scope data source or leave the chart cleared.
   
   ## Brief changelog
   
   - Track the data sources available to the current instance.
   - Fall back to the default source when the selected data source leaves the 
active instance scope.
   - Clear temporary data-source credentials and pending auth state during 
fallback.
   - Add regression coverage for instance-scope datasource fallback.
   
   ## Verifying this change
   
   - npm test -- src/components/__tests__/MetricsExplorer.test.tsx
   - npm run lint
   - npm run build
   - npx prettier --check src/components/MetricsExplorer.tsx 
src/components/__tests__/MetricsExplorer.test.tsx
   - 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]

Reply via email to