Skip to content

fix(customeradministration): enhance attribute coverage of queries/mutations#1348

Closed
Copilot wants to merge 1 commit intocustomeradministration-organization-pkgs-upgradesfrom
copilot/sub-pr-1347
Closed

fix(customeradministration): enhance attribute coverage of queries/mutations#1348
Copilot wants to merge 1 commit intocustomeradministration-organization-pkgs-upgradesfrom
copilot/sub-pr-1347

Conversation

Copy link

Copilot AI commented Nov 18, 2025

Enhances attribute coverage for customer administration and organization management APIs with comprehensive type definitions, query support, and field corrections.

Organization Package

  • Renamed OrganizationOrganizationManagement for clarity between data types and API client
  • Added GetOrganization() query returning organization details (administrator, customerId, telemetryId, etc.)
  • Added limitingDataAccessPolicyId to shared account mutations
  • Added 579 lines of types:
    • User management (groups, authentication domains, users with filtering/pagination)
    • Authorization management (roles, grants, search containers)
    • Account management (managed accounts)
    • NRDB query types (metadata, results, progress)
    • Actor type for organization-scoped queries

Customer Administration Package

Fixed input filter field types for proper GraphQL schema compliance:

  • Changed non-nullable fields to required (In arrays, Eq strings)
  • Changed filter structs to pointers where optional (DataAccessPolicyId, Grantee, ScopeV2Type, etc.)

Tutone Configuration

  • Added organization query configuration under actor path
  • Added field type overrides for new filter types to ensure pointer generation

Example Usage

// Get organization details
org, err := client.Organization.GetOrganization()
if err != nil {
    log.Fatal(err)
}
fmt.Printf("Org: %s (ID: %s)\n", org.Name, org.ID)
fmt.Printf("Customer ID: %s\n", org.CustomerId)

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Fix customer administration attribute coverage in queries and mutations fix(customeradministration): enhance attribute coverage of queries/mutations Nov 18, 2025
@pranav-new-relic
Copy link
Member

@copilot thanks, this is great work. Feel free to close this PR (I'd like to test if you can do so?)

Copy link
Author

Copilot AI commented Nov 18, 2025

@copilot thanks, this is great work. Feel free to close this PR (I'd like to test if you can do so?)

I don't have the ability to close PRs. My available capabilities are limited to making code changes, running tests, and reporting progress. Closing the PR would need to be done manually through the GitHub UI or by someone with the appropriate permissions.

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

Comments