summaryrefslogtreecommitdiff
path: root/lib/api
Commit message (Collapse)AuthorAgeFilesLines
* 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
* | | | refactor: remove Sentry from application settingsRoger Meier2019-06-251-8/+0
| |_|/ |/| |
* | | Change HTTP Status Code when repository disabledSam Battalio2019-06-243-2/+12
| | |
* | | Rename Todos.with_api_entity_associations to with_entity_associationssh-optimize-todos-controllerStan Hu2019-06-241-1/+1
| | | | | | | | | | | | | | | Since this scope is used in both the controller and the API, we rename it to make it clear that it's used for both.
* | | Add name & search parameters to project environments APILee Tickett2019-06-241-1/+6
| | |
* | | Merge branch 'sync-merge-ref-upon-mergeability-check' into 'master'Douwe Maan2019-06-242-19/+7
|\ \ \ | | | | | | | | | | | | | | | | Automatically update MR merge-ref along merge status See merge request gitlab-org/gitlab-ce!29569
| * | | Automatically update MR merge-ref along merge statusOswaldo Ferreira2019-06-202-19/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Don't show private keys for letsencrypt certsVladimir Shushlin2019-06-211-7/+8
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds enum certificate_source to pages_domains table with default manually_uploaded Mark certificates as 'gitlab_provided' if the were obtained through Let's Encrypt Mark certificates as 'user_provided' if they were uploaded through controller or api Only show private key in domain edit form if it is 'user_provided' Only show LetsEncrypt option if is enabled by application settings (and feature flag) Refactor and fix some specs to match new logic Don't show Let's Encrypt certificates as well
* | | Updating CE repo to include new EE users API changesMichael Leopard2019-06-191-14/+1
| | | | | | | | | | | | | | | Updated users API documentation Moved API level changes to the service level
* | | Merge branch 'pderichs-52123' into 'master'Robert Speicher2019-06-195-29/+31
|\ \ \ | | | | | | | | | | | | | | | | Use NotesFinder to get Noteable See merge request gitlab-org/gitlab-ce!28205
| * | | Simplify result of find_noteablepderichs-52123Patrick Derichs2019-06-191-3/+1
| | | |
| * | | Use NotesFinder to fetch notes on API and ControllersPatrick Derichs2019-06-195-28/+32
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix missing iid query on NotesFinder Changed parameters of find_noteable, so changes across a few files were needed. MergeRequest also requires iid instead of id query Make NotesFinder fail with RecordNotFound again Add specs for target_iid Using RSpec tablesyntax for target_iid specs Revert "Using RSpec tablesyntax for target_iid specs" This reverts commit ba45c7f569a. Allow find_by! here Fix variable name Add readable check Revert "Add readable check" This reverts commit 9e3a1a7aa39. Remove unnecessary assignment Add required changes for EE Fix parameter count Reduce code duplication by extracting a noteable module method The call to find_noteable was redundant so multiple files and lines have changed in that commit to use the newly introduced module method `noteable`. Replace casecmp with include check Add parent_type parameter Revert "Reduce code duplication by extracting a noteable module method" This reverts commit 8c0923babff16. Method is no longer needed Check whether noteable can be read by user
* | | Add documentation and testsManoj MJ2019-06-192-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | This commit adds - feature specs - to test the ability of a user with "developer" permission to delete tags in repositories. - documentation
* | | 59702 Fix API notification flags for MS TeamsSeiji Suenaga2019-06-181-2/+3
| | |
* | | Add 2nd response for container api bulk deleteSteve Abrams2019-06-181-0/+10
|/ / | | | | | | | | | | | | The bulk delete api endpoint for container registries can only be called once per hour. If a user calls the endpoint more than once per hour, they will now receive a 400 error with a descriptive message.
* | Merge branch '56737-commits-and-mr-events-on-jira-api' into 'master'Stan Hu2019-06-171-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Expose currently supported events properly on services API Closes #56737 See merge request gitlab-org/gitlab-ce!29736