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
1a62e902
Commit
1a62e902
authored
Jan 26, 2021
by
Adam Hegyi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Apply reviewer feedback
- Rename preload_status to preload_associations
parent
16b216a2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
app/finders/autocomplete/users_finder.rb
app/finders/autocomplete/users_finder.rb
+2
-2
changelogs/unreleased/296943-expose-user-availability.yml
changelogs/unreleased/296943-expose-user-availability.yml
+5
-0
No files found.
app/finders/autocomplete/users_finder.rb
View file @
1a62e902
...
...
@@ -39,7 +39,7 @@ module Autocomplete
end
items
.
uniq
.
tap
do
|
unique_items
|
preload_
statu
s
(
unique_items
)
preload_
association
s
(
unique_items
)
end
end
...
...
@@ -95,7 +95,7 @@ module Autocomplete
end
# rubocop: disable CodeReuse/ActiveRecord
def
preload_
statu
s
(
items
)
def
preload_
association
s
(
items
)
ActiveRecord
::
Associations
::
Preloader
.
new
.
preload
(
items
,
:status
)
end
# rubocop: enable CodeReuse/ActiveRecord
...
...
changelogs/unreleased/296943-expose-user-availability.yml
0 → 100644
View file @
1a62e902
---
title
:
Expose user availablility data on issuable pages
merge_request
:
52333
author
:
type
:
other
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