summaryrefslogtreecommitdiff
path: root/spec/requests
Commit message (Collapse)AuthorAgeFilesLines
* Enable the Layout/SpaceBeforeBlockBraces coprc/enable-the-Layout/SpaceBeforeBlockBraces-copRémy Coutable2017-08-0918-58/+58
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix a broken Events API spec36169-fix-masterRémy Coutable2017-08-081-13/+8
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'rc/fix-commits-api' into 'master'Sean McGivern2017-08-081-157/+477
|\ | | | | | | | | | | | | Fix the /projects/:id/repository/commits endpoint to handle dots in the ref name… Closes #15651 See merge request !13370
| * Fix the /projects/:id/repository/commits endpoint to handle dots in the ref ↵rc/fix-commits-apiRémy Coutable2017-08-081-157/+477
| | | | | | | | | | | | name when the project full path contains a `/` Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Expose noteable_iid in Notesue4452017-08-081-0/+35
| |
* | Fix the /projects/:id/repository/tags endpoint to handle dots in the tag ↵Rémy Coutable2017-08-081-160/+311
|/ | | | | | name when the project full path contains a `/` Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'bvl-nfs-circuitbreaker' into 'master'Sean McGivern2017-08-071-0/+57
|\ | | | | | | | | | | | | Circuitbreaker for storage paths Closes #32207, #33117, gitlab-com/infrastructure#1946, and gitlab-com/infrastructure#1775 See merge request !11449
| * Merge branch 'master' into 'bvl-nfs-circuitbreaker'Douwe Maan2017-08-071-0/+20
| |\ | | | | | | | | | | | | # Conflicts: # app/models/repository.rb # spec/models/repository_spec.rb
| * | Add a Circuitbreaker for storage pathsBob Van Landuyt2017-08-041-0/+57
| | |
* | | Merge branch '32300__expose_more_attributes' into 'master'Rémy Coutable2017-08-073-3/+26
|\ \ \ | |_|/ |/| | | | | | | | Expose more attributes to unauthenticated GET /projects/:id See merge request !13283
| * | Expose more attributes to unauthenticated GET /projects/:idTony2017-08-033-3/+26
| | |
* | | Merge branch 'tc-fix-mr-query-params' into 'master'Rémy Coutable2017-08-041-0/+20
|\ \ \ | |_|/ |/| | | | | | | | Add spec to test combining API merge_requests query parameters See merge request !11172
| * | Add spec to test combining API merge_requests query parametersToon Claes2017-08-031-0/+20
| |/ | | | | | | To investigate gitlab-org/gitlab-ce#31599
* | Don't include EmailHelpers manually, pick with rspecuse-rspec-support-helperLin Jen-Shin2017-08-032-6/+2
|/ | | | | | | | | `:mailer` is needed to pick it easily, while `type: :mailer` is needed for picking it automatically for tests located in spec/mailers/*_spec.rb It's a bit complicated in spec/services/notification_service_spec.rb but we'll leave it alone for now.
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-0249-169/+169
|
* Extending API for protected branchesEric2017-08-021-0/+232
|
* Ensure all project factories use `:repository` trait or `:empty_project`rs-empty_project-cleanupRobert Speicher2017-08-019-13/+13
|
* Merge branch '33620-remove-events-from-notification_settings' into 'master'Douwe Maan2017-08-011-2/+2
|\ | | | | | | | | | | | | Resolve "Remove `events` from `notification_settings`" Closes #33620 See merge request !13152
| * Remove events column from notification settings33620-remove-events-from-notification_settingsSean McGivern2017-07-311-2/+2
| | | | | | | | | | This was migrated to separate columns in 9.4, and now just needs to be removed for real.
* | Merge branch '28283-legacy-storage-format' into 'master'Sean McGivern2017-08-014-25/+25
|\ \ | | | | | | | | | | | | [CE] Added Legacy Storage format See merge request !13149
| * | Rename more path_with_namespace -> full_path or disk_pathGabriel Mazetto2017-08-013-23/+23
| | |
| * | Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-2/+2
| |/
* | Merge branch '34519-extend-api-group-secret-variable' into 'master'Kamil Trzciński2017-08-011-0/+221
|\ \ | | | | | | | | | | | | | | | | | | Extend API: Group Secret Variable Closes #34519 See merge request !12936
| * | IniShinya Maeda2017-07-191-0/+221
| | |
* | | Allow logged in users to read user list under public restrictionLin Jen-Shin (godfat)2017-08-011-17/+23
| |/ |/|
* | Fixup POST /v3/:id/hooks and PUT /v3/:id/hooks/:hook_idRichard Clamp2017-07-281-3/+3
| |
* | Merge branch 'merge-issuable-reopened-into-opened-state' into 'master'Sean McGivern2017-07-282-2/+2
|\ \ | | | | | | | | | | | | Merge issuable "reopened" state into "opened" See merge request !12972
| * | Merge issuable "reopened" state into "opened"merge-issuable-reopened-into-opened-stateYorick Peterse2017-07-282-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Having two states that essentially mean the same thing is very much like having a boolean "true" and boolean "mostly-true": it's rather silly. This commit merges the "reopened" state into the "opened" state while taking care of system notes still showing messages along the lines of "Alice reopened this issue". A big benefit from having only two states (opened and closed) is that indexing and querying becomes simpler and more performant. For example, to get all the opened queries we no longer have to query both states: SELECT * FROM issues WHERE project_id = 2 AND state IN ('opened', 'reopened'); Instead we can query a single state directly, which can be much faster: SELECT * FROM issues WHERE project_id = 2 AND state = 'opened'; Further, only having two states makes indexing easier as we will only ever filter (and thus scan an index) using a single value. Partial indexes could help but aren't supported on MySQL, complicating the development process and not being helpful for MySQL.
* | | Fix static snalysysShinya Maeda2017-07-281-1/+1
| | |
* | | Use let(:pipeline) for variables spec in triggers_spec.rbShinya Maeda2017-07-281-2/+1
| | |
* | | initShinya Maeda2017-07-281-9/+10
|/ /
* | Merge branch 'tc-api-root-merge-requests' into 'master'Sean McGivern2017-07-281-0/+94
|\ \ | | | | | | | | | | | | | | | | | | Add top-level /merge_requests API endpoint Closes #28422 See merge request !13060
| * | Default /merge_request API endpoint to `scope=created-by-me`Toon Claes2017-07-281-4/+15
| | | | | | | | | | | | This matches the behavior of the /issues endpoint.
| * | Add top-level /merge_requests API endpointToon Claes2017-07-271-0/+83
| | | | | | | | | | | | | | | | | | | | | And add support for additional query parameters: - `author_id`: Returns merge requests created by the given user `id` - `assignee_id`: Returns merge requests assigned to the given user `id` - `scope`: Return merge requests for the given scope: `created-by-me`, `assigned-to-me` or `all`
* | | Merge branch 'bvl-add-all-settings-to-api' into 'master'Robert Speicher2017-07-271-3/+2
|\ \ \ | |/ / |/| | | | | | | | Add all ApplicationSettings attributes to the API See merge request !12851
| * | Remove deprecated `repository_storage` attributebvl-add-all-settings-to-apiBob Van Landuyt2017-07-271-3/+2
| | | | | | | | | | | | In favor of the new `repository_storages`
* | | Merge branch '34319-remove-useless-type-definitions-from-specs' into 'master'Robert Speicher2017-07-275-5/+5
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Remove superfluous tags in RSpec examples. Closes #34319 See merge request !12754
| * | | Remove superfluous lib: true, type: redis, service: true, models: true, ↵Rémy Coutable2017-07-275-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | services: true, no_db: true, api: true Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | | Fix the /projects/:id/repository/branches endpoint to handle dots in the ↵Rémy Coutable2017-07-275-211/+305
|/ / / | | | | | | | | | | | | | | | branch name when the project full patch contains a `/` Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge branch '33601-add-csrf-token-verification-to-api' into 'master'Sean McGivern2017-07-271-6/+44
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Resolve "Add CSRF token verification to API" Closes #33601 See merge request !12154
| * | | Add specsDouwe Maan2017-07-271-6/+44
| | | |
* | | | Merge branch 'tc-issue-api-assignee' into 'master'Sean McGivern2017-07-271-1/+36
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Add author_id & assignee_id param to /issues API Closes #29430 See merge request !13004
| * | | Allow query param scope for /issues API endpointtc-issue-api-assigneeToon Claes2017-07-241-4/+12
| | | |
| * | | Add author_id & assignee_id param to /issues APIToon Claes2017-07-241-0/+27
| | | | | | | | | | | | | | | | Allow issues filtering on `author_id` and `assignee_id`.
* | | | Fix the :project factory by not copying the test repo twicerc/fix-tests-factoriesRémy Coutable2017-07-271-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | Also, fixing some calls to the :project factory with the :test_repo trait since this trait is already included in the :project factory. Signed-off-by: Rémy Coutable <remy@rymai.me>
* | | Merge branch '30634-protected-pipeline' into 'master'Kamil Trzciński2017-07-253-4/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Implement "Block pipelines on protected branches" Closes #30634, #34616, and #33130 See merge request !11910
| * \ \ Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-07-202-2/+2
| |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (130 commits) Change auto-retry count to a correct value in docs Fix background migration cleanup specs Fix CI/CD job auto-retry specs Fix JS; make buttons sr accessibile; fix overlay remove redundant changelog entries Merge branch '24570-use-re2-for-user-supplied-regexp-9-3' into 'security-9-3' Merge branch '33303-404-for-unauthorized-project' into 'security-9-3' Merge branch '33359-pers-snippet-files-location' into 'security-9-3' Merge branch 'bvl-remove-appearance-symlink' into 'security-9-3' Hide description about protected branches to non-member Update CHANGELOG.md for 9.0.11 Update CHANGELOG.md for 9.1.8 Update CHANGELOG.md for 8.17.7 Update CHANGELOG.md for 9.2.8 Update CHANGELOG.md for 9.3.8 Respect blockquote line breaks in markdown 35209 Add wip message to new navigation preference section Add github imported projects count to usage data Add versions to Prometheus metrics doc Add Bulgarian translations of Pipeline Schedules ...
| * \ \ \ Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-07-181-9/+9
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (25 commits) Remove unneeded asserts and add tests for inactive RequestStore Rename the methods to make it fit with current name Follow feedback on the merge request Make sure it checks against the tag only when it's a tag Renamed Gitaly services fix transient rspec failure due to Poll.js race condition Refactor variables initialization in dropzone_input.js cache the cache key... avoid #respond_to? in Cache.id_for cache DeclarativePolicy.class_for at the class level Update 9.3-to-9.4.md fix padding on filtered search dropdown. Styles should only apply to li in list Cache Note#notable for commits and fix tests Add changelog entry Update the comments for the new functionality Use RequestStoreWrap for Commit#author Skip dead jobs queue for web hooks and project services Add RequestStoreWrap to cache via RequestStore Don't track cached queries in Gitlab::PerformanceBar::PeekQueryTracker Add changelog entry ...
| * | | | Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-07-1720-56/+402
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (638 commits) Simplify background migrations stealing code Expire cached user IDs that can see the performance after 5 minutes Promote visibility level helpers from Group to Namespace Fix off-by-one error in background migration retries Recover from all exceptions when stealing bg migration Fix label creation from new list for subgroup projects move click handler to button. when on the icon it wasn't triggered in firefox Fix incorrect AWS ELB metrics. Fix wrong link to docs in docs styleguide Update issue-related docs Refactor groups docs Add subgroups limitations to Pages docs Update Google launcher details Split docs on IP whitelist for monitoring access Update health check docs Bump fog-core to 1.44.3 and fog providers' plugins to latest Introduce have_gitlab_http_status Remove Repository#search_files Update Pipeline's badge count in Merge Request and Commits view to match real-time content Fixes the user order being overriden in the autocomplete controller ...
| * \ \ \ \ Merge remote-tracking branch 'upstream/master' into 30634-protected-pipelineLin Jen-Shin2017-07-051-5/+50
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream/master: (67 commits) Revert "Merge branch 'revert-12499' into 'master'" Prevent accidental deletion of protected MR source branch by repeating checks before actual deletion Document that GitLab 9.3 requires the TRIGGER permission on MySQL Instrument Unicorn with Ruby exporter Remove group modal like remove project modal. Closes #33130 Update prometheus client gem Enables the option in user preferences to turn on the new navigation Simplify authentication logic in the v4 users API for !12445. wait_for_requests is not needed when AJAX is not in play Don't resolve fork relationships for projects pending delete Clean up the ForkedProjectLink specs Remove unnecessary clear_stubs calls Add test for GitalyClient::Ref#find_ref_name DeleteMergedBranchesService should not delete protected branches Optimize creation of commit API by using Repository#commit instead of Repository#commits Update CHANGELOG.md for 9.3.4 Make autosize fields more performant and remove broken autosize handle Update GITLAB_SHELL_VERSION to 5.1.1 Fixed the y_label not setting correctly for each graph on the monitoring dashboard Refactor and copyedit "Using Docker images" docs ...