Conversation
plugins/source/azure/resources/services/armaad/private_link_policy.go
Outdated
Show resolved
Hide resolved
plugins/source/azure/resources/services/armaad/private_link_policy_mock_test.go
Outdated
Show resolved
Hide resolved
plugins/source/azure/resources/services/armapimanagement/group_contract.go
Outdated
Show resolved
Hide resolved
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
45b6825 to
a3e16b7
Compare
There was a problem hiding this comment.
Thanks for the follow up @yevgenypats the new code gen changes look great 🚀
I think the switch to the new SDK removed a lot of relations we had as we multiplex on resource group instead of getting it from the parent, for example:
vs
WHICH IS GREAT 🎸
Added a few non blocking comments on the code.
Also a few comments similar to the ones I left on @candiduslynx PR:
subscription_idis missing from all the tables. Do we want to re-add it?- Relations are missing a link to the parent, for example
azure_cdn_endpointshadprofile_idcolumn. - In the current plugin there's a convention to use lowercase table methods, e.g.
endpointsinstead ofEndpointsfor relation tables to prevent them being called from outside the package accidentally (we had a few bugs related to this in v0). Do we want to keep that convention? Since everything is auto generated I wouldn't worry to much if it's difficult to add.
Asking again - can we remove codegen1/recipes/ from source code? It's an intermediate directory if I'm not mistaken and is not required for make gen to work or the code to compile correct?
Finally I think we still to do a pass on the relations that are missing, for example
Approving since I think it will be easier to address the issues in additional PRs
| ResourceName string | ||
| } | ||
| // this is used to hook ParseResourceGroup and to have easier codegen | ||
| var debug = false |
There was a problem hiding this comment.
Looks like this is used in the tests. Maybe add an option API to ParseResourceGroup to return a mock response? Or even rename this from debug to returnMockResourceGroup
| for _, t := range tables { | ||
| // skip tables witout URL (or at least that we didn't find one) | ||
| // not NewListPager struct and more than 3 params | ||
| if t.URL == "" || !t.HasListPager || !isArrayExist(supportedNewListPagerParams, t.NewListPagerParams) { |
There was a problem hiding this comment.
Not sure, but is one of the conditions here consists as a warning? Maybe no URL. You can ignore if this comment is not relevant
There was a problem hiding this comment.
I've just pushed/simplified the code here to support multiple types of pager in codegen0
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
Thanks. 1 and 3 addressed. 2 will be addressed in follow-up PRs. |
|
We should have merged this as a breaking change, but I think we can tweak the changelog later on |
This PR comes instead of this #5286 as old pr got messed up.
This generates the autogeneration code and tries to generate the whole huge Azure SDK completely.
BEGIN_COMMIT_OVERRIDE
feat(azure): Move to new sdk
BREAKING CHANGE: Move to new SDK. Many new resources were added, please see https://www.cloudquery.io/docs/plugins/sources/azure/tables for the new list. The main difference in columns is that we don't unwrap Azure properties into separate columns. Instead
propertiesare stored as a JSON columnEND_COMMIT_OVERRIDE