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(core): Always register webhooks on startup #8830

Merged
merged 2 commits into from
Mar 7, 2024

Conversation

krynble
Copy link
Contributor

@krynble krynble commented Mar 7, 2024

Summary

On version 1.15 we stopped deregistering webhooks on shutdown but on 1.28 we also stopped registering on init, given that if a workflow was already active, the database would be populated.

The problem is that users upgrading from < 1.15 to >= 1.28 would end up with webhooks not registered at all, so this changes prevents this from happening by always ensuring webhooks are registered.

Related tickets and issues

https://linear.app/n8n/issue/HELP-479/webhooks-not-working-after-upgrade

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Tests included.

@krynble krynble marked this pull request as ready for review March 7, 2024 08:46
@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Mar 7, 2024
Copy link

cypress bot commented Mar 7, 2024

2 flaky tests on run #4310 ↗︎

0 343 12 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 krynble 🗃️ e2e/*
Project: n8n Commit: faae87760a
Status: Passed Duration: 03:52 💡
Started: Mar 7, 2024 9:07 AM Ended: Mar 7, 2024 9:11 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Test Replay 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

Review all test suite changes for PR #8830 ↗︎

Copy link
Contributor

github-actions bot commented Mar 7, 2024

✅ All Cypress E2E specs passed

@krynble krynble merged commit c6f6254 into master Mar 7, 2024
30 checks passed
@krynble krynble deleted the help-479-webhooks-not-working-after-upgrade branch March 7, 2024 09:25
krynble added a commit that referenced this pull request Mar 7, 2024
@github-actions github-actions bot mentioned this pull request Mar 7, 2024
@janober
Copy link
Member

janober commented Mar 7, 2024

Got released with n8n@1.32.1

krynble added a commit that referenced this pull request Mar 7, 2024
This was referenced Mar 7, 2024
@netroy netroy changed the title fix: Always register webhooks on startup fix(core): Always register webhooks on startup Mar 13, 2024
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 Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants