Commit 0555831e authored by Natalia Tepluhina's avatar Natalia Tepluhina Committed by Vitaly Slobodin

Enable `assumeImmutableResults` for the last apps in the codebase

parent 5f4df28b
......@@ -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