Skip to content
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

SUP-1051: Team Member resource Framework/Genqlient conversion #313

Merged
merged 12 commits into from
Jul 20, 2023

Conversation

james2791
Copy link
Contributor

@james2791 james2791 commented Jul 18, 2023

PR checklist:

  • docs/ updated
  • tests added
  • an example added to examples/ (useful to demo new field/resource)
  • CHANGELOG.md updated with pending release information

This PR also introduces a node.graphql - to its name, allows for the easy obtaining of any type from the GraphQL that implements the Node interface. The getNode query currently has a Team Member type handling inside (with the corresponding TeamMemberValues fragment in team_member.graphql (note this was the approach instead of aliasing each node subquery which might've re-generated the same code with different function signatures)

@james2791 james2791 marked this pull request as ready for review July 19, 2023 06:26
Copy link
Contributor

@mcncl mcncl left a comment

Choose a reason for hiding this comment

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

Some that could be changed, some that are future things.

buildkite/resource_team_member.go Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Show resolved Hide resolved
buildkite/graphql/node.graphql Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Outdated Show resolved Hide resolved
buildkite/resource_team_member_test.go Outdated Show resolved Hide resolved
examples/main.tf Show resolved Hide resolved
buildkite/graphql/team_member.graphql Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Outdated Show resolved Hide resolved
buildkite/resource_team_member.go Show resolved Hide resolved
mcncl
mcncl previously approved these changes Jul 20, 2023
@james2791 james2791 requested a review from mcncl July 20, 2023 05:44
@james2791
Copy link
Contributor Author

james2791 commented Jul 20, 2023

@mcncl one more before I wrap this in 👍🙏

@james2791
Copy link
Contributor Author

🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants