summaryrefslogtreecommitdiff
path: root/lib/api/helpers
Commit message (Collapse)AuthorAgeFilesLines
* API: Allow changing only ci_default_git_depthMathieu Parent2019-07-181-0/+1
|
* CE port of "Move external authorization service API management to EE"Imre Farkas2019-07-171-2/+3
| | | | EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14598
* Upgrade to Rails 5.2upgrade-rails-5-2-ceHeinrich Lee Yu2019-07-122-3/+4
| | | | Updates changed method names and fixes spec failures
* 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 'master' into sathieu/gitlab-ce-project_apiDouglas Barbosa Alexandre2019-07-091-2/+0
|\
| * 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`
* | 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/+2
| |
* | Add build_coverage_regex to project APIMathieu Parent2019-07-031-0/+2
| |
* | Add build_timeout to project APIMathieu Parent2019-07-031-0/+2
| |
* | Add build_git_strategy attribute to project APIMathieu Parent2019-07-031-0/+2
| | | | | | | | | | We map the boolean to the string 'fetch' or 'clone', to be more explicit.
* | Add *_access_level to project APIMathieu Parent2019-07-031-7/+26
|/ | | | | | | | | - issues_access_level - repository_access_level - merge_requests_access_level - builds_access_level - wiki_access_level - snippets_access_level
* 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 'pderichs-52123' into 'master'Robert Speicher2019-06-191-6/+15
|\ | | | | | | | | 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-191-5/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | 59702 Fix API notification flags for MS TeamsSeiji Suenaga2019-06-181-2/+3
|/
* Expose ci_default_git_depth via project APIexpose-project-git-depth-via-apiFabio Pitino2019-06-121-0/+1
| | | | | | | | | | 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
* Include the port in the URLs of the API Link headersRémy Coutable2019-06-061-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* CE port of Move EE specific lines in API::ProjectsImre Farkas2019-05-301-39/+36
|
* CE port of Move EE specific lines in API::SettingsImre Farkas2019-05-301-0/+19
|
* CE port of Move EE specific lines in API::ProtectedBranchesImre Farkas2019-05-291-0/+13
|
* CE port of Move EE specific lines in API::IssuesImre Farkas2019-05-291-0/+8
|
* Add notify_only_default_branch option to PipelinesEmailServicePeter Marko2019-05-281-0/+6
|
* CE port of Move EE specific lines in API::VariablesImre Farkas2019-05-281-0/+13
|
* CE port of Move EE specific lines in API::UsersImre Farkas2019-05-281-0/+16
|
* Merge branch '51854-api-to-get-all-project-group-members-returns-duplicates' ↵Jan Provaznik2019-05-271-17/+2
|\ | | | | | | | | | | | | | | | | into 'master' Resolve "API to get all project/group members returns duplicates" Closes #51854 See merge request gitlab-org/gitlab-ce!24005
| * Removes duplicated members from api/projects/:id/members/all51854-api-to-get-all-project-group-members-returns-duplicatesJacopo2019-05-271-17/+2
| | | | | | | | | | | | | | | | When using the members/all api the same user was returned multiple times when he was a member of the project/group and also of one of the ancestor groups. Now the member is returned only once giving priority to the membership on the project and maintaining the same behaviour of the members UI.
* | CE-port of Refactor EE specific params override in API::GroupsImre Farkas2019-05-271-0/+24
|/
* Merge branch '60250-remove-mr_push_options-flag' into 'master'Stan Hu2019-05-221-0/+2
|\ | | | | | | | | | | | | Remove the mr_push_options feature flag Closes #60250 See merge request gitlab-org/gitlab-ce!28278
| * Remove the mr_push_options feature flagLuke Duncalfe2019-05-171-0/+2
| | | | | | | | | | | | | | | | `Gitlab::QueryLimiting.whitelist` has been moved from being inside the feature flag conditional check to the `process_mr_push_options` `Api::Internal` helper. https://gitlab.com/gitlab-org/gitlab-ce/issues/60250
* | CE port of Move EE specific lines in API::GroupsImre Farkas2019-05-201-0/+9
| |
* | Review updates and cleanupce-57402-add-issues-statistics-api-endpointsAlexandru Croitor2019-05-171-3/+1
| | | | | | | | | | | | | | * 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
* | Add params validations and remove extra params supportAlexandru Croitor2019-05-151-4/+1
| | | | | | | | | | | | | | | | | | Remove label_name and milestone_title params support Add mutually_exclusive validation for author_id and author_username Add mutually_exclusive validation for assignee_id and assignee_username Add validation to allow single value for asignee_username on CE Add separate issue_stats_params helper for statistics params and reuse in issues_params.
* | Move issue details to from IssueBasic to Issue entityAlexandru Croitor2019-05-151-0/+1
| | | | | | | | | | 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-0/+37
|/ | | | | | | | | | | | | | | | | | | | | | | | 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
* Use a path for the related merge requests endpointsh-fix-related-merge-requests-pathStan Hu2019-05-071-0/+4
| | | | | | | | | | Hosts using a non-standard configuration may have a different hostname/port/scheme than what may be configured on the GitLab server. While expose_url should generate a proper URL, there are cases where it may not work. Since we don't need the full URL, we can use the relative path. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/61280
* Add new api class for projects eventsMałgorzata Ksionek2019-04-241-0/+31
| | | | | | | | | | | | Refactor api events class to use external helper Move specs from old class Add changelog and magic string Refactor events class to be more explicit Remove blank line
* Revert "Remove HipChat integration from GitLab"Sean McGivern2019-04-101-0/+40
| | | | This reverts commit a5378665a1dc0b9c8dc3a4fa279a0eb78aac5aac.
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-091-2/+3
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Refactor PushOptionsHandlerService from reviewLuke Duncalfe2019-04-091-0/+17
| | | | | | | | | | Exceptions are no longer raised, instead all errors encountered are added to the errors property. MergeRequests::BuildService is used to generate attributes of a new merge request. Code moved from Api::Internal to Api::Helpers::InternalHelpers.
* Support merge request create with push optionsLuke Duncalfe2019-04-091-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To create a new merge request: git push -u origin -o merge_request.create To create a new merge request setting target branch: git push -u origin -o merge_request.create \ -o merge_request.target=123 To update an existing merge request with a new target branch: git push -u origin -o merge_request.target=123 A new Gitlab::PushOptions class handles parsing and validating the push options array. This can be the start of the standard of GitLab accepting push options that follow namespacing rules. Rules are discussed in issue https://gitlab.com/gitlab-org/gitlab-ce/issues/43263. E.g. these push options: -o merge_request.create -o merge_request.target=123 Become parsed as: { merge_request: { create: true, target: '123', } } And are fetched with the class via: push_options.get(:merge_request) push_options.get(:merge_request, :create) push_options.get(:merge_request, :target) A new MergeRequests::PushOptionsHandlerService takes the `merge_request` namespaced push options and handles creating and updating merge requests. Any errors encountered are passed to the existing `output` Hash in Api::Internal's `post_receive` endpoint, and passed to gitlab-shell where they're output to the user. Issue https://gitlab.com/gitlab-org/gitlab-ce/issues/43263
* Revert "Merge branch 'if-57131-external_auth_to_ce' into 'master'"Andreas Brandl2019-04-051-3/+2
| | | This reverts merge request !26823
* Move Contribution Analytics related spec in ↵Imre Farkas2019-04-051-2/+3
| | | | spec/features/groups/group_page_with_external_authorization_service_spec to EE
* Merge branch 'bvl-allow-more-repos-per-resource-ce' into 'master'James Lopez2019-03-271-7/+9
|\ | | | | | | | | Allow multiple repositories per project See merge request gitlab-org/gitlab-ce!26539
| * Allow multiple repositories per projectBob Van Landuyt2019-03-261-7/+9
| | | | | | | | | | | | | | | | This changes the repository type from a binary `wiki?` to a type. So we can have more than 2 repository types. Now everywhere we called `.wiki?` and expected a boolean, we check that type.
* | Backport parameters from API::ProjectsYorick Peterse2019-03-261-0/+28
| | | | | | | | | | This backports various parameter changes EE makes to API::Projects, along with moving some code around to make it easier to extend in EE.
* | Backport API::Issues parameters from EEYorick Peterse2019-03-261-0/+23
| | | | | | | | | | This backports the parameters that EE adds to API::Issues, and wraps them in conditionals so they are only used in EE.
* | Backport API::Helpers::ProjectsHelpers from EEYorick Peterse2019-03-261-0/+11
|/ | | | | This backports all changes made to this module in EE to CE, and wraps EE specific code in a conditional.
* add users search to search apiAlexis Reigel2019-03-141-3/+3
|