Skip to content

Conversation

@bbasata
Copy link
Contributor

@bbasata bbasata commented Jun 13, 2025

Description

  • Tidy doc comments in the list package.
  • Call out fatal error handling in ListResultsStream, based on discussion with Core team today.
  • Removes a deprecated schema Validate method.
  • Fixes imports in list/schema/string_attribute_test.go

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

None

@bbasata bbasata added this to the v1.16.0 milestone Jun 13, 2025
@bbasata bbasata force-pushed the revisit-list-package branch from 4f2a577 to d07f61a Compare June 13, 2025 15:19
@bbasata bbasata marked this pull request as ready for review June 13, 2025 15:25
@bbasata bbasata requested a review from a team as a code owner June 13, 2025 15:25
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.

LGTM 👍🏻

"github.com/hashicorp/terraform-plugin-framework/resource/schema/defaults"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringdefault"
listschema "github.com/hashicorp/terraform-plugin-framework/list/schema"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

💭 When writing providers for testing, I've needed to name imports like this fairly often. Especially when using list/schema and resource/schema in the same file, which is common.

So this test merged with the wrong imports 🙃

If consistency was not an issue, I might have the package live at github.com/hashicorp/terraform-plugin-framework/listschema to make things easier to work with.

For the moment, it seems practical to leave this as it is.

@bbasata bbasata enabled auto-merge (squash) June 16, 2025 14:38
@bbasata bbasata merged commit a7f8748 into main Jun 16, 2025
35 checks passed
@bbasata bbasata deleted the revisit-list-package branch June 16, 2025 14:38
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 16, 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.

2 participants