Repository navigation
refactor(v0s): merge legacy vulnerability package - #680
Merged
Merged
Conversation
Consolidate historical vulnerability models, activity log handlers and GraphQL schema under v0s while preserving the public contract and stored event payloads. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the consolidation of legacy vulnerability support into v0s.
No open issues 🎉
3 files not reviewed
internal/graph/gengql/activitylog.generated.go: Generated fileinternal/graph/gengql/schema.generated.go: Generated fileinternal/graph/gengql/v0s.generated.go: Generated file
What changed in this PR
Consolidates legacy vulnerability support into v0s, simplifying domain ownership while preserving the public GraphQL contract and historical activity data.
Changes:
- Moves historical models and activity-log handling into
v0s. - Consolidates schemas and updates generated GraphQL bindings.
- Adds historical activity-log tests and updates migration documentation.
| File | Description |
|---|---|
internal/vulnerability/models.go |
Removes relocated legacy models. |
internal/vulnerability/activitylog.go |
Removes relocated activity-log handling. |
internal/v0s/models.go |
Incorporates historical models and enums. |
internal/v0s/image_vulnerability_activitylog_test.go |
Tests historical payloads, IDs, and errors. |
internal/v0s/activitylog.go |
Incorporates historical event registration and transformation. |
internal/graph/schema/vulnerability.graphqls |
Removes the separate legacy schema. |
internal/graph/schema/v0s.graphqls |
Incorporates historical GraphQL types. |
internal/graph/gengql/vulnerability.generated.go |
Removes superseded generated bindings. |
internal/graph/gengql/v0s.generated.go |
Adds bindings for relocated types. |
internal/graph/gengql/schema.generated.go |
Updates Node dispatch to v0s types. |
internal/graph/gengql/root_.generated.go |
Updates embedded schema organization. |
internal/graph/gengql/activitylog.generated.go |
Updates activity-log dispatch to v0s. |
internal/activitylog/webhook/ignored_events_test.go |
Loads event registrations from v0s. |
docs/v0s_console_migration.md |
Documents consolidated ownership and compatibility. |
.configs/gqlgen.yaml |
Removes the legacy package autobinding. |
Review effort: Balanced
thokra-nav
approved these changes
Dec 3, 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.
This pull request merges the legacy vulnerability package into the v0s package, streamlining the codebase and maintaining the GraphQL contract. Key changes include:
v0s.graphqlsfile, preserving the contract with only minor changes in enum order.models.goandactivitylog.gorespectively.This refactor aims to simplify the structure and improve maintainability while keeping the functionality intact.