- 01 Jul, 2016 1 commit
-
-
Grzegorz Bizon authored
-
- 23 Jun, 2016 1 commit
-
-
Sean McGivern authored
Postgres and MySQL don't guarantee that pagination with `LIMIT` and `OFFSET` will work if the ordering isn't unique. From the Postgres docs: > When using `LIMIT`, it is important to use an `ORDER BY` clause that > constrains the result rows into a unique order. Otherwise you will get > an unpredictable subset of the query's rows Before: [1] pry(main)> issues = 1.upto(Issue.count).map { |i| Issue.sort('priority').page(i).per(1).map(&:id) }.flatten [2] pry(main)> issues.count => 81 [3] pry(main)> issues.uniq.count => 42 After: [1] pry(main)> issues = 1.upto(Issue.count).map { |i| Issue.sort('priority').page(i).per(1).map(&:id) }.flatten [2] pry(main)> issues.count => 81 [3] pry(main)> issues.uniq.count => 81
-
- 08 Jun, 2016 1 commit
-
-
Alejandro Rodríguez authored
This was not a clear cut n+1 query, given that if you're directly subscribed to all issues that the API is returning you never really need to check for the notes. However, if you're subscribed to _all_ of them, then for each issuable you need to go once to `notes`, and once to `users` (for the authors). By preemtively loading notes and authors, at worst you have 1 extra query, and at best you saved 2n extra queries. We also took advantage of this preloading of notes when counting user notes.
-
- 03 Jun, 2016 2 commits
-
-
James Lopez authored
This reverts commit 3e991230.
-
James Lopez authored
# Conflicts: # app/models/project.rb
-
- 02 Jun, 2016 1 commit
-
-
Paco Guzman authored
This will be useful when you want to ask for the number of items and later iterate over them, without needing to ask if the association is load or not. So you avoid extra database queries
-
- 31 May, 2016 1 commit
-
-
Felipe Artur authored
-
- 29 May, 2016 2 commits
-
-
Grzegorz Bizon authored
-
Grzegorz Bizon authored
-
- 24 May, 2016 5 commits
-
-
Felipe Artur authored
-
Felipe Artur authored
-
Felipe Artur authored
-
Felipe Artur authored
-
Robert Speicher authored
Also removes the note from the development/testing.md guide
-
- 12 May, 2016 1 commit
-
-
Zeger-Jan van de Weg authored
-
- 11 May, 2016 1 commit
-
-
Zeger-Jan van de Weg authored
-
- 10 May, 2016 1 commit
-
-
Zeger-Jan van de Weg authored
-
- 06 May, 2016 1 commit
-
-
Zeger-Jan van de Weg authored
-
- 21 Apr, 2016 2 commits
-
-
James Lopez authored
-
James Lopez authored
-
- 20 Apr, 2016 3 commits
-
-
James Lopez authored
-
James Lopez authored
-
James Lopez authored
-
- 30 Mar, 2016 1 commit
-
-
Douglas Barbosa Alexandre authored
-
- 15 Mar, 2016 1 commit
-
-
Rémy Coutable authored
1. Make the "subscribed" text in Issuable sidebar reflect the labels subscription status 2. Current user mut be logged-in to toggle issue/MR/label subscription
-
- 11 Mar, 2016 2 commits
-
-
Yorick Peterse authored
-
Yorick Peterse authored
-
- 22 Feb, 2016 2 commits
-
-
Zeger-Jan van de Weg authored
-
Zeger-Jan van de Weg authored
Closes #9014 The only difference with #9014 is that I thoughed the author should also be able to assign the issue. If this is unwanted behavior Ill revert it.
-
- 11 Feb, 2016 1 commit
-
-
Kirill Zaitsev authored
- Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`, `path_with_namespace` and `default_branch` in `project` in push, issue, merge-request and note webhooks data - Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in favor of `git_http_url` in `project` for push, issue, merge-request and note webhooks data - Deprecate the `repository` key in push, issue, merge-request and note webhooks data, use `project` instead
-
- 10 Feb, 2016 1 commit
-
-
Bram Daams authored
-
- 28 Dec, 2015 1 commit
-
-
Valery Sizov authored
-
- 25 Dec, 2015 1 commit
-
-
Douwe Maan authored
-
- 24 Dec, 2015 1 commit
-
-
Robert Speicher authored
-
- 16 Oct, 2015 1 commit
-
-
Zeger-Jan van de Weg authored
-
- 16 Sep, 2015 1 commit
-
-
Jungkook Park authored
add a test for to_hook_data of issue model update CHANGELOG
-
- 22 Jun, 2015 1 commit
-
-
Robert Speicher authored
-
- 10 Jun, 2015 1 commit
-
-
Robert Speicher authored
-
- 12 Feb, 2015 1 commit
-
-
Jeroen van Baarsen authored
Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
-
- 25 Mar, 2014 1 commit
-
-
Dmitriy Zaporozhets authored
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-