Commit graph

14 commits

Author SHA1 Message Date
Sean McGivern
eb15e4dfc2 Speed up setting of relative position
1. When every issue has a relative position set, we don't need to
   perform any updates, or calculate the maximum position in the parent.
2. If we do need to calculate the maximum position in the parent, many
   parents (specifically, groups with lots of projects) leads to a slow
   query where only the index on issues.relative_position is used, not
   the index on issues.project_id. Adding the GROUP BY forces Postgres
   to use both indices.
2018-11-23 13:06:04 +00:00
Chantal Rollison
c871faa3e4 Add preload in issues controller 2018-10-18 18:43:50 -07:00
Robert Speicher
72a7b30c9f Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
Sean McGivern
5069682d8e Enable RSpec/FilePath cop
- Ignore JS fixtures
- Ignore qa directory
- Rewrite concern specs to put concern name first
2017-04-26 12:50:32 +01:00
Valery Sizov
e752d6d157 [Issue sorting]Addressed review comments 2017-03-14 14:11:59 +02:00
Valery Sizov
b84723ac8b [Issue Sorting] Improve migration 2017-03-14 14:11:59 +02:00
Valery Sizov
5670777735 [Issue sorting] Filling positions preferable in the middle 2017-03-14 14:11:59 +02:00
Valery Sizov
96fe1856da Fix relative position calculation 2017-03-14 14:11:18 +02:00
Douwe Maan
8a199f324b Remove unneccessary blank lines 2017-03-07 16:45:41 -06:00
Valery Sizov
9895d6707d [Issue Board Sorting] More accurate move through the list 2017-03-07 21:02:08 +02:00
Valery Sizov
539a523553 Fix rubocop 2017-03-07 13:56:35 +02:00
Valery Sizov
a0108c6925 Address review comments 2017-03-07 13:42:17 +02:00
Valery Sizov
13caadea7a Addressing review comments 2017-03-06 18:08:18 +02:00
Valery Sizov
800f2a722f [Issue board sorting] Specs 2017-02-28 16:52:49 +02:00