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
39fbdc0c
Commit
39fbdc0c
authored
Feb 11, 2021
by
Aishwarya Subramanian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved failure_reasons message in EE
parent
dd6ec7c3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
13 deletions
+3
-13
app/presenters/ci/pipeline_presenter.rb
app/presenters/ci/pipeline_presenter.rb
+3
-0
ee/app/presenters/ee/ci/pipeline_presenter.rb
ee/app/presenters/ee/ci/pipeline_presenter.rb
+0
-13
No files found.
app/presenters/ci/pipeline_presenter.rb
View file @
39fbdc0c
...
...
@@ -11,6 +11,9 @@ module Ci
{
unknown_failure:
'Unknown pipeline failure!'
,
config_error:
'CI/CD YAML configuration error!'
,
external_validation_failure:
'External pipeline validation failed!'
,
activity_limit_exceeded:
'Pipeline activity limit exceeded!'
,
size_limit_exceeded:
'Pipeline size limit exceeded!'
,
job_activity_limit_exceeded:
'Pipeline job activity limit exceeded!'
,
deployments_limit_exceeded:
'Pipeline deployments limit exceeded!'
}
end
...
...
ee/app/presenters/ee/ci/pipeline_presenter.rb
View file @
39fbdc0c
...
...
@@ -5,19 +5,6 @@ module EE
module
PipelinePresenter
extend
ActiveSupport
::
Concern
class_methods
do
extend
::
Gitlab
::
Utils
::
Override
override
:failure_reasons
def
failure_reasons
super
.
merge
(
activity_limit_exceeded:
'Pipeline activity limit exceeded!'
,
size_limit_exceeded:
'Pipeline size limit exceeded!'
,
job_activity_limit_exceeded:
'Pipeline job activity limit exceeded!'
)
end
end
def
expose_security_dashboard?
return
false
unless
can?
(
current_user
,
:read_vulnerability
,
pipeline
.
project
)
...
...
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