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

Codegen Payload Types #512

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Codegen Payload Types #512

merged 2 commits into from
Jan 29, 2025

Conversation

rocktavious
Copy link
Collaborator

Resolves #

Problem

Payload types are hand crafted per mutation

Solution

codegenerate them

Checklist

  • I have run this code, and it appears to resolve the stated issue.
  • This PR does not reduce total test coverage
  • This PR has no user interface changes or has already received approval from product management to change the interface.
  • Does this change require a Terraform schema change?
    • If so what is the ticket or PR #
  • Make a changie entry that explains the customer facing outcome of this change

@rocktavious rocktavious requested a review from p25marti January 29, 2025 01:43
@rocktavious rocktavious self-assigned this Jan 29, 2025
@@ -56,7 +56,7 @@ type CustomActionsTriggerDefinitionsConnection struct {

func (client *Client) CreateWebhookAction(input CustomActionsWebhookActionCreateInput) (*CustomActionsExternalAction, error) {
var m struct {
Payload struct {
Payload struct { // TODO: fix this
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

All the "TODO" are there for future self's when we come back around. Unfortunately switching these inline structs to the generated payload stucts requires test changes that i'm not willing to take on right now. So i've just noted all the places where we need to fix for the future.

Copy link
Contributor

@p25marti p25marti left a comment

Choose a reason for hiding this comment

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

LGTM! Went through each of the payloads myself just to be doubly sure.

@rocktavious rocktavious merged commit 0f21817 into kr/components-crud Jan 29, 2025
2 checks passed
@rocktavious rocktavious deleted the kr/codegen-payloads branch January 29, 2025 21:00
rocktavious added a commit that referenced this pull request Jan 30, 2025
* Add component CRUD functions

* small fixes

* Codegen Payload Types (#512)

* Codegen Payload Types

* lint fixes
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.

2 participants