KKcorps opened a new pull request, #15657:
URL: https://github.com/apache/pinot/pull/15657

   This pull request introduces a new feature to manage the pause and resume 
functionality for real-time table consumption in the Pinot Controller UI. It 
includes updates to the UI components, API integrations, and utility methods to 
support this functionality. Key changes include adding new states and effects 
for handling pause/resume actions, integrating new API endpoints, and updating 
the UI to display the pause status.
   
   ### UI Enhancements:
   * Added a toggle switch in `TenantDetails.tsx` to allow users to pause or 
resume real-time table consumption. The switch is conditionally enabled based 
on the current table type and pause status.
   * Introduced status chips (`ACTIVE`, `PAUSED`, `PAUSING`, `RESUMING...`) to 
visually indicate the consumption status of real-time tables. Styles for these 
chips were added to `useStyles`. 
   
   ![Screen Recording 2025-04-28 at 11 27 18 AM 
(1)](https://github.com/user-attachments/assets/5080b0b1-e290-435f-84f6-1270e6a9db51)
   
   ### State Management:
   * Added new state variables in `TenantDetails.tsx` to manage pause/resume 
action progress, polling for status updates, and the pause status data fetched 
from the backend.
   * Implemented a cleanup mechanism using `useEffect` to ensure polling 
intervals are cleared on component unmount.
   
   ### API Integrations:
   * Added new API methods (`pauseConsumption`, `resumeConsumption`, 
`getPauseStatus`) in `index.ts` to interact with the backend endpoints for 
pausing/resuming consumption and fetching pause status.
   * Updated `PinotMethodUtils.ts` to include utility methods 
(`pauseConsumptionOp`, `resumeConsumptionOp`, `getPauseStatusData`) for 
consuming the new API endpoints. 
   
   ### Dropdown Menu for Rebalance Operations:
   * Replaced the "Rebalance Servers" button with a dropdown menu for rebalance 
operations, providing a cleaner and more organized UI.
   
   ![Screenshot 2025-04-28 at 11 29 38 
AM](https://github.com/user-attachments/assets/96f938dd-ea3b-49bd-9c45-48f9547f8655)
   


-- 
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: commits-unsubscr...@pinot.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org
For additional commands, e-mail: commits-h...@pinot.apache.org

Reply via email to