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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
1c24ebb0
Commit
1c24ebb0
authored
Jul 17, 2019
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove backend use of manual_sorting feature flag
parent
ce77d137
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
9 deletions
+1
-9
app/controllers/groups_controller.rb
app/controllers/groups_controller.rb
+0
-4
app/controllers/projects/issues_controller.rb
app/controllers/projects/issues_controller.rb
+0
-4
app/views/shared/issuable/_sort_dropdown.html.haml
app/views/shared/issuable/_sort_dropdown.html.haml
+1
-1
No files found.
app/controllers/groups_controller.rb
View file @
1c24ebb0
...
...
@@ -7,10 +7,6 @@ class GroupsController < Groups::ApplicationController
include
PreviewMarkdown
include
RecordUserLastActivity
before_action
do
push_frontend_feature_flag
(
:manual_sorting
,
default_enabled:
true
)
end
respond_to
:html
prepend_before_action
(
only:
[
:show
,
:issues
])
{
authenticate_sessionless_user!
(
:rss
)
}
...
...
app/controllers/projects/issues_controller.rb
View file @
1c24ebb0
...
...
@@ -10,10 +10,6 @@ class Projects::IssuesController < Projects::ApplicationController
include
SpammableActions
include
RecordUserLastActivity
before_action
do
push_frontend_feature_flag
(
:manual_sorting
,
default_enabled:
true
)
end
def
issue_except_actions
%i[index calendar new create bulk_update import_csv]
end
...
...
app/views/shared/issuable/_sort_dropdown.html.haml
View file @
1c24ebb0
-
sort_value
=
@sort
-
sort_title
=
issuable_sort_option_title
(
sort_value
)
-
viewing_issues
=
controller
.
controller_name
==
'issues'
||
controller
.
action_name
==
'issues'
-
manual_sorting
=
viewing_issues
&&
controller
.
controller_name
!=
'dashboard'
&&
Feature
.
enabled?
(
:manual_sorting
,
default_enabled:
true
)
-
manual_sorting
=
viewing_issues
&&
controller
.
controller_name
!=
'dashboard'
.dropdown.inline.prepend-left-10.issue-sort-dropdown
.btn-group
{
role:
'group'
}
...
...
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