Commit 937fe659 authored by Alejandro Rodríguez's avatar Alejandro Rodríguez

Fix merge conflicts on CE Upstream merge

parent 9ff500d3
...@@ -325,11 +325,7 @@ trigger_docs: ...@@ -325,11 +325,7 @@ trigger_docs:
cache: {} cache: {}
artifacts: {} artifacts: {}
script: script:
<<<<<<< HEAD
- "curl -X POST -F token=${DOCS_TRIGGER_TOKEN} -F ref=master -F variables[PROJECT]=ee https://gitlab.com/api/v3/projects/1794617/trigger/builds" - "curl -X POST -F token=${DOCS_TRIGGER_TOKEN} -F ref=master -F variables[PROJECT]=ee https://gitlab.com/api/v3/projects/1794617/trigger/builds"
=======
- "curl -X POST -F token=${DOCS_TRIGGER_TOKEN} -F ref=master -F variables[PROJECT]=ce https://gitlab.com/api/v3/projects/1794617/trigger/builds"
>>>>>>> ce/master
only: only:
- master@gitlab-org/gitlab-ee - master@gitlab-org/gitlab-ee
......
...@@ -133,20 +133,16 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController ...@@ -133,20 +133,16 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
:elasticsearch_port, :elasticsearch_port,
:usage_ping_enabled, :usage_ping_enabled,
:enabled_git_access_protocol, :enabled_git_access_protocol,
<<<<<<< HEAD
:repository_size_limit, :repository_size_limit,
=======
:housekeeping_enabled, :housekeeping_enabled,
:housekeeping_bitmaps_enabled, :housekeeping_bitmaps_enabled,
:housekeeping_incremental_repack_period, :housekeeping_incremental_repack_period,
:housekeeping_full_repack_period, :housekeeping_full_repack_period,
:housekeeping_gc_period, :housekeeping_gc_period,
repository_storages: [], repository_storages: [],
>>>>>>> ce/master
restricted_visibility_levels: [], restricted_visibility_levels: [],
import_sources: [], import_sources: [],
disabled_oauth_sign_in_sources: [], disabled_oauth_sign_in_sources: []
repository_storages: []
) )
end end
end end
<<<<<<< HEAD
= render 'projects/commits/commit', project: commit.project, commit: commit, ref: nil = render 'projects/commits/commit', project: commit.project, commit: commit, ref: nil
=======
= render 'projects/commits/commit', project: @project, commit: commit, ref: nil
>>>>>>> ce/master
...@@ -14,45 +14,6 @@ end ...@@ -14,45 +14,6 @@ end
resources :groups, only: [:index, :new, :create] resources :groups, only: [:index, :new, :create]
<<<<<<< HEAD
scope module: :groups do
## EE-specific
resource :analytics, only: [:show]
resource :ldap, only: [] do
member do
put :sync
end
end
resources :ldap_group_links, only: [:index, :create, :destroy]
## EE-specific
resources :group_members, only: [:index, :create, :update, :destroy], concerns: :access_requestable do
post :resend_invite, on: :member
delete :leave, on: :collection
end
resource :avatar, only: [:destroy]
resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create]
resources :labels, except: [:show], constraints: { id: /\d+/ }
## EE-specific
resource :notification_setting, only: [:update]
resources :audit_events, only: [:index]
## EE-specific
end
## EE-specific
resources :hooks, only: [:index, :create, :destroy], constraints: { id: /\d+/ }, module: :groups do
member do
get :test
end
end
## EE-specific
end
get 'groups/:id' => 'groups#show', as: :group_canonical
=======
scope(path: 'groups/:id', controller: :groups) do scope(path: 'groups/:id', controller: :groups) do
get :edit, as: :edit_group get :edit, as: :edit_group
get :issues, as: :issues_group get :issues, as: :issues_group
...@@ -62,6 +23,17 @@ scope(path: 'groups/:id', controller: :groups) do ...@@ -62,6 +23,17 @@ scope(path: 'groups/:id', controller: :groups) do
end end
scope(path: 'groups/:group_id', module: :groups, as: :group) do scope(path: 'groups/:group_id', module: :groups, as: :group) do
## EE-specific
resource :analytics, only: [:show]
resource :ldap, only: [] do
member do
put :sync
end
end
resources :ldap_group_links, only: [:index, :create, :destroy]
## EE-specific
resources :group_members, only: [:index, :create, :update, :destroy], concerns: :access_requestable do resources :group_members, only: [:index, :create, :update, :destroy], concerns: :access_requestable do
post :resend_invite, on: :member post :resend_invite, on: :member
delete :leave, on: :collection delete :leave, on: :collection
...@@ -70,8 +42,20 @@ scope(path: 'groups/:group_id', module: :groups, as: :group) do ...@@ -70,8 +42,20 @@ scope(path: 'groups/:group_id', module: :groups, as: :group) do
resource :avatar, only: [:destroy] resource :avatar, only: [:destroy]
resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create] resources :milestones, constraints: { id: /[^\/]+/ }, only: [:index, :show, :update, :new, :create]
resources :labels, except: [:show], constraints: { id: /\d+/ } resources :labels, except: [:show], constraints: { id: /\d+/ }
>>>>>>> ce/master
## EE-specific
resource :notification_setting, only: [:update]
resources :audit_events, only: [:index]
## EE-specific
end
## EE-specific
resources :hooks, only: [:index, :create, :destroy], constraints: { id: /\d+/ }, module: :groups do
member do
get :test
end
end end
## EE-specific
# Must be last route in this file # Must be last route in this file
get 'groups/:id' => 'groups#show', as: :group_canonical get 'groups/:id' => 'groups#show', as: :group_canonical
...@@ -338,16 +338,14 @@ resources :namespaces, path: '/', constraints: { id: /[a-zA-Z.0-9_\-]+/ }, only: ...@@ -338,16 +338,14 @@ resources :namespaces, path: '/', constraints: { id: /[a-zA-Z.0-9_\-]+/ }, only:
end end
end end
<<<<<<< HEAD
## EE-specific ## EE-specific
resources :audit_events, only: [:index] resources :audit_events, only: [:index]
## EE-specific ## EE-specific
=======
# Since both wiki and repository routing contains wildcard characters # Since both wiki and repository routing contains wildcard characters
# its preferable to keep it below all other project routes # its preferable to keep it below all other project routes
draw :wiki draw :wiki
draw :repository draw :repository
>>>>>>> ce/master
end end
end end
end end
require 'spec_helper' require 'spec_helper'
<<<<<<< HEAD
feature 'Global elastic search', feature: true do
=======
feature 'Global search', feature: true do feature 'Global search', feature: true do
>>>>>>> ce/master
let(:user) { create(:user) } let(:user) { create(:user) }
let(:project) { create(:project, namespace: user.namespace) } let(:project) { create(:project, namespace: user.namespace) }
before do before do
<<<<<<< HEAD
stub_application_setting(elasticsearch_search: true, elasticsearch_indexing: true) stub_application_setting(elasticsearch_search: true, elasticsearch_indexing: true)
Gitlab::Elastic::Helper.create_empty_index Gitlab::Elastic::Helper.create_empty_index
=======
>>>>>>> ce/master
project.team << [user, :master] project.team << [user, :master]
login_with(user) login_with(user)
end end
<<<<<<< HEAD
after do after do
Gitlab::Elastic::Helper.delete_index Gitlab::Elastic::Helper.delete_index
stub_application_setting(elasticsearch_search: false, elasticsearch_indexing: false) stub_application_setting(elasticsearch_search: false, elasticsearch_indexing: false)
...@@ -30,12 +22,6 @@ feature 'Global search', feature: true do ...@@ -30,12 +22,6 @@ feature 'Global search', feature: true do
create_list(:issue, 21, project: project, title: 'initial') create_list(:issue, 21, project: project, title: 'initial')
Gitlab::Elastic::Helper.refresh_index Gitlab::Elastic::Helper.refresh_index
=======
describe 'I search through the issues and I see pagination' do
before do
allow_any_instance_of(Gitlab::SearchResults).to receive(:per_page).and_return(1)
create_list(:issue, 2, project: project, title: 'initial')
>>>>>>> ce/master
end end
it "has a pagination" do it "has a pagination" do
...@@ -48,7 +34,6 @@ feature 'Global search', feature: true do ...@@ -48,7 +34,6 @@ feature 'Global search', feature: true do
expect(page).to have_selector('.gl-pagination .page', count: 2) expect(page).to have_selector('.gl-pagination .page', count: 2)
end end
end end
<<<<<<< HEAD
describe 'I search through the blobs' do describe 'I search through the blobs' do
before do before do
...@@ -86,6 +71,4 @@ feature 'Global search', feature: true do ...@@ -86,6 +71,4 @@ feature 'Global search', feature: true do
expect(page).to have_selector('.commit-row-description') expect(page).to have_selector('.commit-row-description')
end end
end end
=======
>>>>>>> ce/master
end end
...@@ -296,7 +296,6 @@ describe Project, models: true do ...@@ -296,7 +296,6 @@ describe Project, models: true do
end end
end end
<<<<<<< HEAD
describe "#kerberos_url_to_repo" do describe "#kerberos_url_to_repo" do
let(:project) { create(:empty_project, path: "somewhere") } let(:project) { create(:empty_project, path: "somewhere") }
...@@ -305,10 +304,7 @@ describe Project, models: true do ...@@ -305,10 +304,7 @@ describe Project, models: true do
end end
end end
xdescribe "#new_issue_address" do
=======
describe "#new_issue_address" do describe "#new_issue_address" do
>>>>>>> ce/master
let(:project) { create(:empty_project, path: "somewhere") } let(:project) { create(:empty_project, path: "somewhere") }
let(:user) { create(:user) } let(:user) { create(:user) }
......
...@@ -29,11 +29,7 @@ RSpec.configure do |config| ...@@ -29,11 +29,7 @@ RSpec.configure do |config|
config.include Devise::Test::ControllerHelpers, type: :controller config.include Devise::Test::ControllerHelpers, type: :controller
config.include Warden::Test::Helpers, type: :request config.include Warden::Test::Helpers, type: :request
config.include LoginHelpers, type: :feature config.include LoginHelpers, type: :feature
<<<<<<< HEAD
config.include SearchHelpers, type: :feature
=======
config.include SearchHelpers, type: :feature config.include SearchHelpers, type: :feature
>>>>>>> ce/master
config.include StubConfiguration config.include StubConfiguration
config.include EmailHelpers config.include EmailHelpers
config.include TestEnv config.include TestEnv
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment