Skip to content

Conversation

jharley
Copy link
Collaborator

@jharley jharley commented Aug 22, 2025

Migrates r/query_annotation to the Plugin Framework.

@jharley jharley added the refactor Internal improvements. label Aug 22, 2025
@jharley jharley marked this pull request as ready for review August 22, 2025 16:36
@jharley jharley requested a review from a team as a code owner August 22, 2025 16:36
Copy link
Contributor

@cewkrupa cewkrupa left a 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,
Copy link
Contributor

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

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?

Copy link
Collaborator Author

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()
Copy link
Contributor

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?

Copy link
Collaborator Author

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.

@jharley jharley merged commit 39f7c48 into main Aug 22, 2025
8 of 10 checks passed
@jharley jharley deleted the jharley.migrate-qa-resource branch August 22, 2025 19:20
jharley added a commit that referenced this pull request Aug 25, 2025
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Internal improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants