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(editor): Skip disabled nodes when detecting workflow issues #9610

Merged
merged 3 commits into from
Jun 4, 2024

Conversation

MiloradFilipovic
Copy link
Contributor

@MiloradFilipovic MiloradFilipovic commented Jun 4, 2024

Summary

Not counting disabled nodes when detecting workflow errors. This should fix a bug where workflows cannot be activated after nodes with errors are disabled.

EDIT: Starting from this PR, the workflow settings e2e tests started failing. Reason is that we are getting the total workflow count by counting workflow cards. Unfortunately, the recycler component will not render cards outside of viewport so that is not giving us accurate count. I've changed it to use response from /workflows endpoint.

Related tickets and issues

Fixes ADO-1658

Review / Merge checklist

  • PR title and summary are descriptive. Remember, the title automatically goes into the changelog. Use (no-changelog) otherwise. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.

    A bug is not considered fixed, unless a test is added to prevent it from happening again.
    A feature is not complete without tests.

@MiloradFilipovic MiloradFilipovic changed the title Ado 1658 skip disabled nodes issues fix(editor): Skip disabled nodes when detecting workflow issues Jun 4, 2024
OlegIvaniv
OlegIvaniv previously approved these changes Jun 4, 2024
@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jun 4, 2024
Copy link
Contributor

github-actions bot commented Jun 4, 2024

⚠️ Some Cypress E2E specs are failing, please fix them before merging

Copy link

cypress bot commented Jun 4, 2024

2 flaky tests on run #5306 ↗︎

0 356 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 MiloradFilipovic 🗃️ e2e/*
Project: n8n Commit: 9fa049b964
Status: Passed Duration: 05:06 💡
Started: Jun 4, 2024 1:23 PM Ended: Jun 4, 2024 1:28 PM
Flakiness  cypress/e2e/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

Review all test suite changes for PR #9610 ↗︎

@MiloradFilipovic MiloradFilipovic self-assigned this Jun 4, 2024
Copy link
Contributor

github-actions bot commented Jun 4, 2024

✅ All Cypress E2E specs passed

@MiloradFilipovic MiloradFilipovic merged commit 245c63f into master Jun 4, 2024
29 checks passed
@MiloradFilipovic MiloradFilipovic deleted the ADO-1658-skip-disabled-nodes-issues branch June 4, 2024 11:26
@github-actions github-actions bot mentioned this pull request Jun 5, 2024
@janober
Copy link
Member

janober commented Jun 5, 2024

Got released with n8n@1.45.0

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 Released ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants