Robert Speicher
6e5473f930
Remove show actions from Admin and Project DeployKeys
2015-06-03 18:03:04 -04:00
Dmitriy Zaporozhets
fb59f04fdf
Merge branch 'fix-group-remove' into 'master'
...
Group improvements
* remove projects before removing group
* execute all hooks/events from project destroy when group removed
* log group create/remove
* delay remove of namespace directory (to prevent NFS issues)
Inspired by !759
See merge request !761
2015-06-03 15:02:33 +00:00
Dmitriy Zaporozhets
e414463d9e
Merge branch 'repo-remove'
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
spec/features/projects_spec.rb
2015-06-03 16:17:36 +02:00
Dmitriy Zaporozhets
53a0ac4734
Skip repo removing whem remove user or group
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 16:16:27 +02:00
Dmitriy Zaporozhets
7bab4817f7
Merge branch 'repo-remove' into fix-group-remove
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
Conflicts:
spec/features/projects_spec.rb
2015-06-03 15:15:46 +02:00
Dmitriy Zaporozhets
58ab8a4a9d
Fix tests and increase delay time before remove repository
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 15:09:12 +02:00
Dmitriy Zaporozhets
fd1723f0fc
Add tests for project destroy service
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-03 13:08:17 +02:00
Alex Lossent
dfcea8ed51
Add option to automatically link omniauth and LDAP identities
...
Until now, a user needed to first sign in with his LDAP identity and then manually
link his/her account with an omniauth identity from their profile.
Only when this is done can the user authenticate with the omniauth provider and at
the same time benefit from the LDAP integration (HTTPS authentication with LDAP
username/password and in EE: LDAP groups, SSH keys etc.).
This feature automates the process by looking up a corresponding LDAP person when a
user connects with omniauth for the first time and then automatically linking the LDAP
and omniauth identities (of course, like the existing allow_single_sign_on setting,
this is meant to be used with trusted omniauth providers).
The result is identical to a manual account link.
Add config initializers for other omniauth settings.
2015-06-03 11:46:20 +02:00
Robert Speicher
39d5a4878f
Add JS specs for Array extensions
2015-06-02 20:32:07 -04:00
Robert Speicher
4560954404
Move jQuery enable/disable extensions to extensions/jquery
...
Removes redundant enableButton/disableButton extensions, and adds specs
for the jQuery extensions.
2015-06-02 20:32:07 -04:00
Robert Speicher
f76a3f3db7
Add ZenMode javascript specs
2015-06-02 20:32:07 -04:00
Dmitriy Zaporozhets
79aac2c128
Merge branch 'ignore-references' into 'master'
...
Don't notify users mentioned in code blocks or blockquotes.
cc @rspeicher
See merge request !753
2015-06-02 18:39:18 +00:00
Robert Speicher
9e7a9c63a5
Further limit the limited whitelist for project/group descriptions
2015-06-02 13:41:12 -04:00
Robert Speicher
79c4e3899f
Rename ReferenceFilterSpecHelper to FilterSpecHelper
...
And make it more generalized for all filter specs.
2015-06-02 13:27:53 -04:00
Robert Speicher
442a0663da
Add feature specs for Project and Group description rendering
2015-06-02 13:04:10 -04:00
Robert Speicher
023dd2907b
Add a pipeline context option for SanitizationFilter
...
When this option is `:description`, we use a more restrictive whitelist.
This is used for Project and Group description fields.
2015-06-02 13:04:10 -04:00
Valery Sizov
b931c11e1b
GitLab CI service sends gitlab-ci.yml file
2015-06-02 16:46:01 +03:00
Douwe Maan
a916936f3f
Fix spec.
2015-06-02 15:00:51 +02:00
Douwe Maan
94919c7ef6
Ignore references in blockquotes.
2015-06-02 13:17:21 +02:00
Douwe Maan
fe78984f20
Actually ignore references in code blocks etc.
2015-06-02 13:17:11 +02:00
Dmitriy Zaporozhets
5a1aa49b55
Merge branch 'web-editor-rugged' into 'master'
...
Create and edit files in web editor via rugged
- [x] create file via rugged
- [x] update file via rugged
- [x] remove file via rugged
- [ ] fix tests
- [x] remove satellites code
- [x] create activity event for new/edit file via rugged
- [x] base64 support
Part of https://dev.gitlab.org/gitlab/gitlabhq/issues/2300
See merge request !751
2015-06-02 10:41:36 +00:00
Dmitriy Zaporozhets
d684b11054
Remove unnecessary satellite files and add CHANGELOG item
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-02 12:07:00 +02:00
Douwe Maan
a675bea2c1
Merge branch 'rs-issue-1721' into 'master'
...
Fix link_to_gfm with only a reference having the incorrect link
Before:
```ruby
link_to_gfm("#4 ", "/foo") # => "<a href="/namespace/project/issues/4" class="gfm gfm-issue">#4</a>"
link_to_gfm("See #4 ", "/foo") # => "<a href="/foo">See </a><a href="/namespace/project/issues/4" class="gfm gfm-issue">#4</a>"
```
After:
```ruby
link_to_gfm("#4 ", "/foo") # => "<a href="/foo">#4</a>"
link_to_gfm("See #4 ", "/foo") # => "<a href="/foo">See </a><a href="/namespace/project/issues/4" class="gfm gfm-issue">#4</a>"
```
Closes #192
Closes #1721
Closes [GitHub #7115 ](https://github.com/gitlabhq/gitlabhq/issues/7115 )
See merge request !739
2015-06-02 08:56:53 +00:00
Dmitriy Zaporozhets
2c403dfd92
Remove file api tests which depend on old satellite logic
...
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-06-02 10:24:50 +02:00
Martins Polakovs
6181160504
Update mocking/stubbing syntax to the new RSpec 3 syntax
2015-05-30 19:15:10 +03:00
Stan Hu
85145d1d77
Disable changing of the source branch in merge request update API
2015-05-29 09:40:35 -07:00
Dmitriy Zaporozhets
a1c45338f3
Merge branch 'support-edit-target-branch-in-mr' into 'master'
...
Support editing target branch of merge request
### What does this MR do?
This MR makes it possible to edit the target branch of a merge request and adds a system note when this happens.
### Why was this MR needed?
Because lots of people requested this feature. :)
### Screenshots
**Edit MR page**

