diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-07-28 09:15:08 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-07-28 09:15:08 +0000 |
commit | 43d118803133558209973464b1c16fd4c7ba446c (patch) | |
tree | f20b88da29bca8ef6df2c5fa8207d8b45244c8d6 /lib | |
parent | 4fae34d6297756d11585dcbef45d03cc39eeb125 (diff) | |
parent | 6c9f527b3f3f0c47438e0722792ca247a44e4964 (diff) | |
download | gitlab-ce-43d118803133558209973464b1c16fd4c7ba446c.tar.gz |
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')
-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 |