Commit Graph

53 Commits

Author SHA1 Message Date
GitLab Bot e7bfce6d9f Add latest changes from gitlab-org/gitlab@master 2025-04-28 18:14:05 +00:00
GitLab Bot 0c0ac7652b Add latest changes from gitlab-org/gitlab@master 2025-04-22 18:10:16 +00:00
GitLab Bot aa068e95cb Add latest changes from gitlab-org/gitlab@master 2025-04-11 03:07:15 +00:00
GitLab Bot 664a3c2024 Add latest changes from gitlab-org/gitlab@master 2025-01-24 15:33:02 +00:00
GitLab Bot 5b5f5b84e7 Add latest changes from gitlab-org/gitlab@master 2024-10-18 00:16:17 +00:00
GitLab Bot 6af5f2b4a6 Add latest changes from gitlab-org/gitlab@master 2024-05-08 15:16:09 +00:00
GitLab Bot 9ee836ec2b Add latest changes from gitlab-org/gitlab@master 2024-04-15 18:11:15 +00:00
GitLab Bot c6a65ea473 Add latest changes from gitlab-org/gitlab@master 2024-02-05 18:10:13 +00:00
GitLab Bot 1935f3e81b Add latest changes from gitlab-org/gitlab@master 2023-01-09 12:07:31 +00:00
GitLab Bot d4e22f4ade Add latest changes from gitlab-org/gitlab@master 2022-12-19 18:09:34 +00:00
GitLab Bot 5fe2d74e00 Add latest changes from gitlab-org/gitlab@master 2022-12-09 09:08:55 +00:00
GitLab Bot 7dc8250e16 Add latest changes from gitlab-org/gitlab@master 2022-10-30 00:09:36 +00:00
GitLab Bot 836ddfc35d Add latest changes from gitlab-org/gitlab@master 2022-09-29 21:08:27 +00:00
GitLab Bot 946b1e2fe9 Add latest changes from gitlab-org/gitlab@master 2022-09-29 09:09:45 +00:00
GitLab Bot 999cc13e0a Add latest changes from gitlab-org/gitlab@master 2021-12-13 18:15:18 +00:00
GitLab Bot 6a5b78ac69 Add latest changes from gitlab-org/gitlab@master 2021-12-07 03:12:22 +00:00
GitLab Bot b808458daa Add latest changes from gitlab-org/gitlab@master 2021-11-09 12:12:15 +00:00
GitLab Bot 4bf395cded Add latest changes from gitlab-org/gitlab@master 2021-08-03 21:09:39 +00:00
GitLab Bot 5231344d99 Add latest changes from gitlab-org/gitlab@master 2021-02-11 15:09:11 +00:00
GitLab Bot 14c93e5de0 Add latest changes from gitlab-org/gitlab@master 2020-12-23 03:10:22 +00:00
GitLab Bot ea8492330b Add latest changes from gitlab-org/gitlab@master 2020-09-08 18:08:48 +00:00
GitLab Bot fa7ac2663b Add latest changes from gitlab-org/gitlab@master 2020-06-24 06:09:01 +00:00
GitLab Bot c6f0b221b7 Add latest changes from gitlab-org/gitlab@master 2020-05-12 00:10:11 +00:00
GitLab Bot bd5d5791c5 Add latest changes from gitlab-org/gitlab@master 2020-04-23 09:09:46 +00:00
GitLab Bot 2c72daf2f1 Add latest changes from gitlab-org/gitlab@master 2020-03-30 18:08:07 +00:00
GitLab Bot bbaf2bb043 Add latest changes from gitlab-org/gitlab@master 2020-03-03 21:08:37 +00:00
GitLab Bot abfafe3c57 Add latest changes from gitlab-org/gitlab@master 2019-10-29 00:06:10 +00:00
Stan Hu 062efe4f7a Significantly reduce N+1 queries in /api/v4/todos endpoint
By preloading associations and batching issuable metadata lookups,
we can significantly cut the number of SQL queries needed to load
the Todos API endpoint.

On GitLab.com, my own tests showed my user's SQL queries went
from 365 to under 60 SQL queries.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/40378
2019-03-06 07:03:46 -08:00
blackst0ne b44a2c801a Update specs to rails5 format
Updates specs to use new rails5 format.

The old format:
`get :show, { some: params }, { some: headers }`

The new format:
`get :show, params: { some: params }, headers: { some: headers }`
2018-12-19 10:04:31 +11:00
Jarka Kadlecová 6dc7490789 Add changes from the EE 2018-08-06 14:18:21 +02:00
Robert Speicher fec9fb05a5 Merge branch 'security-10-4-todo-api-reveals-sensitive-information' into 'security-10-4'
Restrict Todo API mark_as_done endpoint to the user's todos only
2018-02-09 12:16:25 -06:00
blackst0ne 27c95364b5 Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
Jacopo 2f40dac352 Refactor `have_http_status` into `have_gitlab_http_status` in the specs 2017-10-20 10:13:18 +02:00
Robert Speicher 72a7b30c9f Change all `:empty_project` to `:project` 2017-08-02 17:47:31 -04:00
Robert Speicher 9513bd18c4 Ensure all project factories use `:repository` trait or `:empty_project` 2017-08-01 14:51:52 -04:00
Rémy Coutable 05e152fa7f
Fix the :project factory by not copying the test repo twice
Also, fixing some calls to the :project factory with the :test_repo
trait since this trait is already included in the :project factory.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-07-27 09:58:06 +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
Timothy Andrew 9ccd8b8755
Migrate the Todos API to use `issuable_iid`
- Instead of `issuable_id`
2017-03-07 13:55:59 +05:30
Sean McGivern 11dd2348c4 Merge branch '22951-fix-todos-api-endpoint-error-for-commits' into 'master'
Fix todos API endpoint application error

Closes #22951

See merge request !9351
2017-03-01 09:59:15 +00:00
George Andrinopoulos 85c87be361 Add spec for todo with target_type Commit 2017-02-21 15:45:10 +02:00
Robert Schilling 1ef911f0e0 API: Use POST requests to mark todos as done 2017-02-21 12:01:15 +01:00
Robert Schilling c70dfbc686 Add a custom pagination matcher 2017-02-16 15:38:40 +01:00
Robert Speicher 3a5df1d8fc Merge branch 'fix-api-mr-permissions' into 'security'
Ensure that only privileged users can access merge requests in the API

See merge request !2053
2017-01-23 13:54:35 -05:00
Rémy Coutable 9c560b5cdf
Replace many :project with :empty_projects in API specs
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-01-17 11:41:27 -05:00
Paco Guzman 1f2253545b Use cache for todos counter calling TodoService 2016-08-12 17:40:03 +02:00
Robert Schilling baa9ce8480 Return the number of marked todos 2016-07-19 13:09:57 +02:00
Robert Schilling 87ac9c9850 Support creating a todo on issuables via API 2016-07-01 14:52:04 +02:00
Robert Schilling 3942621329 Expose target, filter by state as string 2016-07-01 14:52:04 +02:00
Robert Schilling 631765748e Expose action_name 2016-07-01 10:49:34 +02:00
Robert Schilling 69397d559f Assert response body 2016-07-01 10:49:34 +02:00