From 5eb01c2e41720d3ea9705fc83b9823d3be495ae2 Mon Sep 17 00:00:00 2001 From: Rhys Howell Date: Mon, 25 Nov 2024 15:09:32 -0500 Subject: [PATCH] chore(preferences-model): allow updating the cloudFeatureRolloutAccess preference for compass web --- .../src/compass-web-preferences-access.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/compass-preferences-model/src/compass-web-preferences-access.ts b/packages/compass-preferences-model/src/compass-web-preferences-access.ts index abad3f2446d..2db16c89ab9 100644 --- a/packages/compass-preferences-model/src/compass-web-preferences-access.ts +++ b/packages/compass-preferences-model/src/compass-web-preferences-access.ts @@ -21,6 +21,11 @@ export class CompassWebPreferencesAccess implements PreferencesAccess { 'optInDataExplorerGenAIFeatures' in _attributes ) { return Promise.resolve(this._preferences.savePreferences(_attributes)); + } else if ( + Object.keys(_attributes).length === 1 && + 'cloudFeatureRolloutAccess' in _attributes + ) { + return Promise.resolve(this._preferences.savePreferences(_attributes)); } return Promise.resolve(this._preferences.getPreferences()); }