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
a57bfd60
Commit
a57bfd60
authored
Feb 15, 2017
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'ce/master' into rc/ce-to-ee-wednesday
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parents
921735b1
35b31ba8
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
54 additions
and
22 deletions
+54
-22
app/assets/javascripts/commit/pipelines/pipelines_bundle.js.es6
...sets/javascripts/commit/pipelines/pipelines_bundle.js.es6
+6
-3
app/assets/javascripts/commit/pipelines/pipelines_table.js.es6
...ssets/javascripts/commit/pipelines/pipelines_table.js.es6
+2
-3
app/assets/javascripts/merge_request_tabs.js.es6
app/assets/javascripts/merge_request_tabs.js.es6
+8
-0
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+2
-6
app/helpers/merge_requests_helper.rb
app/helpers/merge_requests_helper.rb
+4
-4
app/views/projects/commit/_pipelines_list.haml
app/views/projects/commit/_pipelines_list.haml
+4
-1
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+2
-2
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+1
-1
changelogs/unreleased/27925-fix-mr-stray-pipelines-api-request.yml
...s/unreleased/27925-fix-mr-stray-pipelines-api-request.yml
+4
-0
changelogs/unreleased/issue_25112.yml
changelogs/unreleased/issue_25112.yml
+4
-0
db/post_migrate/20170211073944_disable_invalid_service_templates.rb
...grate/20170211073944_disable_invalid_service_templates.rb
+15
-0
db/schema.rb
db/schema.rb
+1
-1
No files found.
app/assets/javascripts/commit/pipelines/pipelines_bundle.js.es6
View file @
a57bfd60
...
@@ -20,7 +20,10 @@ $(() => {
...
@@ -20,7 +20,10 @@ $(() => {
gl.commits.PipelinesTableBundle.$destroy(true);
gl.commits.PipelinesTableBundle.$destroy(true);
}
}
gl.commits.pipelines.PipelinesTableBundle = new gl.commits.pipelines.PipelinesTableView({
const pipelineTableViewEl = document.querySelector('#commit-pipeline-table-view');
el: document.querySelector('#commit-pipeline-table-view'),
gl.commits.pipelines.PipelinesTableBundle = new gl.commits.pipelines.PipelinesTableView();
});
if (pipelineTableViewEl && pipelineTableViewEl.dataset.disableInitialization === undefined) {
gl.commits.pipelines.PipelinesTableBundle.$mount(pipelineTableViewEl);
}
});
});
app/assets/javascripts/commit/pipelines/pipelines_table.js.es6
View file @
a57bfd60
...
@@ -56,15 +56,14 @@ require('./pipelines_store');
...
@@ -56,15 +56,14 @@ require('./pipelines_store');
},
},
/**
/**
* When the component is created the service to fetch the data will be
* When the component is about to be mounted, tell the service to fetch the data
* initialized with the correct endpoint.
*
*
* A request to fetch the pipelines will be made.
* A request to fetch the pipelines will be made.
* In case of a successfull response we will store the data in the provided
* In case of a successfull response we will store the data in the provided
* store, in case of a failed response we need to warn the user.
* store, in case of a failed response we need to warn the user.
*
*
*/
*/
created
() {
beforeMount
() {
const pipelinesService = new gl.commits.pipelines.PipelinesService(this.endpoint);
const pipelinesService = new gl.commits.pipelines.PipelinesService(this.endpoint);
this.isLoading = true;
this.isLoading = true;
...
...
app/assets/javascripts/merge_request_tabs.js.es6
View file @
a57bfd60
...
@@ -61,6 +61,7 @@ require('./flash');
...
@@ -61,6 +61,7 @@ require('./flash');
constructor({ action, setUrl, stubLocation } = {}) {
constructor({ action, setUrl, stubLocation } = {}) {
this.diffsLoaded = false;
this.diffsLoaded = false;
this.pipelinesLoaded = false;
this.commitsLoaded = false;
this.commitsLoaded = false;
this.fixedLayoutPref = null;
this.fixedLayoutPref = null;
...
@@ -128,6 +129,13 @@ require('./flash');
...
@@ -128,6 +129,13 @@ require('./flash');
$.scrollTo('.merge-request-details .merge-request-tabs', {
$.scrollTo('.merge-request-details .merge-request-tabs', {
offset: 0,
offset: 0,
});
});
} else if (action === 'pipelines') {
if (this.pipelinesLoaded) {
return;
}
const pipelineTableViewEl = document.querySelector('#commit-pipeline-table-view');
gl.commits.pipelines.PipelinesTableBundle.$mount(pipelineTableViewEl);
this.pipelinesLoaded = true;
} else {
} else {
this.expandView();
this.expandView();
this.resetViewContainer();
this.resetViewContainer();
...
...
app/assets/stylesheets/pages/projects.scss
View file @
a57bfd60
...
@@ -35,12 +35,8 @@
...
@@ -35,12 +35,8 @@
margin-bottom
:
10px
;
margin-bottom
:
10px
;
}
}
.project-path
{
.project-path
.form-control
{
padding-right
:
0
;
border-radius
:
$border-radius-base
;
.form-control
{
border-radius
:
$border-radius-base
;
}
}
}
.input-group
>
div
{
.input-group
>
div
{
...
...
app/helpers/merge_requests_helper.rb
View file @
a57bfd60
...
@@ -75,10 +75,10 @@ module MergeRequestsHelper
...
@@ -75,10 +75,10 @@ module MergeRequestsHelper
new_namespace_project_merge_request_path
(
new_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@project
.
namespace
,
@project
,
merge_request:
{
merge_request:
{
source_project_id:
@
merge_request
.
source_project_id
,
source_project_id:
merge_request
.
source_project_id
,
target_project_id:
@
merge_request
.
target_project_id
,
target_project_id:
merge_request
.
target_project_id
,
source_branch:
@
merge_request
.
source_branch
,
source_branch:
merge_request
.
source_branch
,
target_branch:
@
merge_request
.
target_branch
,
target_branch:
merge_request
.
target_branch
,
},
},
change_branches:
true
change_branches:
true
)
)
...
...
app/views/projects/commit/_pipelines_list.haml
View file @
a57bfd60
#commit-pipeline-table-view
{
data:
{
endpoint:
endpoint
}
}
-
disable_initialization
=
local_assigns
.
fetch
(
:disable_initialization
,
false
)
#commit-pipeline-table-view
{
data:
{
disable_initialization:
disable_initialization
,
endpoint:
endpoint
,
}
}
.pipeline-svgs
{
data:
{
"commit_icon_svg"
=>
custom_icon
(
"icon_commit"
),
.pipeline-svgs
{
data:
{
"commit_icon_svg"
=>
custom_icon
(
"icon_commit"
),
"icon_status_canceled"
=>
custom_icon
(
"icon_status_canceled"
),
"icon_status_canceled"
=>
custom_icon
(
"icon_status_canceled"
),
"icon_status_running"
=>
custom_icon
(
"icon_status_running"
),
"icon_status_running"
=>
custom_icon
(
"icon_status_running"
),
...
...
app/views/projects/edit.html.haml
View file @
a57bfd60
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
.col-lg-9
.col-lg-9
.project-edit-errors
.project-edit-errors
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
html:
{
multipart:
true
,
class:
"edit-project"
},
authenticity_token:
true
do
|
f
|
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
],
remote:
true
,
html:
{
multipart:
true
,
class:
"edit-project"
},
authenticity_token:
true
do
|
f
|
%fieldset
.append-bottom-0
%fieldset
.row
.row
.form-group.col-md-9
.form-group.col-md-9
=
f
.
label
:name
,
class:
'label-light'
,
for:
'project_name_edit'
do
=
f
.
label
:name
,
class:
'label-light'
,
for:
'project_name_edit'
do
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
=
f
.
text_field
:tag_list
,
value:
@project
.
tag_list
.
to_s
,
maxlength:
2000
,
class:
"form-control"
=
f
.
text_field
:tag_list
,
value:
@project
.
tag_list
.
to_s
,
maxlength:
2000
,
class:
"form-control"
%p
.help-block
Separate tags with commas.
%p
.help-block
Separate tags with commas.
%hr
%hr
%fieldset
.append-bottom-0
%fieldset
%h5
.prepend-top-0
%h5
.prepend-top-0
Sharing
&
Permissions
Sharing
&
Permissions
.form_group.prepend-top-20.sharing-and-permissions
.form_group.prepend-top-20.sharing-and-permissions
...
...
app/views/projects/merge_requests/_show.html.haml
View file @
a57bfd60
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
-# This tab is always loaded via AJAX
-# This tab is always loaded via AJAX
#pipelines
.pipelines.tab-pane
#pipelines
.pipelines.tab-pane
-
if
@pipelines
.
any?
-
if
@pipelines
.
any?
=
render
'projects/commit/pipelines_list'
,
endpoint:
pipelines_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
)
=
render
'projects/commit/pipelines_list'
,
disable_initialization:
true
,
endpoint:
pipelines_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
)
#diffs
.diffs.tab-pane
#diffs
.diffs.tab-pane
-# This tab is always loaded via AJAX
-# This tab is always loaded via AJAX
...
...
app/views/projects/new.html.haml
View file @
a57bfd60
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
Create or Import your project from popular Git services
Create or Import your project from popular Git services
.col-lg-9
.col-lg-9
=
form_for
@project
,
html:
{
class:
'new_project'
}
do
|
f
|
=
form_for
@project
,
html:
{
class:
'new_project'
}
do
|
f
|
%fieldset
.append-bottom-0
.row
.form-group.col-xs-12.col-sm-6
.form-group.col-xs-12.col-sm-6
=
f
.
label
:namespace_id
,
class:
'label-light'
do
=
f
.
label
:namespace_id
,
class:
'label-light'
do
%span
%span
...
...
changelogs/unreleased/27925-fix-mr-stray-pipelines-api-request.yml
0 → 100644
View file @
a57bfd60
---
title
:
Fix stray pipelines API request when showing MR
merge_request
:
author
:
changelogs/unreleased/issue_25112.yml
0 → 100644
View file @
a57bfd60
---
title
:
Disable invalid service templates
merge_request
:
author
:
db/post_migrate/20170211073944_disable_invalid_service_templates.rb
0 → 100644
View file @
a57bfd60
class
DisableInvalidServiceTemplates
<
ActiveRecord
::
Migration
DOWNTIME
=
false
unless
defined?
(
Service
)
class
Service
<
ActiveRecord
::
Base
self
.
inheritance_column
=
nil
end
end
def
up
Service
.
where
(
template:
true
,
active:
true
).
each
do
|
template
|
template
.
update
(
active:
false
)
unless
template
.
valid?
end
end
end
db/schema.rb
View file @
a57bfd60
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2017021
0075922
)
do
ActiveRecord
::
Schema
.
define
(
version:
2017021
1073944
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
...
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