Commit Graph

39 Commits

Author SHA1 Message Date
Jacopo 60e9405bb7 Improve text on todo list when the todo action comes from yourself
Improved todo message when an issue is assigned to yourself.
- The new message when an user assign to himself an issue or a mr is: "You
assigned issue xx to yourself"
- The new message when an user adds a todo to himself is: "You added a
todo for issue xx"
- The new message when and user mention himself is: "You mentioned
yourself on issue xx"
- The new message when an user directly address himself is: "You
directly addressed yourself on issue xx"
- The new message when an user mark himself as an approver is: "You set
yourself as an approver for merge request xx"
2017-04-28 14:24:32 +02:00
Jacopo ff76adb547 Unnecessary "include WaitForAjax" and "include ApiHelpers"
Removed all the unnecessary include of `WaitForAjax` and `ApiHelpers` in the specs.
Removed unnecessary usage of `api:true`
2017-04-21 22:32:02 +02:00
Annabel Dunstone Gray d08d12ae03 Add shortcuts and counters to MRs and issues in navbar 2017-03-29 21:16:57 +00:00
Jacopo 5f9ace8eb1 Add 'Undo mark all as done' to Todos
Added the ability to 'Undo mark all as done' todos marked as complete with 'Mark all as done'
in the 'Todo' tab of the Todo dashboard.
The operation undos only the todo previously marked as done with the 'Mark al as done' button.
2017-03-16 07:15:00 +01:00
Jacopo e20ffc6e00 Add 'Undo' to Todos in the Done tab
Added the ability to 'Undo' the todos marked complete in the 'Done' tab of the Todo dashboard.
Added the ability to 'Undo mark all as done' todos marked complete with 'Mark all as done'
in the 'Todo' tab of the Todo dashboard.
2017-03-10 13:37:55 +01:00
Dimitrie Hoekstra bfd33645f5 Rename priority sorting option to label priority 2017-03-07 17:12:53 +00:00
mhasbini 0a53a3d966 change todos counter position & format ( for large counts ) 2017-02-21 21:21:49 +02:00
Jacopo 26160459b5 Todo done clicking is kind of unusable.
The Done button will change to an Undo button and the line item will be greyed out.
Bold links will be unbolded.
The user can undo the task by clicking the Undo button.
2017-02-17 22:12:19 +01:00
Sean McGivern 4c8a1d3a3d Merge branch '26705-filter-todos-by-manual-add' into 'master'
Filter todos by manual add

Closes #26705

See merge request !8861
2017-02-08 13:32:55 +00:00
Jacopo e4029070a2 Filter todos by manual add
Added the option to filter todo by Added and Pipelines
2017-01-28 23:48:36 +01:00
Oswaldo Ferreira 441501e4bf Present TODO's list without grouping by project 2017-01-27 20:20:18 -02:00
Sean McGivern 4f1eb8cdd1 Fix todos spec
This was changed in a community MR, but the branch was far enough behind
master that it didn't have this spec.
2017-01-19 15:43:16 +00:00
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