Skip to content

Fix supervisor to tasks view naviagation in the console#18298

Merged
abhishekrb19 merged 2 commits intomasterfrom
fix_supervisor_tasks_view
Jul 22, 2025
Merged

Fix supervisor to tasks view naviagation in the console#18298
abhishekrb19 merged 2 commits intomasterfrom
fix_supervisor_tasks_view

Conversation

@abhishekrb19
Copy link
Contributor

@abhishekrb19 abhishekrb19 commented Jul 21, 2025

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.

CleanShot 2025-07-21 at 08 48 38@2x asks view breaks because currently.

Fix:

Use the groupId filter instead of datasource name when navigating from the supervisors to tasks view. This filter is used by other task types too. I think another alternative and cleaner approach would be to add the supervisor ID to the sys.tasks table and filter by it explicitly, but that would be a larger server-side change.

CleanShot 2025-07-21 at 08 49 18@2x

This PR has:

  • been self-reviewed.
  • been tested in a test Druid cluster.

@abhishekrb19 abhishekrb19 added this to the 34.0.0 milestone Jul 21, 2025
@abhishekrb19
Copy link
Contributor Author

Tagging this with the 34.0.0 milestone since it’s a bug introduced with #18082. The fix is small enough that it’s likely worth backporting.

cc: @capistrant

Copy link
Contributor

@kfaraz kfaraz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀
Verified in an embedded test.

@cryptoe
Copy link
Contributor

cryptoe commented Jul 21, 2025

@abhishekrb19 Since #18082 is experimental, I think its okay if we do this patch in Druid 35.
At this point i guess backports like query correctness, regressions or security hotfixes may interrupt the RC process.
I will let @capistrant chime in since he is the release manager.

@capistrant
Copy link
Contributor

I'm inclined to avoid any more creep into Druid34 wherever possible as I was hoping to move on to RC process ASAP. @abhishekrb19 do you have a feel for how impactful this is in the community? Is it just a UX issue with a work-a-round making a few extra clicks?

@abhishekrb19
Copy link
Contributor Author

@abhishekrb19 Since #18082 is experimental, I think its okay if we do this patch in Druid 35.

The broken "Go to tasks" navigation for running tasks from the supervisors page in the console affects all new supervisors created after #18082, not just those with multiple supervisors. It's a UX inconvenience, as the default filters won't return any results, but it can be worked around with a few extra clicks/keystrokes in the task view.

I'm inclined to avoid any more creep into Druid34 wherever possible as I was hoping to move on to RC process ASAP.

@capistrant I've removed the milestone tag, but please feel free to backport it to 34.0.0 as you see fit.

@abhishekrb19 abhishekrb19 removed this from the 34.0.0 milestone Jul 22, 2025
@abhishekrb19 abhishekrb19 merged commit bfc959d into master Jul 22, 2025
10 checks passed
@abhishekrb19 abhishekrb19 deleted the fix_supervisor_tasks_view branch July 22, 2025 03:18
@cryptoe
Copy link
Contributor

cryptoe commented Jul 22, 2025

Thanks @abhishekrb19 for clarifying.
So judging from your statement, it effects all new supervisors so a major ux regression.

@capistrant capistrant added this to the 34.0.0 milestone Jul 22, 2025
capistrant pushed a commit to capistrant/incubator-druid that referenced this pull request Jul 22, 2025
With apache#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.
@capistrant
Copy link
Contributor

@abhishekrb19 Sorry I misunderstood the scope as well. Added back the 34.0.0 label since this is not just experimental supervisor facing

capistrant added a commit that referenced this pull request Jul 22, 2025
)

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

Co-authored-by: Abhishek Radhakrishnan <abhishek.rb19@gmail.com>
ashibhardwaj pushed a commit to ashibhardwaj/druid that referenced this pull request Jul 23, 2025
With apache#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants