Commit graph

12 commits

Author SHA1 Message Date
Douwe Maan
5c7f9d69e3 Fix code for cops 2017-02-23 09:31:57 -06:00
Douwe Maan
8a4d68c53e Enable Style/ConditionalAssignment 2017-02-23 09:31:57 -06:00
blackst0ne
0494930d7a Refactored specs 2017-02-22 09:08:20 +11:00
blackst0ne
5cc838d325 Refactored specs 2017-02-22 09:00:03 +11:00
blackst0ne
2a12cbe6d6 Improved specs 2017-02-21 12:07:50 +11:00
blackst0ne
24ba7585e6 Fixed rubocop offenses 2017-02-18 12:58:24 +11:00
blackst0ne
32b59a1fa7 Added specs 2017-02-18 11:47:56 +11:00
Felipe Artur
0b14b654b6 Gather issuable metadata to avoid n+ queries on index view 2017-02-09 17:40:37 -02:00
Adam Niedzielski
ff4d5fc1d0 Fix failures in default sort order spec
Test cases were not waiting for page load after clicking.
This caused failures in test cases that were executed right after
these incorrect ones, because of requests hitting server after
a test was finished.
We do not have to click links, we can go directly to a correct page
by passing parameters in the URL.
2016-12-30 16:44:16 +01:00
Sean McGivern
d3acded4bc Handle legacy sort order values
The sort orders used to be id_asc / id_desc, and are now created_asc /
created_desc. Users can still have cookies containing the old sort
orders, or bookmarks to links specifying them, so convert these to the
new versions quietly.
2016-08-18 23:26:07 +01:00
Phil Hughes
f668da11cb Updated tests 2016-08-13 00:57:40 -05:00
zs
84a3225b0c State specific default sort order for issuables
Provide more sensible default sort order for issues and merge requests
based on the following table:

| type           | state  | default sort order |
|----------------|--------|--------------------|
| issues         | open   | last created       |
| issues         | closed | last updated       |
| issues         | all    | last created       |
| merge requests | open   | last created       |
| merge requests | merged | last updated       |
| merge requests | closed | last updated       |
| merge requests | all    | last created       |
2016-08-01 11:28:56 +02:00