From 50f9367c0ec1e5ad2b9752bcd4c28ff5653d092c Mon Sep 17 00:00:00 2001 From: Abhishek Radhakrishnan Date: Tue, 22 Jul 2025 08:48:24 +0530 Subject: [PATCH] Fix supervisor to tasks view naviagation in the console (#18298) With apache/druid#18082, the supervisor ID is no longer the same as the datasource name, which breaks the navigation from the supervisors page to the corresponding tasks view. To fix the broken filter during navigation, use the groupId filter instead of datasource name when navigating from the supervisors to tasks view. --- web-console/src/console-application.tsx | 2 +- web-console/src/views/supervisors-view/supervisors-view.tsx | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/web-console/src/console-application.tsx b/web-console/src/console-application.tsx index 1af1795b5e75..822429582c90 100644 --- a/web-console/src/console-application.tsx +++ b/web-console/src/console-application.tsx @@ -408,7 +408,7 @@ export class ConsoleApplication extends React.PureComponent< goToDatasource={this.goToDatasources} goToQuery={this.goToQuery} goToStreamingDataLoader={this.goToStreamingDataLoader} - goToTasks={this.goToTasksWithDatasource} + goToTasks={this.goToTasksWithTaskGroupId} capabilities={capabilities} />, ); diff --git a/web-console/src/views/supervisors-view/supervisors-view.tsx b/web-console/src/views/supervisors-view/supervisors-view.tsx index b4656d33471d..4c28493f360b 100644 --- a/web-console/src/views/supervisors-view/supervisors-view.tsx +++ b/web-console/src/views/supervisors-view/supervisors-view.tsx @@ -782,7 +782,10 @@ export class SupervisorsView extends React.PureComponent< switch (supervisor.type) { case 'kafka': case 'kinesis': - goToTasks(supervisor.supervisor_id, `index_${supervisor.type}`); + goToTasks( + `index_${supervisor.type}_${supervisor.supervisor_id}`, + `index_${supervisor.type}`, + ); return; case 'autocompact':