Commit fe8c4d53 authored by Simon Knox's avatar Simon Knox

Merge branch 'ntepluhina-fix-heuristic-fragment-error-on-boards' into 'master'

Added introspection fragment matcher to Epic Boards

See merge request gitlab-org/gitlab!61101
parents 47d72619 ec7b2421
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
// relies on app/views/shared/boards/_show.html.haml for its // relies on app/views/shared/boards/_show.html.haml for its
// template. // template.
/* eslint-disable @gitlab/no-runtime-template-compiler */ /* eslint-disable @gitlab/no-runtime-template-compiler */
import { IntrospectionFragmentMatcher } from 'apollo-cache-inmemory';
import Vue from 'vue'; import Vue from 'vue';
import VueApollo from 'vue-apollo'; import VueApollo from 'vue-apollo';
import { mapActions, mapState } from 'vuex'; import { mapActions, mapState } from 'vuex';
...@@ -21,11 +22,24 @@ import createDefaultClient from '~/lib/graphql'; ...@@ -21,11 +22,24 @@ import createDefaultClient from '~/lib/graphql';
import '~/boards/filters/due_date_filters'; import '~/boards/filters/due_date_filters';
import { NavigationType, parseBoolean } from '~/lib/utils/common_utils'; import { NavigationType, parseBoolean } from '~/lib/utils/common_utils';
import { updateHistory } from '~/lib/utils/url_utility'; import { updateHistory } from '~/lib/utils/url_utility';
import introspectionQueryResultData from '~/sidebar/fragmentTypes.json';
Vue.use(VueApollo); Vue.use(VueApollo);
const fragmentMatcher = new IntrospectionFragmentMatcher({
introspectionQueryResultData,
});
const apolloProvider = new VueApollo({ const apolloProvider = new VueApollo({
defaultClient: createDefaultClient(), defaultClient: createDefaultClient(
{},
{
cacheConfig: {
fragmentMatcher,
},
assumeImmutableResults: true,
},
),
}); });
export default () => { export default () => {
......
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