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
65cf8052
Commit
65cf8052
authored
Aug 07, 2017
by
Igor Kapkov
Committed by
Rémy Coutable
Sep 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow events filter to be set in the URL in addition to cookie
parent
4586d77c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
app/controllers/application_controller.rb
app/controllers/application_controller.rb
+1
-0
changelogs/unreleased/1801-allow-event_filter-to-be-set-in-the-url.yml
...released/1801-allow-event_filter-to-be-set-in-the-url.yml
+5
-0
No files found.
app/controllers/application_controller.rb
View file @
65cf8052
...
...
@@ -275,6 +275,7 @@ class ApplicationController < ActionController::Base
def
event_filter
# Split using comma to maintain backward compatibility Ex/ "filter1,filter2"
filters
=
cookies
[
'event_filter'
].
split
(
','
)[
0
]
if
cookies
[
'event_filter'
].
present?
filters
=
params
[
:event_filter
].
split
(
','
)[
0
]
if
params
[
:event_filter
].
present?
@event_filter
||=
EventFilter
.
new
(
filters
)
end
...
...
changelogs/unreleased/1801-allow-event_filter-to-be-set-in-the-url.yml
0 → 100644
View file @
65cf8052
---
title
:
"
Allow
events
filter
to
be
set
in
the
URL
in
addition
to
cookie"
merge_request
:
21557
author
:
Igor @igas
type
:
added
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