mirror of
https://github.com/n8n-io/n8n.git
synced 2026-10-17 05:29:44 +02:00
refactor(core): Add deprecation warning for N8N_WORKFLOW_TAGS_DISABLED (#35673)
This commit is contained in:
parent
a14ab0b086
commit
b9cf436810
|
|
@ -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);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user