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
6caf07a0
Commit
6caf07a0
authored
Jan 25, 2022
by
Kerri Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Nit picking typos
parent
4df42f89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
app/models/concerns/issuable.rb
app/models/concerns/issuable.rb
+6
-4
No files found.
app/models/concerns/issuable.rb
View file @
6caf07a0
...
...
@@ -363,9 +363,10 @@ module Issuable
end
# Includes table keys in group by clause when sorting
# preventing errors in postgres
# preventing errors in Postgres
#
# Returns an array of Arel columns
#
# Returns an array of arel columns
def
grouping_columns
(
sort
)
sort
=
sort
.
to_s
grouping_columns
=
[
arel_table
[
:id
]]
...
...
@@ -384,9 +385,10 @@ module Issuable
end
# Includes all table keys in group by clause when sorting
# preventing errors in postgres when using CTE search optimisation
# preventing errors in Postgres when using CTE search optimization
#
# Returns an array of Arel columns
#
# Returns an array of arel columns
def
issue_grouping_columns
(
use_cte:
false
)
if
use_cte
attribute_names
.
map
{
|
attr
|
arel_table
[
attr
.
to_sym
]
}
...
...
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