**New MR page**

**System note**

### What are the relevant issue numbers?
* Closes https://github.com/gitlabhq/gitlabhq/issues/7105
* See: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/130 !
See merge request !738
2015-05-29 15:01:54 +00:00
Stan Hu
5e4384ec9b
Support editing target branch of merge request
...
Closes https://github.com/gitlabhq/gitlabhq/issues/7105
See: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/130
2015-05-29 04:08:08 -07:00
Dmitriy Zaporozhets
acb7721fe8
Merge branch 'rs-teaspoon' into 'master'
...
Add Teaspoon for Javascript testing
Looking to expand our Javascript unit tests, and this gem makes things a bit better in that respect.
See https://github.com/modeset/teaspoon
See merge request !715
2015-05-29 09:10:46 +00:00
Robert Speicher
5733bdb7c7
Fix link_to_gfm with only a reference having the incorrect link
...
Closes #1721
2015-05-29 04:46:14 -04:00
Robert Speicher
f46b367068
Add MergeRequests#commits action and route
...
/:namespace_id/:project_id/merge_requests/:id/commits(.:format)
2015-05-29 00:09:28 -04:00
Robert Speicher
d2256c18f4
Stub ajax in JS specs
2015-05-28 18:22:32 -04:00
Robert Speicher
c9788bd9d8
Remove jasmine-fixture, use teaspoon fixtures
2015-05-28 18:22:32 -04:00
Robert Speicher
d850a57ff4
teaspoon install
2015-05-28 18:22:32 -04:00
Robert Speicher
05aa71ccd9
Remove jasmine-rails; add teaspoon
2015-05-28 18:22:32 -04:00
Stan Hu
67992b9be6
Make namespace API available to all users
...
Closes https://github.com/gitlabhq/gitlabhq/issues/9328
2015-05-28 11:39:12 -07:00
Dmitriy Zaporozhets
05a44dcb8b
Merge branch 'user-destroy-wo-groups' into 'master'
...
You can not remove user if he/she is an only owner of group
To prevent loose of group data you need to transfer or remove group
first before you can remove user
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
See merge request !730
2015-05-28 13:14:58 +00:00
Dmitriy Zaporozhets
499154518a
You can not remove user if he/she is an only owner of group
...
To prevent loose of group data you need to transfer or remove group
first before you can remove user
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com >
2015-05-28 12:00:02 +02:00
Douwe Maan
06250eef2e
Merge branch 'fix-git-blame-syntax-highlighting' into 'master'
...
Fix git blame syntax highlighting when different commits break up lines
### What does this MR do?
This MR fixes a bug where syntax highlighting would not work properly in certain lines when doing a `git blame` view of a file. Also, this MR reuses the Rugments lexer and formatter for each `git blame` commit block, which should make things faster and reduce overhead.
### Why was this MR needed?
When doing a `git blame`, GitLab feeds the Rugments lexer/formatter blocks of code based on the latest commit for each line. However, this can cause lexer to fail because the state is cleared between each block of code, which causes `highlight` to fallback to the plaintext lexer. For example, notice this unhighlighted line in [this file](https://gitlab.common-lisp.net/cmucl/cmucl/blame/master/src/assembly/assemfile.lisp ):

The fixed version looks like this:

This MR requires a patch to rugments to allow the `continue` option to be passed to the lexer.
* https://github.com/rumpelsepp/rugments/pull/24
* https://github.com/rumpelsepp/rugments/pull/23
* Also submitted to rouge: https://github.com/jneen/rouge/pull/267
### What are the relevant issue numbers?
Closes #1521
See merge request !697
2015-05-28 09:40:00 +00:00
Stan Hu
0cd73885e6
Fix git blame syntax highlighting when different commits break up lines
...
Closes #1521
2015-05-27 14:10:58 -07:00
Robert Speicher
7424d2fa5b
Add ExternalLinkFilter to Markdown pipeline
...
Forces a `rel="nofollow"` attribute on all external links.
2015-05-27 15:39:08 -04:00
Douwe Maan
45e4727f97
Set milestone on new issue when creating issue from index with milestone filter active.
2015-05-27 14:22:11 +02:00
Dmitriy Zaporozhets
2cd1cee639
Merge branch 'commit-graphs-by-email' into 'master'
...
Group project contributions by both name and email.
See https://twitter.com/Argorain/status/598751646143897600 .
We now group by both name and email, so that "Douwe Maan - douwe@gitlab.com ", "Douwe Maan - me@douwe.me " and "Douwe M. - me@douwe.me " are all combined into one graph.
Fixes internal issue https://dev.gitlab.org/gitlab/gitlabhq/issues/2328 .
See merge request !700
2015-05-27 11:45:53 +00:00
Dmitriy Zaporozhets
701c2e9a3b
Merge branch 'rs-to_reference' into 'master'
...
Add to_reference method to referable models
Now there is a single source of information for which attribute a model uses to be referenced, and its special character.
See merge request !641
2015-05-27 10:03:14 +00:00
Dmitriy Zaporozhets
3ed05b2191
Merge branch 'rs-manual-2fa-entry' into 'master'
...
Add support for manually entering 2FA details
> 
Related to #1679 though I'm not sure if it entirely fixes it, since I don't have access to a Windows Phone.
See merge request !694
2015-05-27 09:53:40 +00:00
Douwe Maan
29290dbb34
Merge branch 'rs-title-change-note' into 'master'
...
Add a note when an Issue or Merge Request's title changes
> 
Closes #1434
See merge request !717
2015-05-27 08:28:56 +00:00
Robert Speicher
38637e7d08
Change one-character variable name
...
[ci skip]
2015-05-27 03:34:14 -04:00
Douwe Maan
62d0ce19ed
Merge branch 'fix-hipchat-default-api-version' into 'master'
...
Allow HipChat API version to be blank and default to v2
### What does this MR do?
This MR fixes a regression introduced in v7.11 that requires a HipChat API version to be specified when it is supposed to be optional.
### Why was this MR needed?
The "optional" HipChat API version in 57c724558 passed in a blank `api_version` when nothing was specified, and the code was not tested. This would cause a 500 Error.
### What are the relevant issue numbers?
Closes #772
See merge request !718
2015-05-27 07:27:03 +00:00
Stan Hu
0c9463174b
Allow HipChat API version to be blank and default to v2
...
Closes #772
2015-05-26 21:57:24 -07:00
Robert Speicher
1aa3921dd8
Add a note when an Issue or Merge Request's title changes
2015-05-26 21:49:04 -04:00