summaryrefslogtreecommitdiff
path: root/lib/api/todos.rb
Commit message (Collapse)AuthorAgeFilesLines
* Avoid plucking Todo ids and use sub-queries insteadToon Claes2017-08-031-3/+3
| | | | | | | | TodoService should not call `.select(&:id)` on todos, because this is bad performance. So instead use sub-queries, which will result in a single SQL query to the database. https://docs.gitlab.com/ee/development/sql.html#plucking-ids
* Revert "Merge branch 'tc-no-todo-service-select' into 'master'"revert-c3c465acStan Hu2017-04-291-2/+2
| | | This reverts merge request !10845
* Avoid plucking Todo ids and use sub-queries insteadtc-no-todo-service-selectToon Claes2017-04-271-2/+2
| | | | | | | | TodoService should not call `.select(&:id)` on todos, because this is bad performance. So instead use sub-queries, which will result in a single SQL query to the database. https://docs.gitlab.com/ee/development/sql.html#plucking-ids
* Add `requirements: { id: %r{[^/]+} }` for all projects and groups namespaced ↵Rémy Coutable2017-03-161-1/+1
| | | | | | API routes Signed-off-by: Rémy Coutable <remy@rymai.me>
* Migrate the Todos API to use `issuable_iid`Timothy Andrew2017-03-071-4/+4
| | | | - Instead of `issuable_id`
* Enable Style/MutableConstantDouwe Maan2017-02-231-1/+1
|
* API: Use POST requests to mark todos as doneRobert Schilling2017-02-211-2/+4
|
* Merge branch 'fix-api-mr-permissions' into 'security'Robert Speicher2017-01-231-1/+1
| | | | | | Ensure that only privileged users can access merge requests in the API See merge request !2053
* Use the pagination helper in the APIuse-pagination-helperRobert Schilling2016-12-041-4/+6
|
* Grapify todos APIgrapify-todos-apiRobert Schilling2016-10-141-26/+19
|
* Recover usage of Todos counter cache20842-todos-queries-cachePaco Guzman2016-08-121-4/+2
| | | | | | | We’re being kept up to date the counter data but we’re not using it. The only thing which is not real if is the number of projects that the user read changes the number of todos can be stale for some time. The counters will be sync just after the user receives a new todo or mark any as done
* Use cache for todos counter calling TodoServicePaco Guzman2016-08-121-1/+1
|
* Return the number of marked todosapi-delete-todosRobert Schilling2016-07-191-1/+1
|
* Support creating a todo on issuables via APItodos-apiRobert Schilling2016-07-011-0/+30
|
* Expose target, filter by state as stringRobert Schilling2016-07-011-3/+3
|
* Add todos API documentation and changelogRobert Schilling2016-07-011-3/+1
|
* pass paginated array when deleting notesRobert Schilling2016-07-011-1/+1
|
* Move to helper, no instance variablesRobert Schilling2016-07-011-9/+9
|
* Add Todos APIDouglas Barbosa Alexandre2016-07-011-0/+54