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): Allow creating workflows in other projects than the personal one #8662

Merged
merged 8 commits into from
Feb 21, 2024

Conversation

despairblue
Copy link
Contributor

@despairblue despairblue commented Feb 16, 2024

Summary

This allow calling POST /workflows with projectId in the body.

If the field is not there, the workflow will be shared with the user's personal project.

If the field is there, the workflow will be shared with that project, if the user has the permissions to do so. Otherwise the request will fail with a 400 status code.

Related tickets and issues

There is no linear ticket for this as far as I know.

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.

@CLAassistant
Copy link

CLAassistant commented Feb 16, 2024

CLA assistant check
All committers have signed the CLA.

@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Feb 16, 2024
@despairblue despairblue marked this pull request as ready for review February 16, 2024 15:40
@despairblue despairblue marked this pull request as draft February 16, 2024 15:41
Base automatically changed from introduce-scoped-decorator to feature/rbac February 19, 2024 16:20
@despairblue despairblue marked this pull request as ready for review February 20, 2024 15:46
Copy link

cypress bot commented Feb 21, 2024

2 flaky tests on run #4183 ↗︎

0 339 12 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 despairblue 🗃️ e2e/*
Project: n8n Commit: 0b07adb06d
Status: Passed Duration: 03:45 💡
Started: Feb 21, 2024 4:08 PM Ended: Feb 21, 2024 4:11 PM
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  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 #8662 ↗︎

Copy link
Contributor

✅ All Cypress E2E specs passed

@despairblue despairblue merged commit 70e6231 into feature/rbac Feb 21, 2024
34 checks passed
@despairblue despairblue deleted the create-workflow-in-project branch February 21, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/rbac n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants