Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
f99b9cc3
Commit
f99b9cc3
authored
Dec 12, 2017
by
Jarka Kadlecová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflicts
parent
eefcffc3
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
3 additions
and
25 deletions
+3
-25
app/models/epic.rb
app/models/epic.rb
+0
-3
app/policies/group_policy.rb
app/policies/group_policy.rb
+0
-3
config/routes/group.rb
config/routes/group.rb
+0
-3
lib/banzai/filter/epic_reference_filter.rb
lib/banzai/filter/epic_reference_filter.rb
+0
-3
lib/banzai/filter/upload_link_filter.rb
lib/banzai/filter/upload_link_filter.rb
+0
-4
lib/banzai/reference_parser/epic_parser.rb
lib/banzai/reference_parser/epic_parser.rb
+0
-3
spec/helpers/boards_helper_spec.rb
spec/helpers/boards_helper_spec.rb
+3
-3
spec/lib/banzai/filter/upload_link_filter_spec.rb
spec/lib/banzai/filter/upload_link_filter_spec.rb
+0
-3
No files found.
app/models/epic.rb
View file @
f99b9cc3
# Placeholder class for model that is implemented in EE
# It reserves '&' as a reference prefix, but the table does not exists in CE
class
Epic
<
ActiveRecord
::
Base
<<<<<<<
HEAD
prepend
EE
::
Epic
=======
>>>>>>>
upstream
/
master
def
self
.
reference_prefix
'&'
end
...
...
app/policies/group_policy.rb
View file @
f99b9cc3
...
...
@@ -39,10 +39,7 @@ class GroupPolicy < BasePolicy
rule
{
guest
}.
policy
do
enable
:read_group
<<<<<<<
HEAD
enable
:read_list
=======
>>>>>>>
upstream
/
master
enable
:upload_file
end
...
...
config/routes/group.rb
View file @
f99b9cc3
...
...
@@ -57,7 +57,6 @@ constraints(GroupUrlConstrainer.new) do
get
":secret/:filename"
,
action: :show
,
as: :show
,
constraints:
{
filename:
/[^\/]+/
}
end
end
<<<<<<<
HEAD
## EE-specific
resource
:analytics
,
only:
[
:show
]
...
...
@@ -97,8 +96,6 @@ constraints(GroupUrlConstrainer.new) do
end
get
'boards(/*extra_params)'
,
as: :legacy_ee_group_boards_redirect
,
to:
legacy_ee_group_boards_redirect
## EE-specific
=======
>>>>>>>
upstream
/
master
end
scope
(
path:
'*id'
,
...
...
lib/banzai/filter/epic_reference_filter.rb
View file @
f99b9cc3
...
...
@@ -2,11 +2,8 @@ module Banzai
module
Filter
# The actual filter is implemented in the EE mixin
class
EpicReferenceFilter
<
IssuableReferenceFilter
<<<<<<<
HEAD
prepend
EE
::
Banzai
::
Filter
::
EpicReferenceFilter
=======
>>>>>>>
upstream
/
master
self
.
reference_type
=
:epic
def
self
.
object_class
...
...
lib/banzai/filter/upload_link_filter.rb
View file @
f99b9cc3
...
...
@@ -28,15 +28,11 @@ module Banzai
end
def
build_url
(
uri
)
<<<<<<<
HEAD
base_path
=
if
Gitlab
::
Geo
.
secondary?
Gitlab
::
Geo
.
primary_node
.
url
else
Gitlab
.
config
.
gitlab
.
url
end
=======
base_path
=
Gitlab
.
config
.
gitlab
.
url
>>>>>>>
upstream
/
master
if
group
urls
=
Gitlab
::
Routing
.
url_helpers
...
...
lib/banzai/reference_parser/epic_parser.rb
View file @
f99b9cc3
...
...
@@ -2,11 +2,8 @@ module Banzai
module
ReferenceParser
# The actual parser is implemented in the EE mixin
class
EpicParser
<
IssuableParser
<<<<<<<
HEAD
prepend
EE
::
Banzai
::
ReferenceParser
::
EpicParser
=======
>>>>>>>
upstream
/
master
self
.
reference_type
=
:epic
def
records_for_nodes
(
_nodes
)
...
...
spec/helpers/boards_helper_spec.rb
View file @
f99b9cc3
require
'spec_helper'
describe
BoardsHelper
do
<<<<<<<
HEAD
describe
'#build_issue_link_base'
do
it
'returns correct path for project board'
do
@project
=
create
(
:project
)
...
...
@@ -25,7 +24,9 @@ describe BoardsHelper do
expect
(
build_issue_link_base
).
to
eq
(
'/base/sub/:project_path/issues'
)
end
=======
end
end
describe
'#board_data'
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
...
...
@@ -41,7 +42,6 @@ describe BoardsHelper do
it
'returns a board_lists_path as lists_endpoint'
do
expect
(
helper
.
board_data
[
:lists_endpoint
]).
to
eq
(
board_lists_path
(
board
))
>>>>>>>
upstream
/
master
end
end
end
spec/lib/banzai/filter/upload_link_filter_spec.rb
View file @
f99b9cc3
...
...
@@ -163,8 +163,6 @@ describe Banzai::Filter::UploadLinkFilter do
end
end
<<<<<<<
HEAD
=======
context
'in group context'
do
let
(
:upload_link
)
{
link
(
'/uploads/e90decf88d8f96fe9e1389afc2e4a91f/test.jpg'
)
}
let
(
:group
)
{
create
(
:group
)
}
...
...
@@ -193,7 +191,6 @@ describe Banzai::Filter::UploadLinkFilter do
end
end
>>>>>>>
upstream
/
master
context
'when project or group context does not exist'
do
let
(
:upload_link
)
{
link
(
'/uploads/e90decf88d8f96fe9e1389afc2e4a91f/test.jpg'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment