Skip to content

fix(gcp): Prevent gcp_resourcemanager_folders rows with nil org_id#6577

Merged
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
disq:fix/gcp_folder_org_id_nilness
Jan 11, 2023
Merged

fix(gcp): Prevent gcp_resourcemanager_folders rows with nil org_id#6577
kodiakhq[bot] merged 4 commits intocloudquery:mainfrom
disq:fix/gcp_folder_org_id_nilness

Conversation

@disq
Copy link
Copy Markdown
Member

@disq disq commented Jan 10, 2023

No description provided.

@disq disq requested a review from erezrokah January 10, 2023 12:37
@disq disq requested a review from yevgenypats as a code owner January 10, 2023 12:37
@cq-bot cq-bot added the gcp label Jan 10, 2023
@erezrokah
Copy link
Copy Markdown
Member

This looks good, but let's wait until we finish the SDK migration and do this after #6576 as we'll need to release the PK change as breaking regardless (the data is missing at the moment)

Copy link
Copy Markdown
Member

@erezrokah erezrokah left a comment

Choose a reason for hiding this comment

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

I'm not sure why we need to get the organization from the Parent field.
The docs for ListFolders say:

// ListFolders lists the folders that are direct descendants of supplied parent resource.

So it seems the folders will always we under cl.OrgId . Isn't that the case?

@disq disq added the automerge Automatically merge once required checks pass label Jan 11, 2023
@github-actions
Copy link
Copy Markdown

This PR has the following changes to source plugin(s) tables:

  • Table gcp_resourcemanager_folders: primary key constraint added to column name
  • Table gcp_resourcemanager_folders: primary key constraint added to column organization_id
  • Table gcp_resourcemanager_folders: primary key constraint removed from column _cq_id

@kodiakhq kodiakhq bot merged commit 266c191 into cloudquery:main Jan 11, 2023
@disq disq deleted the fix/gcp_folder_org_id_nilness branch January 11, 2023 19:53
erezrokah pushed a commit that referenced this pull request Jan 17, 2023
🤖 I have created a release *beep* *boop*
---


##
[7.2.0](plugins-source-gcp-v7.1.1...plugins-source-gcp-v7.2.0)
(2023-01-17)


### Features

* Add GCP vmmigration
([#6760](#6760))
([28d9825](28d9825))
* ADD GCP VPC Access
([#6755](#6755))
([59c32dc](59c32dc))
* Add GCP Web Security Scanner
([#6674](#6674))
([9b08d0e](9b08d0e))
* **gcp-resources:** Add Cloud Scheduler
([#6770](#6770))
([b0941af](b0941af))
* **gcp-resources:** Add Cloud Support
([#6771](#6771))
([7aefc2b](7aefc2b))
* **gcp-resources:** Add livestream
([#6788](#6788))
([6da9658](6da9658))
* **gcp-resources:** Add missing KMS resources
([#6769](#6769))
([9ecc4d7](9ecc4d7))
* **gcp-resources:** Add translate
([#6832](#6832))
([d827029](d827029))
* **gcp-resources:** Add video-transcoder
([#6806](#6806))
([d4fd41d](d4fd41d))
* **gcp-resources:** Add vision
([#6786](#6786))
([3dd6116](3dd6116))


### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.2
([#6695](#6695))
([694ab9f](694ab9f))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.25.0
([#6745](#6745))
([9c41854](9c41854))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.25.1
([#6805](#6805))
([9da0ce2](9da0ce2))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.26.0
([#6839](#6839))
([6ccda8d](6ccda8d))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.27.0
([#6856](#6856))
([545799b](545799b))
* **gcp:** Add `Location` to client `ID` when present
([#6807](#6807))
([8b21b80](8b21b80))
* **gcp:** Prevent gcp_resourcemanager_folders rows with nil org_id
([#6577](#6577))
([266c191](266c191))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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