@@ -566,7 +566,11 @@ export const analyzeCollectionSchema = (): CollectionThunkAction<
566566export  const  generateFakerMappings  =  ( 
567567  connectionInfo : ConnectionInfo 
568568) : CollectionThunkAction < Promise < void > >  =>  { 
569-   return  async  ( dispatch ,  getState ,  {  logger,  atlasAiService } )  =>  { 
569+   return  async  ( 
570+     dispatch , 
571+     getState , 
572+     {  logger,  atlasAiService,  preferences } 
573+   )  =>  { 
570574    const  {  schemaAnalysis,  fakerSchemaGeneration,  namespace }  =  getState ( ) ; 
571575    if  ( schemaAnalysis . status  !==  SCHEMA_ANALYSIS_STATE_COMPLETE )  { 
572576      logger . log . error ( 
@@ -584,6 +588,10 @@ export const generateFakerMappings = (
584588      return ; 
585589    } 
586590
591+     const  includeSampleValues  =  ( 
592+       await  preferences . getConfigurableUserPreferences ( ) 
593+     ) . enableGenAISampleDocumentPassing ; 
594+ 
587595    // todo: dedup/abort requests using requestId (CLOUDP-333850) 
588596    const  requestId  =  new  UUID ( ) . toString ( ) ; 
589597
@@ -602,8 +610,7 @@ export const generateFakerMappings = (
602610        collectionName : collection , 
603611        schema : schemaAnalysis . processedSchema , 
604612        validationRules : schemaAnalysis . schemaMetadata . validationRules , 
605-         // todo: set T/F depending on user setting for "Sending Sample Field Values in DE Gen AI Features" 
606-         includeSampleValues : true , 
613+         includeSampleValues, 
607614      } ; 
608615
609616      const  response  =  await  atlasAiService . getMockDataSchema ( 
0 commit comments