summaryrefslogtreecommitdiff
path: root/spec/controllers/projects
Commit message (Collapse)AuthorAgeFilesLines
* Exclude requesters from Project#members, Group#members and User#membersexplicit-requesters-scopeRémy Coutable2016-07-011-3/+3
| | | | | | And create new Project#requesters, Group#requesters scopes. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'zj-workhorse-format-patch' into 'master' Robert Speicher2016-06-291-15/+3
|\ | | | | | | | | Workhorse to serve email diffs See merge request !4590
| * Workhorse to serve email diffsZ.J. van de Weg2016-06-281-15/+3
| | | | | | | | Depends on the changes in Workhorse (gitlab-org/gitlab-workhorse!48).
* | Use HTTP matchers if possibleZ.J. van de Weg2016-06-2711-54/+54
|/
* Merge branch 'issue_19096' into 'master' Stan Hu2016-06-251-0/+40
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Validate presence of essential params for diff rendering ## What does this MR do? Check the presence of essential params before rendering diff content. ## Are there points in the code the reviewer needs to double check? No ## Why was this MR needed? To avoid the generated application error ## What are the relevant issue numbers? #19096 ## Screenshots (if relevant) ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [ ] [Documentation created/updated](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/doc_styleguide.md) - [ ] API support added - Tests - [x] Added for this feature/bug - [x] All builds are passing - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) - [ ] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !4917
| * Validate presence of essential params for diff renderingissue_19096Ruben Davila2016-06-241-0/+40
| | | | | | | | | | This will avoid application errors generated by the assumption of the presence of these params.
* | Fix a wrong MR status when merge_when_build_succeeds & ↵19035-fix-merge-issueRémy Coutable2016-06-241-0/+12
|/ | | | | | | | | | | | | | | project.only_allow_merge_if_build_succeeds are true The issue was that `MergeRequest#mergeable?` returns false when the CI state is not success and project.only_allow_merge_if_build_succeeds is true. In this case `Projects::MergeRequestsController#merge` would return the `:failed` status when enabling `merge_when_build_succeeds`, thus leading to a weird state and the MR never automatically merged. The fix is to disable the CI state check in the controller safeguard that early return the `:failed` status. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix and remove duplicate specs18755-fix-destroy-project-causes-post_decline_request-to-be-executedRémy Coutable2016-06-201-5/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Redirect to the member's source on request withdrawalRémy Coutable2016-06-181-1/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch 'issue_12758' into 'master' Douwe Maan2016-06-171-52/+0
|\ | | | | | | | | | | | | | | | | | | | | Implement custom notification level options ![Screen_Shot_2016-06-17_at_15.31.43](/uploads/3fc47d2f461b3e8b67bb8acaa304cf99/Screen_Shot_2016-06-17_at_15.31.43.png) ![Screenshot_from_2016-06-15_10-52-27](/uploads/88dbdd21d97e80ee772fe08fa0c9b393/Screenshot_from_2016-06-15_10-52-27.png) part of #12758 See merge request !4389
| * Re-use notifications dropdown/modal for user profileFelipe Artur2016-06-171-71/+0
| |\
| | * Re-use notifications dropdown on user profileFelipe Artur2016-06-161-71/+0
| | |
| | * Refactor custom notifications controller code and add specsFelipe Artur2016-06-141-0/+19
| | |
| * | Implement custom notification level optionsFelipe Artur2016-06-151-0/+19
| | |
* | | Removed update methodissuable-todo-improvementsPhil Hughes2016-06-171-86/+80
| | | | | | | | | | | | | | | Re-structured controller spec Renamed issuable param to issuable_id
* | | Added todo controller tests for merge requestsPhil Hughes2016-06-171-37/+90
| | |
* | | Correctly checks if user is logged in when adding todoPhil Hughes2016-06-171-0/+13
| | |
* | | Improved manual todosPhil Hughes2016-06-171-0/+42
|/ / | | | | | | Based on feedback from !4502
* | Merge branch 'stanhu/gitlab-ce-fix-error-500-false-binary-negative'Douwe Maan2016-06-151-0/+12
|\ \
| * | Fix Error 500 when viewing a blob with binary characters after the 1024-byte ↵Stan Hu2016-06-121-0/+12
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mark Here was the problem: 1. When determining whether a given blob is viewable text, gitlab_git reads the first 1024 bytes and checks with Linguist whether it is a text or binary file. 2. If the blob is text, GitLab will attempt to display it. 3. However, if the text has binary characters after the first 1024 bytes, then GitLab will attempt to load the entire contents, but the encoding will be ASCII-8BIT since there are binary characters. 4. The Error 500 results when GitLab attempts to display a mix UTF-8 and ASCII-8BIT. To fix this, we load as much data as we are willing to display so that the detection will work properly. Requires an update to gitlab_git: gitlab-org/gitlab_git!86 Closes #13826
* | UI and copywriting improvements13948-access-request-to-projects-and-groupsRémy Coutable2016-06-141-15/+15
| | | | | | | | | | | | | | | | | | + Move 'Edit Project/Group' out of membership-related partial + Show the access request buttons only to logged-in users + Put the request access buttons out of in a more visible button + Improve the copy in the #remove_member_message helper Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Factorize #request_access and #approve_access_request into a new ↵Rémy Coutable2016-06-141-3/+3
| | | | | | | | | | | | AccessRequestActions controller concern Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Add request access for groupsRémy Coutable2016-06-141-18/+231
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Project members with guest role can't access confidential issuesDouglas Barbosa Alexandre2016-06-131-1/+18
|/
* Add send_git_diff helperDouwe Maan2016-06-083-7/+93
|\
| * Merge branch 'issue_14189' into 'master' Jacob Schatz2016-06-071-0/+53
| |\ | | | | | | | | | | | | | | | | | | Ability to prioritize labels Closes #14189 See merge request !4009
| | * Fix label order by priority on labels pageissue_14189Sean McGivern2016-06-071-0/+53
| | |
| * | Merge branch 'zj-workhorse-to-serve-diffs' into 'master' 14722-searching-for-usernames-should-only-be-possible-for-search-strings-with-a-valid-formatJacob Vosmaer (GitLab)2016-06-071-6/+3
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Workhorse to serve raw diffs Fixes (partially) #13999 Dependent on: gitlab-org/gitlab-workhorse!45 See merge request !4130
| | * | Workhorse to serve raw diffsZeger-Jan van de Weg2016-06-031-6/+3
| | | |
| * | | Merge remote-tracking branch 'origin/master' into rename-ci-commit-phase-2Kamil Trzcinski2016-06-061-0/+36
| |\ \ \ | | | |/ | | |/|
| | * | Update tests on wordingZ.J. van de Weg2016-06-061-2/+2
| | | |
| | * | Backend awardables on commentsZJ van de Weg2016-06-061-0/+36
| | | |
| * | | Merge branch 'rename-ci-commit' into rename-ci-commit-phase-2Kamil Trzcinski2016-06-061-0/+16
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | # Conflicts: # features/steps/shared/builds.rb # spec/requests/ci/api/builds_spec.rb
| * | | Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski2016-06-031-1/+1
| | |/ | |/|
* | | Add workhorse controller and API helpersDouwe Maan2016-06-062-2/+5
| |/ |/|
* | Merge branch 'master' into awardablesawardablesZ.J. van de Weg2016-06-032-5/+87
|\ \ | |/
| * Merge branch '14139-sha-parameter-in-accept-merge-request-api' into 'master' Douwe Maan2016-06-031-0/+86
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Resolve "SHA parameter in accept merge request API" Add a `sha` parameter to the MR merge API, which must match the source SHA for the branch to be merged. Also add the same parameter to the UI: ![MR_SHA](/uploads/616da728695dc19fa7ef7ef6a016ff81/MR_SHA.gif) @DouweM and I discussed adding some smart feature to that, like updating the source SHA on navigating to the diff tab, but for now it will just require a refresh :smiley: Closes #14139. See merge request !4414
| | * Don't allow merges with new commitsSean McGivern2016-06-011-0/+86
| | | | | | | | | | | | | | | | | | Set a `sha` parameter on the MR form. If this doesn't match the HEAD of the source branch when the form is submitted, show a warning (like with a merge conflict) and don't merge the branch.
| * | 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>
| * Enable Style/RedundantParentheses rubocop coprubocop/enable-redundant-parentheses-copGrzegorz Bizon2016-05-301-1/+1
| | | | | | | | See #17478
* | Incorportate feedbackZ.J. van de Weg2016-06-011-3/+3
| |
* | Merge branch 'master' into awardablesZJ van de Weg2016-05-304-5/+5
|\ \ | |/
| * Enable RSpec/NotToNot cop and auto-correct offensesrs-rubocop-nottonotRobert Speicher2016-05-244-5/+5
| | | | | | | | Also removes the note from the development/testing.md guide
* | Merge branch 'master' into awardablesZJ van de Weg2016-05-252-1/+15
|\ \ | |/
| * Enable Style/SpaceAroundKeyword cop and fix offensesRobert Speicher2016-05-231-1/+1
| |
| * Merge branch 'issue_9013' into 'master' Douwe Maan2016-05-201-0/+14
| |\ | | | | | | | | | | | | | | | | | | Let users set notification levels in projects which they are not members Fixes #9013 See merge request !3986
| | * Let users set notification levels in projects which they are not membersFelipe Artur2016-05-171-0/+14
| | |
* | | Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardablesFatih Acet2016-05-181-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | # Conflicts: # app/controllers/projects/merge_requests_controller.rb # app/models/note.rb # db/schema.rb # spec/models/note_spec.rb
| * | Merge branch 'meinac/gitlab-ce-change_deprecated_render_usage'Dmitriy Zaporozhets2016-05-181-1/+1
| |\ \ | | |/ | |/| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
| | * Change deprecated usage of rendering without response bodyMehmet Emin İNAÇ2016-03-161-1/+1
| | | | | | | | | | | | | | | `render nothing: true` has been deprecated. For more information see [pr](https://github.com/rails/rails/pull/20336)