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

   ## Summary
   
   - invalidate an in-flight Resource Plan preview when the selected instance 
or resource bundle changes
   - let only the latest preview request update results, notifications, and 
loading state
   - hide plans whose instance no longer matches the active instance
   - add a regression test that completes an obsolete request after the latest 
request
   
   ## Root cause
   
   `ResourcePlanPage` used a single loading flag and accepted every 
asynchronous preview completion. A slower request for an older instance or 
bundle could therefore overwrite newer results and clear the latest request's 
loading state.
   
   ## User impact
   
   The page now keeps preview results aligned with the currently selected 
instance and current JSON bundle, even when requests finish out of order.
   
   Closes #1580
   
   ## Validation
   
   - `npm test -- --run src/pages/instance/__tests__/ResourcePlanPage.test.tsx` 
(2 tests passed)
   - `npx eslint src/pages/instance/resourcePlan.tsx 
src/pages/instance/__tests__/ResourcePlanPage.test.tsx --max-warnings=0`
   - `npx prettier --check src/pages/instance/resourcePlan.tsx 
src/pages/instance/__tests__/ResourcePlanPage.test.tsx`
   - `npm run build`


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