Implement alias selection and summary fetching in incident and live pages
Publish telemt-api gateway Docker image / test (push) Successful in 29s
Publish telemt-api gateway Docker image / build-and-push (push) Successful in 2m2s

- Added functionality to manage and display available aliases for incidents and live updates, enhancing user interaction.
- Refactored alias handling to use checkboxes for selection, improving usability and clarity in the UI.
- Integrated fetching of aggregated summary data to populate available aliases dynamically, ensuring up-to-date information.
- Updated the logic for applying selected aliases in API requests, streamlining data retrieval based on user preferences.
This commit is contained in:
Denozordec
2026-03-30 19:50:42 +07:00
parent 8c8ccce6ee
commit d0d7b8c1e6
3 changed files with 139 additions and 32 deletions
+7
View File
@@ -356,6 +356,13 @@ func (s *statusWriter) WriteHeader(code int) {
s.ResponseWriter.WriteHeader(code)
}
// Flush keeps streaming compatibility (SSE/EventSource) through middleware wrappers.
func (s *statusWriter) Flush() {
if f, ok := s.ResponseWriter.(http.Flusher); ok {
f.Flush()
}
}
// Shutdown idle connections on the shared transport.
func (g *Gateway) Shutdown(ctx context.Context) error {
g.transport.CloseIdleConnections()