Commit eea29c00 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Change incidents list query to search by issue_type

parent fbcd3261
...@@ -92,7 +92,7 @@ export default { ...@@ -92,7 +92,7 @@ export default {
searchTerm: this.searchTerm, searchTerm: this.searchTerm,
state: this.stateFilter, state: this.stateFilter,
projectPath: this.projectPath, projectPath: this.projectPath,
labelNames: ['incident'], issueTypes: ['INCIDENT'],
firstPageSize: this.pagination.firstPageSize, firstPageSize: this.pagination.firstPageSize,
lastPageSize: this.pagination.lastPageSize, lastPageSize: this.pagination.lastPageSize,
prevPageCursor: this.pagination.prevPageCursor, prevPageCursor: this.pagination.prevPageCursor,
......
query getIncidents( query getIncidents(
$projectPath: ID! $projectPath: ID!
$labelNames: [String] $issueTypes: [IssueType!]
$state: IssuableState $state: IssuableState
$firstPageSize: Int $firstPageSize: Int
$lastPageSize: Int $lastPageSize: Int
...@@ -12,7 +12,7 @@ query getIncidents( ...@@ -12,7 +12,7 @@ query getIncidents(
issues( issues(
search: $searchTerm search: $searchTerm
state: $state state: $state
labelName: $labelNames types: $issueTypes
first: $firstPageSize first: $firstPageSize
last: $lastPageSize last: $lastPageSize
after: $nextPageCursor after: $nextPageCursor
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment