Commit 32186208 authored by Alexander Turinske's avatar Alexander Turinske

Rename alert query names to be more explicit

parent 473cf7c5
......@@ -23,7 +23,7 @@ import {
} from '~/vue_shared/components/paginated_table_with_search_and_tabs/constants';
import TimeAgo from '~/vue_shared/components/time_ago_tooltip.vue';
import { convertToSnakeCase } from '~/lib/utils/text_utility';
import getAlerts from '~/graphql_shared/queries/get_alerts.query.graphql';
import getAlertsQuery from '~/graphql_shared/queries/get_alerts.query.graphql';
import getAlertsCountByStatus from '../graphql/queries/get_count_by_status.query.graphql';
import {
ALERTS_STATUS_TABS,
......@@ -119,7 +119,7 @@ export default {
apollo: {
alerts: {
fetchPolicy: fetchPolicies.CACHE_AND_NETWORK,
query: getAlerts,
query: getAlertsQuery,
variables() {
return {
searchTerm: this.searchTerm,
......
......@@ -12,7 +12,7 @@ import {
import produce from 'immer';
import TimeAgo from '~/vue_shared/components/time_ago_tooltip.vue';
import { convertToSnakeCase } from '~/lib/utils/text_utility';
import getAlerts from '~/graphql_shared/queries/get_alerts.query.graphql';
import getAlertsQuery from '~/graphql_shared/queries/get_alerts.query.graphql';
import { DEFAULT_FILTERS, FIELDS, MESSAGES, PAGE_SIZE, STATUSES } from './constants';
import AlertFilters from './alert_filters.vue';
import AlertStatus from './alert_status.vue';
......@@ -42,7 +42,7 @@ export default {
inject: ['documentationPath', 'projectPath'],
apollo: {
alerts: {
query: getAlerts,
query: getAlertsQuery,
variables() {
return {
firstPageSize: this.$options.PAGE_SIZE,
......
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