Duansg opened a new pull request, #3825:
URL: https://github.com/apache/hertzbeat/pull/3825

   ## What's changed?
   
   There is currently a timing issue with Angular's change detection, causing 
refreshes to fail. This will prevent both automatic and manual refreshes from 
attempting to retrieve indicator data.
   
   For example:
   
   >  Monitor Real-Time Detail 
   
![bug1](https://github.com/user-attachments/assets/9266b3b0-569f-4fd7-855d-e7eb12d3aecd)
   
   >  Favorites 
   
![bug2](https://github.com/user-attachments/assets/3121ede8-34c2-4b08-9ed2-c20b9254e78a)
   
   
   Modification details: 
   1. Defer critical logic to the next event loop, initialize functionality 
only after the DOM is ready, ensuring the DOM is fully updated.
   
   
   ## Checklist
   
   - [ ]  I have read the [Contributing 
Guide](https://hertzbeat.apache.org/docs/community/code_style_and_quality_guide)
   - [ ]  I have written the necessary doc or comment.
   - [ ]  I have added the necessary unit tests and all cases have passed.
   
   ## Add or update API
   
   - [ ] I have added the necessary [e2e 
tests](https://github.com/apache/hertzbeat/tree/master/e2e) and all cases have 
passed.
   
   > Monitor Real-Time Detail (Auto Refresh)
   
   
![realtime_auto](https://github.com/user-attachments/assets/2ff11d32-3c15-418d-8da9-9bb07d13d4b3)
   
   > Monitor Real-Time Detail (Manual Refresh)
   
   
![realtime_manual](https://github.com/user-attachments/assets/477b71fd-4027-4375-8732-011ff625b79e)
   
   >  Favorites (Auto Refresh)
   
   
![favorites_auto](https://github.com/user-attachments/assets/97618526-a010-45da-8b5a-dfd96ee2a924)
   
   >  Favorites (Manual Refresh)
   
   
![favorites_manual](https://github.com/user-attachments/assets/2365d2fb-10fd-4a96-8a85-2c9c6b3dd582)
   
   >  Favorites - Monitor Historical Chart Detail (Auto Refresh)
   
   
![favorites_history_auto](https://github.com/user-attachments/assets/b8cbc6d5-500d-4cf0-b587-8a251c7c6d0d)
   
   >  Favorites - Monitor Historical Chart Detail (Manual Refresh)
   
   
![favorites_history_manual](https://github.com/user-attachments/assets/7f4ba492-b421-4692-a37d-d85194b66af1)
   
   


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