summaryrefslogtreecommitdiff
path: root/app/controllers/projects/branches_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable even more frozen string in app/controllersgfyoung2018-09-251-0/+2
| | | | | | | | | | | | Enables frozen string for some vestigial files as well as the following: * app/controllers/projects/**/*.rb * app/controllers/sherlock/**/*.rb * app/controllers/snippets/**/*.rb * app/controllers/users/**/*.rb Partially addresses #47424.
* Disable existing offenses for the CodeReuse copsYorick Peterse2018-09-111-0/+2
| | | | | This whitelists all existing offenses for the various CodeReuse cops, of which most are triggered by the CodeReuse/ActiveRecord cop.
* Updates from `rubocop -a`Lin Jen-Shin2018-07-091-1/+1
|
* Counting commits is done by Gitalyzj-counting-commitsZeger-Jan van de Weg2018-06-191-1/+4
| | | | Closes https://gitlab.com/gitlab-org/gitaly/issues/382
* Re-enable allowing n+1 Gitaly calls for cold cache44861-mark-gitaly-nplus-one-againLin Jen-Shin2018-04-031-3/+7
| | | | | Whenever cache is enabled and cold, branches index still makes n+1 calls. Make sure we catch this.
* Reuse root_ref_hash for performance on BranchesTakuya Noguchi2018-03-281-10/+6
|
* Add overview of branches and a filter for active/stale branchesTakuya Noguchi2018-03-061-5/+36
|
* Refactor success status in branch controllerMateusz Bajorski2017-12-271-3/+5
|
* Fix when branch creation fails don't post system noteMateusz Bajorski2017-12-261-1/+1
| | | | Closes #24347
* Replce kubernetes_service and deployment_service to deployment_platformShinya Maeda2017-11-281-1/+1
|
* Fetch the merged branches at onceLin Jen-Shin (godfat)2017-10-271-0/+2
|
* Fix the default branches sorting to actually be 'Last updated'26890-fix-default-branches-sortingRémy Coutable2017-09-251-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Detect n+1 issues involving GitalyAndrew Newdigate2017-09-191-3/+7
|
* Merge branch '26890-sort-branches' into 'master'Rémy Coutable2017-07-281-1/+1
|\ | | | | | | | | | | | | This makes the default sort order for branches 'recently updated' rather than by name. Closes #26890 See merge request !8666
| * WIP: This makes the default sort order for branches 'recently updated' ↵26890-sort-branchesMatt Lee2017-01-201-1/+1
| | | | | | | | rather than by name.
* | Create and use project path helpers that only need a project, no namespaceDouwe Maan2017-07-051-6/+5
| |
* | Enable Style/DotPosition Rubocop :cop:Grzegorz Bizon2017-06-211-2/+2
| |
* | Revert 'New file from interface on existing branch'dm-revert-mr-8427Douwe Maan2017-06-091-6/+1
| |
* | Merge request widget redesignFatih Acet2017-05-091-0/+1
| |
* | Add confirm delete protected branch modalSam Rose2017-05-081-4/+8
| |
* | Allow to create new branch and empty WIP merge request from issue pageAlfredo Sumaran2017-05-041-13/+21
| |
* | removes n+1 query from tags and branches indexesfix-slow-queries-for-branches-indexTiago Botelho2017-03-161-2/+8
| |
* | New file from interface on existing branchJacopo2017-03-131-6/+7
| | | | | | | | | | | | 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-1/+1
| |
* | Fixes after reviewcreate_branch_repo_lessValery Sizov2017-02-231-5/+15
| |
* | Create master branch first if project is repository-lessValery Sizov2017-02-231-4/+16
|/
* Merge branch 'jej-fix-missing-access-check-on-issues' into 'security'Douwe Maan2016-11-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | 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-1/+8
| | | | | | | | 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.
* Fix tests.Connor Shea2016-08-171-1/+1
|
* Initial implementation of an async branch dropdown for Revert and Cherry Pick.Connor Shea2016-08-171-0/+7
|
* Fix branches page dropdown sort initial stateClement Ho2016-08-101-1/+2
|
* Fix the title of the toggle dropdown buttonHerminio Torres2016-07-281-0/+1
| | | | | | | | | | | | | | Before when you choose the way of `sort` instead it display the title correctly it was just apply the humanize helper in sort value. E.g. When you choose `Last updated` it should display the title `Last updated` instead of `Recently updated`. This fix makes this correctly displays the title. Change the implementation of the `link_to` `filter_branches_path` - Change the value of the `params[:sort]` in `link_to`. E.g. instead of using `'recently_updated'` is now using `sort_value_recently_updated`. - Change the values of the case in the `branches_sorted_by` method for the values it receives in the `params[:sort]` that are: `nil`, `'name'`, `'updated_desc'`, `'updated_asc'`.
* implements the basic filter functionalitytiagonbotelho2016-07-191-2/+1
|
* Update tests to match new Code tab logicDmitriy Zaporozhets2016-06-031-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Put project Files and Commits tabs under Code tabDmitriy Zaporozhets2016-06-031-1/+1
| | | | 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-1/+1
| | | | Closes #14994
* Use the configured Kaminari "per page" defaultrs-use-kaminari-defaultRobert Speicher2016-03-191-1/+1
|
* Incorporate reviewZeger-Jan van de Weg2016-03-151-4/+3
|
* Enhance new branch button on an issueZeger-Jan van de Weg2016-03-151-0/+6
|
* new-branch-buttonZeger-Jan van de Weg2016-03-151-3/+13
|
* Merge branch 'master' into diverging-branch-graphsJeff Stubler2015-12-031-1/+1
|\
| * Add authorization to new branch/tag pages.new-tag-branch-authorizationDouwe Maan2015-12-031-1/+1
| |
* | Refactor for style issuesJeff Stubler2015-11-111-2/+1
| |
* | Add graphs showing commits ahead and behind default to branches pageJeff Stubler2015-11-011-0/+6
|/
* Fix errors deleting and creating branches with encoded slashesStan Hu2015-08-011-3/+4
| | | | Closes #1804
* Return 40x error codes if branch could not be deleted in UIStan Hu2015-07-061-2/+2
|
* Fixed the Rails/ActionFilter copJeroen van Baarsen2015-04-201-3/+3
| | | | Signed-off-by: Jeroen van Baarsen <jeroenvanbaarsen@gmail.com>
* Use same constant for amount of items per pageDmitriy Zaporozhets2015-03-121-1/+1
|
* Merge branch 'master' into rails-4.1.9Vinnie Okada2015-02-211-1/+0
|\ | | | | | | | | | | | | | | | | Conflicts: app/views/projects/commits/_commit.html.haml app/views/projects/issues/_issue.html.haml app/views/projects/issues/_issue_context.html.haml app/views/projects/merge_requests/_merge_request.html.haml app/views/projects/merge_requests/show/_context.html.haml
| * Move 'require_non_empty_project' filter to front so 'assign_ref_vars' ↵Douwe Maan2015-02-201-1/+0
| | | | | | | | doesn't 404.