Skip to content

fix(gcp-resources)!: Add project_id, instance_name, name as PKs for gcp_bigtableadmin_tables#6536

Merged
erezrokah merged 4 commits intocloudquery:mainfrom
erezrokah:fix/gcp_bigtableadmin_tables_pks
Jan 10, 2023
Merged

fix(gcp-resources)!: Add project_id, instance_name, name as PKs for gcp_bigtableadmin_tables#6536
erezrokah merged 4 commits intocloudquery:mainfrom
erezrokah:fix/gcp_bigtableadmin_tables_pks

Conversation

@erezrokah
Copy link
Copy Markdown
Member

@erezrokah erezrokah commented Jan 9, 2023

Summary

gcp_bigtableadmin_tables had only project_id as PK which means we can only get 1 per project in overwrite* modes.
Since the API doesn't provide an Id we need to use the parent instance_name and table name.
The code to get the table name already exists:


I added it accidentally in #6384.

This is a breaking change as it relies on newly added columns for PKs

@erezrokah erezrokah changed the title fix(gcp-resources): Add project_id, instance_name, name as PKs for gcp_bigtableadmin_tables` fix(gcp-resources)!: Add project_id, instance_name, name as PKs for gcp_bigtableadmin_tables Jan 9, 2023
@cq-bot cq-bot added the gcp label Jan 9, 2023
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 9, 2023

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

  • ⚠️ BREAKING CHANGE: Table gcp_bigtableadmin_tables: column added with name instance_name (PK) and type String
  • ⚠️ BREAKING CHANGE: Table gcp_bigtableadmin_tables: column added with name name (PK) and type String

@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jan 10, 2023
@erezrokah erezrokah removed the automerge Automatically merge once required checks pass label Jan 10, 2023
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jan 10, 2023
@erezrokah erezrokah added automerge Automatically merge once required checks pass and removed automerge Automatically merge once required checks pass labels Jan 10, 2023
@erezrokah erezrokah merged commit 75cf1c5 into cloudquery:main Jan 10, 2023
kodiakhq bot pushed a commit that referenced this pull request Jan 10, 2023
🤖 I have created a release *beep* *boop*
---


## [7.0.0](plugins-source-gcp-v6.1.2...plugins-source-gcp-v7.0.0) (2023-01-10)


### ⚠ BREAKING CHANGES

* **gcp-resources:** Add `project_id, instance_name, name` as PKs for `gcp_bigtableadmin_tables` ([#6536](#6536))
* **deps:** `gcp_cloudiot_device_configs` column `binary_data` type changed from `IntArray` to `ByteArray`
* **deps:** `gcp_cloudiot_device_states` column `binary_data` type changed from `IntArray` to `ByteArray`
* **deps:** `gcp_iam_service_account_keys` column `public_key_data` type changed from `IntArray` to `ByteArray`
* **deps:** `gcp_run_locations` column `metadata` type changed from `IntArray` to `ByteArray`
* **deps:** `gcp_artifactregistry_locations` column `metadata` type changed from `IntArray` to `ByteArray`

### Bug Fixes

* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.1 ([aa818c5](aa818c5))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.1 ([aa818c5](aa818c5))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.1 ([aa818c5](aa818c5))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.1 ([aa818c5](aa818c5))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.24.1 ([aa818c5](aa818c5))
* **gcp-resources:** Add `project_id, instance_name, name` as PKs for `gcp_bigtableadmin_tables` ([#6536](#6536)) ([75cf1c5](75cf1c5))

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