1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-11-24 20:06:55 +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(
query?: IFeatureToggleQuery,
): Promise<[FeatureConfigurationClient[], IClientSegment[]]> {
if (this.flagResolver.isEnabled('deltaApi')) {
if (this.flagResolver.isEnabled('deltaDiff')) {
const features =
await this.clientFeatureToggleService.getClientFeatures(query);

View File

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