-
Notifications
You must be signed in to change notification settings - Fork 207
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
Update documentdb 20240815, add MongodbUserDefinition #4550
Update documentdb 20240815, add MongodbUserDefinition #4550
Conversation
I'm having trouble with making the MongodbRoleDefinition work. While the status struct is generated correctly: type MongodbRoleDefinition_STATUS struct {
Conditions []conditions.Condition `json:"conditions,omitempty"`
DatabaseName *string `json:"databaseName,omitempty"`
Id *string `json:"id,omitempty"`
Name *string `json:"name,omitempty"`
Privileges []Privilege_STATUS `json:"privileges,omitempty"`
PropertiesType *string `json:"properties_type,omitempty"`
PropertyBag genruntime.PropertyBag `json:"$propertyBag,omitempty"`
RoleName *string `json:"roleName,omitempty"`
Roles []Role_STATUS `json:"roles,omitempty"`
Type *string `json:"type,omitempty"`
} when reading a resource using Azure CLI I get an integer instead of a string for the az resource show --ids /subscriptions/3e8e8f8d-5388-41dd-8cb1-6dd1d418fe76/resourceGroups/asotest-rg-bmupee/providers/Microsoft.DocumentDB/databaseAccounts/asotestdbkgsgso/mongodbRoleDefinitions/asotest-mongo-hamilo.dboperator
{
"extendedLocation": null,
"id": "/subscriptions/3e8e8f8d-5388-41dd-8cb1-6dd1d418fe76/resourceGroups/asotest-rg-bmupee/providers/Microsoft.DocumentDB/databaseAccounts/asotestdbkgsgso/mongodbRoleDefinitions/asotest-mongo-hamilo.dboperator",
"identity": null,
"kind": null,
"location": null,
"managedBy": null,
"name": "dboperator",
"plan": null,
"properties": {
"databaseName": "asotest-mongo-hamilo",
"privileges": [
{
"actions": [
"dbStats"
],
"resource": {
"db": "asotest-mongo-hamilo"
}
}
],
"roleName": "dboperator",
"roles": [],
"type": 1
},
"resourceGroup": "asotest-rg-bmupee",
"sku": null,
"tags": null,
"type": "Microsoft.DocumentDB/databaseAccounts/mongodbRoleDefinitions"
} This causes an unmarshaling failure which is blocking my PR. Could anyone help out here? |
Oh this is fun, the
Having the service return an integer seems like a bug; it should be returning either |
@theunrepentantgeek while this is looked at, I'd rather limit my PR to the documentDB update + UserDefinition support. We use ASO heavily and this would unblock us. Does re-scoping PR sound OK? |
Reducing scope is fine - would you please log an issue requesting |
We're going to publish the v2.13 release of ASO very soon and it would be good to include these in that release. Do you think you can sort out the CI issues in the next couple of days (say, by Thursday this week)? Your builds are failing due to missing recordings for your samples, these should be easy to add. |
I'll get them sorted out, optimistically in the next few hours. |
@theunrepentantgeek should be ready now |
I think I can make that build failure will go away by merging #4555 - leave this with me to check. |
I think all you need to do is to merge |
/ok-to-test sha=af1b917 |
What this PR does
Adds MongodbRoleDefinitionbug encountered, see commentsThe currently supported version 4.2 has been EOL for a while now.
How does this PR make you feel?
Checklist