Skip to content

Conversation

@avri-schneider
Copy link

UI enhancement:

  • Added support for resolving $parameter[...] expressions in the Node Details View when no execution data is available.
  • Falls back to reading values directly from activeNode.parameters when execution context is missing.
  • Improves editing experience by allowing preview of resolved parameters without running the workflow.
  • Added unit tests to verify $parameter[...] resolution in UI-only mode.

CI/CD improvements:

  • Introduced GitHub Actions workflow to build and test n8n Docker images on Linux runners, avoiding Windows-specific path/symlink issues.
  • Added automated container testing before publishing.

Summary

Related Linear tickets, Github issues, and Community forum posts

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@CLAassistant
Copy link

CLAassistant commented Aug 10, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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.

@n8n-assistant n8n-assistant bot added community Authored by a community member in linear Issue or PR has been created in Linear for internal review labels Aug 10, 2025
@Joffcom
Copy link
Member

Joffcom commented Aug 10, 2025

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:
• Tests are included for any new functionality, logic changes or bug fixes.
• The PR aligns with our contribution guidelines.

Regarding new nodes:
We no longer accept new nodes directly into the core codebase. Instead, we encourage contributors to follow our Community Node Submission Guide to publish nodes independently.

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:
This PR has been added to our internal tracker as "GHC-3643". While we plan to review it, we are currently unable to provide an exact timeframe. Our goal is to begin reviews within a month, but this may change depending on team priorities. We will reach out when the review begins.

Thank you again for contributing to n8n.

@avri-schneider
Copy link
Author

@cubic-dev-ai re-run the review

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Aug 10, 2025

@cubic-dev-ai re-run the review

@avri-schneider I've started the AI code review. It'll take a few minutes to complete.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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.

@avri-schneider avri-schneider force-pushed the feat/editor-resolve-parameter-ui-only branch from 00da42f to bbcd1d3 Compare August 10, 2025 13:08
@avri-schneider
Copy link
Author

@cubic-dev-ai re-run the review

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Aug 10, 2025

@cubic-dev-ai re-run the review

@avri-schneider I've started the AI code review. It'll take a few minutes to complete.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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.

@avri-schneider
Copy link
Author

@cubic-dev-ai re-run the review

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Aug 10, 2025

@cubic-dev-ai re-run the review

@avri-schneider I've started the AI code review. It'll take a few minutes to complete.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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.

@avri-schneider
Copy link
Author

@cubic-dev-ai re-run the review

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Aug 10, 2025

@cubic-dev-ai re-run the review

@avri-schneider I've started the AI code review. It'll take a few minutes to complete.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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

@avri-schneider avri-schneider force-pushed the feat/editor-resolve-parameter-ui-only branch from 333a73d to b211eed Compare August 10, 2025 15:03
…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.
@avri-schneider avri-schneider force-pushed the feat/editor-resolve-parameter-ui-only branch from b211eed to 6ce41f9 Compare August 10, 2025 15:03
@avri-schneider
Copy link
Author

@cubic-dev-ai re-run the review

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Aug 10, 2025

@cubic-dev-ai re-run the review

@avri-schneider I've started the AI code review. It'll take a few minutes to complete.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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.

avri-schneider and others added 2 commits August 10, 2025 18:09
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`
@avri-schneider
Copy link
Author

@cubic-dev-ai re-run the review

@cubic-dev-ai
Copy link
Contributor

cubic-dev-ai bot commented Aug 10, 2025

@cubic-dev-ai re-run the review

@avri-schneider I've started the AI code review. It'll take a few minutes to complete.

Copy link
Contributor

@cubic-dev-ai cubic-dev-ai bot left a 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community Authored by a community member in linear Issue or PR has been created in Linear for internal review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants