Skip to content

fix(topology): load plugin UI for nested tasks on 2.0.x - #21707

Merged
elevatebart merged 1 commit into
releases/v2.0.xfrom
elevate-bot/great-cori-78jhat
Oct 23, 2026
Merged

elevatebart merged 1 commit into
releases/v2.0.xfrom
elevate-bot/great-cori-78jhat

Conversation

@elevatebart

@elevatebart elevatebart commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

🔗 Related Issue

Closes #21688.

✨ Description

On 2.0.x the "show more details" toggle is rendered only when hasExtraDetails finds a topology-details manifest for one of the graph's nodes. resolveTaskTopologyDetails asked /plugins/pluginUiManifest for top-level task types only, so an AI Agent or Script task nested in WorkingDirectory, ForEach, If, Parallel... never got a manifest, never got details, and the toggle stayed hidden.

Backport of the develop fix (#21468): task types (and their runners) are now collected with getAllTasks, which walks every nesting level. getAllTasks did not exist on 2.0.x, so it is added to flowUtils.ts as on develop. The spec is ported to 2.0.x's test layout and fails on the unfixed component (expected [ …(3) ] to include 'io.kestra.plugin.core.log.Log').

Companion PR for 2.1.x (no toggle there, but the same missing details): #21708.

🎨 Frontend Checklist

  • Type checking passes (npm run check:types)
  • Code builds without errors (npm run build), left to CI
  • Unit tests pass (npm run test:unit, 271 files / 2431 tests)
  • Screenshots or video recordings attached showing the UI changes

📝 Additional Notes

The cause is inferred, not reproduced: I could not open the issue screenshot, so this assumes the AI Agent / Script tasks there sit inside a flowable. Two cases this does not cover:

  • a Kubernetes runner forced by a policy never appears in the YAML, so a runner-provided module cannot be looked up from the UI;
  • a top-level task with no toggle would point at the manifest response itself (worth checking the pluginUiManifest call in the browser network tab on cloud).

🤖 Generated with Claude Code

https://claude.ai/code/session_01FJKuKP4fbce323GtKFVQ7D

Plugin UI manifests were requested for top-level tasks only, so an AI
Agent or Script task nested in a flowable had no topology details and
the "show more details" toggle never appeared. Backport of #21468.

Closes #21688.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FJKuKP4fbce323GtKFVQ7D
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
🧪 Frontend Tests ✅ (0 failed, 0 passed, 0 skipped)
TestsPassed ❌️SkippedFailedTime ⏱
Frontend Tests0 ran0 ✅0 ⚠️0 ❌
Frontend Tests0 ran0 ✅0 ⚠️0 ❌
📄 OpenAPI Spec Changes

❌ Failed to generate EE OpenAPI spec (EE branch: develop).

Starting a Gradle Daemon (subsequent builds will be faster)
[test-scheduling] Prioritised in the execution plan: :webserver-ee:generateOpenapiSpec

> Task :processor:processResources
[�[38;5;146mprocessor:processResources�[0m] �[38;5;245mStarted�[0m
[�[38;5;146mprocessor:processResources�[0m] �[32m✔ SUCCESS   83ms�[0m

> Task :model:compileJava FAILED
> Task :model:processResources NO-SOURCE
[�[38;5;114mmodel:compileJava�[0m] �[31m✖ FAILED    18.8s�[0m
gradle/actions: Writing build results to /home/runner/_work/_temp/.gradle-actions/build-results/openapi-diff-1792678760263.json

[Incubating] Problems report is available at: file:///home/runner/_work/kestra-ee/kestra-ee/build/reports/problems/problems-report.html

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':model:compileJava' (registered by plugin class 'org.gradle.api.plugins.JavaBasePlugin').
> Could not resolve all files for configuration ':model:compileClasspath'.
   > Could not find tools.jackson.core:jackson-core:.
     Required by:
         project ':model'
   > Could not find tools.jackson.core:jackson-databind:.
     Required by:
         project ':model'

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights from a Build Scan (powered by Develocity).
> Get more help at https://help.gradle.org.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 10.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/9.8.0/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 34s
2 actionable tasks: 2 executed
🐋 Docker image
ghcr.io/kestra-io/kestra-pr:21707
docker run --pull=always --rm -it -p 8080:8080 --user=root -v /var/run/docker.sock:/var/run/docker.sock -v /tmp:/tmp ghcr.io/kestra-io/kestra-pr:21707 server local

Copy link
Copy Markdown
Contributor Author

Frontend - Tests is red on the Storybook step only; test:unit passed (271 files). The browser run lost its connection before most suites loaded: 10 of 69 files ran, the rest died on Failed to fetch dynamically imported module (TaskRunDetails.vue, the addon-vitest setup file) and Cannot connect to the iframe, right after Vite's optimizer bundled dependencies mid-run. No story assertion failed.

On this exact head (4eeaad59) npm run test:storybook passes locally: 69 files, 261 tests. The diff only adds a type-only SDK import and a getAllTasks helper, nothing that changes the dependency graph Vite optimizes.

I'll re-run the failed job once the workflow run finishes (the API refuses a re-run while other jobs in it are still going).


Generated by Claude Code

@elevatebart
elevatebart requested review from Malaydewangan09 and removed request for RemiBarthe and fdelbrayelle October 22, 2026 14:31
@elevatebart
elevatebart merged commit 70ea7e4 into releases/v2.0.x Oct 23, 2026
@github-project-automation github-project-automation Bot moved this from To review to Done in Pull Requests Oct 23, 2026
@elevatebart
elevatebart deleted the elevate-bot/great-cori-78jhat branch October 23, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants