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

fix(Schedule Trigger Node): Default to 0 minute if falsy on hourly run #9146

Conversation

michael-radency
Copy link
Contributor

Summary

If you add a schedule trigger node and set it to hourly and delete the minute field content the node will run every minute.

Related tickets and issues

https://linear.app/n8n/issue/NODE-1244/schedule-trigger-node-missing-minute-field-on-hourly-run

@michael-radency michael-radency added n8n team Authored by the n8n team node/issue Issue with a node labels Apr 16, 2024
packages/nodes-base/nodes/Schedule/ScheduleTrigger.node.ts Outdated Show resolved Hide resolved
const minute = interval[i].triggerAtMinute?.toString() as string;
let minute = interval[i].triggerAtMinute?.toString() as string;
if (!minute && nodeVersion >= 1.2) {
minute = '0';
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't the same issue exist in a lot of other places in the Schedule node? You can delete any number field, and we don't set a fallback

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point, will push update

Copy link
Member

@elsmr elsmr left a comment

Choose a reason for hiding this comment

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

Great, thanks for updating 🎉

Copy link

cypress bot commented Apr 18, 2024

4 flaky tests on run #4713 ↗︎

0 354 12 0 Flakiness 4

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 michael-radency 🗃️ e2e/*
Project: n8n Commit: 02b28344ad
Status: Passed Duration: 04:20 💡
Started: Apr 18, 2024 9:18 AM Ended: Apr 18, 2024 9:22 AM
Flakiness  5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video
Flakiness  17-sharing.cy.ts • 1 flaky test

View Output Video

Test Artifacts
Sharing > should work for admin role on credentials created by others (also can share it with themselves) Test Replay Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9146 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@michael-radency michael-radency merged commit d756609 into master Apr 18, 2024
28 checks passed
@michael-radency michael-radency deleted the node-1244-schedule-trigger-node-missing-minute-field-on-hourly-run branch April 18, 2024 09:57
@github-actions github-actions bot mentioned this pull request Apr 18, 2024
@janober
Copy link
Member

janober commented Apr 18, 2024

Got released with n8n@1.38.1

@github-actions github-actions bot mentioned this pull request Apr 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/issue Issue with a node Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants