refactor(core): Remove env variable to enable folders (no-changelog) (#14076)

This commit is contained in:
Ricardo Espinoza
2025-03-20 12:10:38 -04:00
committed by GitHub
parent 1f56a24bbd
commit 01c7cc939a
5 changed files with 2 additions and 16 deletions

View File

@@ -161,7 +161,6 @@ jobs:
env:
NODE_OPTIONS: --dns-result-order=ipv4first
CYPRESS_NODE_VIEW_VERSION: 2
N8N_FOLDERS_ENABLED: true
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
E2E_TESTS: true

View File

@@ -51,6 +51,7 @@ describe('Folders', () => {
before(() => {
cy.resetDatabase();
cy.enableFeature('sharing');
cy.enableFeature('folders');
cy.enableFeature('advancedPermissions');
cy.enableFeature('projectRole:admin');
cy.enableFeature('projectRole:editor');

View File

@@ -47,7 +47,6 @@ switch (scenario) {
testCommand: 'cypress open',
customEnv: {
CYPRESS_NODE_VIEW_VERSION: 2,
N8N_FOLDERS_ENABLED: true,
},
});
break;
@@ -59,7 +58,6 @@ switch (scenario) {
customEnv: {
CYPRESS_NODE_VIEW_VERSION: 1,
CYPRESS_BASE_URL: 'http://localhost:8080',
N8N_FOLDERS_ENABLED: true,
},
});
break;
@@ -71,7 +69,6 @@ switch (scenario) {
customEnv: {
CYPRESS_NODE_VIEW_VERSION: 2,
CYPRESS_BASE_URL: 'http://localhost:8080',
N8N_FOLDERS_ENABLED: true,
},
});
break;
@@ -85,7 +82,6 @@ switch (scenario) {
testCommand: `cypress run --headless ${specParam}`,
customEnv: {
CYPRESS_NODE_VIEW_VERSION: 2,
N8N_FOLDERS_ENABLED: true,
},
});
break;

View File

@@ -364,13 +364,4 @@ export const schema = {
env: 'N8N_PROXY_HOPS',
doc: 'Number of reverse-proxies n8n is running behind',
},
folders: {
enabled: {
format: Boolean,
default: false,
env: 'N8N_FOLDERS_ENABLED',
doc: 'Temporary env variable to enable folders feature',
},
},
};

View File

@@ -362,8 +362,7 @@ export class FrontendService {
this.settings.enterprise.projects.team.limit = this.license.getTeamProjectLimit();
this.settings.folders.enabled =
config.get('folders.enabled') || this.license.isFoldersEnabled();
this.settings.folders.enabled = this.license.isFoldersEnabled();
return this.settings;
}