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
0748ba75
Commit
0748ba75
authored
Mar 13, 2019
by
Scott Hampton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add polling interval to ops controller
Made a constant for the polling interval time.
parent
7f2243d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ee/app/controllers/operations_controller.rb
ee/app/controllers/operations_controller.rb
+3
-1
No files found.
ee/app/controllers/operations_controller.rb
View file @
0748ba75
...
...
@@ -9,11 +9,13 @@ class OperationsController < ApplicationController
respond_to
:json
,
only:
[
:list
]
POLLING_INTERVAL
=
120_000
def
index
end
def
list
Gitlab
::
PollingInterval
.
set_header
(
response
,
interval:
120_000
)
Gitlab
::
PollingInterval
.
set_header
(
response
,
interval:
POLLING_INTERVAL
)
projects
=
load_projects
(
current_user
)
render
json:
{
projects:
serialize_as_json
(
projects
)
}
...
...
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