summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* Remove label issue and MR counts from default API responsesspeed-up-labels-apiSean McGivern2019-08-084-9/+19
| | | | | | | These counts significantly increase the load time for these requests. Users can now opt in to receiving the counts by setting `with_counts=true` in requests. This is a breaking change, but hopefully a fairly minor one.
* Add group level container repository endpointsSteve Abrams2019-08-054-14/+59
| | | | | | | API endpoints for requesting container repositories and container repositories with their tag information are enabled for users that want to specify the group containing the repository rather than the specific project.
* Add backwards compatibility for legacy settingGeorge Koltsov2019-08-022-0/+8
| | | | | `allow_local_requests_for_hooks_and_services` was renamed to `allow_local_requests_for_web_hooks_and_services`.
* Use NotesFinder in IssuableActions modulePatrick Derichs2019-08-011-1/+1
| | | | | | | | | | Remove project from NotesFinder constructor Add project parameter to specs Also look for methods in private scope Fix specs to match new NotesFinder constructor
* Add support page link in help menuDiego Louzán2019-07-301-1/+1
| | | | Creates a new item in help dropdown to show configured support page link
* Merge branch 'master' of dev.gitlab.org:gitlab/gitlabhqRobert Speicher2019-07-291-21/+0
|\
| * Merge branch 'security-remove-take-trigger-ownership-feature' into 'master'GitLab Release Tools Bot2019-07-261-21/+0
| |\ | | | | | | | | | | | | | | | | | | Drop feature to take ownership of a trigger token Closes #2868 See merge request gitlab/gitlabhq!3198
| | * Drop feature to take ownership of a trigger tokenFabio Pitino2019-07-101-21/+0
| | | | | | | | | | | | | | | | | | | | | Removing API and frontend interactions that allowed users to take ownership of a trigger token. Removed mentions from the documentation.
* | | Merge branch 'ce-port-4550-add-project-download-export-audit-event' into ↵Stan Hu2019-07-292-1/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'master' CE: Add project download & project export audit event See merge request gitlab-org/gitlab-ce!31103
| * | | CE: Add project download & project export audit eventce-port-4550-add-project-download-export-audit-eventmanojmj2019-07-262-1/+5
| |/ / | | | | | | | | | | | | | | | This change adds audit events for download of repository and export of project.
* | | Merge branch 'add-git-blame-api' into 'master'Nick Thomas2019-07-292-0/+38
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Expose git blame in api Closes #51345 See merge request gitlab-org/gitlab-ce!30675
| * | | Add git blame apiOleg Zubchenko2019-07-262-0/+38
| | | |
* | | | Merge branch 'remove-nested-groups-checks' into 'master'Lin Jen-Shin2019-07-262-8/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove code related to object hierarchy and MySQL Closes #65056 and #65055 See merge request gitlab-org/gitlab-ce!31095
| * | | | 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
* | | | Merge branch 'mc/feature/find-all-artifacts-for-sha' into 'master'Robert Speicher2019-07-261-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Find build by sha from ref Closes #64534 and #45697 See merge request gitlab-org/gitlab-ce!30843
| * | | | Rename latest_successful to be more explicitMatija Čupić2019-07-261-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Reword Project#latest_successful_build_for to Project#latest_successful_build_for_ref * Reword Ci::Pipeline#latest_successful_for to Ci::Pipeline#latest_successful_build_for_ref
* | | | | Prefer `flat_map` over `map` + `flatten`Peter Leitzen2019-07-261-1/+1
| |/ / / |/| | | | | | | | | | | | | | | Convert several occurrences of `map` + `flatten` to `flat_map` where applicable.
* | | | 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
| | |