Commit graph

27 commits

Author SHA1 Message Date
Nick Thomas
22bbb24f28 Fix viewing "build failed" TODOs 2016-12-22 13:57:00 +00:00
Josep Llaneras
0803a350b0 Issue #13823: random message when all Todos are Done 2016-11-11 20:59:54 +01:00
Valery Sizov
b7dff1b072 Fix: Todos Filter Shows All Users 2016-11-04 13:41:14 +02:00
Phil Hughes
f7a4cf2bfb Tests update 2016-11-01 08:47:27 +00:00
Phil Hughes
511d6b9309 Tests update 2016-11-01 08:47:27 +00:00
Alejandro Rodríguez
7bd6ff03d8 Fix and improve Sortable.highest_label_priority 2016-10-27 21:26:56 -03:00
Clement Ho
f610f69ab9 Add todo toggle event 2016-10-26 16:28:56 -05:00
Phil Hughes
4c5c5ab314 Added test for due date 2016-10-03 09:55:12 +01:00
Robert Speicher
e7e628bf95 Improve validity of spec/features/todos/todos_filtering_spec.rb
Previously, we were checking that a CSS selector string didn't have some
page-related content, which, of course it didn't.

Now we check against the actual content of the selector, we use a more
semantic selector, and we add an additional expectation for the text
that _should_ be there, as an additional sanity check.
2016-09-14 16:50:15 -04:00
Luke Bennett
28db37de70
Added todo filter tests 2016-09-01 14:36:02 +01:00
Clement Ho
632899826b Fix bug where pagination is still displayed despite all todos marked as done 2016-08-31 10:27:04 -05:00
Paco Guzman
7629dc9982 Add specs to ensure a successful return
on the UI when mark as done a already done todo.
2016-08-25 06:46:11 +02:00
Felipe Artur
37bf35f0bc Todos sorting dropdown 2016-08-19 16:14:20 -03:00
tiagonbotelho
519275c110 fixes part1 of files to start using active tense 2016-08-09 15:06:23 +01:00
Douglas Barbosa Alexandre
2878c99005 Ensure Todos counters doesn't count Todos for projects pending delete 2016-06-17 16:17:43 -03:00
DJ Mountney
86675194aa Fix failing todo tests 2016-06-02 15:30:13 -07:00
DJ Mountney
14a9b0d7dd Update target todo test to use a public project 2016-06-02 12:23:32 -07:00
DJ Mountney
b173ea2bd4 Use the project finder in the todos finder to limit todos to just ones within projects you have access to. 2016-06-02 12:20:27 -07:00
DJ Mountney
c3e923c496 Ensure we don't show TODOS for projects pending delete
By joining the Todos on the project table.
2016-06-02 11:24:18 -07:00
Stan Hu
f8a3344d12 Fix 404 page when viewing TODOs that contain milestones or labels in different projects
A user viewing the TODOs page will see a 404 if there are mentioned labels
in multiple different projects. This is likely a caching bug and only occurs
when Markdown rendering occurs across multiple projects, which is why it's so
tricky to reproduce. This is what I think is happening:

1. LabelReferenceFilter#references_in encounters label ~X for ProjectA and finds the label in the DB as id = 1.
2. LabelReferenceFilter.references_in yields [1, 'X', nil, ...]
3. Since project_ref is nil, AbstractReferenceFilter#project_from_ref_cache caches nil => ProjectA.
4. LabelReferenceFilter#references_in encounters label ~Y for ProjectB and finds the label in the DB as id = 2.
5. LabelReferenceFilter.references_in yields [2, 'Y', nil, ...]
6. AbstractReferenceFilter#project_from_ref_cache lookups nil and returns ProjectA. It was supposed to be ProjectB.
7. A is the wrong project, so the label lookup fails.

This MR caches Markdown references if the key is present.

Closes #17898
2016-05-31 20:37:53 -07:00
Alfredo Sumaran
9a10205a4f Reduce spacing 2016-05-25 08:15:20 -04:00
Alfredo Sumaran
fd0c40fc80 Address feedback
Signed-off-by: Alfredo Sumaran <alfredo@gitlab.com>
2016-05-25 08:15:20 -04:00
Alfredo Sumaran
38d6bc77f9 Add tests for Todos target's state 2016-05-25 08:15:20 -04:00
Alfredo Sumaran
d2f898e7ea Fix Todos test 2016-04-27 14:52:51 -05:00
Robert Speicher
bdd844f312 Refactor Todos feature spec to be faster and less brittle
We now only create two Todos instead of 21 when testing pagination, and
we've updated the test to be less brittle when dealing with slower CI
environments.
2016-04-22 13:08:11 -04:00
Alfredo Sumaran
50c9c6a875 Grammar fix 2016-04-18 16:28:15 -05:00
Alfredo Sumaran
45c93b52e4 Todos spec 2016-04-07 21:22:58 -05:00