JiaLiangC opened a new pull request, #4180:
URL: https://github.com/apache/ambari/pull/4180

   Issue: [AMBARI-26634](https://issues.apache.org/jira/browse/AMBARI-26634)
   
   ## What changes were proposed in this pull request?
   
   This follow-up fixes two host navigation races found during runtime 
validation after #4179 was merged. Host detail routes now wait for an explicit 
empty REST result before returning to the Hosts list and ignore realtime events 
until the initial host models exist, matching the legacy Ember model lifecycle. 
Add Host cancellation now clears persisted wizard state, releases wizard 
ownership, and returns through React Router instead of issuing an HTTP request 
to `/main/hosts`. Cleanup failures keep the wizard open so the user can retry.
   
   ## How was this patch tested?
   
   Vitest passed all 188 test files and 991 tests. The Vite production build 
completed successfully. Playwright verified Add Host cancellation against the 
three-node ZooKeeper cluster with no document navigation, HTTP failure, page 
error, or Not Found response. A 33-scenario runtime audit completed with no 
navigation failures, page errors, or request failures; all 12 host detail deep 
links remained stable. The only HTTP 404 was the known optional 
`/api/v1/settings/motd` request.
   
   ```shell
   cd ambari-web/latest
   npm test
   npm run build
   ```
   
   Please review [Ambari Contributing 
Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) 
before opening a pull request.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to