Skip to content
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

Ado-2898-execute-workflow-node-add-workflow-inputs-parameter #11887

Conversation

igatanasov
Copy link

@igatanasov igatanasov commented Nov 25, 2024

Summary

• Added new backend endpoint and load context for workflow parameters.
• Updated resource mapper component to load workflow input mapper.
• Extracted common logic from the execute workflow trigger node and reused it in the execute workflow node.

TODO:

Video: https://www.loom.com/share/06bdad96daa24e83809ebbe4191915d5

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/ADO-2950/add-resource-mapper-option-to-handle-workflow-inputs

https://linear.app/n8n/issue/ADO-2898/execute-workflow-node-add-workflow-inputs-parameter

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)

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels Nov 25, 2024
Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

If we need to bump the node version please do so now so we have it in the diff and don't forget about it later. LGTM otherwise.

@igatanasov
Copy link
Author

If we need to bump the node version please do so now so we have it in the diff and don't forget about it later. LGTM otherwise.

Thanks @CharlieKolb , nice catch. we have already bump the node version with prev node changes.

@igatanasov igatanasov force-pushed the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch from 9dfd49c to 7f436a9 Compare November 27, 2024 09:25
@igatanasov igatanasov requested a review from netroy November 28, 2024 12:44
@igatanasov
Copy link
Author

@netroy this is the branch that I will base the work for workflowInputs

Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

Just some quick notes since I already wrote them before our call :D

@igatanasov igatanasov added feature Large self-contained feature core Enhancement outside /nodes-base and /editor-ui labels Dec 3, 2024
@CharlieKolb CharlieKolb self-requested a review December 4, 2024 08:16
@igatanasov igatanasov force-pushed the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch from 4bc4d04 to dacd190 Compare December 4, 2024 16:36
@igatanasov igatanasov force-pushed the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch from 2f3b43b to c83bbcf Compare December 4, 2024 21:40
@igatanasov igatanasov marked this pull request as ready for review December 4, 2024 22:18
@igatanasov igatanasov force-pushed the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch from 2156d79 to 44400a1 Compare December 4, 2024 23:17
@igatanasov igatanasov force-pushed the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch from 44400a1 to f5b7ecd Compare December 4, 2024 23:23
Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

Left some initial nitpicks, will try the feature now

@CharlieKolb CharlieKolb self-requested a review December 5, 2024 13:58
Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

Is the actual expression mapping expected to work already? The value I provide is ignored and the inputData is still used directly, unless I'm holding it wrong :D Type version is 1.2, the latest.

Ivan Atanasov added 2 commits December 5, 2024 16:14
Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

Requesting changes as github UI is bugged and my ancient approval is still repeated on every comment 🙈

Copy link
Contributor

@MiloradFilipovic MiloradFilipovic left a comment

Choose a reason for hiding this comment

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

Left a minor comment. Will test the feature once more when I pull in the latest changes and leave further comments if I have any

Copy link
Contributor

@CharlieKolb CharlieKolb left a comment

Choose a reason for hiding this comment

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

Looks ready for the feature branch from my side, really nice work handling the complexity 🙌

@igatanasov igatanasov force-pushed the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch from 613b9bd to 5640c7b Compare December 5, 2024 16:03
@igatanasov igatanasov force-pushed the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch from 6e21c80 to 9e8fddc Compare December 6, 2024 07:55
@igatanasov igatanasov merged commit c31bf0a into feature-sub-workflow-inputs Dec 6, 2024
20 checks passed
@igatanasov igatanasov deleted the ado-2898-execute-workflow-node-add-workflow-inputs-parameter branch December 6, 2024 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui feature Large self-contained feature n8n team Authored by the n8n team node/improvement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants