Repository navigation
chore(graphql): deprecate legacy v13s entry points - #672
Merged
Merged
Conversation
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>
Contributor
There was a problem hiding this comment.
🟢 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
christeredvartsen
approved these changes
Dec 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
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
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.