Robert Speicher
5423e6e2d5
Merge branch 'zj-workhorse-format-patch' into 'master'
...
Workhorse to serve email diffs
See merge request !4590
2016-06-29 02:26:38 +00:00
Z.J. van de Weg
c31f876a27
Workhorse to serve email diffs
...
Depends on the changes in Workhorse (gitlab-org/gitlab-workhorse!48 ).
2016-06-28 14:26:38 +02:00
Z.J. van de Weg
abca19da8b
Use HTTP matchers if possible
2016-06-27 20:10:42 +02:00
Stan Hu
4c767bab58
Merge branch 'issue_19096' into 'master'
...
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
2016-06-25 03:38:13 +00:00
Ruben Davila
7627cc1989
Validate presence of essential params for diff rendering
...
This will avoid application errors generated by the assumption of the
presence of these params.
2016-06-24 16:20:53 -05:00
Rémy Coutable
e3d464d82a
Fix a wrong MR status when merge_when_build_succeeds & 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 >
2016-06-24 18:33:02 +02:00
Rémy Coutable
909a0ff3ac
Fix and remove duplicate specs
...
Signed-off-by: Rémy Coutable <remy@rymai.me >
2016-06-20 12:36:59 +02:00
Rémy Coutable
724f986fb2
Redirect to the member's source on request withdrawal
...
Signed-off-by: Rémy Coutable <remy@rymai.me >
2016-06-18 05:46:45 +02:00
Douwe Maan
00906b5bb6
Merge branch 'issue_12758' into 'master'
...
Implement custom notification level options


part of #12758
See merge request !4389
2016-06-17 23:28:22 +00:00
Phil Hughes
914f973108
Removed update method
...
Re-structured controller spec
Renamed issuable param to issuable_id
2016-06-17 18:31:37 +01:00
Phil Hughes
60b4049280
Added todo controller tests for merge requests
2016-06-17 09:13:21 +01:00
Phil Hughes
b56965c5bb
Correctly checks if user is logged in when adding todo
2016-06-17 09:06:00 +01:00
Phil Hughes
85fab13eba
Improved manual todos
...
Based on feedback from !4502
2016-06-17 09:01:03 +01:00
Felipe Artur
33c61bd461
Re-use notifications dropdown/modal for user profile
2016-06-17 00:17:20 -03:00
Felipe Artur
f82ab42d05
Re-use notifications dropdown on user profile
2016-06-16 23:34:21 -03:00
Felipe Artur
89a2c8730b
Implement custom notification level options
2016-06-15 11:47:50 -03:00
Douwe Maan
a95f8b9a82
Merge branch 'stanhu/gitlab-ce-fix-error-500-false-binary-negative'
2016-06-15 15:56:02 +02:00
Felipe Artur
bef15a0f91
Refactor custom notifications controller code and add specs
2016-06-14 10:17:00 -03:00
Rémy Coutable
515205d3c1
UI and copywriting improvements
...
+ 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 >
2016-06-14 13:18:14 +02:00
Rémy Coutable
d71fbe0dbd
Factorize #request_access and #approve_access_request into a new AccessRequestActions controller concern
...
Signed-off-by: Rémy Coutable <remy@rymai.me >
2016-06-14 13:07:26 +02:00
Rémy Coutable
d26f81239a
Add request access for groups
...
Signed-off-by: Rémy Coutable <remy@rymai.me >
2016-06-14 13:07:26 +02:00
Douglas Barbosa Alexandre
b56c456750
Project members with guest role can't access confidential issues
2016-06-13 19:32:00 -03:00
Stan Hu
0fdfd2dd6e
Fix Error 500 when viewing a blob with binary characters after the 1024-byte 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
2016-06-12 07:36:25 -07:00
Douwe Maan
a9857f8c2f
Add send_git_diff helper
2016-06-08 14:30:15 +02:00
Jacob Schatz
5b83abcc01
Merge branch 'issue_14189' into 'master'
...
Ability to prioritize labels
Closes #14189
See merge request !4009
2016-06-07 15:15:07 +00:00
Sean McGivern
ee26c3cab4
Fix label order by priority on labels page
2016-06-07 14:01:30 +01:00
Jacob Vosmaer (GitLab)
afa21054fa
Merge branch 'zj-workhorse-to-serve-diffs' into 'master'
...
Workhorse to serve raw diffs
Fixes (partially) #13999
Dependent on: gitlab-org/gitlab-workhorse!45
See merge request !4130
2016-06-07 12:50:29 +00:00
Kamil Trzcinski
4e38d88df5
Merge remote-tracking branch 'origin/master' into rename-ci-commit-phase-2
2016-06-06 20:24:21 +02:00
Douwe Maan
8c3ba8d6c9
Add workhorse controller and API helpers
2016-06-06 13:16:30 +02:00
Kamil Trzcinski
842f0a3401
Merge branch 'rename-ci-commit' into rename-ci-commit-phase-2
...
# Conflicts:
# features/steps/shared/builds.rb
# spec/requests/ci/api/builds_spec.rb
2016-06-06 11:21:39 +02:00
Z.J. van de Weg
7d3f8f542f
Update tests on wording
2016-06-06 11:10:10 +02:00
ZJ van de Weg
2f9c2149a3
Backend awardables on comments
2016-06-06 11:03:39 +02:00
Zeger-Jan van de Weg
01e1139f68
Workhorse to serve raw diffs
2016-06-03 18:43:22 +02:00
Kamil Trzcinski
20c7144ed2
Rename all [ci_]commit to [ci_]pipeline in specs and features
2016-06-03 16:22:26 +02:00
Z.J. van de Weg
9d491712cf
Merge branch 'master' into awardables
2016-06-03 15:20:11 +02:00
Douwe Maan
0e2490c0cb
Merge branch '14139-sha-parameter-in-accept-merge-request-api' into 'master'
...
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:

