generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(issueVariant): allow for creation of issue variant with only a s…
…everity rating (#362) * feat(issueVariant): added optional rating field to severity input * feat(issueVariant): added comments and check for when rating doesn't match vector * fix(tests): removed severity input from tests where not needed * feat(issueVariant): changed iv creation to just use vector when both rating and vector are passed * feat(issueVariant): changed update handler for iv to overwrite existing vector if passed and added test * adding test --------- Co-authored-by: dustindemmerle <[email protected]> Co-authored-by: Michael Reimsbach <[email protected]>
- Loading branch information
1 parent
abd965d
commit 1e07244
Showing
7 changed files
with
159 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
18 changes: 18 additions & 0 deletions
18
internal/api/graphql/graph/queryCollection/issueVariant/createWithRating.graphql
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# SPDX-FileCopyrightText: 2024 SAP SE or an SAP affiliate company and Greenhouse contributors | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
mutation ($input: IssueVariantInput!) { | ||
createIssueVariant ( | ||
input: $input | ||
) { | ||
id | ||
secondaryName | ||
description | ||
severity { | ||
value | ||
score | ||
} | ||
issueRepositoryId | ||
issueId | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,6 +98,7 @@ type Severity { | |
|
||
input SeverityInput { | ||
vector: String | ||
rating: SeverityValues | ||
} | ||
|
||
type FilterItem { | ||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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