Skip to content

Conversation

@rainkwan
Copy link
Contributor

@rainkwan rainkwan commented Aug 4, 2025

Related Issue

Continues #531

Description

Adds QueryCheck to plugin testing to go along with Query

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

No

@rainkwan rainkwan changed the title rk/list-resource-query-check List Resource QueryCheck Aug 4, 2025
@austinvalle austinvalle mentioned this pull request Sep 16, 2025
1 task
@rainkwan rainkwan added this to the v1.14.0 milestone Sep 17, 2025
@stephybun stephybun marked this pull request as ready for review September 17, 2025 16:01
@stephybun stephybun requested a review from a team as a code owner September 17, 2025 16:01
austinvalle
austinvalle previously approved these changes Sep 17, 2025
Copy link
Member

@austinvalle austinvalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Sounds like this is going to be a beta, so we can still come back and change any naming later if we so choose. All of the comments I left are nits that can be addressed/dismissed later

// createDeltaString prints the map keys that are present in mapA and not present in mapB
func createDeltaString[T any, V any](mapA map[string]T, mapB map[string]V, msgPrefix string) string {
// CreateDeltaString prints the map keys that are present in mapA and not present in mapB
func CreateDeltaString[T any, V any](mapA map[string]T, mapB map[string]V, msgPrefix string) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd say just move this function somewhere in the internal package, unless we want consumers to use it

Diagnostics []*tfprotov6.Diagnostic
NewState tftypes.Value
NewIdentity *tftypes.Value
NewQuery tftypes.Value
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Were these meant to be added to the create resp / delete request?

Comment on lines +14 to +17
type queryCheckSpy struct {
err error
called bool
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: Doesn't look like this is used anywhere, perhaps it will eventually?

@stephybun stephybun merged commit cf9903e into main Sep 18, 2025
43 checks passed
@stephybun stephybun deleted the rk/list-resource-query-check branch September 18, 2025 07:32
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants