-
Notifications
You must be signed in to change notification settings - Fork 40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd love to have a sync discussion but in general Im not in favour of loosing more type safety. In that case nil-deref error will stop being sent out and our permutation/mock tests also wont catch those any more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Revert my first comment - looks like mock tests should catch accessing wrong fields. Maybe can be improved even further with reflection/generic.
This PR is now blocked by this pr |
I suppose the sdk needs to be updated as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, some rogue fields and linting issues, but I like this improvement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could update the sdk reference to be github.com/cloudquery/cq-provider-sdk@a5db808
a5db808 to get rid of the linting errors... or just wait until a new SDK is tagged ofc
🤖 I have created a release *beep* *boop* --- ## [0.13.4](v0.13.3...v0.13.4) (2022-08-02) ### Features * Add Kinesis Data Stream support ([#1348](#1348)) ([767bfab](767bfab)) * Add Tags for ECR Repo ([#1369](#1369)) ([3b31598](3b31598)) * Added glue databases and tables ([#1345](#1345)) ([0284a37](0284a37)) * Added glue jobs ([#1352](#1352)) ([562a6b3](562a6b3)) * Column Resolvers ([#1301](#1301)) ([9b2dbed](9b2dbed)) ### Bug Fixes * **deps:** Update module github.com/cloudquery/cq-gen to v0.0.7 ([#1362](#1362)) ([3060854](3060854)) * **deps:** Update module github.com/hashicorp/go-hclog to v1.2.2 ([#1350](#1350)) ([82ec301](82ec301)) * Update endpoints ([#1347](#1347)) ([3191f3e](3191f3e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
🤖 I have created a release *beep* *boop* --- ## [0.13.4](cloudquery/cq-provider-aws@v0.13.3...v0.13.4) (2022-08-02) ### Features * Add Kinesis Data Stream support ([#1348](cloudquery/cq-provider-aws#1348)) ([767bfab](cloudquery/cq-provider-aws@767bfab)) * Add Tags for ECR Repo ([#1369](cloudquery/cq-provider-aws#1369)) ([3b31598](cloudquery/cq-provider-aws@3b31598)) * Added glue databases and tables ([#1345](cloudquery/cq-provider-aws#1345)) ([0284a37](cloudquery/cq-provider-aws@0284a37)) * Added glue jobs ([#1352](cloudquery/cq-provider-aws#1352)) ([562a6b3](cloudquery/cq-provider-aws@562a6b3)) * Column Resolvers ([#1301](cloudquery/cq-provider-aws#1301)) ([9b2dbed](cloudquery/cq-provider-aws@9b2dbed)) ### Bug Fixes * **deps:** Update module github.com/cloudquery/cq-gen to v0.0.7 ([#1362](cloudquery/cq-provider-aws#1362)) ([3060854](cloudquery/cq-provider-aws@3060854)) * **deps:** Update module github.com/hashicorp/go-hclog to v1.2.2 ([#1350](cloudquery/cq-provider-aws#1350)) ([82ec301](cloudquery/cq-provider-aws@82ec301)) * Update endpoints ([#1347](cloudquery/cq-provider-aws#1347)) ([3191f3e](cloudquery/cq-provider-aws@3191f3e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Summary
2 Improvements:
funk.Get()
method we can completely eliminate an entire class of issues where we try and access a nil pointers.Use the following steps to ensure your PR is ready to be reviewed
go fmt
to format your code 🖊golangci-lint run
🚨 (install golangci-lint here)go run ./docs/docs.go
and committing the changes 📃