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

The type of attribute tags for NetApp Account shouldn't be raw type interface{} #7447

Closed
neil-yechenwei opened this issue Oct 10, 2019 · 8 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.

Comments

@neil-yechenwei
Copy link

neil-yechenwei commented Oct 10, 2019

After checked it seems that the type of Tags from every other resource is map[string]*string, but currently the type of attribute tags for NetApp Account is type "interface{}", which is different then all the other resources and it adds unnecessary complexity (https://github.com/Azure/azure-sdk-for-go/blob/8c372e6e1243e0427dffb2d750099ee3ed161a44/services/netapp/mgmt/2019-06-01/netapp/models.go#L95). this is probably an error/issue with the swagger and API, right?
The type of attribute Tags from NetApp Acount Resource in repo "azure-sdk-for-go":
image
The type of attribute Tags from other resource like resource PrivateLinkService in repo "azure-sdk-for-go":
image

And I found the type of attribute Tags for NetApp Account is also different than other resource like "network" in repo "Azure/azure-rest-api-specs".
The type of attribute Tags for NetApp Account in repo Azure/azure-rest-api-specs:
image
The type of attribute Tags for other resource like "network" in repo Azure/azure-rest-api-specs:
image

@leonardbf
Copy link
Contributor

Should this be changed for each existing NetApp API, 2017-08-15, 2019-05-01, 2019-06-01 and the latest 2019-07-01? Does it also require a regeneration of SDK code for either each or latest? A new API 2019-08-01 is expected at the end of this month. Is it sufficient to go in there?

@ArcturusZhang
Copy link
Member

Should this be changed for each existing NetApp API, 2017-08-15, 2019-05-01, 2019-06-01 and the latest 2019-07-01? Does it also require a regeneration of SDK code for either each or latest? A new API 2019-08-01 is expected at the end of this month. Is it sufficient to go in there?

Since this is a breaking change to SDK (maybe for swagger too), I think it is best to have it changed in the next api version (2019-08-01), we are OK with that.

@leonardbf
Copy link
Contributor

Ok, I will link this issue when I create the 2019-08-01 PR.

@maggiepint maggiepint added the customer-reported Issues that are reported by GitHub users external to the Azure organization. label Oct 11, 2019
@neil-yechenwei
Copy link
Author

Ok, I will link this issue when I create the 2019-08-01 PR.

Thanks for your response quickly. Can we learn a rough ETA (deadline) when to onboard the fix?

@leonardbf
Copy link
Contributor

The RP release associated with the 2019-08-01 API is planned for the beginning of November so I expect we will push this API version to github for review toward the end of October, perhaps late next week.

@akning-ms
Copy link
Contributor

@leonardbf Seems this issue is fixed? if yes, can you help close this issue?

@leonardbf
Copy link
Contributor

@leonardbf Seems this issue is fixed? if yes, can you help close this issue?

@akning-ms I have unassigned myself from the ticket. It seems I do not have authorisation to close. And yes as mentioned above the issue should be resolved.

@leonardbf leonardbf removed their assignment Feb 24, 2020
@neil-yechenwei
Copy link
Author

thank you @leonardbf for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization.
Projects
None yet
Development

No branches or pull requests

6 participants