-
Notifications
You must be signed in to change notification settings - Fork 50.6k
feat(editor): Resolve $parameter[...] in UI-only context & add Docker build workflow
#18182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(editor): Resolve $parameter[...] in UI-only context & add Docker build workflow
#18182
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
3 issues found across 4 files • Review in cubic
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.
packages/frontend/editor-ui/src/composables/useWorkflowHelpers.ts
Outdated
Show resolved
Hide resolved
|
Hey @avri-schneider, Thank you for your contribution. We appreciate the time and effort you’ve taken to submit this pull request. Before we can proceed, please ensure the following: Regarding new nodes: If your node integrates with an AI service that you own or represent, please email [email protected] and we will be happy to discuss the best approach. About review timelines: Thank you again for contributing to n8n. |
|
@cubic-dev-ai re-run the review |
@avri-schneider I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
3 issues found across 4 files • Review in cubic
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.
packages/frontend/editor-ui/src/composables/useWorkflowHelpers.ts
Outdated
Show resolved
Hide resolved
00da42f to
bbcd1d3
Compare
|
@cubic-dev-ai re-run the review |
@avri-schneider I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
4 issues found across 4 files • Review in cubic
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.
packages/frontend/editor-ui/src/composables/useWorkflowHelpers.ts
Outdated
Show resolved
Hide resolved
packages/frontend/editor-ui/src/composables/useWorkflowHelpers.ts
Outdated
Show resolved
Hide resolved
packages/frontend/editor-ui/src/composables/useWorkflowHelpers.test.ts
Outdated
Show resolved
Hide resolved
|
@cubic-dev-ai re-run the review |
@avri-schneider I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
2 issues found across 4 files • Review in cubic
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.
|
@cubic-dev-ai re-run the review |
@avri-schneider I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
No issues found across 4 files. Review in cubic
333a73d to
b211eed
Compare
…factor, and Docker build workflow UI enhancements: - Added support for resolving `$parameter[...]` expressions in the Node Details View when no execution data is available. - Falls back to reading values from `activeNode.parameters` when execution context is missing. - Allows preview of resolved parameters without running the workflow. - Added unit tests to verify `$parameter[...]` resolution in UI-only mode. Type-safety improvements: - Removed all unchecked `as` type assertions in parameter resolution. - `resolveParameterFromUiContext` now returns `NodeParameterValue | null` instead of using generic + cast. - Added optional `uiPreviewGuard` to `ResolveParameterOptions` for safe narrowing. - Used function overloads and runtime type guards for `ResolveParameterOptions` vs `ExpressionLocalResolveContext` to comply with “Prefer Typeguards over Type casting”. CI/CD improvements: - Introduced GitHub Actions workflow to build and test n8n Docker images on Linux runners. - Automated container testing before publishing. - Fixed GHCR image deletion by reading `docker-content-digest` header via `curl -sI` instead of incorrect `.config.digest` parsing. - Removed unsupported `build-record` input from docker/build-push-action to prevent runtime errors. - Made workflow fail on type errors. - Pinned GitHub Actions to commit SHAs. - Fixed PNPM version pinning and prevented `latest` tag overwrite in test-docker-build workflow.
b211eed to
6ce41f9
Compare
|
@cubic-dev-ai re-run the review |
@avri-schneider I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
2 issues found across 4 files • Review in cubic
React with 👍 or 👎 to teach cubic. You can also tag @cubic-dev-ai to give feedback, ask questions, or re-run the review.
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
- Replace passive `|| echo` health check with bounded retry loop (120s max) - Fail job if `/healthz` endpoint never becomes healthy - Add log and container state dump on failure for easier debugging - Simplify cleanup by using `docker rm -f` with `trap` and `|| true` - Remove redundant `docker stop` before `rm`
|
@cubic-dev-ai re-run the review |
@avri-schneider I've started the AI code review. It'll take a few minutes to complete. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cubic analysis
No issues found across 4 files. Review in cubic
UI enhancement:
$parameter[...]expressions in the Node Details View when no execution data is available.activeNode.parameterswhen execution context is missing.$parameter[...]resolution in UI-only mode.CI/CD improvements:
Summary
Related Linear tickets, Github issues, and Community forum posts
Review / Merge checklist
release/backport(if the PR is an urgent fix that needs to be backported)