Commit 654f10102e051bfcef75add025f6395da58c770d

Authored by Riyad Preukschas
1 parent 06ea1228

Remove paging from all notes except the wall

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
app/contexts/notes/load_context.rb
@@ -9,11 +9,11 @@ module Notes @@ -9,11 +9,11 @@ module Notes
9 9
10 @notes = case target_type 10 @notes = case target_type
11 when "commit" 11 when "commit"
12 - project.commit_notes(project.commit(target_id)).fresh.limit(20) 12 + project.commit_notes(project.commit(target_id)).fresh
13 when "issue" 13 when "issue"
14 - project.issues.find(target_id).notes.inc_author.fresh.limit(20) 14 + project.issues.find(target_id).notes.inc_author.fresh
15 when "merge_request" 15 when "merge_request"
16 - project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh.limit(20) 16 + project.merge_requests.find(target_id).mr_and_commit_notes.inc_author.fresh
17 when "snippet" 17 when "snippet"
18 project.snippets.find(target_id).notes.fresh 18 project.snippets.find(target_id).notes.fresh
19 when "wall" 19 when "wall"