-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add update support for google_data_catalog_tag_template.fields #6574
Add update support for google_data_catalog_tag_template.fields #6574
Comments
I've just started to see the API reference, and learned that Data Catalog supports renaming of fields (not only the display name, but also id). Then, how should these changes treated?
resource "google_data_catalog_tag_template" "table_business_basic" {
tag_template_id = "..."
fields {
- field_id = "foo"
+ field_id = "bar"
type {
primitive_type = "STRING"
}
}
} (I think it's okay not to support renaming at the next step, but anyway field schema seems need to be changed to support this someday) |
One possible solution for this is to introduce With that field, the following example denotes rename operation fields {
- field_id = "foo"
+ field_id = "bar"
type {
primitive_type = "STRING"
}
} And the following example denotes delete+create operation: fields {
- field_id = "foo"
+ deleted = true
+ }
+ fields {
+ field_id = "bar"
type {
primitive_type = "STRING"
}
} Having almost empty |
I've spared a little bit time on tackling on this, and found some limitations. Let me share. Strategy 1. Use
|
How is the work progressing on supporting field addition/modifications? (excluding rename functionality) |
b/251966466 |
fixes hashicorp/terraform-provider-google#6574 Signed-off-by: Modular Magician <[email protected]>
fixes hashicorp#6574 Signed-off-by: Modular Magician <[email protected]>
fixes hashicorp/terraform-provider-google#6574 Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
fixes #6574 Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
fixes hashicorp/terraform-provider-google#6574 Signed-off-by: Modular Magician <[email protected]>
fixes hashicorp/terraform-provider-google#6574 Signed-off-by: Modular Magician <[email protected]> Signed-off-by: Modular Magician <[email protected]>
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Community Note
Description
Follow-up from #5892. This was broken out because it requires extra work in MM to be able to update a field on a resource by calling add/remove/patch on a URL specific to that field. Might be able to work around by just using custom code.
New or Affected Resource(s)
The text was updated successfully, but these errors were encountered: