mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-06-12 23:47:29 +01:00
Run npm format
This commit is contained in:
@@ -721,8 +721,8 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
directionalHint={DirectionalHint.bottomLeftEdge}
|
directionalHint={DirectionalHint.bottomLeftEdge}
|
||||||
content={`You can optionally provision dedicated throughput for a ${getCollectionName().toLocaleLowerCase()} within a database that has throughput
|
content={`You can optionally provision dedicated throughput for a ${getCollectionName().toLocaleLowerCase()} within a database that has throughput
|
||||||
provisioned. This dedicated throughput amount will not be shared with other ${getCollectionName(
|
provisioned. This dedicated throughput amount will not be shared with other ${getCollectionName(
|
||||||
true,
|
true,
|
||||||
).toLocaleLowerCase()} in the database and
|
).toLocaleLowerCase()} in the database and
|
||||||
does not count towards the throughput you provisioned for the database. This throughput amount will be
|
does not count towards the throughput you provisioned for the database. This throughput amount will be
|
||||||
billed in addition to the throughput amount you provisioned at the database level.`}
|
billed in addition to the throughput amount you provisioned at the database level.`}
|
||||||
>
|
>
|
||||||
@@ -732,8 +732,8 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
tabIndex={0}
|
tabIndex={0}
|
||||||
ariaLabel={`You can optionally provision dedicated throughput for a ${getCollectionName().toLocaleLowerCase()} within a database that has throughput
|
ariaLabel={`You can optionally provision dedicated throughput for a ${getCollectionName().toLocaleLowerCase()} within a database that has throughput
|
||||||
provisioned. This dedicated throughput amount will not be shared with other ${getCollectionName(
|
provisioned. This dedicated throughput amount will not be shared with other ${getCollectionName(
|
||||||
true,
|
true,
|
||||||
).toLocaleLowerCase()} in the database and
|
).toLocaleLowerCase()} in the database and
|
||||||
does not count towards the throughput you provisioned for the database. This throughput amount will be
|
does not count towards the throughput you provisioned for the database. This throughput amount will be
|
||||||
billed in addition to the throughput amount you provisioned at the database level.`}
|
billed in addition to the throughput amount you provisioned at the database level.`}
|
||||||
/>
|
/>
|
||||||
@@ -912,8 +912,8 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
onExpand={() => {
|
onExpand={() => {
|
||||||
scrollToSection("collapsibleFullTextPolicySectionContent");
|
scrollToSection("collapsibleFullTextPolicySectionContent");
|
||||||
}}
|
}}
|
||||||
//TODO: uncomment when learn more text becomes available
|
//TODO: uncomment when learn more text becomes available
|
||||||
// tooltipContent={this.getContainerFullTextPolicyTooltipContent()}
|
// tooltipContent={this.getContainerFullTextPolicyTooltipContent()}
|
||||||
>
|
>
|
||||||
<Stack id="collapsibleFullTextPolicySectionContent" styles={{ root: { position: "relative" } }}>
|
<Stack id="collapsibleFullTextPolicySectionContent" styles={{ root: { position: "relative" } }}>
|
||||||
<Stack styles={{ root: { paddingLeft: 40 } }}>
|
<Stack styles={{ root: { paddingLeft: 40 } }}>
|
||||||
@@ -1341,15 +1341,15 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
const partitionKeyVersion = this.state.useHashV1 ? undefined : 2;
|
const partitionKeyVersion = this.state.useHashV1 ? undefined : 2;
|
||||||
const partitionKey: DataModels.PartitionKey = partitionKeyString
|
const partitionKey: DataModels.PartitionKey = partitionKeyString
|
||||||
? {
|
? {
|
||||||
paths: [
|
paths: [
|
||||||
partitionKeyString,
|
partitionKeyString,
|
||||||
...(userContext.apiType === "SQL" && this.state.subPartitionKeys.length > 0
|
...(userContext.apiType === "SQL" && this.state.subPartitionKeys.length > 0
|
||||||
? this.state.subPartitionKeys
|
? this.state.subPartitionKeys
|
||||||
: []),
|
: []),
|
||||||
],
|
],
|
||||||
kind: userContext.apiType === "SQL" && this.state.subPartitionKeys.length > 0 ? "MultiHash" : "Hash",
|
kind: userContext.apiType === "SQL" && this.state.subPartitionKeys.length > 0 ? "MultiHash" : "Hash",
|
||||||
version: partitionKeyVersion,
|
version: partitionKeyVersion,
|
||||||
}
|
}
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|
||||||
const indexingPolicy: DataModels.IndexingPolicy = this.state.enableIndexing
|
const indexingPolicy: DataModels.IndexingPolicy = this.state.enableIndexing
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
test("Add container to shared database without dedicated throughput", async () => {
|
test("Add container to shared database without dedicated throughput", async () => {
|
||||||
// Create database with shared manual throughput
|
// Create database with shared manual throughput
|
||||||
dbContext = await createTestDB({ throughput: 400 });
|
dbContext = await createTestDB({ throughput: 400 });
|
||||||
|
|
||||||
// Wait for the database to appear in the tree
|
// Wait for the database to appear in the tree
|
||||||
await explorer.waitForNode(dbContext.database.id);
|
await explorer.waitForNode(dbContext.database.id);
|
||||||
|
|
||||||
@@ -285,4 +285,4 @@ test.describe("Database with Shared Throughput", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
+1
-1
@@ -116,7 +116,7 @@ export async function createTestDB(options?: CreateTestDBOptions): Promise<TestD
|
|||||||
}
|
}
|
||||||
|
|
||||||
const client = new CosmosClient(clientOptions);
|
const client = new CosmosClient(clientOptions);
|
||||||
|
|
||||||
// Create database with provisioned throughput (shared throughput)
|
// Create database with provisioned throughput (shared throughput)
|
||||||
// This checks the "Provision database throughput" option
|
// This checks the "Provision database throughput" option
|
||||||
const { database } = await client.databases.create({
|
const { database } = await client.databases.create({
|
||||||
|
|||||||
Reference in New Issue
Block a user