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

chore: Add unit tests for findTriggerForPartialExecution #13541

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

netroy
Copy link
Member

@netroy netroy commented Feb 26, 2025

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)

@netroy netroy requested a review from despairblue February 26, 2025 16:03
Copy link

codecov bot commented Feb 26, 2025

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...cution-utils/find-trigger-for-partial-execution.ts 90.00% 1 Missing ⚠️

📢 Thoughts on this report? Let us know!

Comment on lines +63 to +65
// Prioritize webhook triggers over other parent triggers
const webhookTriggers = parentTriggers.filter((trigger) => trigger.type.endsWith('webhook'));
return webhookTriggers.length > 0 ? webhookTriggers[0] : parentTriggers[0];
Copy link
Member Author

Choose a reason for hiding this comment

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

not sure about this bit. I vaguely remember something along these lines from a couple of years ago, but can't find any discussions.
Let me know if you prefer to revert these lines, and delete the tests covering this.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Feb 26, 2025
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 n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant