Skip to content

fix: Revert "fix(gcp-resources): Add organization_id and name as PK of gcp_resourcemanager_folders#6576

Merged
kodiakhq[bot] merged 1 commit intocloudquery:mainfrom
erezrokah:fix/folders_pks
Jan 10, 2023
Merged

fix: Revert "fix(gcp-resources): Add organization_id and name as PK of gcp_resourcemanager_folders#6576
kodiakhq[bot] merged 1 commit intocloudquery:mainfrom
erezrokah:fix/folders_pks

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

Looks like organization_id can be nil. name should be good enough:

@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 10, 2023

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

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

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jan 10, 2023
@disq
Copy link
Copy Markdown
Member

disq commented Jan 10, 2023

Can it be, though? Maybe remove the check and see if any weird org ids pop up?

@erezrokah
Copy link
Copy Markdown
Member Author

Can it be, though? Maybe remove the check and see if any weird org ids pop up?

I'd rather do it separately and fix this bug first as it fails our migration code

@hermanschaaf
Copy link
Copy Markdown
Contributor

@erezrokah What if name isn't unique enough though, couldn't that cause rows to be erroneously overwritten?

…PK of `gcp_resourcemanager_folders` (cloudquery#6547)"

This reverts commit 3c0e702.
@erezrokah
Copy link
Copy Markdown
Member Author

Let's do a full revert of #6547 until we figure this out

@erezrokah erezrokah changed the title fix(gcp): Remove organization_id as PK of gcp_resourcemanager_folders ix: Revert "fix(gcp-resources): Add organization_id and name as PK of gcp_resourcemanager_folders Jan 10, 2023
@erezrokah erezrokah changed the title ix: Revert "fix(gcp-resources): Add organization_id and name as PK of gcp_resourcemanager_folders fix: Revert "fix(gcp-resources): Add organization_id and name as PK of gcp_resourcemanager_folders Jan 10, 2023
@kodiakhq kodiakhq bot merged commit 3434e42 into cloudquery:main Jan 10, 2023
@erezrokah erezrokah deleted the fix/folders_pks branch January 10, 2023 12:48
kodiakhq bot pushed a commit that referenced this pull request Jan 10, 2023
🤖 I have created a release *beep* *boop*
---


## [6.1.2](plugins-source-gcp-v6.1.1...plugins-source-gcp-v6.1.2) (2023-01-10)


### Bug Fixes

* Revert "fix(gcp-resources): Add `organization_id` and `name` as PK of `gcp_resourcemanager_folders` ([#6576](#6576)) ([3434e42](3434e42))

---
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.

4 participants