-
Notifications
You must be signed in to change notification settings - Fork 29
chore(r/query_annotation): migrate to Plugin Framework #744
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think overall seems good, just two small questions
Attributes: map[string]schema.Attribute{ | ||
"id": schema.StringAttribute{ | ||
Description: "The unique identifier for this Query Annotation.", | ||
Computed: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q - looks like the ApiKeyResource
terraform-provider-honeycombio/internal/provider/api_key_resource.go
Lines 70 to 71 in 448e063
Required: false, | |
Optional: false, |
specifies Required: false
and Optional: false
for id
. I guess those are zero values so they default to false, but should we include them for clarity?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure! clarity is nice
return | ||
} | ||
|
||
dataset := state.Dataset.ValueString() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should this use helper.GetDatasetOrAll
like the rest of the methods here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops! I missed that. Fixed.
Fixes the follow error if `description` was empty: > Error: Provider produced inconsistent result after apply When applying changes to honeycombio_query_annotation.nice, provider "provider[\"[registry.terraform.io/honeycombio/honeycombio](http://registry.terraform.io/honeycombio/honeycombio)\"]" produced an unexpected new value: .description: was null, but now cty.StringVal(""). This is a bug in the provider, which should be reported in the provider's own issue tracker. - Introduced by #744
Migrates
r/query_annotation
to the Plugin Framework.