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
27ca41ac
Commit
27ca41ac
authored
Feb 27, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 'refactor-commit-show'
# Conflicts: # config/webpack.config.js
parents
9167989f
a4885b8f
Changes
22
Show whitespace changes
Inline
Side-by-side
Showing
22 changed files
with
49 additions
and
26 deletions
+49
-26
CONTRIBUTING.md
CONTRIBUTING.md
+3
-3
app/assets/javascripts/commit/pipelines/pipelines_bundle.js
app/assets/javascripts/commit/pipelines/pipelines_bundle.js
+2
-2
app/assets/javascripts/environments/folder/environments_folder_bundle.js
...scripts/environments/folder/environments_folder_bundle.js
+2
-2
app/assets/javascripts/pages/projects/commit/pipelines/index.js
...sets/javascripts/pages/projects/commit/pipelines/index.js
+2
-0
app/assets/javascripts/pages/projects/environments/folder/index.js
...s/javascripts/pages/projects/environments/folder/index.js
+3
-0
app/assets/javascripts/pages/projects/merge_requests/creations/new/index.js
...ipts/pages/projects/merge_requests/creations/new/index.js
+2
-0
app/assets/javascripts/pages/projects/merge_requests/show/index.js
...s/javascripts/pages/projects/merge_requests/show/index.js
+2
-0
app/assets/stylesheets/pages/commits.scss
app/assets/stylesheets/pages/commits.scss
+0
-8
app/models/ci/group_variable.rb
app/models/ci/group_variable.rb
+4
-1
app/models/ci/variable.rb
app/models/ci/variable.rb
+4
-1
app/validators/variable_duplicates_validator.rb
app/validators/variable_duplicates_validator.rb
+2
-0
app/views/projects/commit/_pipelines_list.haml
app/views/projects/commit/_pipelines_list.haml
+0
-1
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+1
-1
app/views/projects/environments/folder.html.haml
app/views/projects/environments/folder.html.haml
+0
-1
changelogs/unreleased/43261-fix-prometheus-installation.yml
changelogs/unreleased/43261-fix-prometheus-installation.yml
+5
-0
changelogs/unreleased/43275-improve-variables-validation-message.yml
...unreleased/43275-improve-variables-validation-message.yml
+5
-0
changelogs/unreleased/43315-gpg-popover.yml
changelogs/unreleased/43315-gpg-popover.yml
+5
-0
config/webpack.config.js
config/webpack.config.js
+0
-4
spec/models/ci/group_variable_spec.rb
spec/models/ci/group_variable_spec.rb
+1
-1
spec/models/ci/variable_spec.rb
spec/models/ci/variable_spec.rb
+1
-1
spec/support/features/variable_list_shared_examples.rb
spec/support/features/variable_list_shared_examples.rb
+2
-0
vendor/prometheus/values.yaml
vendor/prometheus/values.yaml
+3
-0
No files found.
CONTRIBUTING.md
View file @
27ca41ac
...
@@ -397,9 +397,9 @@ For issues related to the open source stewardship of GitLab,
...
@@ -397,9 +397,9 @@ For issues related to the open source stewardship of GitLab,
there is the ~"stewardship" label.
there is the ~"stewardship" label.
This label is to be used for issues in which the stewardship of GitLab
This label is to be used for issues in which the stewardship of GitLab
is a topic of discussion. For instance if GitLab Inc. is planning to
remove
is a topic of discussion. For instance if GitLab Inc. is planning to
add
features from GitLab
CE to make exclusive in GitLab EE, related issues
features from GitLab
EE to GitLab CE, related issues would be labelled with
would be labelled with
~"stewardship".
~"stewardship".
A recent example of this was the issue for
A recent example of this was the issue for
[
bringing the time tracking API to GitLab CE
][
time-tracking-issue
]
.
[
bringing the time tracking API to GitLab CE
][
time-tracking-issue
]
.
...
...
app/assets/javascripts/commit/pipelines/pipelines_bundle.js
View file @
27ca41ac
...
@@ -15,7 +15,7 @@ const CommitPipelinesTable = Vue.extend(commitPipelinesTable);
...
@@ -15,7 +15,7 @@ const CommitPipelinesTable = Vue.extend(commitPipelinesTable);
window
.
gl
=
window
.
gl
||
{};
window
.
gl
=
window
.
gl
||
{};
window
.
gl
.
CommitPipelinesTable
=
CommitPipelinesTable
;
window
.
gl
.
CommitPipelinesTable
=
CommitPipelinesTable
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
export
default
()
=>
{
const
pipelineTableViewEl
=
document
.
querySelector
(
'
#commit-pipeline-table-view
'
);
const
pipelineTableViewEl
=
document
.
querySelector
(
'
#commit-pipeline-table-view
'
);
if
(
pipelineTableViewEl
)
{
if
(
pipelineTableViewEl
)
{
...
@@ -43,4 +43,4 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -43,4 +43,4 @@ document.addEventListener('DOMContentLoaded', () => {
pipelineTableViewEl
.
appendChild
(
table
.
$el
);
pipelineTableViewEl
.
appendChild
(
table
.
$el
);
}
}
}
}
}
)
;
};
app/assets/javascripts/environments/folder/environments_folder_bundle.js
View file @
27ca41ac
...
@@ -5,7 +5,7 @@ import Translate from '../../vue_shared/translate';
...
@@ -5,7 +5,7 @@ import Translate from '../../vue_shared/translate';
Vue
.
use
(
Translate
);
Vue
.
use
(
Translate
);
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
new
Vue
({
export
default
()
=>
new
Vue
({
el
:
'
#environments-folder-list-view
'
,
el
:
'
#environments-folder-list-view
'
,
components
:
{
components
:
{
environmentsFolderApp
,
environmentsFolderApp
,
...
@@ -32,4 +32,4 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
...
@@ -32,4 +32,4 @@ document.addEventListener('DOMContentLoaded', () => new Vue({
},
},
});
});
},
},
})
)
;
});
app/assets/javascripts/pages/projects/commit/pipelines/index.js
View file @
27ca41ac
import
MiniPipelineGraph
from
'
~/mini_pipeline_graph_dropdown
'
;
import
MiniPipelineGraph
from
'
~/mini_pipeline_graph_dropdown
'
;
import
initPipelines
from
'
~/commit/pipelines/pipelines_bundle
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
MiniPipelineGraph
({
new
MiniPipelineGraph
({
container
:
'
.js-commit-pipeline-graph
'
,
container
:
'
.js-commit-pipeline-graph
'
,
}).
bindEvents
();
}).
bindEvents
();
$
(
'
.commit-info.branches
'
).
load
(
document
.
querySelector
(
'
.js-commit-box
'
).
dataset
.
commitPath
);
$
(
'
.commit-info.branches
'
).
load
(
document
.
querySelector
(
'
.js-commit-box
'
).
dataset
.
commitPath
);
initPipelines
();
});
});
app/assets/javascripts/pages/projects/environments/folder/index.js
0 → 100644
View file @
27ca41ac
import
initEnvironmentsFolderBundle
from
'
~/environments/folder/environments_folder_bundle
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
initEnvironmentsFolderBundle
);
app/assets/javascripts/pages/projects/merge_requests/creations/new/index.js
View file @
27ca41ac
import
Compare
from
'
~/compare
'
;
import
Compare
from
'
~/compare
'
;
import
MergeRequest
from
'
~/merge_request
'
;
import
MergeRequest
from
'
~/merge_request
'
;
import
initPipelines
from
'
~/commit/pipelines/pipelines_bundle
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
const
mrNewCompareNode
=
document
.
querySelector
(
'
.js-merge-request-new-compare
'
);
const
mrNewCompareNode
=
document
.
querySelector
(
'
.js-merge-request-new-compare
'
);
...
@@ -14,5 +15,6 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -14,5 +15,6 @@ document.addEventListener('DOMContentLoaded', () => {
new
MergeRequest
({
// eslint-disable-line no-new
new
MergeRequest
({
// eslint-disable-line no-new
action
:
mrNewSubmitNode
.
dataset
.
mrSubmitAction
,
action
:
mrNewSubmitNode
.
dataset
.
mrSubmitAction
,
});
});
initPipelines
();
}
}
});
});
app/assets/javascripts/pages/projects/merge_requests/show/index.js
View file @
27ca41ac
...
@@ -7,6 +7,7 @@ import ShortcutsIssuable from '~/shortcuts_issuable';
...
@@ -7,6 +7,7 @@ import ShortcutsIssuable from '~/shortcuts_issuable';
import
Diff
from
'
~/diff
'
;
import
Diff
from
'
~/diff
'
;
import
{
handleLocationHash
}
from
'
~/lib/utils/common_utils
'
;
import
{
handleLocationHash
}
from
'
~/lib/utils/common_utils
'
;
import
howToMerge
from
'
~/how_to_merge
'
;
import
howToMerge
from
'
~/how_to_merge
'
;
import
initPipelines
from
'
~/commit/pipelines/pipelines_bundle
'
;
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
document
.
addEventListener
(
'
DOMContentLoaded
'
,
()
=>
{
new
Diff
();
// eslint-disable-line no-new
new
Diff
();
// eslint-disable-line no-new
...
@@ -15,6 +16,7 @@ document.addEventListener('DOMContentLoaded', () => {
...
@@ -15,6 +16,7 @@ document.addEventListener('DOMContentLoaded', () => {
initIssuableSidebar
();
initIssuableSidebar
();
initNotes
();
initNotes
();
initDiffNotes
();
initDiffNotes
();
initPipelines
();
const
mrShowNode
=
document
.
querySelector
(
'
.merge-request
'
);
const
mrShowNode
=
document
.
querySelector
(
'
.merge-request
'
);
...
...
app/assets/stylesheets/pages/commits.scss
View file @
27ca41ac
...
@@ -196,17 +196,9 @@
...
@@ -196,17 +196,9 @@
@media
(
min-width
:
$screen-sm-min
)
{
@media
(
min-width
:
$screen-sm-min
)
{
font-size
:
0
;
font-size
:
0
;
div
{
display
:
inline
;
}
.fa-spinner
{
.fa-spinner
{
font-size
:
12px
;
font-size
:
12px
;
}
}
span
{
font-size
:
6px
;
}
}
}
.ci-status-link
{
.ci-status-link
{
...
...
app/models/ci/group_variable.rb
View file @
27ca41ac
...
@@ -6,7 +6,10 @@ module Ci
...
@@ -6,7 +6,10 @@ module Ci
belongs_to
:group
belongs_to
:group
validates
:key
,
uniqueness:
{
scope: :group_id
}
validates
:key
,
uniqueness:
{
scope: :group_id
,
message:
"(%{value}) has already been taken"
}
scope
:unprotected
,
->
{
where
(
protected:
false
)
}
scope
:unprotected
,
->
{
where
(
protected:
false
)
}
end
end
...
...
app/models/ci/variable.rb
View file @
27ca41ac
...
@@ -6,7 +6,10 @@ module Ci
...
@@ -6,7 +6,10 @@ module Ci
belongs_to
:project
belongs_to
:project
validates
:key
,
uniqueness:
{
scope:
[
:project_id
,
:environment_scope
]
}
validates
:key
,
uniqueness:
{
scope:
[
:project_id
,
:environment_scope
],
message:
"(%{value}) has already been taken"
}
scope
:unprotected
,
->
{
where
(
protected:
false
)
}
scope
:unprotected
,
->
{
where
(
protected:
false
)
}
end
end
...
...
app/validators/variable_duplicates_validator.rb
View file @
27ca41ac
...
@@ -5,6 +5,8 @@
...
@@ -5,6 +5,8 @@
# - Use `validates :xxx, uniqueness: { scope: :xxx_id }` in a child model
# - Use `validates :xxx, uniqueness: { scope: :xxx_id }` in a child model
class
VariableDuplicatesValidator
<
ActiveModel
::
EachValidator
class
VariableDuplicatesValidator
<
ActiveModel
::
EachValidator
def
validate_each
(
record
,
attribute
,
value
)
def
validate_each
(
record
,
attribute
,
value
)
return
if
record
.
errors
.
include?
(
:"
#{
attribute
}
.key"
)
if
options
[
:scope
]
if
options
[
:scope
]
scoped
=
value
.
group_by
do
|
variable
|
scoped
=
value
.
group_by
do
|
variable
|
Array
(
options
[
:scope
]).
map
{
|
attr
|
variable
.
send
(
attr
)
}
# rubocop:disable GitlabSecurity/PublicSend
Array
(
options
[
:scope
]).
map
{
|
attr
|
variable
.
send
(
attr
)
}
# rubocop:disable GitlabSecurity/PublicSend
...
...
app/views/projects/commit/_pipelines_list.haml
View file @
27ca41ac
...
@@ -9,4 +9,3 @@
...
@@ -9,4 +9,3 @@
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_vue'
)
=
webpack_bundle_tag
(
'common_vue'
)
=
webpack_bundle_tag
(
'commit_pipelines'
)
app/views/projects/commits/_commit.html.haml
View file @
27ca41ac
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
.avatar-cell.hidden-xs
.avatar-cell.hidden-xs
=
author_avatar
(
commit
,
size:
36
)
=
author_avatar
(
commit
,
size:
36
)
.commit-detail
.commit-detail
.flex-list
.commit-content
.commit-content
=
link_to_markdown_field
(
commit
,
:title
,
link
,
class:
"commit-row-message item-title"
)
=
link_to_markdown_field
(
commit
,
:title
,
link
,
class:
"commit-row-message item-title"
)
%span
.commit-row-message.visible-xs-inline
%span
.commit-row-message.visible-xs-inline
...
...
app/views/projects/environments/folder.html.haml
View file @
27ca41ac
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
-
content_for
:page_specific_javascripts
do
-
content_for
:page_specific_javascripts
do
=
webpack_bundle_tag
(
'common_vue'
)
=
webpack_bundle_tag
(
'common_vue'
)
=
webpack_bundle_tag
(
"environments_folder"
)
#environments-folder-list-view
{
data:
{
endpoint:
folder_project_environments_path
(
@project
,
@folder
,
format: :json
),
#environments-folder-list-view
{
data:
{
endpoint:
folder_project_environments_path
(
@project
,
@folder
,
format: :json
),
"folder-name"
=>
@folder
,
"folder-name"
=>
@folder
,
...
...
changelogs/unreleased/43261-fix-prometheus-installation.yml
0 → 100644
View file @
27ca41ac
---
title
:
Allow Prometheus application to be installed from Cluster applications
merge_request
:
17372
author
:
type
:
fixed
changelogs/unreleased/43275-improve-variables-validation-message.yml
0 → 100644
View file @
27ca41ac
---
title
:
Remove duplicated error message on duplicate variable validation
merge_request
:
17135
author
:
type
:
fixed
changelogs/unreleased/43315-gpg-popover.yml
0 → 100644
View file @
27ca41ac
---
title
:
Fixes gpg popover layout
merge_request
:
17323
author
:
type
:
fixed
config/webpack.config.js
View file @
27ca41ac
...
@@ -48,9 +48,7 @@ var config = {
...
@@ -48,9 +48,7 @@ var config = {
common
:
'
./commons/index.js
'
,
common
:
'
./commons/index.js
'
,
common_vue
:
'
./vue_shared/vue_resource_interceptor.js
'
,
common_vue
:
'
./vue_shared/vue_resource_interceptor.js
'
,
cycle_analytics
:
'
./cycle_analytics/cycle_analytics_bundle.js
'
,
cycle_analytics
:
'
./cycle_analytics/cycle_analytics_bundle.js
'
,
commit_pipelines
:
'
./commit/pipelines/pipelines_bundle.js
'
,
environments
:
'
./environments/environments_bundle.js
'
,
environments
:
'
./environments/environments_bundle.js
'
,
environments_folder
:
'
./environments/folder/environments_folder_bundle.js
'
,
filtered_search
:
'
./filtered_search/filtered_search_bundle.js
'
,
filtered_search
:
'
./filtered_search/filtered_search_bundle.js
'
,
help
:
'
./help/help.js
'
,
help
:
'
./help/help.js
'
,
merge_conflicts
:
'
./merge_conflicts/merge_conflicts_bundle.js
'
,
merge_conflicts
:
'
./merge_conflicts/merge_conflicts_bundle.js
'
,
...
@@ -237,11 +235,9 @@ var config = {
...
@@ -237,11 +235,9 @@ var config = {
name
:
'
common_vue
'
,
name
:
'
common_vue
'
,
chunks
:
[
chunks
:
[
'
boards
'
,
'
boards
'
,
'
commit_pipelines
'
,
'
cycle_analytics
'
,
'
cycle_analytics
'
,
'
deploy_keys
'
,
'
deploy_keys
'
,
'
environments
'
,
'
environments
'
,
'
environments_folder
'
,
'
filtered_search
'
,
'
filtered_search
'
,
'
groups
'
,
'
groups
'
,
'
merge_conflicts
'
,
'
merge_conflicts
'
,
...
...
spec/models/ci/group_variable_spec.rb
View file @
27ca41ac
...
@@ -5,7 +5,7 @@ describe Ci::GroupVariable do
...
@@ -5,7 +5,7 @@ describe Ci::GroupVariable do
it
{
is_expected
.
to
include_module
(
HasVariable
)
}
it
{
is_expected
.
to
include_module
(
HasVariable
)
}
it
{
is_expected
.
to
include_module
(
Presentable
)
}
it
{
is_expected
.
to
include_module
(
Presentable
)
}
it
{
is_expected
.
to
validate_uniqueness_of
(
:key
).
scoped_to
(
:group_id
)
}
it
{
is_expected
.
to
validate_uniqueness_of
(
:key
).
scoped_to
(
:group_id
)
.
with_message
(
/\(\w+\) has already been taken/
)
}
describe
'.unprotected'
do
describe
'.unprotected'
do
subject
{
described_class
.
unprotected
}
subject
{
described_class
.
unprotected
}
...
...
spec/models/ci/variable_spec.rb
View file @
27ca41ac
...
@@ -6,7 +6,7 @@ describe Ci::Variable do
...
@@ -6,7 +6,7 @@ describe Ci::Variable do
describe
'validations'
do
describe
'validations'
do
it
{
is_expected
.
to
include_module
(
HasVariable
)
}
it
{
is_expected
.
to
include_module
(
HasVariable
)
}
it
{
is_expected
.
to
include_module
(
Presentable
)
}
it
{
is_expected
.
to
include_module
(
Presentable
)
}
it
{
is_expected
.
to
validate_uniqueness_of
(
:key
).
scoped_to
(
:project_id
,
:environment_scope
)
}
it
{
is_expected
.
to
validate_uniqueness_of
(
:key
).
scoped_to
(
:project_id
,
:environment_scope
)
.
with_message
(
/\(\w+\) has already been taken/
)
}
end
end
describe
'.unprotected'
do
describe
'.unprotected'
do
...
...
spec/support/features/variable_list_shared_examples.rb
View file @
27ca41ac
...
@@ -261,6 +261,8 @@ shared_examples 'variable list' do
...
@@ -261,6 +261,8 @@ shared_examples 'variable list' do
click_button
(
'Save variables'
)
click_button
(
'Save variables'
)
wait_for_requests
wait_for_requests
expect
(
all
(
'.js-ci-variable-list-section .js-ci-variable-error-box ul li'
).
count
).
to
eq
(
1
)
# We check the first row because it re-sorts to alphabetical order on refresh
# We check the first row because it re-sorts to alphabetical order on refresh
page
.
within
(
'.js-ci-variable-list-section'
)
do
page
.
within
(
'.js-ci-variable-list-section'
)
do
expect
(
find
(
'.js-ci-variable-error-box'
)).
to
have_content
(
/Validation failed Variables have duplicate values \(.+\)/
)
expect
(
find
(
'.js-ci-variable-error-box'
)).
to
have_content
(
/Validation failed Variables have duplicate values \(.+\)/
)
...
...
vendor/prometheus/values.yaml
View file @
27ca41ac
...
@@ -10,6 +10,9 @@ nodeExporter:
...
@@ -10,6 +10,9 @@ nodeExporter:
pushgateway
:
pushgateway
:
enabled
:
false
enabled
:
false
rbac
:
create
:
false
server
:
server
:
image
:
image
:
tag
:
v2.1.0
tag
:
v2.1.0
...
...
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