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

chore: use clean-contexts

This commit is contained in:
Thomas Heartman 2024-04-05 10:30:51 +02:00
parent e6d4a07f80
commit 56e728a008
No known key found for this signature in database
GPG Key ID: BD1F880DAED1EE78

View File

@ -28,6 +28,7 @@ import type { AdvancedPlaygroundEnvironmentFeatureSchema } from '../../openapi/s
import { validateQueryComplexity } from './validateQueryComplexity';
import type { IPrivateProjectChecker } from '../private-project/privateProjectCheckerType';
import { getDefaultVariant } from './feature-evaluator/variant';
import { cleanContext } from './clean-context';
type EvaluationInput = {
features: FeatureConfigurationClient[];
@ -124,7 +125,8 @@ export class PlaygroundService {
this.resolveFeatures(filteredProjects, env),
),
);
const contexts = generateObjectCombinations(context);
const contexts = generateObjectCombinations(cleanContext(context));
validateQueryComplexity(
environments.length,