summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Remove code related to object hierarchy in MySQLremove-nested-groups-checksHeinrich Lee Yu2019-07-252-8/+2
| | | | | 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
* Merge branch 'gsemet/gitlab-ce-gsemet-master-patch-33258' into 'master'Sean McGivern2019-07-231-1/+3
|\ | | | | | | | | Multiple pipeline support for Build status See merge request gitlab-org/gitlab-ce!30828
| * Add specs for specifying pipeline behaviorMatija Čupić2019-07-231-6/+3
| | | | | | | | | | Adds specs for testing the new behavior of specifying a pipeline when POSTing a status.
| * Multiple pipeline support for Build statusGaetan Semet2019-07-171-1/+6
| | | | | | | | | | | | | | | | This allows user to specify the pipeline ID when several pipelines has been triggered on the same branch and commit. Signed-off-by: Gaetan Semet <gaetan.semet@renault.com>
* | Merge branch 'ci_default_git_depth_only' into 'master'Douglas Barbosa Alexandre2019-07-181-0/+1
|\ \ | | | | | | | | | | | | API: Allow changing only ci_default_git_depth See merge request gitlab-org/gitlab-ce!30888
| * | API: Allow changing only ci_default_git_depthMathieu Parent2019-07-181-0/+1
| | |
* | | Merge branch 'webide-commit-use-correct-parent' into 'master'Nick Thomas2019-07-181-5/+9
|\ \ \ | |/ / |/| | | | | | | | Use correct parent when committing in WebIDE See merge request gitlab-org/gitlab-ce!29598
| * | Add start_sha to commits APIMarkus Koller2019-07-181-5/+9
| |/ | | | | | | | | | | | | | | | | | | When passing start_branch on committing from the WebIDE, it's possible that the branch has changed since editing started, which results in the change being applied on top of the latest commit in the branch and overwriting the new changes. By passing the start_sha instead we can make sure that the change is applied on top of the commit which the user started editing from.
* | Refactor RedisCounter and WebIdeCommitsCounterFrancisco Javier López2019-07-171-1/+1
|/ | | | | This MR refactor RedisCounter and WebIdeCommitsCounter to be reused by other components.
* CE port of "Move external authorization service API management to EE"Imre Farkas2019-07-173-4/+6
| | | | EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14598
* Merge branch '12800-read-and-write-user-admin-notes-via-api-ce' into 'master'Stan Hu2019-07-161-4/+4
|\ | | | | | | | | CE Backport: Read and write User "Admin notes" via API See merge request gitlab-org/gitlab-ce!30775
| * CE: Read and write User "Admin notes" via APImanojmj2019-07-171-4/+4
| | | | | | | | | | | | This change adds the ability to read and write admin notes for a user via the USER API
* | Refactored WebIdeCommitsCount classFrancisco Javier López2019-07-161-1/+1
| | | | | | | | | | | | We're adding more redis base counters to the web ide and other classes. We're refactoring this class in other to use the logic in other places.
* | Update Release API docsJason Goodman2019-07-161-1/+1
| | | | | | | | Include released_at parameter
* | Migrate null values for users.private_profileAdam Hegyi2019-07-151-1/+1
| | | | | | | | | | - Background migration for changing null values to false - Set false as default value for private_profile DB column
* | Filter Geo proxied data from api_json.logsh-filter-geo-outputStan Hu2019-07-141-1/+2
| | | | | | | | | | | | Currently the base64-encoded value of the push-to-secondary data is saved in `api_json.log`, and this can easily be hundreds of megabytes. We should filter this from the logs.
* | Merge branch 'upgrade-rails-5-2-ce' into 'master'Bob Van Landuyt2019-07-122-3/+4
|\ \ | | | | | | | | | | | | [CE] Upgrade to Rails 5.2 See merge request gitlab-org/gitlab-ce!30052
| * | Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-122-3/+4
| |/ | | | | | | Updates changed method names and fixes spec failures
* | Merge branch '55623-group-cluster-apis' into 'master'Grzegorz Bizon2019-07-124-1/+146
|\ \ | |/ |/| | | | | | | | | 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-113-0/+145
| | | | | | | | This is basically a copy of the API for project clusters.
| * Refactor: model errors for multi cluster validationDylan Griffith2019-07-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | The current approach requires catching exceptions to handle these errors and callers are already handling model validations so it seems more appropriate. Also it seemed to convoluted to add this logic directly to the model since the model needs to check too many possible associations to determine whether or not there are more than one cluster since the model doesn't know what it's being created on. Additionally we only wanted to validate during create to avoid the risk of existing models becoming invalid by many different edge cases.
* | Add a rubocop for Rails.loggerMayra Cabrera2019-07-101-1/+1
| | | | | | | | | | | | Suggests to use a JSON structured log instead Related to https://gitlab.com/gitlab-org/gitlab-ce/issues/54102
* | Merge branch '58275-rename-project-entity' into 'master'Jan Provaznik2019-07-102-5/+5
|\ \ | | | | | | | | | | | | | | | | | | Rename ProjectEntity to IssuableEntity Closes #58275 See merge request gitlab-org/gitlab-ce!30217
| * | Rename ProjectEntity to IssuableEntity58275-rename-project-entityAlexandru Croitor2019-07-092-5/+5
| | |
* | | Merge branch 'master' into sathieu/gitlab-ce-project_apiDouglas Barbosa Alexandre2019-07-097-5/+30
|\ \ \
| * | | Remove `:graphql` feature flagcharlie ablett2019-07-091-2/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | - Remove `FeatureConstrainer` call wrapping api endpoint - Remove `Feature.enabled?(:graphql)` conditionals in back and frontend - Modify graphql test to be graphql flag agnostic - Remove api routing spec - Remove frontend feature flag via `gon`
| * | Updates on success of an MR the count on top and in other tabsTim Zallmann2019-07-092-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New API endpoint for merge request count Updates all open tabs at the same time with one call Restructured API response API response changed to 401 if no current_user Added API + JS specs Fix for Static Check Updated Count on Open/Close, Assign/Unassign of MR's Checking if MR Count is refreshed Added # frozen_string_literal: true to spec Added Changelog
| * | Adding order by to list runner jobs api.sujay patel2019-07-051-0/+2
| | |
| * | Allow asynchronous rebase operations to be monitoredNick Thomas2019-07-042-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | This MR introduces tracking of the `rebase_jid` for merge requests. As with `merge_ongoing?`, `rebase_in_progress?` will now return true if a rebase is proceeding in sidekiq. After one release, we should remove the Gitaly-based lookup of rebases. It is much better to track this kind of thing via the database.
| * | Merge branch 'sh-fix-issue-63349' into 'master'Rémy Coutable2019-07-041-1/+1
| |\ \ | | |/ | |/| | | | | | | | | | | | | Make Housekeeping button do a full garbage collection Closes #63349 See merge request gitlab-org/gitlab-ce!30289
| | * Make Housekeeping button do a full garbage collectionsh-fix-issue-63349Stan Hu2019-07-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the Housekeeping button and API would use the counter of last pushes to determine whether to do a full garbage collection, or whether to do one of the less comprehensive tasks: a full repack, incremental pack, or ref pack. This was confusing behavior, since a project owner might have to click the button dozens of times before a full GC would be initiated. This commit forces a full GC each time this is initiated. Note that the `ExclusiveLease` in `HousekeepingService` prevents users from clicking on the button more than once a day. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63349
| * | Add Grafana to Admin > Monitoring menu when enabledManeschi Romain2019-07-031-0/+2
| | |
* | | Fix API performance problem of auto_devops queryMathieu Parent2019-07-031-0/+2
| | |
* | | Add auto_devops_* to project APIMathieu Parent2019-07-032-0/+8
| | | | | | | | | | | | | | | The auto_devops object sometimes doesn't exists. We may need to create it.
* | | Add auto_cancel_pending_pipelines to project APIMathieu Parent2019-07-032-0/+3
| | |
* | | Add build_coverage_regex to project APIMathieu Parent2019-07-032-0/+3
| | |
* | | Add build_timeout to project APIMathieu Parent2019-07-032-0/+3
| | |
* | | Add build_git_strategy attribute to project APIMathieu Parent2019-07-032-0/+5
| | | | | | | | | | | | | | | We map the boolean to the string 'fetch' or 'clone', to be more explicit.
* | | Add *_access_level to project APIMathieu Parent2019-07-032-7/+34
|/ / | | | | | | | | | | | | | | | | - 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-037-9/+14
|\ \
| * | Show upcoming status for releasesJason Goodman2019-07-032-0/+4
| |/ | | | | | | | | | | Add released_at field to releases API Add released_at column to releases table Return releases to the API sorted by released_at
| * Replace 'JIRA' with 'Jira'Takuya Noguchi2019-06-281-5/+5
| | | | | | | | | | | | https://community.atlassian.com/t5/Jira-questions/Is-it-quot-JIRA-quot-or-quot-Jira-quot/qaq-p/681163 Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
| * Merge branch '63212-n-1-queries-in-projects-id-boards-api' into 'master'Thong Kuah2019-06-284-4/+4
| |\ | | | | | | | | | | | | Remove N+1 queries in boards API See merge request gitlab-org/gitlab-ce!29634
| | * Remove N+1 query for project and group boardscharlieablett2019-06-264-4/+4
| | | | | | | | | | | | | | | | | | - Add test for N+1 queries - Add destroyable lists scope to Board and List - Preload lists for both project and group boards
| * | Add support for creating random passwords in user creation APIsh-add-force-random-password-user-apiStan Hu2019-06-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | To avoid having to specify an actual password to create users, admins can now use the `force_random_password` parameter to let Devise generate a password. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63826
* | | 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-024-8/+8
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | Expose merge requests count based on user access See merge request gitlab/gitlabhq!3157
| * | | Expose merge requests count based on user accessAlexandru Croitor2019-06-184-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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