summaryrefslogtreecommitdiff
path: root/lib/api/entities.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add backwards compatibility for legacy settingGeorge Koltsov2019-08-021-0/+2
| | | | | `allow_local_requests_for_hooks_and_services` was renamed to `allow_local_requests_for_web_hooks_and_services`.
* Merge branch 'add-git-blame-api' into 'master'Nick Thomas2019-07-291-0/+13
|\ | | | | | | | | | | | | Expose git blame in api Closes #51345 See merge request gitlab-org/gitlab-ce!30675
| * Add git blame apiOleg Zubchenko2019-07-261-0/+13
| |
* | Remove code related to object hierarchy in MySQLremove-nested-groups-checksHeinrich Lee Yu2019-07-251-4/+1
| | | | | | | | | | These are not required because MySQL is not supported anymore
* | Remove dead MySQL codeNick Thomas2019-07-231-9/+2
| | | | | | | | None of this code can be reached any more, so it can all be removed
* | CE port of "Move external authorization service API management to EE"Imre Farkas2019-07-171-1/+0
|/ | | | EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14598
* Merge branch '55623-group-cluster-apis' into 'master'Grzegorz Bizon2019-07-121-0/+4
|\ | | | | | | | | | | | | Resolve "API support for group-level clusters" Closes #55623 See merge request gitlab-org/gitlab-ce!30213
| * Add API for CRUD group clusters55623-group-cluster-apisDylan Griffith2019-07-111-0/+4
| | | | | | | | This is basically a copy of the API for project clusters.
* | Merge branch '58275-rename-project-entity' into 'master'Jan Provaznik2019-07-101-4/+4
|\ \ | | | | | | | | | | | | | | | | | | Rename ProjectEntity to IssuableEntity Closes #58275 See merge request gitlab-org/gitlab-ce!30217
| * | Rename ProjectEntity to IssuableEntity58275-rename-project-entityAlexandru Croitor2019-07-091-4/+4
| |/
* | Fix API performance problem of auto_devops queryMathieu Parent2019-07-031-0/+2
| |
* | Add auto_devops_* to project APIMathieu Parent2019-07-031-0/+4
| | | | | | | | | | The auto_devops object sometimes doesn't exists. We may need to create it.
* | Add auto_cancel_pending_pipelines to project APIMathieu Parent2019-07-031-0/+1
| |
* | Add build_coverage_regex to project APIMathieu Parent2019-07-031-0/+1
| |
* | Add build_timeout to project APIMathieu Parent2019-07-031-0/+1
| |
* | Add build_git_strategy attribute to project APIMathieu Parent2019-07-031-0/+3
| | | | | | | | | | We map the boolean to the string 'fetch' or 'clone', to be more explicit.
* | Add *_access_level to project APIMathieu Parent2019-07-031-0/+8
|/ | | | | | | | | - issues_access_level - repository_access_level - merge_requests_access_level - builds_access_level - wiki_access_level - snippets_access_level
* Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceMarin Jankovski2019-07-031-1/+3
|\
| * Show upcoming status for releasesJason Goodman2019-07-031-0/+2
| | | | | | | | | | | | Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
| * Remove N+1 query for project and group boardscharlieablett2019-06-261-1/+1
| | | | | | | | | | | | - Add test for N+1 queries - Add destroyable lists scope to Board and List - Preload lists for both project and group boards
* | Merge branch 'security-mr-head-pipeline-leak' into 'master'Marin Jankovski2019-07-021-1/+3
|\ \ | | | | | | | | | | | | [master] Fix MR head pipeline leak See merge request gitlab/gitlabhq!3148
| * | Gate MR head_pipeline behind read_pipeline abilityMatija Čupić2019-06-081-1/+3
| | |
* | | Merge branch 'security-59581-related-merge-requests-count' into 'master'Marin Jankovski2019-07-021-3/+3
|\ \ \ | |_|/ |/| | | | | | | | Expose merge requests count based on user access See merge request gitlab/gitlabhq!3157
| * | Expose merge requests count based on user accessAlexandru Croitor2019-06-181-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Count issues related merge requests based on user access level. And issue can have related MRs from projects where user does not have access so the number of related merge requests should be adjusted based on user's ability to access the related MRs. https://gitlab.com/gitlab-org/gitlab-ce/issues/59581
* | | Automatically update MR merge-ref along merge statusOswaldo Ferreira2019-06-201-1/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | This couples the code that transitions the `MergeRequest#merge_status` and refs/merge-requests/:iid/merge ref update. In general, instead of directly telling `MergeToRefService` to update the merge ref, we should rely on `MergeabilityCheckService` to keep both the merge status and merge ref synced. Now, if the merge_status is `can_be_merged` it means the merge-ref is also updated to the latest. We've also updated the logic to be more systematic and less user-based.
* | 56737 Expose currently supported events properly on services APIZsolt Kovari2019-06-161-1/+1
| |
* | Merge branch 'expose-project-git-depth-via-api' into 'master'Kamil Trzciński2019-06-121-0/+2
|\ \ | | | | | | | | | | | | | | | | | | Expose default_git_depth via project API Closes #62908 See merge request gitlab-org/gitlab-ce!29353
| * | Expose ci_default_git_depth via project APIexpose-project-git-depth-via-apiFabio Pitino2019-06-121-0/+2
| |/ | | | | | | | | | | | | | | | | | | Enable Get and Update of ci_default_git_depth for Project API. Renaming Project#default_git_depth to :ci_default_git_depth to give more context through the API usage. Add API documentation
* | Revert "Automatically update MR merge-ref along merge status"Oswaldo Ferreira2019-06-111-1/+1
|/
* Add task count and completed count to responses of Issue and MRPatrick Derichs2019-06-071-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add spec for task_completion_status Add test cases for task_completion_status result Extracted shared samples Add new spec file for task completion status response Fix style errors Add changelog entry Changed samples to Hashes Remove test for successful request Remove not nil expectation Add task_completion_status to api documentation for issues Add task_completion_status to api documentation for merge_requests Refactor spec so it just requests one specific item Add task_completion_status to Taskable Simplified task completion status in entities Refactor spec so it separates status code check and content check Fix spec description text and field name
* Automatically update MR merge-ref along merge statusOswaldo Ferreira2019-05-311-1/+1
| | | | | | | | | | | | This couples the code that transitions the `MergeRequest#merge_status` and refs/merge-requests/:iid/merge ref update. In general, instead of directly telling `MergeToRefService` to update the merge ref, we should rely on `MergeabilityCheckService` to keep both the merge status and merge ref synced. Now, if the merge_status is `can_be_merged` it means the merge-ref is also updated to the latest. We've also updated the logic to be more systematic and less user-based.
* Add wiki size to project statisticsPeter Marko2019-05-291-0/+2
|
* Updated heading for default state in Web IDEDenys Mishunov2019-05-291-0/+1
| | | | Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/60107
* API: Allow to get and set "masked" attribute for variablesMathieu Parent2019-05-221-0/+1
|
* Add allow_failure attribute to Job APIFabio Pitino2019-05-211-1/+1
| | | | Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/50813
* Review updates and cleanupce-57402-add-issues-statistics-api-endpointsAlexandru Croitor2019-05-171-12/+8
| | | | | | | * Cleaned issues and issues_statistics docs * Renamed param with_labels_data to with_labels_details * Added spec for N+1 check when retrieving labels from issue * Refactoed CheckAssigneesCount validation class
* Move issue details to from IssueBasic to Issue entityAlexandru Croitor2019-05-151-8/+19
| | | | | Cleanup IssueBasic entity to keep it basic and move extra attributes to Issue entity which contains more details
* Changes to issues apiAlexandru Croitor2019-05-151-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | When issues_controller endpoint was used for search, the parameters passed to the controller were slightly different then the ones passed to API. Because the searchbar UI is reused in different places and builds the parameters passed to request in same way we need to account for old parameter names. Add issues_statistics api endpoints Adds issue_statistics api endpoints for issue lists and returns counts of issues for all, closed and opened states. Expose more label attributes based on a param When requesting issues list through API expose more attributes for labels, like color, description if with_labels_data param is being passed, avoiding this way to change response schema for users that already use API. https://gitlab.com/gitlab-org/gitlab-ce/issues/57402
* Rename methods that conflict in Rails 5.255583-rename-method-conflictsHeinrich Lee Yu2019-05-121-1/+1
| | | | | Adds suffix to enum methods and changes `in_groups` to `of_groups`
* Implement support for CI variables of type fileKrasimir Angelov2019-05-061-1/+1
| | | | | | | | | Add env_var and file as supported types for CI variables. Variables of type file expose to users existing gitlab-runner behaviour - save variable value into a temp file and set the path to this file in an ENV var named after the variable key. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/46806.
* Allow guests users to access project releasesKrasimir Angelov2019-05-031-4/+15
| | | | | | | | | | | | | | | | | | This is step one of resolving https://gitlab.com/gitlab-org/gitlab-ce/issues/56838. Here is what changed: - Revert the security fix from bdee9e8412d. - Do not leak repository information (tag name, commit) to guests in API responses. - Do not include links to source code in API responses for users that do not have download_code access. - Show Releases in sidebar for guests. - Do not display links to source code under Assets for users that do not have download_code access. GET ':id/releases/:tag_name' still do not allow guests to access releases. This is to prevent guessing tag existence.
* Adds namespace information to project endpoint39858-add-group-owned-info-to-projects-apiMayra Cabrera2019-04-181-1/+9
| | | | | | | | | | | - Namespace now return avatar_url and web_url - NamespaceBasic entity was modified to include avatar_url and web_url, information is fetched differently depending if the Namespace is a user or a group Includes documentation changes Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/39858
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-091-0/+3
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Merge branch 'osw-multi-assignees-merge-requests' into 'master'Nick Thomas2019-04-091-1/+5
|\ | | | | | | | | [Backport] Support multiple assignees for merge requests See merge request gitlab-org/gitlab-ce!27089
| * [CE] Support multiple assignees for merge requestsosw-multi-assignees-merge-requestsOswaldo Ferreira2019-04-081-1/+5
| | | | | | | | | | Backports https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10161 (code out of ee/ folder).
* | Add new API endpoint to expose single environmentKrasimir Angelov2019-04-091-4/+5
|/ | | | | | | | This is resolving https://gitlab.com/gitlab-org/gitlab-ce/issues/30157. Implement new API endpoint `/projects/:id/environments/:environment_id` to expose single environment. Include information for environment's last deployment if there is one.
* Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-051-3/+0
| | | This reverts merge request !26823
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-051-0/+3
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Expose head pipeline in the related merge requestsAlexandru Croitor2019-04-041-0/+9
| | | | | | | | | Expose head pipeline for the MR in the api when requesting related merge requests for an issue and show a detailed status for the pipeline, which would include: details_path, favicon, group, icon, label, text, tooltip. https://gitlab.com/gitlab-org/gitlab-ce/issues/57662#note_152023412
* Add port section to CI Image objectFrancisco Javier López2019-04-031-0/+5
| | | | | | | | | | | In order to implement https://gitlab.com/gitlab-org/gitlab-ee/issues/10179 we need several modifications on the CI config file. We are adding a new ports section in the default Image object. Each of these ports will accept: number, protocol and name. By default this new configuration will be only enabled in the Web IDE config file.