Commit ab4f061d authored by rpereira2's avatar rpereira2

Move custom metrics Vue files out of EE

The Custom metrics feature is being moved into GitLab Core.
parent cb9ac5a6
<script> <script>
import CustomMetricsFormFields from 'ee/custom_metrics/components/custom_metrics_form_fields.vue'; import CustomMetricsFormFields from '~/custom_metrics/components/custom_metrics_form_fields.vue';
import CeDashboard from '~/monitoring/components/dashboard.vue'; import CeDashboard from '~/monitoring/components/dashboard.vue';
import AlertWidget from './alert_widget.vue'; import AlertWidget from './alert_widget.vue';
......
<script> <script>
import { mapGetters } from 'vuex'; import { mapGetters } from 'vuex';
import CustomMetricsFormFields from 'ee/custom_metrics/components/custom_metrics_form_fields.vue'; import CustomMetricsFormFields from '~/custom_metrics/components/custom_metrics_form_fields.vue';
import CePanelType from '~/monitoring/components/panel_type.vue'; import CePanelType from '~/monitoring/components/panel_type.vue';
import AlertWidget from './alert_widget.vue'; import AlertWidget from './alert_widget.vue';
......
import customMetrics from 'ee/custom_metrics'; import customMetrics from '~/custom_metrics';
document.addEventListener('DOMContentLoaded', customMetrics); document.addEventListener('DOMContentLoaded', customMetrics);
import customMetrics from 'ee/custom_metrics'; import customMetrics from '~/custom_metrics';
document.addEventListener('DOMContentLoaded', customMetrics); document.addEventListener('DOMContentLoaded', customMetrics);
...@@ -9,7 +9,7 @@ import { ...@@ -9,7 +9,7 @@ import {
} from '../../../../../spec/frontend/monitoring/mock_data'; } from '../../../../../spec/frontend/monitoring/mock_data';
import { getJSONFixture } from '../../../../../spec/frontend/helpers/fixtures'; import { getJSONFixture } from '../../../../../spec/frontend/helpers/fixtures';
import { propsData } from '../../../../../spec/frontend/monitoring/init_utils'; import { propsData } from '../../../../../spec/frontend/monitoring/init_utils';
import CustomMetricsFormFields from 'ee/custom_metrics/components/custom_metrics_form_fields.vue'; import CustomMetricsFormFields from '~/custom_metrics/components/custom_metrics_form_fields.vue';
import Tracking from '~/tracking'; import Tracking from '~/tracking';
import { createStore } from '~/monitoring/stores'; import { createStore } from '~/monitoring/stores';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
......
...@@ -22,7 +22,7 @@ module QA ...@@ -22,7 +22,7 @@ module QA
element :add_metric_button element :add_metric_button
end end
view 'ee/app/assets/javascripts/custom_metrics/components/custom_metrics_form_fields.vue' do view 'app/assets/javascripts/custom_metrics/components/custom_metrics_form_fields.vue' do
element :custom_metric_prometheus_title_field element :custom_metric_prometheus_title_field
element :custom_metric_prometheus_query_field element :custom_metric_prometheus_query_field
element :custom_metric_prometheus_y_label_field element :custom_metric_prometheus_y_label_field
......
...@@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils'; ...@@ -2,7 +2,7 @@ import { mount } from '@vue/test-utils';
import MockAdapter from 'axios-mock-adapter'; import MockAdapter from 'axios-mock-adapter';
import { TEST_HOST } from 'helpers/test_constants'; import { TEST_HOST } from 'helpers/test_constants';
import waitForPromises from 'helpers/wait_for_promises'; import waitForPromises from 'helpers/wait_for_promises';
import CustomMetricsFormFields from 'ee/custom_metrics/components/custom_metrics_form_fields.vue'; import CustomMetricsFormFields from '~/custom_metrics/components/custom_metrics_form_fields.vue';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
const { CancelToken } = axios; const { CancelToken } = axios;
......
import { shallowMount } from '@vue/test-utils'; import { shallowMount } from '@vue/test-utils';
import CustomMetricsForm from 'ee/custom_metrics/components/custom_metrics_form.vue'; import CustomMetricsForm from '~/custom_metrics/components/custom_metrics_form.vue';
describe('CustomMetricsForm', () => { describe('CustomMetricsForm', () => {
let wrapper; let wrapper;
......
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