Skip to content

Commit c32a0e6

Browse files
committed
Merge branch 'ci/update-eslint' of https://github.com/mongodb-js/compass into ci/update-eslint
2 parents 962e45c + 8cd2cea commit c32a0e6

File tree

9 files changed

+117
-116
lines changed

9 files changed

+117
-116
lines changed

package-lock.json

Lines changed: 46 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-assistant/src/docs-provider-transport.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ export class DocsProviderTransport implements ChatTransport<AssistantMessage> {
7373
},
7474
providerOptions: {
7575
openai: {
76+
store: false,
7677
// If the last message has custom instructions, use them instead of the default
7778
instructions: lastMessage.metadata?.instructions ?? this.instructions,
7879
},

packages/compass-collection/src/components/collection-header/collection-header.spec.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ describe('CollectionHeader [Component]', function () {
429429
schemaAnalysis: {
430430
status: SCHEMA_ANALYSIS_STATE_COMPLETE,
431431
processedSchema: {
432-
field1: { type: 'String', sample_values: ['value1'] },
432+
field1: { type: 'String', sampleValues: ['value1'] },
433433
},
434434
schemaMetadata: {
435435
maxNestingDepth: 2, // Below the limit of 4
@@ -485,7 +485,7 @@ describe('CollectionHeader [Component]', function () {
485485
schemaAnalysis: {
486486
status: SCHEMA_ANALYSIS_STATE_COMPLETE,
487487
processedSchema: {
488-
field1: { type: 'String', sample_values: ['value1'] },
488+
field1: { type: 'String', sampleValues: ['value1'] },
489489
},
490490
schemaMetadata: {
491491
maxNestingDepth: 4, // Exceeds the limit
@@ -514,7 +514,7 @@ describe('CollectionHeader [Component]', function () {
514514
schemaAnalysis: {
515515
status: SCHEMA_ANALYSIS_STATE_COMPLETE,
516516
processedSchema: {
517-
field1: { type: 'String', sample_values: ['value1'] },
517+
field1: { type: 'String', sampleValues: ['value1'] },
518518
},
519519
schemaMetadata: {
520520
maxNestingDepth: 2,
@@ -541,7 +541,7 @@ describe('CollectionHeader [Component]', function () {
541541
schemaAnalysis: {
542542
status: SCHEMA_ANALYSIS_STATE_COMPLETE,
543543
processedSchema: {
544-
field1: { type: 'String', sample_values: ['value1'] },
544+
field1: { type: 'String', sampleValues: ['value1'] },
545545
},
546546
schemaMetadata: {
547547
maxNestingDepth: 2,
@@ -576,7 +576,7 @@ describe('CollectionHeader [Component]', function () {
576576
schemaAnalysis: {
577577
status: SCHEMA_ANALYSIS_STATE_COMPLETE,
578578
processedSchema: {
579-
field1: { type: 'String', sample_values: ['value1'] },
579+
field1: { type: 'String', sampleValues: ['value1'] },
580580
},
581581
schemaMetadata: {
582582
maxNestingDepth: 2,

packages/compass-collection/src/components/mock-data-generator-modal/mock-data-generator-modal.spec.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const defaultSchemaAnalysisState: SchemaAnalysisState = {
2727
name: {
2828
type: 'String',
2929
probability: 1.0,
30-
sample_values: ['John', 'Jane'],
30+
sampleValues: ['John', 'Jane'],
3131
},
3232
},
3333
arrayLengthMap: {},
@@ -510,7 +510,7 @@ describe('MockDataGeneratorModal', () => {
510510
type: {
511511
type: 'String',
512512
probability: 1.0,
513-
sample_values: ['cat', 'dog'],
513+
sampleValues: ['cat', 'dog'],
514514
},
515515
},
516516
sampleDocument: { name: 'Peaches', age: 10, type: 'cat' },

0 commit comments

Comments
 (0)