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
558b4a94
Commit
558b4a94
authored
Jun 24, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
f4b02d75
771e3903
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
app/models/deployment.rb
app/models/deployment.rb
+1
-1
app/models/environment.rb
app/models/environment.rb
+2
-2
app/models/project.rb
app/models/project.rb
+2
-0
No files found.
app/models/deployment.rb
View file @
558b4a94
...
...
@@ -179,7 +179,7 @@ class Deployment < ApplicationRecord
end
def
has_metrics?
prometheus_adapter
&
.
can_query?
&&
success
?
success?
&&
prometheus_adapter
&
.
can_query
?
end
def
metrics
...
...
app/models/environment.rb
View file @
558b4a94
...
...
@@ -155,7 +155,7 @@ class Environment < ApplicationRecord
end
def
has_terminals?
deployment_platform
.
present?
&&
available
?
&&
last_deployment
.
present?
available?
&&
deployment_platform
.
present
?
&&
last_deployment
.
present?
end
def
terminals
...
...
@@ -163,7 +163,7 @@ class Environment < ApplicationRecord
end
def
has_metrics?
prometheus_adapter
&
.
can_query?
&&
available
?
available?
&&
prometheus_adapter
&
.
can_query
?
end
def
metrics
...
...
app/models/project.rb
View file @
558b4a94
...
...
@@ -55,6 +55,8 @@ class Project < ApplicationRecord
VALID_MIRROR_PORTS
=
[
22
,
80
,
443
].
freeze
VALID_MIRROR_PROTOCOLS
=
%w(http https ssh git)
.
freeze
ignore_column
:import_status
,
:import_jid
,
:import_error
cache_markdown_field
:description
,
pipeline: :description
delegate
:feature_available?
,
:builds_enabled?
,
:wiki_enabled?
,
...
...
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