fix(vulnerability): remove URGENT priority from sorting and update related documentation - #513
Open
ybelMekk wants to merge 14 commits into
Open
fix(vulnerability): remove URGENT priority from sorting and update related documentation#513ybelMekk wants to merge 14 commits into
ybelMekk wants to merge 14 commits into
Conversation
…and priority handling
…ITY_URGENT and adjust sorting behavior
… improve error handling
…lated documentation
…and priority handling
…ITY_URGENT and adjust sorting behavior
… improve error handling
…xploited Bump github.com/nais/v13s/pkg/api to bd6d431 (renames Summary.ActNow to Summary.KevCount, wire-compatible). Remove the always-zero countsByPriority.urgent counter and expose a proper knownExploited count sourced from KevCount instead. Keep severity ints and hasSBOM as deprecated-but-present fields. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ybelMekk
force-pushed
the
fix/priority
branch
from
September 8, 2026 09:37
c9402d4 to
886dd61
Compare
…and priority handling
…ITY_URGENT and adjust sorting behavior
… improve error handling
…xploited Bump github.com/nais/v13s/pkg/api to bd6d431 (renames Summary.ActNow to Summary.KevCount, wire-compatible). Remove the always-zero countsByPriority.urgent counter and expose a proper knownExploited count sourced from KevCount instead. Keep severity ints and hasSBOM as deprecated-but-present fields. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ybelMekk
force-pushed
the
fix/priority
branch
from
September 8, 2026 11:32
886dd61 to
d3985ff
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ybelMekk
force-pushed
the
fix/priority
branch
from
September 9, 2026 12:04
63afd89 to
a5c7a60
Compare
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.
Follow-up to fix/priority PR
This branch is stacked on
fix/priority; the PR base is set to that branch, so GitHub will retarget this tomainonce the parent merges. Merge the parent first.This pull request removes the "urgent" vulnerability priority as an order-by field from the vulnerability summary features. This field was deprecated because URGENT depends on a workload's internet exposure, which isn't available when counts are aggregated across workloads at summary scope — so the count is always 0 there and the ordering is a no-op. The change cleans up the codebase by removing all references to this field across the GraphQL schema, generated code, models, and sorting logic.
Technically a breaking GraphQL change (enum value removal), but verified safe:
console-frontendhas zero references toVULNERABILITY_PRIORITY_URGENToutside generated files.CVEPriority.URGENTis untouched — it's still returned per-workload byCVE.priority/WorkloadVulnerability.priority.GraphQL Schema and API Cleanup:
VULNERABILITY_PRIORITY_URGENTorder-by field from the GraphQL schema (vulnerability.graphqls) and the generated Go code (root_.generated.go). [1] [2]Model and Validation Updates:
VulnerabilitySummaryOrderByFieldVulnerabilityPriorityUrgentconstant and all references from the vulnerability models, including the list of valid fields and the validation logic inmodels.go. [1] [2]Sorting and Filtering Logic:
sortfilter.go. [1] [2]