mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix(core): Rename advancedFilters to advancedExecutionFilters (#5643)
rename advancedFilters to advancedExecutionFilters
This commit is contained in:
parent
e52aa46842
commit
419969c0d7
|
@ -524,7 +524,7 @@ export interface IN8nUISettings {
|
||||||
ldap: boolean;
|
ldap: boolean;
|
||||||
saml: boolean;
|
saml: boolean;
|
||||||
logStreaming: boolean;
|
logStreaming: boolean;
|
||||||
advancedFilters: boolean;
|
advancedExecutionFilters: boolean;
|
||||||
};
|
};
|
||||||
hideUsagePage: boolean;
|
hideUsagePage: boolean;
|
||||||
license: {
|
license: {
|
||||||
|
|
|
@ -106,8 +106,8 @@ export class License {
|
||||||
return this.isFeatureEnabled(LICENSE_FEATURES.SAML);
|
return this.isFeatureEnabled(LICENSE_FEATURES.SAML);
|
||||||
}
|
}
|
||||||
|
|
||||||
isAdvancedFiltersEnabled() {
|
isAdvancedExecutionFiltersEnabled() {
|
||||||
return this.isFeatureEnabled(LICENSE_FEATURES.ADVANCED_FILTERS);
|
return this.isFeatureEnabled(LICENSE_FEATURES.ADVANCED_EXECUTION_FILTERS);
|
||||||
}
|
}
|
||||||
|
|
||||||
getCurrentEntitlements() {
|
getCurrentEntitlements() {
|
||||||
|
|
|
@ -146,7 +146,7 @@ import { Container } from 'typedi';
|
||||||
import { InternalHooks } from './InternalHooks';
|
import { InternalHooks } from './InternalHooks';
|
||||||
import {
|
import {
|
||||||
getStatusUsingPreviousExecutionStatusMethod,
|
getStatusUsingPreviousExecutionStatusMethod,
|
||||||
isAdvancedFiltersEnabled,
|
isAdvancedExecutionFiltersEnabled,
|
||||||
} from './executions/executionHelpers';
|
} from './executions/executionHelpers';
|
||||||
import { getSamlLoginLabel, isSamlLoginEnabled, isSamlLicensed } from './sso/saml/samlHelpers';
|
import { getSamlLoginLabel, isSamlLoginEnabled, isSamlLicensed } from './sso/saml/samlHelpers';
|
||||||
import { samlControllerPublic } from './sso/saml/routes/saml.controller.public.ee';
|
import { samlControllerPublic } from './sso/saml/routes/saml.controller.public.ee';
|
||||||
|
@ -303,7 +303,7 @@ class Server extends AbstractServer {
|
||||||
ldap: false,
|
ldap: false,
|
||||||
saml: false,
|
saml: false,
|
||||||
logStreaming: config.getEnv('enterprise.features.logStreaming'),
|
logStreaming: config.getEnv('enterprise.features.logStreaming'),
|
||||||
advancedFilters: config.getEnv('enterprise.features.advancedFilters'),
|
advancedExecutionFilters: config.getEnv('enterprise.features.advancedExecutionFilters'),
|
||||||
},
|
},
|
||||||
hideUsagePage: config.getEnv('hideUsagePage'),
|
hideUsagePage: config.getEnv('hideUsagePage'),
|
||||||
license: {
|
license: {
|
||||||
|
@ -332,7 +332,7 @@ class Server extends AbstractServer {
|
||||||
logStreaming: isLogStreamingEnabled(),
|
logStreaming: isLogStreamingEnabled(),
|
||||||
ldap: isLdapEnabled(),
|
ldap: isLdapEnabled(),
|
||||||
saml: isSamlLicensed(),
|
saml: isSamlLicensed(),
|
||||||
advancedFilters: isAdvancedFiltersEnabled(),
|
advancedExecutionFilters: isAdvancedExecutionFiltersEnabled(),
|
||||||
});
|
});
|
||||||
|
|
||||||
if (isLdapEnabled()) {
|
if (isLdapEnabled()) {
|
||||||
|
|
|
@ -1008,7 +1008,7 @@ export const schema = {
|
||||||
format: Boolean,
|
format: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
advancedFilters: {
|
advancedExecutionFilters: {
|
||||||
format: Boolean,
|
format: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
|
|
@ -72,7 +72,7 @@ export enum LICENSE_FEATURES {
|
||||||
LDAP = 'feat:ldap',
|
LDAP = 'feat:ldap',
|
||||||
SAML = 'feat:saml',
|
SAML = 'feat:saml',
|
||||||
LOG_STREAMING = 'feat:logStreaming',
|
LOG_STREAMING = 'feat:logStreaming',
|
||||||
ADVANCED_FILTERS = 'feat:advancedFilters',
|
ADVANCED_EXECUTION_FILTERS = 'feat:advancedExecutionFilters',
|
||||||
}
|
}
|
||||||
|
|
||||||
export const CREDENTIAL_BLANKING_VALUE = '__n8n_BLANK_VALUE_e5362baf-c777-4d57-a609-6eaf1f9e87f6';
|
export const CREDENTIAL_BLANKING_VALUE = '__n8n_BLANK_VALUE_e5362baf-c777-4d57-a609-6eaf1f9e87f6';
|
||||||
|
|
|
@ -19,7 +19,10 @@ export function getStatusUsingPreviousExecutionStatusMethod(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isAdvancedFiltersEnabled(): boolean {
|
export function isAdvancedExecutionFiltersEnabled(): boolean {
|
||||||
const license = getLicense();
|
const license = getLicense();
|
||||||
return config.getEnv('enterprise.features.advancedFilters') || license.isAdvancedFiltersEnabled();
|
return (
|
||||||
|
config.getEnv('enterprise.features.advancedExecutionFilters') ||
|
||||||
|
license.isAdvancedExecutionFiltersEnabled()
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue