Commit 42bbe8a4 authored by Dylan Griffith's avatar Dylan Griffith

Resolve conflicts in app/models/group.rb db/schema.rb lib/api/entities.rb...

Resolve conflicts in app/models/group.rb db/schema.rb lib/api/entities.rb spec/serializers/pipeline_serializer_spec.rb
parent ae41ebd7
...@@ -53,12 +53,10 @@ class Group < Namespace ...@@ -53,12 +53,10 @@ class Group < Namespace
validates :two_factor_grace_period, presence: true, numericality: { greater_than_or_equal_to: 0 } validates :two_factor_grace_period, presence: true, numericality: { greater_than_or_equal_to: 0 }
<<<<<<< HEAD
validates :repository_size_limit, validates :repository_size_limit,
numericality: { only_integer: true, greater_than_or_equal_to: 0, allow_nil: true } numericality: { only_integer: true, greater_than_or_equal_to: 0, allow_nil: true }
=======
add_authentication_token_field :runners_token add_authentication_token_field :runners_token
>>>>>>> upstream/master
after_create :post_create_hook after_create :post_create_hook
after_destroy :post_destroy_hook after_destroy :post_destroy_hook
......
...@@ -11,11 +11,7 @@ ...@@ -11,11 +11,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
<<<<<<< HEAD
ActiveRecord::Schema.define(version: 20180502125859) do
=======
ActiveRecord::Schema.define(version: 20180503150427) do ActiveRecord::Schema.define(version: 20180503150427) do
>>>>>>> upstream/master
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
...@@ -1700,12 +1696,9 @@ ActiveRecord::Schema.define(version: 20180503150427) do ...@@ -1700,12 +1696,9 @@ ActiveRecord::Schema.define(version: 20180503150427) do
t.boolean "require_two_factor_authentication", default: false, null: false t.boolean "require_two_factor_authentication", default: false, null: false
t.integer "two_factor_grace_period", default: 48, null: false t.integer "two_factor_grace_period", default: 48, null: false
t.integer "cached_markdown_version" t.integer "cached_markdown_version"
<<<<<<< HEAD
t.integer "plan_id" t.integer "plan_id"
t.integer "project_creation_level" t.integer "project_creation_level"
=======
t.string "runners_token" t.string "runners_token"
>>>>>>> upstream/master
end end
add_index "namespaces", ["created_at"], name: "index_namespaces_on_created_at", using: :btree add_index "namespaces", ["created_at"], name: "index_namespaces_on_created_at", using: :btree
......
...@@ -242,11 +242,6 @@ module API ...@@ -242,11 +242,6 @@ module API
expose :requested_at expose :requested_at
end end
<<<<<<< HEAD
class Group < Grape::Entity
expose :id, :name, :path, :description, :visibility
=======
class BasicGroupDetails < Grape::Entity class BasicGroupDetails < Grape::Entity
expose :id expose :id
expose :web_url expose :web_url
...@@ -255,7 +250,6 @@ module API ...@@ -255,7 +250,6 @@ module API
class Group < BasicGroupDetails class Group < BasicGroupDetails
expose :path, :description, :visibility expose :path, :description, :visibility
>>>>>>> upstream/master
expose :lfs_enabled?, as: :lfs_enabled expose :lfs_enabled?, as: :lfs_enabled
expose :avatar_url do |group, options| expose :avatar_url do |group, options|
group.avatar_url(only_path: false) group.avatar_url(only_path: false)
......
...@@ -118,11 +118,7 @@ describe PipelineSerializer do ...@@ -118,11 +118,7 @@ describe PipelineSerializer do
it 'verifies number of queries', :request_store do it 'verifies number of queries', :request_store do
recorded = ActiveRecord::QueryRecorder.new { subject } recorded = ActiveRecord::QueryRecorder.new { subject }
<<<<<<< HEAD expect(recorded.count).to be_within(1).of(48)
expect(recorded.count).to be_within(2).of(40)
=======
expect(recorded.count).to be_within(1).of(44)
>>>>>>> upstream/master
expect(recorded.cached_count).to eq(0) expect(recorded.cached_count).to eq(0)
end end
end end
......
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