Fix serverless create issue (#453)

This commit is contained in:
victor-meng 2021-02-25 17:29:29 -08:00 committed by GitHub
parent 864d9393f2
commit 3cc1945140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View File

@ -680,8 +680,10 @@ export default class AddCollectionPane extends ContextualPaneBase {
this.formWarnings(""); this.formWarnings("");
this.databaseCreateNewShared(this.getSharedThroughputDefault()); this.databaseCreateNewShared(this.getSharedThroughputDefault());
this.shouldCreateMongoWildcardIndex(this.container.isMongoIndexingEnabled()); this.shouldCreateMongoWildcardIndex(this.container.isMongoIndexingEnabled());
this.isAutoPilotSelected(this.container.isAutoscaleDefaultEnabled()); if (!this.container.isServerlessEnabled()) {
this.isSharedAutoPilotSelected(this.container.isAutoscaleDefaultEnabled()); this.isAutoPilotSelected(this.container.isAutoscaleDefaultEnabled());
this.isSharedAutoPilotSelected(this.container.isAutoscaleDefaultEnabled());
}
if (this.isPreferredApiTable() && !databaseId) { if (this.isPreferredApiTable() && !databaseId) {
databaseId = SharedConstants.CollectionCreation.TablesAPIDefaultDatabase; databaseId = SharedConstants.CollectionCreation.TablesAPIDefaultDatabase;
} }

View File

@ -289,7 +289,9 @@ export default class CassandraAddCollectionPane extends ContextualPaneBase {
public open() { public open() {
super.open(); super.open();
this.isAutoPilotSelected(this.container.isAutoscaleDefaultEnabled()); if (!this.container.isServerlessEnabled()) {
this.isAutoPilotSelected(this.container.isAutoscaleDefaultEnabled());
}
const addCollectionPaneOpenMessage = { const addCollectionPaneOpenMessage = {
databaseAccountName: this.container.databaseAccount().name, databaseAccountName: this.container.databaseAccount().name,
defaultExperience: this.container.defaultExperience(), defaultExperience: this.container.defaultExperience(),