shauryachats opened a new pull request, #16424:
URL: https://github.com/apache/pinot/pull/16424
## Summary
This PR introduces support for retrieving and displaying enabled time series
query languages configured at the broker level. Key updates include:
- **Broker API**: Added a new REST endpoint `/timeseries/languages` in
PinotBrokerTimeSeriesConfigResource to return the list of configured timeseries
languages from broker settings.
- **Controller Proxy API**: Extended `PinotBrokerRestletResource` with
`/brokers/timeseries/languages` to fetch languages from a broker instance via
HTTP, with error handling and fallback logic.
- **UI Enhancements:** Updated the `TimeseriesQueryPage` React component to
dynamically fetch and display supported timeseries query languages:
- Query editor and form controls are disabled when no languages are
enabled.
- A warning banner is shown if no languages are configured.
- Language selector dropdown is populated based on broker response.
- **Client API**: Added `getTimeSeriesLanguages()` to `requests/index.ts`
for UI to call the new controller endpoint.
Since the response from the broker can be variable, the UI components are
not hidden but disabled for editing.
## Testing
Verified for both cases where timeseries is enabled and not enabled.
### Timeseries Enabled UI
<img width="1784" height="1039" alt="Screenshot 2025-07-24 at 4 27 30 PM"
src="https://github.com/user-attachments/assets/bbb35f7f-ce89-43fa-97cd-eab3450cbd7a"
/>
### Timeseries Disabled UI
<img width="1783" height="1038" alt="Screenshot 2025-07-24 at 4 34 33 PM"
src="https://github.com/user-attachments/assets/eb91ee7f-ac05-47af-8d71-e3682ec689cf"
/>
--
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]