1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-12-09 20:04:11 +01:00

chore: move delta diffing to a different feature flag (#10962)

Move delta diffing to a different feature flag
This commit is contained in:
Jaanus Sellin 2025-11-11 12:55:37 +02:00 committed by GitHub
parent 5d65600864
commit 6f02edce2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 1 deletions

View File

@ -165,7 +165,7 @@ export default class FeatureController extends Controller {
private async resolveFeaturesAndSegments( private async resolveFeaturesAndSegments(
query?: IFeatureToggleQuery, query?: IFeatureToggleQuery,
): Promise<[FeatureConfigurationClient[], IClientSegment[]]> { ): Promise<[FeatureConfigurationClient[], IClientSegment[]]> {
if (this.flagResolver.isEnabled('deltaApi')) { if (this.flagResolver.isEnabled('deltaDiff')) {
const features = const features =
await this.clientFeatureToggleService.getClientFeatures(query); await this.clientFeatureToggleService.getClientFeatures(query);

View File

@ -47,6 +47,7 @@ export type IFlagKey =
| 'streaming' | 'streaming'
| 'denyStreamingForNonEdge' | 'denyStreamingForNonEdge'
| 'deltaApi' | 'deltaApi'
| 'deltaDiff'
| 'uniqueSdkTracking' | 'uniqueSdkTracking'
| 'consumptionModel' | 'consumptionModel'
| 'consumptionModelUI' | 'consumptionModelUI'
@ -219,6 +220,10 @@ const flags: IFlags = {
process.env.UNLEASH_EXPERIMENTAL_DELTA_API, process.env.UNLEASH_EXPERIMENTAL_DELTA_API,
false, false,
), ),
deltaDiff: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_DELTA_DIFF,
false,
),
uniqueSdkTracking: parseEnvVarBoolean( uniqueSdkTracking: parseEnvVarBoolean(
process.env.UNLEASH_EXPERIMENTAL_UNIQUE_SDK_TRACKING, process.env.UNLEASH_EXPERIMENTAL_UNIQUE_SDK_TRACKING,
false, false,