Commit 1972ec41 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Merge branch...

Merge branch '338446-enable-assumeimmutableresults-in-ee-app-assets-javascripts-analytics-cycle_analytics-index-js' into 'master'

Enable `assumeImmutableResults` for the last apps in the codebase

See merge request gitlab-org/gitlab!73341
parents 6c9e74ac 0555831e
......@@ -12,7 +12,12 @@ export default () => {
return null;
}
const defaultClient = createDefaultClient();
const defaultClient = createDefaultClient(
{},
{
assumeImmutableResults: true,
},
);
const { agentName, projectPath } = el.dataset;
return new Vue({
......
......@@ -28,8 +28,7 @@ export default function initMergeRequestShow() {
const el = document.querySelector('.js-mr-status-box');
const apolloProvider = new VueApollo({
assumeImmutableResults: true,
defaultClient: createDefaultClient(),
defaultClient: createDefaultClient({}, { assumeImmutableResults: true }),
});
// eslint-disable-next-line no-new
new Vue({
......
......@@ -6,7 +6,7 @@ import TerraformNotification from './components/terraform_notification.vue';
Vue.use(VueApollo);
const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(),
defaultClient: createDefaultClient({}, { assumeImmtableResults: true }),
});
export default () => {
......
......@@ -14,7 +14,12 @@ Vue.use(GlToast);
Vue.use(VueApollo);
const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(),
defaultClient: createDefaultClient(
{},
{
assumeImmutableResults: true,
},
),
});
export default () => {
......
......@@ -11,7 +11,7 @@ import { parseAndValidateDates } from './utils';
Vue.use(VueApollo);
const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(),
defaultClient: createDefaultClient({}, { assumeImmutableResults: true }),
});
export default () => {
......
......@@ -19,7 +19,7 @@ const initTestCaseList = ({ mountPointSelector }) => {
}
const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(),
defaultClient: createDefaultClient({}, { assumeImmutableResults: true }),
});
const {
......
......@@ -15,7 +15,7 @@ export default function initIterationsDropdownBundle() {
}
const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(),
defaultClient: createDefaultClient({}, { assumeImmutableResults: true }),
});
const { fullPath } = el.dataset;
......
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