@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 😃
Closes #14139 .
See merge request !4414
2016-06-03 12:41:58 +00:00
Dmitriy Zaporozhets
334cb86821
Update test since branch removal does not render template anymore
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-06-03 10:13:40 +03:00
Sean McGivern
f680eca912
Don't allow merges with new commits
...
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.
2016-06-01 20:34:41 +01:00
Z.J. van de Weg
91a7b9333b
Incorportate feedback
2016-06-01 12:10:08 +02:00
ZJ van de Weg
cbd7801b3d
Merge branch 'master' into awardables
2016-05-30 18:54:08 +02:00
Grzegorz Bizon
c370dce01c
Enable Style/RedundantParentheses rubocop cop
...
See #17478
2016-05-30 15:07:18 +02:00
ZJ van de Weg
7ae536002a
Merge branch 'master' into awardables
2016-05-25 14:41:25 +02:00
Robert Speicher
75739e54be
Enable RSpec/NotToNot cop and auto-correct offenses
...
Also removes the note from the development/testing.md guide
2016-05-24 15:40:29 -04:00
Robert Speicher
3ba72f69af
Enable Style/SpaceAroundKeyword cop and fix offenses
2016-05-23 14:16:35 -04:00
Douwe Maan
a97cb8f8b8
Merge branch 'issue_9013' into 'master'
...
Let users set notification levels in projects which they are not members
Fixes #9013
See merge request !3986
2016-05-20 21:04:55 +00:00
Fatih Acet
bb883387f9
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into awardables
...
# Conflicts:
# app/controllers/projects/merge_requests_controller.rb
# app/models/note.rb
# db/schema.rb
# spec/models/note_spec.rb
2016-05-18 13:05:53 -05:00
Dmitriy Zaporozhets
253a017b01
Merge branch 'meinac/gitlab-ce-change_deprecated_render_usage'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2016-05-18 12:48:23 -05:00
Felipe Artur
07ff874f57
Let users set notification levels in projects which they are not members
2016-05-17 21:53:03 -05:00
Zeger-Jan van de Weg
7a4e7ad04e
Fix tests and wrong choices during merge
2016-05-12 09:23:21 +02:00
Zeger-Jan van de Weg
4558b5b9fe
Incorporate feedback
2016-05-11 22:43:58 +02:00