Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error on fetching throughput settings #602

Merged
merged 1 commit into from
Apr 5, 2023
Merged

Fix error on fetching throughput settings #602

merged 1 commit into from
Apr 5, 2023

Conversation

karanpopat
Copy link
Contributor

@karanpopat karanpopat commented Apr 3, 2023

The table rendering used to break when using the default Throughput settings and ThroughputPolicy was not set explicitly.

{
"throughput_settings": {
"AutoscaleSettingsMaxThroughput": 1000,
"AutoscaleSettingsTargetMaxThroughput": 0,
"AutoscaleSettingsThroughputPolicy": {},
"ID": "/subscriptions/abcd7416-f95f-4771-bbb5- 529d4c76659c/resourceGroups/demo/providers/Microsoft.DocumentDB/databaseAccounts/demo-insight-acc/mongodbDatabases/test-db/throughputSettings/default",
"Location": "",
"Name": "Nlrk",
"ResourceEtag": "",
"ResourceMinimumThroughput": "1000",
"ResourceOfferReplacePending": "",
"ResourceRid": "",
"ResourceThroughput": 100,
"ResourceTs": 0,
"Type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings"
}
}

Integration test logs

Logs
Add passing integration test logs here

Example query results

Results
> select throughput_settings from azure_cosmosdb_mongo_database
[
 {
  "throughput_settings": {
   "AutoscaleSettingsMaxThroughput": 1000,
   "AutoscaleSettingsTargetMaxThroughput": 0,
   "AutoscaleSettingsThroughputPolicy": {},
   "ID": "/subscriptions/abcd7416-f95f-4771-bbb5-529d4c76659c/resourceGroups/demo/providers/Microsoft.DocumentDB/databaseAccounts/demo-insight-acc/mongodbDatabases/test-db/throughputSettings/default",
   "Location": "",
   "Name": "Nlrk",
   "ResourceEtag": "",
   "ResourceMinimumThroughput": "1000",
   "ResourceOfferReplacePending": "",
   "ResourceRid": "",
   "ResourceThroughput": 100,
   "ResourceTs": 0,
   "Type": "Microsoft.DocumentDB/databaseAccounts/mongodbDatabases/throughputSettings"
  }
 }
]

@misraved misraved merged commit 5fa655d into main Apr 5, 2023
@misraved misraved deleted the issue-601 branch April 5, 2023 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Table azure_cosmosdb_mongo_collection and azure_cosmosdb_mongo_database breaks for autoscale settings
2 participants