Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/commands/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ type predicateView struct {
SimilarityID string `format:"name:Similarity ID"`
Severity string
State string
StateID string
Comment string
CreatedBy string
CreatedAt time.Time `format:"name:Created at;time:01-02-06 15:04:05"`
Expand Down Expand Up @@ -236,6 +237,7 @@ func toSinglePredicateView(predicate *wrappers.Predicate) predicateView {
SimilarityID: predicate.SimilarityID,
Severity: predicate.Severity,
State: predicate.State,
StateID: predicate.StateID,
Comment: predicate.Comment,
CreatedBy: predicate.CreatedBy,
CreatedAt: predicate.CreatedAt,
Expand Down
4 changes: 1 addition & 3 deletions internal/wrappers/predicates.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ type BasePredicate struct {
State string `json:"state"`
Severity string `json:"severity"`
Comment string `json:"comment"`
StateID string `json:"StateId"`
}

type PredicateRequest struct {
Expand Down Expand Up @@ -45,13 +46,10 @@ type CustomState struct {
Type string `json:"type"`
}



type CustomStatesWrapper interface {
GetAllCustomStates(includeDeleted bool) ([]CustomState, error)
}


type ResultsPredicatesWrapper interface {
PredicateSeverityAndState(predicate *PredicateRequest, scanType string) (*WebError, error)
GetAllPredicatesForSimilarityID(
Expand Down
Loading