Skip to content

24 07 2026 schema dump#629

Open
andrewstillv15 wants to merge 4 commits into
mainfrom
24-07-2026-schema-dump
Open

24 07 2026 schema dump#629
andrewstillv15 wants to merge 4 commits into
mainfrom
24-07-2026-schema-dump

Conversation

@andrewstillv15

@andrewstillv15 andrewstillv15 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Problem

The generated public schema is wayyy behind, making the generated diff unmanageable. This MR brings the generated types inline with the current public schema.

Solution

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

The backend's public schema now exposes OnCall, OnCallConnection, and
KubernetesIntegrationInput, which client-gen correctly generates for
real for the first time. Remove the now-duplicate hand-rolled
definitions in on_call.go/integration.go, and update service.go's
GetOnCalls to match the generated OnCallConnection's Nodes-only shape
(no Edges field, consistent with every other Connection type).

Also switch ConnectServiceRepository's BaseDirectory to the plain
*string helper: the backend has always validated allow_null: false on
ServiceRepositoryCreateInput.baseDirectory, and the freshly-extracted
Tier 1 nullability facts now generate it correctly as *string instead
of the historical *Nullable[string] default.

Add ApiTokenOwner as a hand-maintained union type in union.go,
following the same inline-fragment pattern as the other unions here
(e.g. ServiceDocumentSource) -- the backend added a new ApiToken type
with a tokenOwner: ApiTokenOwner union field that client-gen has no way
to generate on its own.
…ction

Unused-so-far Connection types picked up now that a real client-gen
regen runs against the current schema: CampaignTeamConnection from
unblocking Campaign generation, OnCallConnection now that the backend
publicly exposes OnCall, and PackageConnection for the new Package
type. Verified against the backend GraphQL type definitions.
…ategory

Picks up new enum values validated against backend source: Package*
enums for the new Package type, EventIntegrationEnum's snykEvent/
sonarqubeEvent (deprecation replacements), HasDocumentationSubtypeEnum
openapi, PayloadFilterEnum integration_id, RelationshipDisplayStatusEnum
hidden/visible, SecretAccessControlEnum everyone/owner_only, and
ServiceFilterEnum maturity_enabled. Also includes backend doc-string
wording fixes picked up along with the regen.

PredicateKeyEnum.component_category is preserved via the new client-gen
special case (see the opslevel-client-gen submodule bump) since it's
still a documented Terraform provider filter key despite the backend
marking it non-public.
Pure description-text fixes picked up from the backend's GraphQL
schema docs (typos, capitalization of ID/URL/SHA/YAML/HTTP, minor
grammar) -- no field or type changes.
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.

1 participant