Skip to content

feat: Add example of list/detail codegen#1706

Merged
yevgenypats merged 4 commits intofeat/cloudquery-cli-v2from
feat/list_detail_codegen
Sep 3, 2022
Merged

feat: Add example of list/detail codegen#1706
yevgenypats merged 4 commits intofeat/cloudquery-cli-v2from
feat/list_detail_codegen

Conversation

@yevgenypats
Copy link
Copy Markdown
Contributor

Summary

An example of autogenerated list/detail pattern with sdk concurrency support


Use the following steps to ensure your PR is ready to be reviewed

  • Read the contribution guidelines 🧑‍🎓
  • Test locally on your own infrastructure
  • Run go fmt to format your code 🖊
  • Lint your changes via golangci-lint run 🚨 (install golangci-lint here)
  • Update or add tests 🧪
  • Ensure the status checks below are successful ✅

@yevgenypats yevgenypats requested review from a team and candiduslynx and removed request for a team September 1, 2022 20:25
@yevgenypats yevgenypats requested review from bbernays, erezrokah and hermanschaaf and removed request for bbernays and candiduslynx September 1, 2022 20:25
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! We just need to remember updating the go.mod before merging

@yevgenypats yevgenypats merged commit eee2145 into feat/cloudquery-cli-v2 Sep 3, 2022
@yevgenypats yevgenypats deleted the feat/list_detail_codegen branch September 3, 2022 14:09
yevgenypats added a commit that referenced this pull request Sep 6, 2022
* feat: Add example of list/detail codegen

* make naming more reasonable

* finalizing gcp

* finalize gcp migration
yevgenypats added a commit that referenced this pull request Sep 6, 2022
* feat!: CloudQuery V2.

goes together with cloudquery/plugin-sdk#4

This is V2 of CloudQuery CLI together with the new https://github.com/cloudquery/plugin-sdk

- Support for multiple databases. plugins are sending info back to CLI
- seperate CLI configuration from plugins configuration.

- Moved to plain gRPC (no more go-plugin)
- zerolog everwhere

- no custom UI implementations
- no bloated/unneeded abstraction layers

Issues that should be fixed:

#1104
#1055
#983
#859
#858
#888
#857
#854
#904
#751
#539
#392
#292
#159
#908
#840

* migrate gcp to new sdk

* work on a new abstraction layer for codegen

* re-implement cq-gen

* Add autogenerated mock tests

* auto generated compute service

* working compute service

* regenerated gcp with compute with primary key

* Add automigrate to postgresql-dest

* small logging fix

* improve pg tests

* more work

* pg storage working with upsert

* wip

* Compiled resources

* autogenerated test passing

* remove old gcp services

* remove more old services

* migrate more gcp services

* PostgreSQL fixes

* fix pg migration

* working on more tests

* remove old gcp workflows

* more tests

* Adding more tests

* rebase more or less worked

* remove replace directive

* more go lint fixes

* update plugin-sdk

* make gcp compile

* fix more linters

* fix race condition bug with plugin hanging

* bugfix in community plugins

* fix plugin tests

* fix: Show help on parsing errors

* fix review

* feat: Remove unique from PostgreSQL destination

* remove the need for deprecated errors package

* feat: Write to config file instead of stdout (v2) (#1645)

* feat: Write to config file instead of stdout

* Update SDK to v0.0.10 and remove unique constraints

* Add more assertions to generate test

* Write to stdout

* clarify if statement

* fix: pgx_log_level not mandatory

* feat: Add errors/warnings summary

* test: Add more cmd tests (#1696)

test: Add more tests to cli

* chore: Remove old test file

* feat: Add example of list/detail codegen (#1706)

* feat: Add example of list/detail codegen

* make naming more reasonable

* finalizing gcp

* finalize gcp migration

* feat: New go sdk for gcp (#1720)

* update to latest sdk

* feat: Move to new SDK

* more fixes to autogeneration

* more fixes to gcp

* feat: Add sentry

* remove old faker

* go mod tidy

* fix cli tests

Co-authored-by: Herman Schaaf <hermanschaaf@gmail.com>
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.

2 participants