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

Code Gen v2 #509

Merged
merged 10 commits into from
Jan 28, 2025
Merged

Code Gen v2 #509

merged 10 commits into from
Jan 28, 2025

Conversation

rocktavious
Copy link
Collaborator

Resolves #

Problem

Prior to this a large chunk of the opslevel-go codebase was hand curated. This is untenniable long term especially when graphql is a schema based API.

Solution

Finish out the code gen so the entire client library is generated. (or at least as much as possible)

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 # (TBD)
  • Make a changie entry that explains the customer facing outcome of this change

@rocktavious rocktavious self-assigned this Jan 27, 2025
@@ -100,7 +78,7 @@ func (client *Client) GetCustomAction(input string) (*CustomActionsExternalActio
"input": *NewIdentifier(input),
}
err := client.Query(&q, v, WithName("ExternalActionGet"))
if q.Account.Action.Id == "" {
if q.Account.Action.CustomActionsId.Id == "" {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This needs to be investigated to see if we can fix this

davidbloss and others added 8 commits January 28, 2025 15:06
* generate Go structs of graphql API objects

* temp limit objects generated, add mapping for field types

* generate first objects, update tests

* generate most objects starting with A-C, update tests
* generate unions

* drop unused TagOwner enums

* union tpl clean up
@rocktavious rocktavious merged commit 26deeab into main Jan 28, 2025
3 checks passed
@rocktavious rocktavious deleted the feature/gen-code branch January 28, 2025 21:21
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