feat: Migrate integer primary keys to nanoids (#6345)

* first commit for postgres migration

* (not working)

* sqlite migration

* quicksave

* fix tests

* fix pg test

* fix postgres

* fix variables import

* fix execution saving

* add user settings fix

* change migration to single lines

* patch preferences endpoint

* cleanup

* improve variable import

* cleanup unusued code

* Update packages/cli/src/PublicApi/v1/handlers/workflows/workflows.handler.ts

Co-authored-by: Omar Ajoue <krynble@gmail.com>

* address review notes

* fix var update/import

* refactor: Separate execution data to its own table (#6323)

* wip: Temporary migration process

* refactor: Create boilerplate repository methods for executions

* fix: Lint issues

* refactor: Added search endpoint to repository

* refactor: Make the execution list work again

* wip: Updating how we create and update executions everywhere

* fix: Lint issues and remove most of the direct access to execution model

* refactor: Remove includeWorkflowData flag and fix more tests

* fix: Lint issues

* fix: Fixed ordering of executions for FE, removed transaction when saving execution and removed unnecessary update

* refactor: Add comment about missing feature

* refactor: Refactor counting executions

* refactor: Add migration for other dbms and fix issues found

* refactor: Fix lint issues

* refactor: Remove unnecessary comment and auto inject repo to internal hooks

* refactor: remove type assertion

* fix: Fix broken tests

* fix: Remove unnecessary import

* Remove unnecessary toString() call

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* fix: Address comments after review

* refactor: Remove unused import

* fix: Lint issues

* fix: Add correct migration files

---------

Co-authored-by: Iván Ovejero <ivov.src@gmail.com>

* remove null values from credential export

* fix: Fix an issue with queue mode where all running execution would be returned

* fix: Update n8n node to allow for workflow ids with letters

* set upstream on set branch

* remove typo

* add nodeAccess to credentials

* fix unsaved run check for undefined id

* fix(core): Rename version control feature to source control (#6480)

* rename versionControl to sourceControl

* fix source control tooltip wording

---------

Co-authored-by: Romain Minaud <romain.minaud@gmail.com>

* fix(editor): Pay 548 hide the set up version control button (#6485)

* feat(DebugHelper Node): Fix and include in main app (#6406)

* improve node a bit

* fixing continueOnFail() ton contain error in json

* improve pairedItem

* fix random data returning object results

* fix nanoId length typo

* update pnpm-lock file

---------

Co-authored-by: Marcus <marcus@n8n.io>

* fix(editor): Remove setup source control CTA button

* fix(editor): Remove setup source control CTA button

---------

Co-authored-by: Michael Auerswald <michael.auerswald@gmail.com>
Co-authored-by: Marcus <marcus@n8n.io>

* fix(editor): Update source control docs links (#6488)

* feat(DebugHelper Node): Fix and include in main app (#6406)

* improve node a bit

* fixing continueOnFail() ton contain error in json

* improve pairedItem

* fix random data returning object results

* fix nanoId length typo

* update pnpm-lock file

---------

Co-authored-by: Marcus <marcus@n8n.io>

* feat(editor): Replace root events with event bus events (no-changelog) (#6454)

* feat: replace root events with event bus events

* fix: prevent cypress from replacing global with globalThis in import path

* feat: remove emitter mixin

* fix: replace component events with event bus

* fix: fix linting issue

* fix: fix breaking expression switch

* chore: prettify ndv e2e suite code

* fix(editor): Update source control docs links

---------

Co-authored-by: Michael Auerswald <michael.auerswald@gmail.com>
Co-authored-by: Marcus <marcus@n8n.io>
Co-authored-by: Alex Grozav <alex@grozav.com>

* fix tag endpoint regex

---------

Co-authored-by: Omar Ajoue <krynble@gmail.com>
Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
Co-authored-by: Romain Minaud <romain.minaud@gmail.com>
Co-authored-by: Csaba Tuncsik <csaba@n8n.io>
Co-authored-by: Marcus <marcus@n8n.io>
Co-authored-by: Alex Grozav <alex@grozav.com>
This commit is contained in:
Michael Auerswald
2023-06-20 19:13:18 +02:00
committed by GitHub
parent da330f0648
commit c3ba0123ad
156 changed files with 3499 additions and 2594 deletions

View File

@@ -1326,88 +1326,86 @@
"settings.usageAndPlan.license.activation.success.message": "Your {name} {type} has been successfully activated.",
"settings.usageAndPlan.desktop.title": "Upgrade to n8n Cloud for the full experience",
"settings.usageAndPlan.desktop.description": "Cloud plans allow you to collaborate with teammates. Plus you dont need to leave this app open all the time for your workflows to run.",
"settings.versionControl.title": "Version Control",
"settings.versionControl.actionBox.title": "Available on Enterprise plan",
"settings.versionControl.actionBox.description": "Use Version Control to connect your instance to an external Git repository to backup and track changes made to your workflows, variables, and credentials. With Version Control you can also sync instances across multiple environments (development, production...).",
"settings.versionControl.actionBox.buttonText": "See plans",
"settings.versionControl.description": "Versioning allows you to connect your n8n instance to a Git branch of a repository. You can connect your branches to multiples n8n instances to create a multi environments setup. {link}",
"settings.versionControl.description.link": "Learn how to set up versioning and environments in n8n.",
"settings.versionControl.gitConfig": "Git configuration",
"settings.versionControl.repoUrl": "Git repository URL (SSH)",
"settings.versionControl.repoUrlPlaceholder": "e.g. git@github.com:my-team/my-repository",
"settings.versionControl.repoUrlDescription": "The SSH url of your Git repository",
"settings.versionControl.repoUrlInvalid": "The Git repository URL is not valid",
"settings.versionControl.authorName": "Commit author name",
"settings.versionControl.authorEmail": "Commit author email",
"settings.versionControl.authorEmailInvalid": "The provided email is not correct",
"settings.versionControl.sshKey": "SSH Key",
"settings.versionControl.sshKeyDescription": "Paste the SSH key in your git repository settings. {link}.",
"settings.versionControl.sshKeyDescriptionLink": "More info",
"settings.versionControl.refreshSshKey": "Refresh Key",
"settings.versionControl.refreshSshKey.successful.title": "SSH Key refreshed successfully",
"settings.versionControl.refreshSshKey.error.title": "SSH Key refresh failed",
"settings.versionControl.button.continue": "Continue",
"settings.versionControl.button.connect": "Connect",
"settings.versionControl.button.disconnect": "Disconnect Git",
"settings.versionControl.button.save": "Save settings",
"settings.versionControl.instanceSettings": "Instance settings",
"settings.versionControl.branches": "Branch connected to this n8n instance",
"settings.versionControl.readonly": "{bold}: prevent editing workflows (recommended for production environments). {link}",
"settings.versionControl.readonly.bold": "Read-only instance",
"settings.versionControl.readonly.link": "Learn more.",
"settings.versionControl.color": "Color",
"settings.versionControl.switchBranch.title": "Switch to {branch} branch",
"settings.versionControl.switchBranch.description": "Please confirm you want to switch the current n8n instance to the branch: {branch}",
"settings.versionControl.sync.prompt.title": "Sync changes in {branch} branch",
"settings.versionControl.sync.prompt.description": "All the changes on your n8n instances will be synced with branch {branch} on the remote git repository. The following git sequence will be executed: pull > commit > push.",
"settings.versionControl.sync.prompt.placeholder": "Commit message",
"settings.versionControl.sync.prompt.error": "Please enter a commit message",
"settings.versionControl.button.push": "Push",
"settings.versionControl.button.pull": "Pull",
"settings.versionControl.button.setup": "Set up version control",
"settings.versionControl.button.setup.tooltip": "Version control is available on this instance. Go to the settings page to connect to your Git repository.",
"settings.versionControl.modals.push.title": "Commit and push changes",
"settings.versionControl.modals.push.description": "Select the files you want to stage in your commit and add a commit message. ",
"settings.versionControl.modals.push.description.workflows": "Since you are on the Workflows page, the modified workflow files have been pre-selected for you.",
"settings.versionControl.modals.push.description.workflow": "Since you are currently editing a Workflow, the modified workflow file has been pre-selected for you.",
"settings.versionControl.modals.push.description.credentials": "Since you are on the Credentials page, the modified credential files have been pre-selected for you.",
"settings.versionControl.modals.push.description.learnMore": "Learn more",
"settings.versionControl.modals.push.description.learnMore.url": "https://docs.n8n.io/environments/version-control/using/",
"settings.versionControl.modals.push.filesToCommit": "Files to commit",
"settings.versionControl.modals.push.everythingIsUpToDate": "Everything is up to date",
"settings.versionControl.modals.push.commitMessage": "Commit message",
"settings.versionControl.modals.push.commitMessage.placeholder": "e.g. My commit",
"settings.versionControl.modals.push.buttons.cancel": "Cancel",
"settings.versionControl.modals.push.buttons.save": "Commit and Push",
"settings.versionControl.modals.push.success.title": "Pushed successfully",
"settings.versionControl.modals.push.success.description": "The files you selected were committed and pushed to the remote repository",
"settings.versionControl.modals.pull.title": "Override local changes",
"settings.versionControl.modals.pull.description": "Some remote changes are going to override some of your local changes. Are you sure you want to continue?",
"settings.versionControl.modals.pull.buttons.cancel": "@:_reusableBaseText.cancel",
"settings.versionControl.modals.pull.buttons.save": "Pull and override",
"settings.versionControl.modals.disconnect.title": "Disconnect Git repository",
"settings.versionControl.modals.disconnect.message": "Please confirm you want to disconnect this n8n instance from the Git repository",
"settings.versionControl.modals.disconnect.confirm": "Disconnect Git",
"settings.versionControl.modals.disconnect.cancel": "@:_reusableBaseText.cancel",
"settings.versionControl.modals.refreshSshKey.title": "Refresh SSH Key",
"settings.versionControl.modals.refreshSshKey.message": "This will delete the current SSH key and create a new one. You will not be able to authenticate with the current key anymore.",
"settings.versionControl.modals.refreshSshKey.cancel": "Cancel",
"settings.versionControl.modals.refreshSshKey.confirm": "Refresh key",
"settings.versionControl.toast.connected.title": "Git repository connected",
"settings.versionControl.toast.connected.message": "Select the branch to complete the configuration",
"settings.versionControl.toast.connected.error": "Error connecting to Git",
"settings.versionControl.toast.disconnected.title": "Git repository disconnected",
"settings.versionControl.toast.disconnected.message": "You can no longer sync your instance with the remote repository",
"settings.versionControl.toast.disconnected.error": "Error disconnecting from Git",
"settings.versionControl.loading.pull": "Pulling from remote",
"settings.versionControl.loading.push": "Pushing to remote",
"settings.versionControl.saved.title": "Settings successfully saved",
"settings.versionControl.refreshBranches.tooltip": "Reload branches list",
"settings.versionControl.refreshBranches.success": "Branches successfully refreshed",
"settings.versionControl.refreshBranches.error": "Error refreshing branches",
"settings.versionControl.docs.url": "https://docs.n8n.io/environments/version-control/",
"settings.versionControl.docs.setup.url": "https://docs.n8n.io/environments/version-control/setup/",
"settings.versionControl.docs.using.url": "https://docs.n8n.io/environments/version-control/using/",
"settings.sourceControl.title": "Source Control",
"settings.sourceControl.actionBox.title": "Available on Enterprise plan",
"settings.sourceControl.actionBox.description": "Use Source Control to connect your instance to an external Git repository to backup and track changes made to your workflows, variables, and credentials. With Source Control you can also sync instances across multiple environments (development, production...).",
"settings.sourceControl.actionBox.buttonText": "See plans",
"settings.sourceControl.description": "Source Control allows you to connect your n8n instance to a Git branch of a repository. You can connect your branches to multiples n8n instances to create a multi environments setup. {link}",
"settings.sourceControl.description.link": "Learn how to set up Source Control and Environments in n8n.",
"settings.sourceControl.gitConfig": "Git configuration",
"settings.sourceControl.repoUrl": "Git repository URL (SSH)",
"settings.sourceControl.repoUrlPlaceholder": "e.g. git@github.com:my-team/my-repository",
"settings.sourceControl.repoUrlDescription": "The SSH url of your Git repository",
"settings.sourceControl.repoUrlInvalid": "The Git repository URL is not valid",
"settings.sourceControl.authorName": "Commit author name",
"settings.sourceControl.authorEmail": "Commit author email",
"settings.sourceControl.authorEmailInvalid": "The provided email is not correct",
"settings.sourceControl.sshKey": "SSH Key",
"settings.sourceControl.sshKeyDescription": "Paste the SSH key in your git repository settings. {link}.",
"settings.sourceControl.sshKeyDescriptionLink": "More info",
"settings.sourceControl.refreshSshKey": "Refresh Key",
"settings.sourceControl.refreshSshKey.successful.title": "SSH Key refreshed successfully",
"settings.sourceControl.refreshSshKey.error.title": "SSH Key refresh failed",
"settings.sourceControl.button.continue": "Continue",
"settings.sourceControl.button.connect": "Connect",
"settings.sourceControl.button.disconnect": "Disconnect Git",
"settings.sourceControl.button.save": "Save settings",
"settings.sourceControl.instanceSettings": "Instance settings",
"settings.sourceControl.branches": "Branch connected to this n8n instance",
"settings.sourceControl.readonly": "{bold}: prevent editing workflows (recommended for production environments). {link}",
"settings.sourceControl.readonly.bold": "Read-only instance",
"settings.sourceControl.readonly.link": "Learn more.",
"settings.sourceControl.color": "Color",
"settings.sourceControl.switchBranch.title": "Switch to {branch} branch",
"settings.sourceControl.switchBranch.description": "Please confirm you want to switch the current n8n instance to the branch: {branch}",
"settings.sourceControl.sync.prompt.title": "Sync changes in {branch} branch",
"settings.sourceControl.sync.prompt.description": "All the changes on your n8n instances will be synced with branch {branch} on the remote git repository. The following git sequence will be executed: pull > commit > push.",
"settings.sourceControl.sync.prompt.placeholder": "Commit message",
"settings.sourceControl.sync.prompt.error": "Please enter a commit message",
"settings.sourceControl.button.push": "Push",
"settings.sourceControl.button.pull": "Pull",
"settings.sourceControl.modals.push.title": "Commit and push changes",
"settings.sourceControl.modals.push.description": "Select the files you want to stage in your commit and add a commit message. ",
"settings.sourceControl.modals.push.description.workflows": "Since you are on the Workflows page, the modified workflow files have been pre-selected for you.",
"settings.sourceControl.modals.push.description.workflow": "Since you are currently editing a Workflow, the modified workflow file has been pre-selected for you.",
"settings.sourceControl.modals.push.description.credentials": "Since you are on the Credentials page, the modified credential files have been pre-selected for you.",
"settings.sourceControl.modals.push.description.learnMore": "Learn more",
"settings.sourceControl.modals.push.description.learnMore.url": "https://docs.n8n.io/source-control/using/",
"settings.sourceControl.modals.push.filesToCommit": "Files to commit",
"settings.sourceControl.modals.push.everythingIsUpToDate": "Everything is up to date",
"settings.sourceControl.modals.push.commitMessage": "Commit message",
"settings.sourceControl.modals.push.commitMessage.placeholder": "e.g. My commit",
"settings.sourceControl.modals.push.buttons.cancel": "Cancel",
"settings.sourceControl.modals.push.buttons.save": "Commit and Push",
"settings.sourceControl.modals.push.success.title": "Pushed successfully",
"settings.sourceControl.modals.push.success.description": "The files you selected were committed and pushed to the remote repository",
"settings.sourceControl.modals.pull.title": "Override local changes",
"settings.sourceControl.modals.pull.description": "Some remote changes are going to override some of your local changes. Are you sure you want to continue?",
"settings.sourceControl.modals.pull.buttons.cancel": "@:_reusableBaseText.cancel",
"settings.sourceControl.modals.pull.buttons.save": "Pull and override",
"settings.sourceControl.modals.disconnect.title": "Disconnect Git repository",
"settings.sourceControl.modals.disconnect.message": "Please confirm you want to disconnect this n8n instance from the Git repository",
"settings.sourceControl.modals.disconnect.confirm": "Disconnect Git",
"settings.sourceControl.modals.disconnect.cancel": "@:_reusableBaseText.cancel",
"settings.sourceControl.modals.refreshSshKey.title": "Refresh SSH Key",
"settings.sourceControl.modals.refreshSshKey.message": "This will delete the current SSH key and create a new one. You will not be able to authenticate with the current key anymore.",
"settings.sourceControl.modals.refreshSshKey.cancel": "Cancel",
"settings.sourceControl.modals.refreshSshKey.confirm": "Refresh key",
"settings.sourceControl.toast.connected.title": "Git repository connected",
"settings.sourceControl.toast.connected.message": "Select the branch to complete the configuration",
"settings.sourceControl.toast.connected.error": "Error connecting to Git",
"settings.sourceControl.toast.disconnected.title": "Git repository disconnected",
"settings.sourceControl.toast.disconnected.message": "You can no longer sync your instance with the remote repository",
"settings.sourceControl.toast.disconnected.error": "Error disconnecting from Git",
"settings.sourceControl.loading.pull": "Pulling from remote",
"settings.sourceControl.loading.push": "Pushing to remote",
"settings.sourceControl.saved.title": "Settings successfully saved",
"settings.sourceControl.refreshBranches.tooltip": "Reload branches list",
"settings.sourceControl.refreshBranches.success": "Branches successfully refreshed",
"settings.sourceControl.refreshBranches.error": "Error refreshing branches",
"settings.sourceControl.docs.url": "https://docs.n8n.io/source-control/",
"settings.sourceControl.docs.setup.url": "https://docs.n8n.io/source-control/setup/",
"settings.sourceControl.docs.using.url": "https://docs.n8n.io/source-control/using/",
"showMessage.cancel": "@:_reusableBaseText.cancel",
"settings.auditLogs.title": "Audit Logs",
"settings.auditLogs.actionBox.title": "Available on Enterprise plan",