Skip to content

chore(graphql): deprecate legacy v13s entry points - #672

Merged
rbjornstad merged 1 commit into
mainfrom
chore/deprecate-v13s-graphql
Dec 1, 2026
Merged

rbjornstad merged 1 commit into
mainfrom
chore/deprecate-v13s-graphql

Conversation

@rbjornstad

Copy link
Copy Markdown
Contributor

Summary

  • Mark v13s-backed GraphQL entry points and legacy filter/order choices on shared surfaces deprecated, with explicit v0s migration guidance or no-replacement notices.
  • Preserve all existing resolvers, writes, pagination, node IDs and historical activity-log fields. TPT can continue using image.vulnerabilities during its migration.
  • Document differences in counting and scan coverage, assessment migration/write activation requirements, and the absence of a removal date.
  • Add schema regression tests and update generated GraphQL code.

Compatibility

This only adds deprecation metadata and documentation; it does not switch data sources, remove fields, enable assessment writes or import v13s assessments. v0s counts and coverage are not drop-in equivalents to legacy values. Direct v0s writes do not replicate back to v13s for rollback.

Validation

  • CGO_ENABLED=0 mise run build
  • CGO_ENABLED=0 go test ./internal/graph ./internal/vulnerability/... ./internal/v0s/...
  • go test -race ./internal/graph ./internal/vulnerability/... ./internal/v0s/...
  • CGO_ENABLED=0 mise run check:staticcheck
  • CGO_ENABLED=0 go test -tags=integration_test ./...
  • API client module: CGO_ENABLED=0 go test ./...
  • Post-commit CGO_ENABLED=0 MISE_JOBS=1 MISE_TASK_RUN_AUTO_INSTALL=false mise run fmt ::: generate, followed by git diff --exit-code on a clean worktree

The standard mise run test task was attempted but hits the existing macOS github.com/shoenig/go-m1cpu native initialization crash. The complete integration-tag suite passes with CGO disabled; affected packages also pass with the race detector enabled.

No merge or deployment performed.

Document v0s migration paths while preserving legacy queries, writes and historical activity logs. Mark shared legacy filtering and ordering choices deprecated without changing their behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the legacy GraphQL deprecation and migration-guidance changes.

No open issues 🎉

What changed in this PR

This PR marks legacy v13s GraphQL entry points as deprecated and guides clients toward v0s without changing existing resolver behavior or enabling assessment writes.

Changes:

  • Add deprecation metadata to legacy fields, filters, and ordering options, with migration guidance or explicit no-replacement notices.
  • Document differences in counts and scan coverage, assessment migration requirements, and continued legacy compatibility.
  • Add schema regression tests and refresh the generated GraphQL schema.
File Description
internal/​graph/​vulnerability_filter_test.go Tests legacy deprecations and preservation of current and historical fields.
internal/​graph/​schema/​workloads.graphqls Deprecates the legacy SBOM status filter.
internal/​graph/​schema/​vulnerability.graphqls Deprecates legacy vulnerability fields and ordering options with migration guidance.
internal/​graph/​schema/​v0s.graphqls Clarifies prerequisites for assessment mutations.
internal/​graph/​gengql/​root_.generated.go Updates the embedded schema to match schema changes.
docs/​v0s_console_migration.md Documents migration paths, compatibility guarantees, and semantic differences.

Review effort: Balanced

@rbjornstad
rbjornstad merged commit 042f8b1 into main Dec 1, 2026
13 checks passed
@rbjornstad
rbjornstad deleted the chore/deprecate-v13s-graphql branch December 1, 2026 14:26
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.

3 participants