summaryrefslogtreecommitdiff
path: root/spec/requests
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'graphql-tree-last-commit' into 'master'Lin Jen-Shin2019-06-281-0/+18
|\ | | | | | | | | Added commit type to tree GraphQL type See merge request gitlab-org/gitlab-ce!29412
| * Added commit type to tree GraphQL typePhil Hughes2019-06-281-0/+18
| |
* | GraphQL mutations for add, remove and toggle emoji62826-graphql-emoji-mutationsLuke Duncalfe2019-06-283-0/+322
| | | | | | | | | | | | | | | | | | | | | | | | Adding new `AddAwardEmoji`, `RemoveAwardEmoji` and `ToggleAwardEmoji` GraphQL mutations. Adding new `#authorized_find_with_pre_checks!` and (unused, but for completeness `#authorized_find_with_post_checks!`) authorization methods. These allow us to perform an authorized find, and run our own additional checks before or after the authorization runs. https://gitlab.com/gitlab-org/gitlab-ce/issues/62826
* | Add support for creating random passwords in user creation APIsh-add-force-random-password-user-apiStan Hu2019-06-271-6/+13
|/ | | | | | | | 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
* refactor: remove Sentry from application settingsRoger Meier2019-06-251-4/+2
|
* Change HTTP Status Code when repository disabledSam Battalio2019-06-242-12/+12
|
* Add name & search parameters to project environments APILee Tickett2019-06-241-0/+41
|
* Merge branch 'sync-merge-ref-upon-mergeability-check' into 'master'Douwe Maan2019-06-241-26/+54
|\ | | | | | | | | 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-201-26/+54
| | | | | | | | | | | | | | | | | | | | | | | | 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-0/+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
* Add documentation and testsManoj MJ2019-06-191-1/+1
| | | | | | | | This commit adds - feature specs - to test the ability of a user with "developer" permission to delete tags in repositories. - documentation
* Add 2nd response for container api bulk deleteSteve Abrams2019-06-181-0/+21
| | | | | | | 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.
* Make KubernetesService readonlyJames Fargher2019-06-181-2/+8
| | | | | | | | We are deprecating this service in favor of instance wide clusters. Therefore we removed some code that is not anymore needed for a readonly cluster and also we added some flags to allow for this deprecation. These flags are to be removed in the next release when we finally completelly remove KubernetesService.
* Merge branch '56737-commits-and-mr-events-on-jira-api' into 'master'Stan Hu2019-06-171-4/+13
|\ | | | | | | | | | | | | Expose currently supported events properly on services API Closes #56737 See merge request gitlab-org/gitlab-ce!29736
| * 56737 Expose currently supported events properly on services APIZsolt Kovari2019-06-161-4/+13
| |
* | Fix plan stage queryGosia Ksionek2019-06-171-2/+2
| | | | | | | | Fix plan stage query and the way it is displayed
* | Allow Developer role to delete tags via container registry apiJason Goodman2019-06-171-3/+3
| | | | | | | | This brings the API permissions in line with the UI permissions
* | Merge branch '62910-task-completion-status-gql-pderichs' into 'master'Sean McGivern2019-06-171-0/+60
|\ \ | |/ |/| | | | | | | | | Make task completion status available via GraphQL Closes #62910 See merge request gitlab-org/gitlab-ce!29573
| * Add task count and completed count to graphql types62910-task-completion-status-gql-pderichsPatrick Derichs2019-06-151-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add specs for task completion status (graphql) Fix style issues Changed format of constants in spec Refactor specs to reduce creation of records Reduce parameters to merge request creation Use set's for project and user Move let's out of it_behaves_like block Fix description parameter Fix format of lets Use dig to get task completion status out of graphql response Modified rspec output Add changelog entry
* | Do not blindly expose public project statisticsMayra Cabrera2019-06-141-2/+2
| | | | | | | | Add the missing check on GraphQL API for project statistics
* | Expose comments on Noteables in GraphQLBob Van Landuyt2019-06-142-0/+114
|/ | | | | | | | | This exposes `Note`s on Issues & MergeRequests using a `Types::Notes::NoteableType` in GraphQL. Exposing notes on a new type can be done by implementing the `NoteableType` interface on the type. The presented object should be a `Noteable`.
* Merge branch 'expose-project-git-depth-via-api' into 'master'Kamil Trzciński2019-06-122-3/+5
|\ | | | | | | | | | | | | 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-122-3/+5
| | | | | | | | | | | | | | | | | | | | 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-37/+24
| |
* | Merge branch 'dz-cleanup-deprecated-code' into 'master'Kamil Trzciński2019-06-111-20/+0
|\ \ | |/ |/| | | | | Remove some deprecated code See merge request gitlab-org/gitlab-ce!29222
| * Remove some deprecated codedz-cleanup-deprecated-codeDmitriy Zaporozhets2019-06-071-20/+0
| | | | | | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* | Merge branch '51636-task-list-api-pderichs' into 'master'Sean McGivern2019-06-071-0/+85
|\ \ | | | | | | | | | | | | Add task count and completed count to responses of Issue and MR See merge request gitlab-org/gitlab-ce!28859
| * | Add task count and completed count to responses of Issue and MRPatrick Derichs2019-06-071-0/+85
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Merge branch '62418-project-default-git-depth' into 'master'Kamil Trzciński2019-06-071-4/+12
|\ \ \ | |/ / |/| | | | | | | | | | | | | | Add project level git depth setting Closes #59688 See merge request gitlab-org/gitlab-ce!28919
| * | Add project level git depth settingKrasimir Angelov2019-06-061-4/+12
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce default_git_depth in project's CI/CD settings and set it to 50. Use it if there is no GIT_DEPTH variable specified. Apply this default only to newly created projects and keep it nil for old ones in order to not break pipelines that rely on non-shallow clones. default_git_depth can be updated from CI/CD Settings in the UI, must be either nil or integer between 0 and 1000 (incl). Inherit default_git_depth from the origin project when forking projects. MR pipelines are run on a MR ref (refs/merge-requests/:iid/merge) and it contains unique commit (i.e. merge commit) which doesn't exist in the other branch/tags refs. We need to add it cause otherwise it may break pipelines for old projects that have already enabled Pipelines for merge results and have git depth 0. Document new default_git_depth project CI/CD setting
* | Revert "Merge branch..."revert-86900f00Kamil Trzciński2019-06-051-2/+2
|/ | | This reverts merge request !27503
* Merge branch 'bvl-use-global-ids-graphql' into 'master'Jan Provaznik2019-06-054-4/+15
|\ | | | | | | | | | | | | Use global IDs when exposing GraphQL resources Closes #62650 See merge request gitlab-org/gitlab-ce!29080
| * Fix incorrect instances of `GraphQL::ID_TYPE`Bob Van Landuyt2019-06-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | Since the `GraphQL::ID_TYPE` usages should represent globally unique ids, this changes some fields for which this is not the case into strings. The `ID_TYPE` is a specialised, so this change should be backwards compatible. https://graphql-ruby.org/type_definitions/scalars.html
| * Expose IDs in GraphQL as a GlobalIDBob Van Landuyt2019-06-033-3/+14
| | | | | | | | | | | | | | | | | | | | This exposes all fields named `id` as GlobalIDs so they can be used across our entire GraphQL implementation. When the objects loaded are `ApplicationRecord`s. We'll use our existing batchloading to find them. Otherwise, we'll fall back to the default implementation of `GlobalID`: Calling the `.find` method on the class.
* | Merge branch 'osw-sync-merge-ref-upon-mergeability-check' into 'master'Douwe Maan2019-06-031-24/+37
|\ \ | |/ |/| | | | | | | | | Automatically update MR merge-ref along merge status Closes #58495 See merge request gitlab-org/gitlab-ce!28513
| * Automatically update MR merge-ref along merge statusOswaldo Ferreira2019-05-311-24/+37
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Merge dev.gitlab.org master into GitLab.com masterYorick Peterse2019-06-032-5/+49
|\ \
| * \ Merge branch 'security-fix_milestones_search_api_leak' into 'master'GitLab Release Tools Bot2019-06-031-4/+42
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | Resolve: Milestones leaked via search API Closes #2822 See merge request gitlab/gitlabhq!2997
| | * | Resolve: Milestones leaked via search APIFelipe Artur2019-05-201-4/+42
| | | | | | | | | | | | | | | | | | | | Fix milestone titles being leaked using search API when users cannot read milestones
| * | | Protect Gitlab::HTTP against DNS rebinding attackDouwe Maan2019-05-301-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Gitlab::HTTP now resolves the hostname only once, verifies the IP is not blocked, and then uses the same IP to perform the actual request, while passing the original hostname in the `Host` header and SSL SNI field.
* | | | Merge branch 'ac-graphql-stats' into 'master'Dmitriy Zaporozhets2019-06-033-4/+130
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | Add Namespace and ProjectStatistics to GraphQL API See merge request gitlab-org/gitlab-ce!28277
| * | | | Add Namespace and ProjectStatistics to GraphQL APIAlessio Caiazza2019-06-033-4/+130
| | |_|/ | |/| | | | | | | | | | | | | | | | | | We can query namespaces, and nested projects. Projects now exposes statistics
* | | | Abstract auto merge processesShinya Maeda2019-06-031-3/+3
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have one auto merge strategy today - Merge When Pipeline Succeeds. In order to add more strategies for Merge Train feature, we abstract the architecture to be more extensible. Removed arguments Fix spec
* | | Add optional param :start_project to allow variable commit targetsKerri Miller2019-05-311-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | This extends POST#:id/repository/commits to allow the optional parameter `:start_project`, which will allow targeting other projects besides the one derived from `:id`. Resolves https://gitlab.com/gitlab-org/gitlab-ce/issues/50850
* | | Merge branch '59587-add-graphql-logging' into 'master'Sean McGivern2019-05-312-0/+73
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Add logging to GraphQL Closes #59587 See merge request gitlab-org/gitlab-ce!27885
| * | | Apply reviewer feedback59587-add-graphql-loggingcharlie ablett2019-05-312-16/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Comply doc with guidelines - Improve tests for readability and completeness - Separate out phases visually with newlines - Add `format_message` test - test readability - code and test structure/styling - static query analyzers - call `as_json` on `provided_variables` - add exception handling
| * | | Move complexity/depth to `final_value`charlieablett2019-05-301-14/+15
| | | | | | | | | | | | | | | | | | | | | | | | Tidy tests according to reviewer comments. Move complexity and depth calls from `initial_value` to `final_value` Log variables as json
| * | | Call analyzers from LoggerAnalyzercharlieablett2019-05-302-7/+15
| | | | | | | | | | | | | | | | | | | | - Add changelog file - Fix failing tests
| * | | Restructure complexity analyzercharlieablett2019-05-302-5/+23
| | | | | | | | | | | | | | | | | | | | Remove instance variables for class re-use, test individual methods, use `monotonic_time`
| * | | Implement logger analyzercharlieablett2019-05-301-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Modify GraphqlLogger to subclass JsonLogger - Replace the single-line analyser with one that can log all the GraphQL query related information in one place. - Implement analyzer behavior with spec