1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-08-13 13:48:59 +02:00

feat: feature flag for webhook logging domain of url

This commit is contained in:
David Leek 2024-08-22 08:35:18 +02:00
parent 48423fa980
commit eeddadba04
No known key found for this signature in database
GPG Key ID: 515EE0F1BB6D0BE1
3 changed files with 8 additions and 1 deletions

View File

@ -154,6 +154,7 @@ exports[`should create default config 1`] = `
"useProjectReadModel": false, "useProjectReadModel": false,
"userAccessUIEnabled": false, "userAccessUIEnabled": false,
"webhookServiceNameLogging": false, "webhookServiceNameLogging": false,
"webhookUrlDomainLogging": false,
}, },
"externalResolver": { "externalResolver": {
"getVariant": [Function], "getVariant": [Function],

View File

@ -67,7 +67,8 @@ export type IFlagKey =
| 'useProjectReadModel' | 'useProjectReadModel'
| 'webhookServiceNameLogging' | 'webhookServiceNameLogging'
| 'addonUsageMetrics' | 'addonUsageMetrics'
| 'timeAgoRefactor'; | 'timeAgoRefactor'
| 'webhookUrlDomainLogging';
export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>;
@ -328,6 +329,10 @@ const flags: IFlags = {
process.env.UNLEASH_TIMEAGO_REFACTOR, process.env.UNLEASH_TIMEAGO_REFACTOR,
false, false,
), ),
webhookUrlDomainLogging: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_WEBHOOK_URL_DOMAIN_LOGGING,
false,
),
}; };
export const defaultExperimentalOptions: IExperimentalOptions = { export const defaultExperimentalOptions: IExperimentalOptions = {

View File

@ -60,6 +60,7 @@ process.nextTick(async () => {
webhookServiceNameLogging: true, webhookServiceNameLogging: true,
addonUsageMetrics: true, addonUsageMetrics: true,
timeAgoRefactor: true, timeAgoRefactor: true,
webhookUrlDomainLogging: true,
}, },
}, },
authentication: { authentication: {