summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '12910-uploader-pers-snippet' into 'master' Sean McGivern2017-05-042-2/+2
|\ | | | | | | | | Prepare uploaders for personal snippets comments See merge request !11022
| * Support uploaders for personal snippets comments12910-uploader-pers-snippetJarka Kadlecova2017-05-022-2/+2
| |
* | Merge branch '31544-size-of-project-from-api' into 'master' Rémy Coutable2017-05-041-5/+9
|\ \ | | | | | | | | | | | | | | | | | | Resolve "Size of project from API" Closes #31544 See merge request !11013
| * | Expose project statistics on single requests via the APIMark Fletcher2017-05-031-5/+9
| |/ | | | | | | | | | | + The statistics parameter was already accepted * This commit ensure that it is respected for GET /projects/:id endpoint + Add documentation of the parameter and update the example response for stats
* | Improve documentationShinya Maeda2017-05-031-5/+5
| |
* | Add constant as ALLOWED_INDEXED_COLUMNSShinya Maeda2017-05-031-1/+1
| |
* | Use HasStatus::AVAILABLE_STATUSES instead of hard codingShinya Maeda2017-05-031-1/+1
| |
* | Revert "Use JSON type for sorting parameter (halfway)"Shinya Maeda2017-05-031-4/+4
| | | | | | | | This reverts commit 34127cb13ad72f65a24bdc8fc051363d3edd77cb.
* | Use JSON type for sorting parameter (halfway)Shinya Maeda2017-05-031-4/+4
| |
* | No need to support sha for sortingShinya Maeda2017-05-031-1/+1
| |
* | Reduce playable columns for sortingShinya Maeda2017-05-031-1/+1
| |
* | Add name(User)Shinya Maeda2017-05-031-1/+2
| |
* | Fix how to use PipelinesFinderShinya Maeda2017-05-032-2/+2
| |
* | %[] to %w[]Shinya Maeda2017-05-031-4/+4
| |
* | %w() to %[]Shinya Maeda2017-05-031-5/+5
| |
* | Fix rubocop offences and rspec failuresShinya Maeda2017-05-031-3/+3
| |
* | Add specs. Plus, minor fixes.Shinya Maeda2017-05-031-1/+1
| |
* | Fixed those points.Shinya Maeda2017-05-031-9/+8
| | | | | | | | | | | | | | | | - username to user_id - Drop duration - Resolve comments - Add Changelog - Edit docs
* | - Add new parameters for Pipeline APIShinya Maeda2017-05-031-1/+11
| | | | | | | | - Expand PipelinesFinder functions
* | Merge branch '26488-target-disabled-mr' into 'master' Sean McGivern2017-05-022-0/+4
|\ \ | |/ |/| | | | | | | | | Fix 404 when upstream disabled merge requests Closes #26488 See merge request !10427
| * Fix 404 when upstream has disabled merge requestsmhasbini2017-04-272-0/+4
| |
* | Revert "Merge branch 'tc-no-todo-service-select' into 'master'"revert-c3c465acStan Hu2017-04-292-4/+4
| | | | | | This reverts merge request !10845
* | Merge branch 'tc-no-todo-service-select' into 'master' Robert Speicher2017-04-282-4/+4
|\ \ | | | | | | | | | | | | | | | | | | Avoid plucking Todo ids in TodoService Closes #30374 See merge request !10845
| * | Avoid plucking Todo ids and use sub-queries insteadtc-no-todo-service-selectToon Claes2017-04-272-4/+4
| |/ | | | | | | | | | | | | | | 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
* | Merge branch '29505-allow-admins-sudo-to-blocked-users' into 'master' Rémy Coutable2017-04-271-1/+1
|\ \ | | | | | | | | | | | | Allow admins to sudo to blocked users See merge request !10842
| * | Allow admins to sudo to blocked users.29505-allow-admins-sudo-to-blocked-usersTimothy Andrew2017-04-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Currently, (for example) admins can't delete snippets for blocked users, which is an unexpected limitation. - We modify `authenticate!` to conduct the `access_api` policy check against the `initial_current_user`, instead of the user being impersonated. - Update CHANGELOG for !10842
* | | Wrong method call on notify_post_receive.Luigi Leoni2017-04-271-1/+1
| |/ |/|
* | Merge branch '26437-closed-by' into 'master' Rémy Coutable2017-04-261-0/+15
|\ \ | | | | | | | | | | | | | | | | | | Add issues/:iid/closed_by api endpoint Closes #26437 See merge request !10511
| * | Add issues/:iid/closed_by api endpointmhasbini2017-04-121-0/+15
| | |
* | | Ability to filter merge requests by labels and milestonesRobert Schilling2017-04-251-11/+14
| | |
* | | Merge branch '29903-remove-user-is-admin-flag-from-api' into 'master' Sean McGivern2017-04-253-5/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Don't display the `is_admin?` flag for user API responses Closes #29903 See merge request !10846
| * | | Don't display the `is_admin?` flag for user API responses.Timothy Andrew2017-04-253-5/+5
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | - To prevent an attacker from enumerating the `/users` API to get a list of all the admins. - Display the `is_admin?` flag wherever we display the `private_token` - at the moment, there are two instances: - When an admin uses `sudo` to view the `/user` endpoint - When logging in using the `/session` endpoint
* | | Fix updating merge_when_build_succeeds via merge API endpointmrchrisw-22740-merge-apiChris Wilson2017-04-241-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When updating a merge request via the `/merge` endpoint we check the `mergeable` and `mergeable_state` status, these will return `false` if the application option only_allow_merge_if_pipeline_succeeds is enabled. We should skip CI checks if the request uses the merge_when_pipeline_succeeds param Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/22740
* | | Merge branch 'fix-jobs-enabled-parameter' into 'master'Sean McGivern2017-04-211-2/+5
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Replace builds_enabled with jobs_enabled in projects API v4 Closes #31012 See merge request !10786
| * | Replace builds_enabled with jobs_enabled in projects API v4 (!10786)winniehell2017-04-201-2/+5
| | |
* | | Refactor changing files in web UIDouwe Maan2017-04-204-8/+8
| | |
* | | Merge branch 'query-users-by-extern-uid' into 'master'Robert Speicher2017-04-191-8/+14
|\ \ \ | | | | | | | | | | | | | | | | Implement search by extern_uid in Users API See merge request !10509
| * | | Implement search by extern_uid in Users APIRobin Bobbitt2017-04-181-8/+14
| |/ /
* | | Remove unused user activities codeSean McGivern2017-04-143-13/+1
| | |
* | | Expose `last_activity_on` in the User APIRémy Coutable2017-04-142-9/+9
| | | | | | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Port 'Add user activities API' to CESean McGivern2017-04-143-1/+24
| | | | | | | | | | | | CE port of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/962
* | | Remove user activities table and use redis instead of PG for recording ↵James Lopez2017-04-141-0/+7
| | | | | | | | | | | | | | | | | | activities Refactored specs and added a post deployment migration to remove the activity users table.
* | | Add user activity service and spec. Also added relevant - NOT offline - ↵James Lopez2017-04-141-0/+12
|/ / | | | | | | | | | | | | migration It uses a user activity table instead of a column in users. Tested with mySQL and postgreSQL
* | Fix API not accepting job_events for webhookszj-api-fix-build-eventsZ.J. van de Weg2017-04-121-3/+9
| | | | | | | | | | | | | | | | | | | | When renaming, the argument on the projects hook API was forgotten. Now one could successfully set it again. The fix is a little ugly stylewise, but needed as the underlying model still refers to it as build_events. This commit is to fix it, later we should migrate the data to a new column. The edit on the spec file makes sure it passes now, and will fail when we migrate the column.
* | Add share_with_group_lock to CE optional params block28017-separate-ce-params-on-apiOswaldo Ferreira2017-04-101-0/+1
| |
* | Separate CE params on Grape APIOswaldo Ferreira2017-04-106-30/+110
| |
* | Set Git-specific env in /api/internal/allowedRémy Coutable2017-04-102-18/+12
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Remove the User#is_admin? methodblackst0ne2017-04-0911-20/+20
|
* Merge branch '18471-restrict-tag-pushes-protected-tags' into 'master' Douwe Maan2017-04-071-7/+3
|\ | | | | | | | | | | | | Protected Tags Closes #18471 See merge request !10356
| * Merge branch 'master' into '18471-restrict-tag-pushes-protected-tags'Kushal Pandya2017-04-065-9/+22
| |\ | | | | | | | | | # Conflicts: # spec/lib/gitlab/import_export/all_models.yml