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): Optionally share credentials used by the workflow when moving the workflow between projects #12524

Conversation

cstuncsik
Copy link
Contributor

@cstuncsik cstuncsik commented Jan 9, 2025

Summary

If a user moves a workflow to a different project, they can optionally choose to share the credentials used by the workflow (if any) with the destination project.
Only the credentials the user has access to will be shared.

Related Linear tickets, Github issues, and Community forum posts

PAY-1745

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system labels Jan 9, 2025
Copy link

cypress bot commented Jan 10, 2025

n8n    Run #9402

Run Properties:  status check passed Passed #9402  •  git commit e94b5cd1fd: 🌳 ADO-3163-folders-navigation 🖥️ browsers:node18.12.0-chrome107 🤖 milorad 🗃️...
Project n8n
Branch Review ADO-3163-folders-navigation
Run status status check passed Passed #9402
Run duration 04m 37s
Commit git commit e94b5cd1fd: 🌳 ADO-3163-folders-navigation 🖥️ browsers:node18.12.0-chrome107 🤖 milorad 🗃️...
Committer Milorad Filipovic
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 3
Tests that did not run due to a developer annotating a test with .skip  Pending 5
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 437
View all changes introduced in this branch ↗︎

@cstuncsik cstuncsik marked this pull request as ready for review January 15, 2025 16:30
despairblue
despairblue previously approved these changes Feb 20, 2025
Copy link
Contributor

@despairblue despairblue left a comment

Choose a reason for hiding this comment

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

Nice job! 🚀

Copy link
Contributor

Copy link
Contributor

✅ All Cypress E2E specs passed

r00gm
r00gm previously approved these changes Feb 20, 2025
Copy link
Contributor

Copy link
Contributor

✅ All Cypress E2E specs passed

@@ -402,11 +417,10 @@ export class WorkflowsController {
);
}

@Licensed('feat:sharing')
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@despairblue it fails because of this change
Isn't it doing the same?
If I roll it back it works

Copy link
Contributor

Choose a reason for hiding this comment

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

This was correct. I don't know why the tests passed at all. The tests are in the none-ee file. The requests should rightfully be 404s not 200s.

The tests should be in: packages/cli/test/integration/workflows/workflows.controller.ee.test.ts, or actually even in the service test file, since they test service logic, not controller logic.

@cstuncsik cstuncsik dismissed stale reviews from r00gm and despairblue via 948b8fe February 20, 2025 15:24
despairblue
despairblue previously approved these changes Feb 20, 2025
Copy link
Contributor

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link
Contributor

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link
Contributor

Copy link
Contributor

✅ All Cypress E2E specs passed

@cstuncsik cstuncsik merged commit 7bd83d7 into master Feb 21, 2025
72 of 78 checks passed
@cstuncsik cstuncsik deleted the pay-1745-update-moved-workflow-to-include-option-to-share-credentials branch February 21, 2025 10:05
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 ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants