diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-28 12:15:08 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-07-28 12:15:08 +0300 |
commit | 43d118803133558209973464b1c16fd4c7ba446c (patch) | |
tree | f20b88da29bca8ef6df2c5fa8207d8b45244c8d6 /lib/api | |
parent | 4fae34d6297756d11585dcbef45d03cc39eeb125 (diff) | |
parent | 6c9f527b3f3f0c47438e0722792ca247a44e4964 (diff) |
Merge branch 'fix-api-mr-notes-ordering' into 'master'
Return comments in created order in merge request API
Closes #1832
See merge request !985
Diffstat (limited to 'lib/api')
-rw-r--r-- | lib/api/merge_requests.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/merge_requests.rb b/lib/api/merge_requests.rb index aa43e1dffd9..ce21c699e8f 100644 --- a/lib/api/merge_requests.rb +++ b/lib/api/merge_requests.rb @@ -229,7 +229,7 @@ module API authorize! :read_merge_request, merge_request - present paginate(merge_request.notes), with: Entities::MRNote + present paginate(merge_request.notes.fresh), with: Entities::MRNote end # Post comment to merge request |