Commit eee85cb3 authored by Simon Knox's avatar Simon Knox

Merge branch 'add_specific_domain_for_alerts_in_graphql' into 'master'

Add domain into the query for threat management

See merge request gitlab-org/gitlab!51029
parents 4b765106 77eff5aa
......@@ -10,6 +10,7 @@ query getAlerts(
$nextPageCursor: String = ""
$searchTerm: String = ""
$assigneeUsername: String = ""
$domain: AlertManagementDomainFilter = operations
) {
project(fullPath: $projectPath) {
alertManagementAlerts(
......@@ -21,6 +22,7 @@ query getAlerts(
last: $lastPageSize
after: $nextPageCursor
before: $prevPageCursor
domain: $domain
) {
nodes {
...AlertListItem
......
......@@ -13,12 +13,13 @@ import produce from 'immer';
import TimeAgo from '~/vue_shared/components/time_ago_tooltip.vue';
import { convertToSnakeCase } from '~/lib/utils/text_utility';
import getAlertsQuery from '~/graphql_shared/queries/get_alerts.query.graphql';
import { DEFAULT_FILTERS, FIELDS, MESSAGES, PAGE_SIZE, STATUSES } from './constants';
import { DEFAULT_FILTERS, FIELDS, MESSAGES, PAGE_SIZE, STATUSES, DOMAIN } from './constants';
import AlertFilters from './alert_filters.vue';
import AlertStatus from './alert_status.vue';
export default {
PAGE_SIZE,
DOMAIN,
i18n: {
FIELDS,
MESSAGES,
......@@ -48,6 +49,7 @@ export default {
firstPageSize: this.$options.PAGE_SIZE,
projectPath: this.projectPath,
sort: this.sort,
domain: this.$options.DOMAIN,
...this.filters,
};
},
......
......@@ -47,3 +47,5 @@ export const FIELDS = [
export const PAGE_SIZE = 20;
export const DEFAULT_FILTERS = { statuses: ['TRIGGERED', 'ACKNOWLEDGED'] };
export const DOMAIN = 'threat_monitoring';
---
title: Add specific domain for threat management related alerts in order to tie the
frontend and backend together.
merge_request: 51029
author:
type: changed
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