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`.  ### 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.  -- 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