Douwe Maan
ae7b2ef62c
Merge branch 'master' into issue_12658
...
# Conflicts:
# app/models/issue.rb
# app/views/projects/_home_panel.html.haml
# app/views/shared/projects/_project.html.haml
# db/schema.rb
# spec/models/project_spec.rb
2016-03-21 23:22:21 +01:00
Grzegorz Bizon
db8f70d508
Do not rewrite reference if already a cross reference
2016-03-21 14:12:49 +01:00
Douwe Maan
45e8650c4f
Fix specs
2016-03-20 23:26:58 +01:00
Douwe Maan
8db1292139
Tweaks, refactoring, and specs
2016-03-20 21:04:07 +01:00
Douwe Maan
2eb19ea3ea
Merge branch 'master' into issue_12658
2016-03-20 14:57:25 +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
Zeger-Jan van de Weg
b959ae553b
Improve group visibility level feature
2016-03-18 16:58:04 -03: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
Felipe Artur
0a7f716119
Code fixes
2016-03-17 19:42:46 -03:00
Grzegorz Bizon
5e3c9475a9
Add minor improvements in code related to issue move
2016-03-17 07:39:16 +01: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
Gabriel Mazetto
f54bf00309
Back-porting PostReceive refactor made for EE 🍺
2016-03-17 00:24:12 -03:00
Felipe Artur
44c127447b
Merge 4009-external-users into issue_12658
2016-03-16 20:16:42 -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
380a67ad4c
Ensure PATH_INFO exists for go-get
2016-03-12 08:10:54 -08:00
Stan Hu
bb206f947f
Simplify code
2016-03-12 07:50:02 -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
Stan Hu
cc065fbeaa
Support Golang subpackage fetching
...
Closes #13805
2016-03-12 01:09:37 -08:00
Douwe Maan
cb81c8a5ef
Merge branch 'rs-issue-12944' into 'master'
...
Use a custom Devise failure app to handle unauthenticated .zip requests
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/12944
See merge request !2828
2016-03-11 22:34:33 +00:00
Yorick Peterse
b77b3b16b6
Removed order from sub-query projects for search
...
There's no need to order queries used as sub-queries and doing so can
add potential overhead.
2016-03-11 15:25:23 -05:00
Yorick Peterse
8c2868e8ea
Added ProjectSearchResults#project_ids_relation
...
This ensures some other methods such as the "issues" method still work.
2016-03-11 15:25:23 -05:00
Yorick Peterse
ec349dc1b6
Refactor Gitlab::ProjectSearchResults
...
Previously this class would be given a project ID which was then used to
retrieve the corresponding Project object. However, in all cases the
Project object was already known as it was used to grab the ID to pass
to ProjectSearchResults. By just passing a Project instead we remove the
need for an extra query as well as the need for some other complexity
in this class.
2016-03-11 15:25:22 -05:00
Yorick Peterse
42fde69d39
Refactor Gitlab::SnippetSearchResults
...
This removes the need for plucking snippet IDs into memory.
2016-03-11 15:25:22 -05:00
Yorick Peterse
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
ashleys
4cd9a5208c
web hooks to webhooks
2016-03-10 14:48:29 -05:00
Jacob Vosmaer
7b2bf4ce75
Typo
2016-03-10 18:41:57 +01:00
Jacob Vosmaer
261214efc2
Make comment less ambivalent
2016-03-10 18:39:50 +01:00
Jacob Vosmaer
3729c0822a
Remove unnecessary random key
2016-03-10 17:05:36 +01:00
Felipe Artur
c3e70280df
Prevent projects to have higher visibility than groups
...
Prevent Groups to have smaller visibility than projects
Add default_group_visibility_level to configuration
Code improvements
2016-03-10 10:38:36 -03:00
Jacob Vosmaer
66d5d9229d
Improve comment
2016-03-10 12:58:51 +01:00
Jacob Vosmaer
e7df3f51c9
Move method to User
2016-03-10 12:37:14 +01:00
Jacob Vosmaer
0223b58f01
Explain LDAP "lock" behavior
2016-03-10 11:05:59 +01:00
Jacob Vosmaer
cda0b7e1b1
Rename ExpiringLock to ExclusiveLease
2016-03-10 10:41:16 +01:00
Jacob Vosmaer
acd9bc0213
Acquire lock before LDAP sync
2016-03-09 19:11:24 +01:00
Jacob Vosmaer
a12319c111
Always with the newlines
2016-03-09 15:56:44 +01:00
Jacob Vosmaer
c46e6eff10
Parse config/resque.yml in one place only
2016-03-09 15:16:46 +01:00
Robert Speicher
5844a21a0a
Use a custom Devise failure app to handle unauthenticated .zip requests
...
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/12944
2016-03-08 23:49:30 -05:00
Iuri de Silvio
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