Skip to content

fix!: Use JSON tag for column names#2627

Merged
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom
erezrokah:chore/codegen_drift_cloudflare
Oct 11, 2022
Merged

fix!: Use JSON tag for column names#2627
kodiakhq[bot] merged 3 commits intocloudquery:mainfrom
erezrokah:chore/codegen_drift_cloudflare

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

Related to #2189, extracted from #2623. Tests for code gen drift for the Cloudflare plugin.

This is a breaking change as it renames a few columns due to cloudquery/plugin-sdk#112

@erezrokah erezrokah requested a review from a team October 11, 2022 13:30
@erezrokah erezrokah changed the title chore!(ci-cloudflare): Test for code gen drift chore!(cloudflare): Use JSON tag for column names, test for code gen drift Oct 11, 2022
@erezrokah erezrokah changed the title chore!(cloudflare): Use JSON tag for column names, test for code gen drift fix!(cloudflare): Use JSON tag for column names, test for code gen drift Oct 11, 2022
"text/template"

"github.com/cloudquery/cloudquery/plugins/source/cloudflare/codegenmain/recipes"
"github.com/cloudquery/cloudquery/plugins/source/cloudflare/codegen/recipes"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Renamed this package and moved the files to be consistent with other plugins

Name: "account_cq_id",
Type: schema.TypeUUID,
Resolver: "schema.ParentIDResolver",
Name: "account_id",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

This was updated in the resources, but not in the code gen (I was the one who did this update and missed the code gen changes)

},
{
Name: "require_signed_ur_ls",
Name: "require_signed_urls",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Breaking change

},
{
Name: "type",
Name: "secret_text",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Breaking change

},
{
Name: "dev_mode",
Name: "development_mode",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

All breaking changes due to taking the column names from JSON tags

@erezrokah erezrokah changed the title fix!(cloudflare): Use JSON tag for column names, test for code gen drift fix!: Use JSON tag for column names, test for code gen drift Oct 11, 2022
@erezrokah erezrokah changed the title fix!: Use JSON tag for column names, test for code gen drift fix!: Use JSON tag for column names Oct 11, 2022
@erezrokah erezrokah force-pushed the chore/codegen_drift_cloudflare branch from 797bffb to 452f7a7 Compare October 11, 2022 13:39
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Oct 11, 2022
@kodiakhq kodiakhq bot merged commit 9c98b5e into cloudquery:main Oct 11, 2022
kodiakhq bot pushed a commit that referenced this pull request Oct 11, 2022
…2629)



#### Summary

Same as #2627 for DigitalOcean.

Renamed `resources.go` to `main.go` for consistency with other plugins. Also a breaking change due to the column rename.

<!--
kodiakhq bot pushed a commit that referenced this pull request Oct 12, 2022
🤖 I have created a release *beep* *boop*
---


## [2.0.0](plugins-source-cloudflare-v1.0.1...plugins-source-cloudflare-v2.0.0) (2022-10-12)


### ⚠ BREAKING CHANGES

* Use JSON tag for column names (#2627)

### Bug Fixes

* **deps:** Update plugin-sdk for cloudflare to v0.12.10 ([#2547](#2547)) ([cf8216d](cf8216d))
* Upgrade source SDK versions to v0.13.5 ([#2610](#2610)) ([611868e](611868e))
* Use JSON tag for column names ([#2627](#2627)) ([9c98b5e](9c98b5e))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
@erezrokah erezrokah deleted the chore/codegen_drift_cloudflare branch December 15, 2023 10:13
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.

3 participants