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
8cb440a8
Commit
8cb440a8
authored
Aug 23, 2021
by
Sarah GP
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prepare PA files for Apollo Client update
parent
3ceba6e9
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
3 deletions
+12
-3
app/assets/javascripts/pipeline_editor/index.js
app/assets/javascripts/pipeline_editor/index.js
+5
-1
app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue
...ssets/javascripts/pipeline_editor/pipeline_editor_app.vue
+1
-1
app/assets/javascripts/projects/commit_box/info/init_commit_pipeline_mini_graph.js
...ojects/commit_box/info/init_commit_pipeline_mini_graph.js
+6
-1
No files found.
app/assets/javascripts/pipeline_editor/index.js
View file @
8cb440a8
...
@@ -56,7 +56,11 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => {
...
@@ -56,7 +56,11 @@ export const initPipelineEditor = (selector = '#js-pipeline-editor') => {
Vue
.
use
(
VueApollo
);
Vue
.
use
(
VueApollo
);
const
apolloProvider
=
new
VueApollo
({
const
apolloProvider
=
new
VueApollo
({
defaultClient
:
createDefaultClient
(
resolvers
,
{
typeDefs
,
useGet
:
true
}),
defaultClient
:
createDefaultClient
(
resolvers
,
{
typeDefs
,
useGet
:
true
,
assumeImmutableResults
:
true
,
}),
});
});
const
{
cache
}
=
apolloProvider
.
clients
.
defaultClient
;
const
{
cache
}
=
apolloProvider
.
clients
.
defaultClient
;
...
...
app/assets/javascripts/pipeline_editor/pipeline_editor_app.vue
View file @
8cb440a8
...
@@ -134,7 +134,7 @@ export default {
...
@@ -134,7 +134,7 @@ export default {
update
(
data
)
{
update
(
data
)
{
const
{
ciConfig
}
=
data
||
{};
const
{
ciConfig
}
=
data
||
{};
const
stageNodes
=
ciConfig
?.
stages
?.
nodes
||
[];
const
stageNodes
=
ciConfig
?.
stages
?.
nodes
||
[];
const
stages
=
unwrapStagesWithNeeds
(
stageNodes
);
const
stages
=
unwrapStagesWithNeeds
(
JSON
.
parse
(
JSON
.
stringify
(
stageNodes
))
);
return
{
...
ciConfig
,
stages
};
return
{
...
ciConfig
,
stages
};
},
},
...
...
app/assets/javascripts/projects/commit_box/info/init_commit_pipeline_mini_graph.js
View file @
8cb440a8
...
@@ -5,7 +5,12 @@ import createDefaultClient from '~/lib/graphql';
...
@@ -5,7 +5,12 @@ import createDefaultClient from '~/lib/graphql';
Vue
.
use
(
VueApollo
);
Vue
.
use
(
VueApollo
);
const
apolloProvider
=
new
VueApollo
({
const
apolloProvider
=
new
VueApollo
({
defaultClient
:
createDefaultClient
(),
defaultClient
:
createDefaultClient
(
{},
{
assumeImmutableResults
:
true
,
},
),
});
});
export
const
initCommitPipelineMiniGraph
=
async
(
selector
=
'
.js-commit-pipeline-mini-graph
'
)
=>
{
export
const
initCommitPipelineMiniGraph
=
async
(
selector
=
'
.js-commit-pipeline-mini-graph
'
)
=>
{
...
...
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