James Lopez
cc4d04f97f
added rest of importers, fixed specs and some issues with the migration
2016-03-23 17:57:10 +01:00
James Lopez
8aafe68583
first round of fixes and spec fixes
2016-03-22 17:53:53 +01:00
James Lopez
e937f312cd
Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/project-import_url
...
# Conflicts:
# db/schema.rb
2016-03-21 18:41:16 +01:00
James Lopez
dff4050f1d
fixed some rubocop warnings
2016-03-21 17:29:19 +01:00
James Lopez
030b139445
more refactoring
2016-03-21 15:11:05 +01:00
James Lopez
5f86912ef0
Merge branches 'fix/project-import_url' and 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/project-import_url
...
# Conflicts:
# db/schema.rb
2016-03-21 09:20:55 +01:00
Grzegorz Bizon
6eb3105634
Find referable for each ref found in references rewriter
2016-03-20 10:52:01 +01:00
Grzegorz Bizon
323d328c86
Rename reference unfolder to rewriter, minor refactorings
2016-03-20 10:14:25 +01:00
Grzegorz Bizon
18f25bc942
Update reference unfolder according to recent ability changes
...
Commit 43d8bdb4f0 introduced additional
checks for permissions to read issue in references extractor.
2016-03-19 18:58:52 +01:00
Grzegorz Bizon
0115ad66d2
Merge branch 'master' into feature/issue-move
...
* master: (121 commits)
Dedupe labels in labels selector in Dashboard pages
Refactor colors and lists
Add a safeguard in MergeRequest#compute_diverged_commits_count
Fix an issue when the target branch of a MR had been deleted
Add avatar to issue and MR pages header
Cleanup somce css colors
Re-group scss variables
Refactor `Todo#target`
Fixes issue with filter label missing on labels & milestones
Rename `Todo#to_reference` to `Todo#target_reference`
Fixed failing tests
Updated controller with before_action Fixed other issues based on feedback
Fixes issue on dashboard issues
Full labels data in JSON
Fixed issue with labels dropdown getting wrong labels
Update CHANGELOG
Use `Note#for_project_snippet?` to skip notes on project snippet
Use `Commit#short_id` instead of `Commit.truncate_sha`
Reuse `for_commit?` on conditional validations
Update schema info comment on todo related files
...
Conflicts:
app/models/issue.rb
db/schema.rb
spec/models/issue_spec.rb
2016-03-19 18:50:15 +01:00
Grzegorz Bizon
9b13ce0b7a
Improvements in issue move feaure (refactoring)
...
According to endbosses' suggestions.
2016-03-19 18:46:01 +01:00
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
Grzegorz Bizon
4354bfaba5
Add implementation of reference unfolder using banzai
2016-03-17 07:39:16 +01:00
Grzegorz Bizon
fd8394faae
Move reference unfolder for GFM to separate class
2016-03-17 07:39:15 +01: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
James Lopez
735563329d
refactored a bunch of stuff based on MR feedback
2016-03-07 12:50:35 +01:00
James Lopez
7085850c50
fix specs
2016-03-04 18:37:00 +01:00
James Lopez
06b36c00d5
some refactoring in the migration. Also fixed github import issue and updated spec
2016-03-04 12:21:53 +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