Skip to content

refactor(gcp-codegen): Extract generateTemplate method#5958

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:refactor/gcp_gen_template
Jan 3, 2023
Merged

refactor(gcp-codegen): Extract generateTemplate method#5958
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
erezrokah:refactor/gcp_gen_template

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

This PR extracts generateTemplate into a separate method to reduce code duplication.
This should make it easier to implement #5957

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Dec 26, 2022
@cq-bot cq-bot added the gcp label Dec 26, 2022
@bbernays
Copy link
Copy Markdown
Collaborator

@erezrokah - I have ideas about how to do this if you want me to work on it today

@erezrokah
Copy link
Copy Markdown
Member Author

@erezrokah - I have ideas about how to do this if you want me to work on it today

Opened a PR in #5961

@erezrokah erezrokah force-pushed the refactor/gcp_gen_template branch from defee7b to 0ab4046 Compare December 28, 2022 16:32
@erezrokah erezrokah force-pushed the refactor/gcp_gen_template branch from 0ab4046 to 9330274 Compare December 28, 2022 16:51
@vercel
Copy link
Copy Markdown

vercel bot commented Dec 28, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cloudquery-web 🔄 Building (Inspect) Dec 28, 2022 at 4:51PM (UTC)

@erezrokah erezrokah added automerge Automatically merge once required checks pass and removed automerge Automatically merge once required checks pass labels Dec 29, 2022
@kodiakhq kodiakhq bot merged commit 8f5d7c8 into cloudquery:main Jan 3, 2023
kodiakhq bot pushed a commit that referenced this pull request Jan 3, 2023

#### Summary

Fixes #5957.

We need to put the services file in both the code gen module and the GCP client as they both use it. Previously code gen referenced the GCP client directly which prevents auto generation of the services file.

It should be easier to review this once #5958 is merged.

Added a new makefile target as we should first discover the services, then run the codegen

<!--
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants