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
b2245b3b
Commit
b2245b3b
authored
Jun 22, 2021
by
Luke Duncalfe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Delegate a method to current_settings
https://gitlab.com/gitlab-org/gitlab/-/issues/333759
parent
8ee2e9cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
app/models/integrations/prometheus.rb
app/models/integrations/prometheus.rb
+2
-4
No files found.
app/models/integrations/prometheus.rb
View file @
b2245b3b
...
...
@@ -134,6 +134,8 @@ module Integrations
private
delegate
:allow_local_requests_from_web_hooks_and_services?
,
to: :current_settings
,
private:
true
def
self_monitoring_project?
project
&&
project
.
id
==
current_settings
.
self_monitoring_project_id
end
...
...
@@ -142,10 +144,6 @@ module Integrations
api_url
.
present?
&&
api_url
==
::
Gitlab
::
Prometheus
::
Internal
.
uri
end
def
allow_local_requests_from_web_hooks_and_services?
current_settings
.
allow_local_requests_from_web_hooks_and_services?
end
def
should_return_client?
api_url
.
present?
&&
manual_configuration?
&&
active?
&&
valid?
end
...
...
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