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