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 {
searchTerm: this.searchTerm,
state: this.stateFilter,
projectPath: this.projectPath,
labelNames: ['incident'],
issueTypes: ['INCIDENT'],
firstPageSize: this.pagination.firstPageSize,
lastPageSize: this.pagination.lastPageSize,
prevPageCursor: this.pagination.prevPageCursor,
......
query getIncidents(
$projectPath: ID!
$labelNames: [String]
$issueTypes: [IssueType!]
$state: IssuableState
$firstPageSize: Int
$lastPageSize: Int
......@@ -12,7 +12,7 @@ query getIncidents(
issues(
search: $searchTerm
state: $state
labelName: $labelNames
types: $issueTypes
first: $firstPageSize
last: $lastPageSize
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