Commit graph

21 commits

Author SHA1 Message Date
Yorick Peterse
6ef87a2083
Merge issuable "reopened" state into "opened"
Having two states that essentially mean the same thing is very much like
having a boolean "true" and boolean "mostly-true": it's rather silly.
This commit merges the "reopened" state into the "opened" state while
taking care of system notes still showing messages along the lines of
"Alice reopened this issue".

A big benefit from having only two states (opened and closed) is that
indexing and querying becomes simpler and more performant. For example,
to get all the opened queries we no longer have to query both states:

    SELECT *
    FROM issues
    WHERE project_id = 2
    AND state IN ('opened', 'reopened');

Instead we can query a single state directly, which can be much faster:

    SELECT *
    FROM issues
    WHERE project_id = 2
    AND state = 'opened';

Further, only having two states makes indexing easier as we will only
ever filter (and thus scan an index) using a single value. Partial
indexes could help but aren't supported on MySQL, complicating the
development process and not being helpful for MySQL.
2017-07-28 13:31:51 +02:00
Jarka Kadlecova
33d82ccb45 simplify test&save actions when setting a service integration 2017-06-01 07:47:15 +02:00
Douwe Maan
7d4b52b27d Enable Style/WordArray 2017-02-23 09:32:41 -06:00
Douwe Maan
7ea641b6d0 Enable Style/ColonMethodCall 2017-02-23 09:31:57 -06:00
Douwe Maan
f40716f48a No more and/or 2017-02-21 16:31:14 -06:00
Dmitriy Zaporozhets
6676b4f0dd
Use Namespace#full_path instead of Namespace#path
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-02-14 18:38:20 +02:00
Tiago Botelho
cd51af1a99 adds events to services api deserialization 2017-01-22 00:02:29 +00:00
Robert Speicher
e75b1f1105 Merge branch '24185-legacy-ci-status-reactive-cache' into 'security'
Use ReactiveCaching to update external CI status asynchronously

See https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2055
2017-01-12 17:39:46 -05:00
Robert Schilling
593c912151 Grapify the service API 2016-12-09 17:20:12 +01:00
Grzegorz Bizon
9e211091a8 Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
Jeroen van Baarsen
f1479b56b7
Remove the annotate gem and delete old annotations
In 8278b763d9 the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in #17382
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.

Fixes: #17382
2016-05-09 18:00:28 +02:00
Zeger-Jan van de Weg
47da013cf8 Annotate the models 2016-05-06 08:27:46 +02:00
Stan Hu
79c0e7212a Annotate models 2016-01-06 13:09:55 +00:00
Robert Speicher
d5ea93469b Add custom UrlValidator 2015-12-07 16:57:26 -05:00
Valery Sizov
162cd0099c fix deprecation messages in tests 2015-12-03 10:33:43 +02:00
Stan Hu
ad1f451f24 Fix Drone web hook URL not being updated 2015-11-20 08:13:25 -08:00
Stan Hu
5aa142212f Fix Drone CI service template not saving properly
Closes #3419
2015-11-10 10:52:45 -08:00
Kirilll Zaitsev
9021200ad3 Removed format validation 2015-09-19 14:12:20 +03:00
Valery Sizov
600d6eeff3 Fix CI status in the MR page 2015-09-18 18:02:29 +03:00
Stan Hu
d7812a95cf Re-annotate models 2015-09-06 07:48:48 -07:00
Kirilll Zaitsev
263abda3fd Drone CI service 2015-09-02 05:52:16 +03:00