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
6d50b752
Commit
6d50b752
authored
Aug 02, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ci skip] Enable etag polling
parent
7a98970b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
app/controllers/concerns/notes_actions.rb
app/controllers/concerns/notes_actions.rb
+7
-0
No files found.
app/controllers/concerns/notes_actions.rb
View file @
6d50b752
...
...
@@ -3,6 +3,7 @@ module NotesActions
extend
ActiveSupport
::
Concern
included
do
before_action
:set_polling_interval_header
,
only:
[
:index
]
before_action
:authorize_admin_note!
,
only:
[
:update
,
:destroy
]
before_action
:note_project
,
only:
[
:create
]
end
...
...
@@ -175,6 +176,12 @@ module NotesActions
)
end
def
set_polling_interval_header
return
unless
noteable
.
is_a?
(
Issue
)
Gitlab
::
PollingInterval
.
set_header
(
response
,
interval:
3_000
)
end
def
noteable
@noteable
||=
notes_finder
.
target
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