summaryrefslogtreecommitdiff
path: root/spec/controllers/projects/branches_controller_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@12-7-stable-eeGitLab Bot2020-01-211-2/+7
|
* Add latest changes from gitlab-org/gitlab@12-6-stable-eeGitLab Bot2019-12-201-4/+4
|
* Add latest changes from gitlab-org/gitlab@12-4-stable-eeGitLab Bot2019-10-221-2/+48
|
* Cleanup usages of `JSON.parse` in specsPeter Leitzen2019-07-161-6/+3
| | | | Prefer `json_response` where applicable.
* Merge branch '58583-confidential-mr-branch-backend' into 'master'Rémy Coutable2019-07-011-1/+70
|\ | | | | | | | | Support creating an MR/branch on a fork from an issue See merge request gitlab-org/gitlab-ce!29831
| * Check if user can `update_issue` on projectPatrick Bajao2019-07-011-3/+3
| | | | | | | | | | If user can update an issue under the specified confidential issue project, should be able to find the project.
| * Fix issues when creating system notes58583-confidential-mr-branch-backendPatrick Bajao2019-06-291-1/+1
| | | | | | | | | | | | | | | | | | | | When `confidential_issue_project_id` is set and the issue is under that project, create the a note about branch creation in that project. If not, do nothing. When creating `new_merge_request` system note, set the project where the MR will be referenced from so it'll be linked to when the MR is created in another project.
| * Support branch creation from confidential issuePatrick Bajao2019-06-291-0/+69
| | | | | | | | | | | | | | | | Accept a `confidential_issue_project_id` param which will be used for the system note target. This also includes some refactoring on the spec to use shared examples.
* | Add endpoint for fetching diverging commit countsid-stale-branchesIgor Drozdov2019-06-281-0/+23
|/ | | | Extract diverging_commit_counts into a service class
* Make KubernetesService readonlyJames Fargher2019-06-181-17/+5
| | | | | | | | 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.
* Add some frozen string to spec/**/*.rbgfyoung2019-04-151-0/+2
| | | | | | | | | | Adds frozen string to the following: * spec/bin/**/*.rb * spec/config/**/*.rb * spec/controllers/**/*.rb xref https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
* Use 'delete' instead of 'remove' for source branch25569-changing-wording-to-delete-when-referring-to-removing-a-branchSam Bigelow2019-01-221-3/+3
| | | | This is to match `git branch -D <branchname>`
* Update specs to rails5 formatblackst0ne-convert-specs-rails5-styleblackst0ne2018-12-191-69/+106
| | | | | | | | | | Updates specs to use new rails5 format. The old format: `get :show, { some: params }, { some: headers }` The new format: `get :show, params: { some: params }, headers: { some: headers }`
* Resolve "Rename the `Master` role to `Maintainer`" BackendMark Chao2018-07-111-1/+1
|
* Reduce CE/EE diff in spec/controllers/projects/branches_controller_spec.rbRémy Coutable2018-05-241-0/+18
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Re-enable allowing n+1 Gitaly calls for cold cache44861-mark-gitaly-nplus-one-againLin Jen-Shin2018-04-031-1/+17
| | | | | Whenever cache is enabled and cold, branches index still makes n+1 calls. Make sure we catch this.
* Add overview of branches and a filter for active/stale branchesTakuya Noguchi2018-03-061-0/+33
|
* Fix when branch creation fails don't post system noteMateusz Bajorski2017-12-261-0/+14
| | | | Closes #24347
* Replace '.team << [user, role]' with 'add_role(user)' in specs36782-replace-team-user-role-with-add_role-user-in-specsblackst0ne2017-12-221-2/+2
|
* Aling shared_exmaples to "same behavior between KubernetesService and ↵Shinya Maeda2017-11-281-3/+3
| | | | Platform::Kubernetes"
* Replce kubernetes_service and deployment_service to deployment_platformShinya Maeda2017-11-281-18/+12
|
* Duplicate spec for Platform::Kubernetes with kubernetes_projectShinya Maeda2017-11-281-24/+28
|
* Add test suit for platform::kubernetesShinya Maeda2017-11-281-0/+18
|
* Refactor `have_http_status` into `have_gitlab_http_status` in the specsJacopo2017-10-201-14/+14
|
* Stop using `branch_names.include?` and use `branch_exists?`Andrew Newdigate2017-10-101-1/+1
|
* Resolve "Error 500 in non-UTF8 branch names"Micael Bergeron2017-09-121-0/+15
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-1/+1
|
* Rename many path_with_namespace -> full_pathGabriel Mazetto2017-08-011-3/+3
|
* Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-4/+4
|
* Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-6/+6
|
* Revert 'New file from interface on existing branch'dm-revert-mr-8427Douwe Maan2017-06-091-14/+0
|
* Merge request widget redesignFatih Acet2017-05-091-16/+81
|
* Allow to create new branch and empty WIP merge request from issue pageAlfredo Sumaran2017-05-041-1/+37
|
* New file from interface on existing branchJacopo2017-03-131-0/+14
| | | | | | Now you can create a new file and select a target_branch != source_branch. If the file that you want to create already exists on the target branch an error message is shown A glDropdown is used to select and create a new branch instead of a text field.
* Fix json response in branches controllerGeorge Andrinopoulos2017-03-061-0/+23
|
* Merge branch 'dm-more-namespace-full-path' into 'master' Sean McGivern2017-02-241-14/+14
|\ | | | | | | | | Use Namespace#full_path instead of #path where appropriate See merge request !9495
| * Use Namespace#full_path instead of #path where appropriatedm-more-namespace-full-pathDouwe Maan2017-02-231-14/+14
| |
* | Fixes after reviewcreate_branch_repo_lessValery Sizov2017-02-231-8/+2
| |
* | Create master branch first if project is repository-lessValery Sizov2017-02-231-1/+44
|/
* Use `empty_project` where possible in controller specsrs-empty_project-controllersRobert Speicher2017-01-251-1/+1
|
* Merge branch 'jej-fix-missing-access-check-on-issues' into 'security'Douwe Maan2016-11-281-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | Fix missing access checks on issue lookup using IssuableFinder Split from !2024 to partially solve https://gitlab.com/gitlab-org/gitlab-ce/issues/23867 :warning: - Potentially untested :bomb: - No test coverage :traffic_light: - Test coverage of some sort exists (a test failed when error raised) :vertical_traffic_light: - Test coverage of return value (a test failed when nil used) :white_check_mark: - Permissions check tested - [x] :white_check_mark: app/controllers/projects/branches_controller.rb:39 - `before_action :authorize_push_code!` helpes limit/prevent exploitation. Always checks for reporter access so fine with confidential issues, issues only visible to team, etc. - [x] :traffic_light: app/models/cycle_analytics/summary.rb:9 [`.count`] - [x] :white_check_mark: app/controllers/projects/todos_controller.rb:19 - [x] Potential double render in app/controllers/projects/todos_controller.rb - https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#cedccb227af9bfdf88802767cb58d43c2b977439_24_24 See merge request !2030
* Add button to delete all merged branchesToon Claes2016-11-091-4/+54
| | | | | | | | It adds a button to the branches page that the user can use to delete all the branches that are already merged. This can be used to clean up all the branches that were forgotten to delete while merging MRs. Fixes #21076.
* Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-011-2/+0
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-271-5/+5
|
* Update test since branch removal does not render template anymoredz-code-tabDmitriy Zaporozhets2016-06-031-4/+0
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Return status code 303 after a branch DELETE operation to avoid project deletionStan Hu2016-04-061-0/+14
| | | | Closes #14994
* Incorporate reviewZeger-Jan van de Weg2016-03-151-5/+14
|
* Enhance new branch button on an issueZeger-Jan van de Weg2016-03-151-35/+56
|
* Move a few controller specs to their correct locationsrs-move-controller-specsRobert Speicher2016-02-181-0/+104