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
e2246dbd
Commit
e2246dbd
authored
Jan 15, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ce-to-ee-2018-01-15' into 'master'
CE upstream - Monday See merge request gitlab-org/gitlab-ee!4085
parents
3098b1cc
7facac35
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
app/views/layouts/nav/sidebar/_group.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
+6
-6
changelogs/unreleased/41546-count-query-for-issues-and-mrs-runs-twice-on-group-index.yml
...nt-query-for-issues-and-mrs-runs-twice-on-group-index.yml
+5
-0
No files found.
app/views/layouts/nav/sidebar/_group.html.haml
View file @
e2246dbd
-
issues
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
,
non_archived:
true
).
execute
-
issues
_count
=
IssuesFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
).
execute
.
count
-
merge_requests
_count
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
,
non_archived:
true
).
execute
.
count
-
issues_sub_menu_items
=
[
'groups#issues'
,
'labels#index'
,
'milestones#index'
]
-
if
@group
.
feature_available?
(
:group_issue_boards
)
...
...
@@ -52,14 +52,14 @@
=
sprite_icon
(
'issues'
)
%span
.nav-item-name
Issues
%span
.badge.count
=
number_with_delimiter
(
issues
.
count
)
%span
.badge.count
=
number_with_delimiter
(
issues
_
count
)
%ul
.sidebar-sub-level-items
=
nav_link
(
path:
[
'groups#issues'
,
'labels#index'
,
'milestones#index'
],
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
link_to
issues_group_path
(
@group
)
do
%strong
.fly-out-top-item-name
#{
_
(
'Issues'
)
}
%span
.badge.count.issue_counter.fly-out-badge
=
number_with_delimiter
(
issues
.
count
)
%span
.badge.count.issue_counter.fly-out-badge
=
number_with_delimiter
(
issues
_
count
)
%li
.divider.fly-out-top-item
=
nav_link
(
path:
'groups#issues'
,
html_options:
{
class:
'home'
})
do
=
link_to
issues_group_path
(
@group
),
title:
'List'
do
...
...
@@ -88,13 +88,13 @@
=
sprite_icon
(
'git-merge'
)
%span
.nav-item-name
Merge Requests
%span
.badge.count
=
number_with_delimiter
(
merge_requests
.
count
)
%span
.badge.count
=
number_with_delimiter
(
merge_requests
_
count
)
%ul
.sidebar-sub-level-items.is-fly-out-only
=
nav_link
(
path:
'groups#merge_requests'
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
link_to
merge_requests_group_path
(
@group
)
do
%strong
.fly-out-top-item-name
#{
_
(
'Merge Requests'
)
}
%span
.badge.count.merge_counter.js-merge-counter.fly-out-badge
=
number_with_delimiter
(
merge_requests
.
count
)
%span
.badge.count.merge_counter.js-merge-counter.fly-out-badge
=
number_with_delimiter
(
merge_requests
_
count
)
=
nav_link
(
path:
'group_members#index'
)
do
=
link_to
group_group_members_path
(
@group
)
do
.nav-icon-container
...
...
changelogs/unreleased/41546-count-query-for-issues-and-mrs-runs-twice-on-group-index.yml
0 → 100644
View file @
e2246dbd
---
title
:
Fix double query execution on groups page
merge_request
:
16314
author
:
type
:
performance
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