refactor(core): Add deprecation warning for N8N_WORKFLOW_TAGS_DISABLED (#35673)

This commit is contained in:
Ricardo Espinoza 2026-08-11 05:28:56 -04:00 committed by GitHub
parent a14ab0b086
commit b9cf436810
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -69,6 +69,10 @@ describe('DeprecationService', () => {
['N8N_DEFAULT_BINARY_DATA_MODE', 'filesystem', false],
['N8N_EXPRESSION_ENGINE', 'legacy', true],
['N8N_EXPRESSION_ENGINE', 'vm', false],
['N8N_WORKFLOW_TAGS_DISABLED', 'true', true],
['N8N_WORKFLOW_TAGS_DISABLED', '1', true],
['N8N_WORKFLOW_TAGS_DISABLED', 'false', false],
['N8N_WORKFLOW_TAGS_DISABLED', undefined, false],
])('should detect when %s is `%s`', (envVar, value, mustWarn) => {
toTest(envVar, value, mustWarn);
});

View File

@ -103,6 +103,13 @@ export class DeprecationService {
'In-memory binary data storage (`default` mode) will be removed in a future version. Switch to `filesystem`, `s3`, or `database`.',
checkValue: (value?: string) => value === 'default',
},
{
envVar: 'N8N_WORKFLOW_TAGS_DISABLED',
message:
'Disabling workflow tags is deprecated. Tags will always be enabled in a future version and this environment variable will be removed, so the tags feature will become visible again after upgrading.',
checkValue: (value?: string) =>
value !== undefined && ['true', '1'].includes(value.toLowerCase()),
},
{
envVar: 'EXECUTIONS_PROCESS',
message: SAFE_TO_REMOVE,