Douwe Maan
9813eac56b
Merge branch 'confidential-issues' into 'master'
...
Add confidential issues
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/3678
More information: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/227
See merge request !3282
2016-03-18 12:04:56 +00:00
Yorick Peterse
3f0d780c19
Show a notice for diffs that are too large
...
This builds on the changes introduced in
https://gitlab.com/gitlab-org/gitlab_git/merge_requests/72 and results
in merge requests with large diffs (e.g. due to them containing minified
CSS) loading much faster.
2016-03-18 12:30:46 +01:00
Douglas Barbosa Alexandre
f2ba4e3d36
Restrict access to confidential issues on search results
2016-03-17 20:55:59 -03:00
Douglas Barbosa Alexandre
43d8bdb4f0
Restrict access to references for confidential issues
2016-03-17 20:55:59 -03:00
Rubén Dávila
7e03b40221
Return an empty Array when there aren't lines to parse.
2016-03-15 19:51:27 -05:00
Stan Hu
74d7de8196
Revert "Revert "Merge branch 'support-go-subpackages' into 'master'
""
...
This reverts commit 5a586f364c
2016-03-12 21:05:23 +00:00
Douwe Maan
5a586f364c
Revert "Merge branch 'support-go-subpackages' into 'master'
"
...
This reverts merge request !3191
2016-03-12 17:42:51 +00:00
Douwe Maan
826bc72c12
Merge branch 'support-go-subpackages' into 'master'
...
Support Golang subpackage fetching
Closes #13805
See merge request !3191
2016-03-12 17:38:08 +00:00
Stan Hu
b23a05d09b
Add spec for go-import middleware
2016-03-12 08:10:38 -08:00
Douwe Maan
ff62e20607
Merge branch 'fix-gh-pr-import' into 'master'
...
Fix importing PR's from GitHub when the source repo was removed
Closes #13847
Closes gitlab-com/support-forum#584
See merge request !3172
2016-03-12 14:07:45 +00:00
Yorick Peterse and Robert Speicher
300332bbf6
Fixed ProjectSearchResults spec to use a Project
...
This spec was still passing an ID to the #initialize method instead of
a Project instance.
2016-03-11 15:25:23 -05:00
Yorick Peterse and Robert Speicher
42fde69d39
Refactor Gitlab::SnippetSearchResults
...
This removes the need for plucking snippet IDs into memory.
2016-03-11 15:25:22 -05:00
Yorick Peterse and Robert Speicher
013542965c
Refactor Gitlab::SearchResults
...
Instead of plucking IDs this class now uses ActiveRecord::Relation
objects. Plucking IDs is problematic as searching for projects can lead
to a huge amount of IDs being loaded into memory only to be used as an
argument for another query (instead of just using a sub-query).
2016-03-11 15:25:22 -05:00
Douglas Barbosa Alexandre
37b00b16a5
Fix importing PR's from GitHub when the source repo was removed
2016-03-10 19:29:54 -03:00
Jacob Vosmaer
a28c84b4ca
Improve test descriptions
2016-03-10 12:55:06 +01:00
Jacob Vosmaer
662c4df748
Add tests for ExclusiveLease
2016-03-10 12:52:19 +01:00
Iuri de Silvio and Rémy Coutable
591bf92ce7
Fix bug where Bitbucket closed issues were imported as opened
2016-03-07 19:23:47 +01:00
Jacob Vosmaer
1764e1b7cb
Use Gitlab::Git::DiffCollections
2016-03-03 18:38:44 +01:00
Patricio Cano
bb4fa3a185
Make new allow_single_sign_on feature backwards compatible
2016-02-18 17:02:43 -05:00
Patricio Cano
06376be56a
Decouple SAML authentication from the default Omniauth logic
2016-02-18 17:01:07 -05:00
Douwe Maan
873b0db220
Revert "Merge branch 'saml-decoupling' into 'master'
"
...
This reverts commit c04e22fba8 , reversing
changes made to 0feab326d5 .
2016-02-18 22:14:53 +01:00
Patricio Cano
f014127e17
Decouple SAML authentication from the default Omniauth logic
2016-02-18 13:22:19 -05:00
Jacob Vosmaer
64d8a38b54
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into git-archive-refactor
2016-02-17 15:25:57 +01:00
Douwe Maan
28d42a33f3
Merge branch 'rs-issue-13469' into 'master'
...
Handle nil commits in Gitlab::PushDataBuilder.build
Closes #13469
See merge request !2825
2016-02-17 14:19:20 +00:00
Jacob Vosmaer
a0ccb0731b
Merge branch 'master' of https://gitlab.com/gitlab-org/gitlab-ce into git-archive-refactor
2016-02-17 11:30:42 +01:00
Douwe Maan
bbbfdba0b9
Merge branch 'bugagazavr/gitlab-ce-extend-hooks' into 'master'
...
Add new data to project in push, issue, merge-request and note webhooks data
_Originally opened at !2738 by @bugagazavr._
- - -
**What does this MR do?**
Adds more data to hooks, makes repository data in all hook more dry ( use one hook_attrs method for repository data in all hooks )
**Are there points in the code the reviewer needs to double check?**
1. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/app/models/project.rb#L738
2. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/app/models/concerns/issuable.rb#L132
3. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/lib/gitlab/push_data_builder.rb#L52
4. https://gitlab.com/bugagazavr/gitlab-ce/blob/extend-hooks/lib/gitlab/note_data_builder.rb#L56
**Why was this MR needed?**
More information about user for push events, and more data about repositiry ( project )
**What are the relevant issue numbers?**
No
**Screenshots (if relevant)**
No
See merge request !2788
2016-02-16 13:08:36 +00:00
Robert Speicher
789aef7f26
Handle nil commits in Gitlab::PushDataBuilder.build
...
Closes #13469
2016-02-15 16:06:45 -05:00
Robert Speicher
447568d15f
Fix undefined method postgresql? during migration
2016-02-15 14:13:47 -05:00
Ben Boeckel and Rémy Coutable
e919b5a4e9
Fix relative links in other markup formats
...
- Apply the RelativeLinkFilter filter to other formats, e.g.,
reStructuredText so links from the Files view or the Project view work
- Remove the AsciidocPipeline pipeline
Fixes #3533 .
2016-02-12 17:20:59 +01:00
Kirill Zaitsev and Rémy Coutable
b123171d3d
Add new data to project in push, issue, merge-request and note webhooks data
...
- Add `avatar_url`, `description`, `git_ssh_url`, `git_http_url`,
`path_with_namespace` and `default_branch` in `project` in push, issue,
merge-request and note webhooks data
- Deprecate the `ssh_url` in favor of `git_ssh_url` and `http_url` in
favor of `git_http_url` in `project` for push, issue, merge-request and
note webhooks data
- Deprecate the `repository` key in push, issue, merge-request and
note webhooks data, use `project` instead
2016-02-11 17:22:11 +01:00
Dmitriy Zaporozhets
dfe12649f6
Merge remote-tracking branch 'origin/rs-database-info'
2016-02-04 16:42:22 +01:00
Robert Speicher
4105f292e1
Display database type and version in Administration dashboard
...
Closes #12900
2016-02-02 17:59:09 -05:00
Stan Hu and Douglas Barbosa Alexandre
d20e75a8d8
Support Akismet spam checking for creation of issues via API
...
Currently any spam detected by Akismet by non-members via API will be logged
in a separate table in the admin page.
Closes #5612
2016-02-02 11:25:44 -02:00
Jacob Vosmaer
771f14b96e
First version of "git archive" headers
2016-02-02 14:09:55 +01:00
Jacob Vosmaer
72bd004b31
Allow "@" in file names and path
2016-02-01 16:20:49 +01:00
Douwe Maan
fa0cbb1399
Fix specs and add a new one
2016-01-30 12:53:12 +01:00
Douwe Maan
677b4db9e6
Mark inline difference between old and new paths when a file is renamed
2016-01-29 19:37:17 +01:00
Douwe Maan
b636f83e59
Move blame group logic to dedicated class
2016-01-28 14:49:21 +01:00
Blake Hitchcock
4be65c3231
Update ExternalIssue regex for JIRA integration
...
The pattern in the `::reference_pattern` class method in the
ExternalIssue model does not match all valid forms of JIRA project
names. I have updated the regex to match JIRA project names with numbers
and underscores. More information on valid JIRA project names can be
found here:
https://confluence.atlassian.com/jira/changing-the-project-key-format-192534.html
* The first character must be a letter,
* All letters used in the project key must be from the Modern Roman Alphabet and upper case, and
* Only letters, numbers or the underscore character can be used.
2016-01-26 15:55:40 -05:00
Yorick Peterse
b74308c0a7
Correct arity for instrumented methods w/o args
...
This ensures that an instrumented method that doesn't take arguments
reports an arity of 0, instead of -1.
If Ruby had a proper method for finding out the required arguments of a
method (e.g. Method#required_arguments) this would not have been an
issue. Sadly the only two methods we have are Method#parameters and
Method#arity, and both are equally painful to use.
Fixes gitlab-org/gitlab-ce#12450
2016-01-25 21:28:59 +01:00
Robert Speicher
3f5e6c6cf6
Merge branch 'ci/recursive-artifacts-entries' into 'master'
...
Add method to calculate total size of artifacts in subpath
See merge request !2500
2016-01-21 23:23:02 +00:00
Robert Speicher
3e7092a83a
Merge branch 'fix-github-pull-requests-import' into 'master'
...
Fix cross projects detection when importing GitHub pull requests
Fixes #12456
See merge request !2523
2016-01-20 22:11:20 +00:00
Douglas Barbosa Alexandre
f4bdbecfd5
Fix cross projects detection when importing GitHub pull requests
2016-01-20 19:36:35 -02:00
Kamil Trzcinski
9b0f57781e
Add method that calculates total size for artifacts subfolder
2016-01-20 21:55:13 +01:00
Douwe Maan
7d347ae564
Merge branch 'master' into issue_3945
2016-01-20 20:04:15 +01:00
Douwe Maan
26f7d023e6
Update tests
2016-01-20 17:14:26 +01:00
Douwe Maan
b4faa59728
Merge branch 'issue_3749' into 'master'
...
Update Issues/MRs updated_at field when notes are generated
Closes #3749 and #9130
See merge request !2493
2016-01-20 15:06:49 +00:00
Douwe Maan
a010db5db2
Properly handle HTML entities with inline diffs
2016-01-20 15:26:44 +01:00
Douwe Maan
c23ca0b0b5
Merge branch 'master' into issue_3945
2016-01-20 14:53:41 +01:00
Douwe Maan
701513dcc7
Move parallel diff logic to separate class
2016-01-20 14:53:20 +01:00