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

feat(core): Link all shared workflows to the personal project of the user it's shared with #8584

Conversation

despairblue
Copy link
Contributor

Summary

This updates the migration to make sure the new projectId fields are not nullable.
That's possible because additionally to the shared credentials (#8564) this PR makes sure that all shared workflows are linked to a project.

Related tickets and issues

https://linear.app/n8n/issue/PAY-1352/make-sure-that-sharedworkflows-always-link-to-a-project

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.

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Feb 8, 2024
Base automatically changed from pay-1247-update-credentials-crud-apis to feature/rbac February 8, 2024 13:31
@despairblue despairblue force-pushed the pay-1352-make-sure-that-sharedworkflows-always-link-to-a-project branch from 7fa8bc2 to d10b08c Compare February 8, 2024 13:40
@despairblue despairblue marked this pull request as ready for review February 8, 2024 14:04
@despairblue despairblue requested a review from a team as a code owner February 8, 2024 14:04
Copy link
Contributor

github-actions bot commented Feb 8, 2024

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

Copy link

cypress bot commented Feb 8, 2024

3 failed and 1 flaky tests on run #4055 ↗︎

3 256 5 0 Flakiness 1

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 despairblue 🗃️ e2e/*
Project: n8n Commit: d10b08c92e
Status: Failed Duration: 03:48 💡
Started: Feb 8, 2024 4:58 PM Ended: Feb 8, 2024 5:02 PM
Failed  27-two-factor-authentication.cy.ts • 3 failed tests

View Output Video

Test Artifacts
Two-factor authentication > Should be able to login with MFA token Test Replay Screenshots Video
Two-factor authentication > Should be able to login with recovery code Test Replay Screenshots Video
Two-factor authentication > Should be able to disable MFA in account Test Replay Screenshots Video
Failed  11-inline-expression-editor.cy.ts • 0 failed tests

View Output

Test Artifacts
Failed  21-community-nodes.cy.ts • 0 failed tests

View Output

Test Artifacts
Failed  1-workflows.cy.ts • 0 failed tests

View Output

Test Artifacts
Failed  17-workflow-tags.cy.ts • 0 failed tests

View Output

Test Artifacts

The first 5 failed specs are shown, see all 25 specs in Cypress Cloud.

Flakiness  cypress/e2e/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 #8584 ↗︎

Copy link
Contributor

github-actions bot commented Feb 8, 2024

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

@despairblue
Copy link
Contributor Author

The e2e test failing are also failing on feature/rbac. So I'm merging this.

We can investigate the tests and fix them in another PR.

@despairblue despairblue merged commit 2c416e5 into feature/rbac Feb 8, 2024
50 of 55 checks passed
@despairblue despairblue deleted the pay-1352-make-sure-that-sharedworkflows-always-link-to-a-project branch February 8, 2024 18:47
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.

3 participants