Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
e8378cb4
Commit
e8378cb4
authored
Apr 28, 2021
by
NataliaTepluhina
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implemented fragment matcher for Issuable
parent
5222fb59
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
app/assets/javascripts/sidebar/fragmentTypes.json
app/assets/javascripts/sidebar/fragmentTypes.json
+1
-0
app/assets/javascripts/sidebar/graphql.js
app/assets/javascripts/sidebar/graphql.js
+15
-1
No files found.
app/assets/javascripts/sidebar/fragmentTypes.json
0 → 100644
View file @
e8378cb4
{
"__schema"
:{
"types"
:[{
"kind"
:
"UNION"
,
"name"
:
"Issuable"
,
"possibleTypes"
:[{
"name"
:
"Issue"
},{
"name"
:
"MergeRequest"
}]},
{
"kind"
:
"INTERFACE"
,
"name"
:
"User"
,
"possibleTypes"
:[{
"name"
:
"UserCore"
}]}]}}
app/assets/javascripts/sidebar/graphql.js
View file @
e8378cb4
import
{
IntrospectionFragmentMatcher
}
from
'
apollo-cache-inmemory
'
;
import
VueApollo
from
'
vue-apollo
'
;
import
createDefaultClient
from
'
~/lib/graphql
'
;
import
introspectionQueryResultData
from
'
./fragmentTypes.json
'
;
export
const
defaultClient
=
createDefaultClient
();
const
fragmentMatcher
=
new
IntrospectionFragmentMatcher
({
introspectionQueryResultData
,
});
export
const
defaultClient
=
createDefaultClient
(
{},
{
cacheConfig
:
{
fragmentMatcher
,
},
assumeImmutableResults
:
true
,
},
);
export
const
apolloProvider
=
new
VueApollo
({
defaultClient
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment