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

feat(automation): generate code based on latest API changes #1225

Closed
wants to merge 1 commit into from

Conversation

nr-developer-toolkit
Copy link
Contributor

Automated Pull Request

The following packages have been added or updated: accountmanagement.

The following new mutations will be added to the codebase:
`log_level: info
cache:
schema_file: schema.json
endpoint: https://api.newrelic.com/graphql
auth:
header: Api-Key
api_key_env_var: NEW_RELIC_API_KEY
generators:

  • name: typegen
    fileName: types.go
  • name: nerdgraphclient
    fileName: "{{.PackageName}}_api.go"
    packages:
  • name: accountmanagement
    path: pkg/accountmanagement
    import_path: github.com/newrelic/newrelic-client-go/v2/pkg/accountmanagement
    generators:
    • typegen
    • nerdgraphclient
      imports:
    • github.com/newrelic/newrelic-client-go/v2/pkg/accounts
    • github.com/newrelic/newrelic-client-go/v2/pkg/common
    • github.com/newrelic/newrelic-client-go/v2/pkg/nrtime
    • github.com/newrelic/newrelic-client-go/v2/pkg/users
      queries:
    • path:
      • actor
      • organization
      • accountManagement
        endpoints:
      • name: managedAccounts
        max_query_field_depth: 2
        mutations:
    • name: accountManagementUpdateAccount
      max_query_field_depth: 3
    • name: accountManagementCancelAccount
      max_query_field_depth: 3
    • name: accountManagementCreateAccount
      max_query_field_depth: 2
      `

Please perform the following actions before merging:

  • Review the changes to the generated code
  • Add new integration tests as necessary
  • Update applicable tests as necessary
  • Double check the .tutone.yml config file for accuracy

Note: If something looks off or you have questions, please reach out to an Observability as Code team member for assistance.

@sanderblue sanderblue closed this Sep 27, 2024
@sanderblue sanderblue deleted the automation/generated-code branch September 27, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automated pr enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants