Skip to content

Commit c1368f9

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 7c04b7c + dffeb75 commit c1368f9

File tree

2 files changed

+20
-10
lines changed

2 files changed

+20
-10
lines changed

packages/compass-schema/src/stores/schema-export-reducer.ts

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,29 +121,37 @@ export const cancelExportSchema = (): SchemaThunkAction<
121121
async function getSchemaByFormat({
122122
exportFormat,
123123
schemaAccessor,
124+
signal,
124125
}: {
125126
exportFormat: SchemaFormat;
126127
schemaAccessor: SchemaAccessor;
127128
signal: AbortSignal;
128129
}): Promise<string> {
129-
// TODO: Use the signal once we pull in the schema accessor type changes.
130130
let schema:
131131
| StandardJSONSchema
132132
| MongoDBJSONSchema
133133
| ExpandedJSONSchema
134134
| InternalSchema;
135135
switch (exportFormat) {
136136
case 'standardJSON':
137-
schema = await schemaAccessor.getStandardJsonSchema();
137+
schema = await schemaAccessor.getStandardJsonSchema({
138+
signal,
139+
});
138140
break;
139141
case 'mongoDBJSON':
140-
schema = await schemaAccessor.getMongoDBJsonSchema();
142+
schema = await schemaAccessor.getMongoDBJsonSchema({
143+
signal,
144+
});
141145
break;
142146
case 'extendedJSON':
143-
schema = await schemaAccessor.getExpandedJSONSchema();
147+
schema = await schemaAccessor.getExpandedJSONSchema({
148+
signal,
149+
});
144150
break;
145151
case 'legacyJSON':
146-
schema = await schemaAccessor.getInternalSchema();
152+
schema = await schemaAccessor.getInternalSchema({
153+
signal,
154+
});
147155
break;
148156
}
149157

packages/compass-smoke-tests/src/tests/auto-update-to.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,13 @@ export async function testAutoUpdateTo(context: SmokeTestsContext) {
5757
bucket_key_prefix: context.bucketKeyPrefix,
5858
});
5959
} else {
60-
process.env.PUBLISHED_RELEASES = JSON.stringify({
61-
name: version,
62-
body: version,
63-
bucket_key_prefix: context.bucketKeyPrefix,
64-
});
60+
process.env.PUBLISHED_RELEASES = JSON.stringify([
61+
{
62+
name: version,
63+
body: version,
64+
bucket_key_prefix: context.bucketKeyPrefix,
65+
},
66+
]);
6567
}
6668

6769
const server = await startAutoUpdateServer();

0 commit comments

Comments
 (0)