Commit Graph

20 Commits

Author SHA1 Message Date
Robert Speicher 72a7b30c9f Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
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
Rémy Coutable ddccd24c13 Remove superfluous lib: true, type: redis, service: true, models: true, services: true, no_db: true, api: true
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 14:31:53 +02:00
blackst0ne 1fb9de2bf7 Change Done column to Closed in issue boards 2017-03-24 23:40:35 +11:00
Valery Sizov 9895d6707d [Issue Board Sorting] More accurate move through the list 2017-03-07 21:02:08 +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 32538def14 [Issue sorting on board] Addressing review issues 2017-03-03 20:23:33 +02:00
Valery Sizov 800f2a722f [Issue board sorting] Specs 2017-02-28 16:52:49 +02:00
Douglas Barbosa Alexandre 860fafee13 Remove backlog lists from board services 2017-02-03 17:02:43 +03:00
Douglas Barbosa Alexandre 8b15e328a6 Removes all labels from project boards when moving and issue to done 2016-10-11 11:39:04 -03:00
Douglas Barbosa Alexandre 104c4f88cd Update Boards::Issues::MoveService to move issues on a specific board 2016-10-11 11:39:04 -03:00
Douglas Barbosa Alexandre 97551e8dd9 Improve project_with_board factory to create the default lists 2016-09-26 14:42:38 -03:00
Douglas Barbosa Alexandre a8cc69a281 Validate if the lists are different when moving issues between lists 2016-08-17 12:58:59 -03:00
Douglas Barbosa Alexandre f77c47a51c Remove lookup inside services to keep them consistent with other ones 2016-08-17 12:58:59 -03:00
Douglas Barbosa Alexandre 8e4e294a7c Rename from/to params to from_list_id/to_list_id 2016-08-17 12:58:59 -03:00
Douglas Barbosa Alexandre c08a14c3c2 Removes all list-labels when moving to Backlog/Done 2016-08-17 12:58:58 -03:00
Douglas Barbosa Alexandre 9e5a305f18 Use zero-based positions on issues board services 2016-08-17 12:58:58 -03:00
Douglas Barbosa Alexandre baec3d236b Remove label_list factory 2016-08-17 12:58:58 -03:00
Douglas Barbosa Alexandre 115fca13c3 Add service to move issues between lists 2016-08-17 12:58:57 -03:00