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
2dbf3da2
Commit
2dbf3da2
authored
Mar 07, 2019
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE port for expanded pipelines
parent
5a75aa59
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
3 deletions
+17
-3
app/assets/javascripts/pipelines/pipeline_details_mediator.js
...assets/javascripts/pipelines/pipeline_details_mediator.js
+15
-1
app/assets/javascripts/pipelines/services/pipeline_service.js
...assets/javascripts/pipelines/services/pipeline_service.js
+2
-2
No files found.
app/assets/javascripts/pipelines/pipeline_details_mediator.js
View file @
2dbf3da2
...
@@ -19,6 +19,7 @@ export default class pipelinesMediator {
...
@@ -19,6 +19,7 @@ export default class pipelinesMediator {
this
.
poll
=
new
Poll
({
this
.
poll
=
new
Poll
({
resource
:
this
.
service
,
resource
:
this
.
service
,
method
:
'
getPipeline
'
,
method
:
'
getPipeline
'
,
data
:
this
.
store
.
state
.
expandedPipelines
?
this
.
getExpandedParameters
()
:
undefined
,
successCallback
:
this
.
successCallback
.
bind
(
this
),
successCallback
:
this
.
successCallback
.
bind
(
this
),
errorCallback
:
this
.
errorCallback
.
bind
(
this
),
errorCallback
:
this
.
errorCallback
.
bind
(
this
),
});
});
...
@@ -56,6 +57,19 @@ export default class pipelinesMediator {
...
@@ -56,6 +57,19 @@ export default class pipelinesMediator {
.
getPipeline
()
.
getPipeline
()
.
then
(
response
=>
this
.
successCallback
(
response
))
.
then
(
response
=>
this
.
successCallback
(
response
))
.
catch
(()
=>
this
.
errorCallback
())
.
catch
(()
=>
this
.
errorCallback
())
.
finally
(()
=>
this
.
poll
.
restart
());
.
finally
(()
=>
this
.
poll
.
restart
(
this
.
store
.
state
.
expandedPipelines
?
this
.
getExpandedParameters
()
:
undefined
,
),
);
}
/**
* Backend expects paramets in the following format: `expanded[]=id&expanded[]=id`
*/
getExpandedParameters
()
{
return
{
expanded
:
this
.
store
.
state
.
expandedPipelines
,
};
}
}
}
}
app/assets/javascripts/pipelines/services/pipeline_service.js
View file @
2dbf3da2
...
@@ -5,8 +5,8 @@ export default class PipelineService {
...
@@ -5,8 +5,8 @@ export default class PipelineService {
this
.
pipeline
=
endpoint
;
this
.
pipeline
=
endpoint
;
}
}
getPipeline
()
{
getPipeline
(
params
)
{
return
axios
.
get
(
this
.
pipeline
);
return
axios
.
get
(
this
.
pipeline
,
{
params
}
);
}
}
// eslint-disable-next-line class-methods-use-this
// eslint-disable-next-line class-methods-use-this
...
...
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