File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
packages/compass-collection/src/stores Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -106,22 +106,22 @@ export function activatePlugin(
106106 void collectionModel . fetchMetadata ( { dataService } ) . then ( ( metadata ) => {
107107 store . dispatch ( collectionMetadataFetched ( metadata ) ) ;
108108
109- // Assign experiment for Mock Data Generator (Atlas-only)
110- // Only assign when experimentationServices.assignExperiment is initialized
109+ // Assign experiment for Mock Data Generator:
110+ // Only assign when experimentationServices.assignExperiment is initialized,
111+ // we're connected to Atlas,
111112 // and the org-level setting for AI features is enabled
112113 if (
113- experimentationServices &&
114- experimentationServices . assignExperiment &&
114+ experimentationServices ?. assignExperiment && // Ensures experimentation services are available
115115 connectionInfoRef . current ?. atlasMetadata ?. clusterName && // Ensures we only assign in Atlas
116- isAIFeatureEnabled ( preferences . getPreferences ( ) ) // org-level AI features setting
116+ isAIFeatureEnabled ( preferences . getPreferences ( ) ) // Ensures org-level AI features setting is enabled
117117 ) {
118118 void experimentationServices
119119 . assignExperiment ( 'mock-data-generator' , {
120- team : 'data-explorer ' ,
120+ team : 'Atlas Growth ' ,
121121 } )
122122 . catch ( ( error ) => {
123123 logger . debug ( 'Mock Data Generator experiment assignment failed' , {
124- experiment : 'mock-data-generator ' ,
124+ experiment : 'MOCK_DATA_GENERATOR ' ,
125125 namespace : namespace ,
126126 error : error . message ,
127127 } ) ;
You can’t perform that action at this time.
0 commit comments