New DB indexes, update Rails.
parent
308df42953
commit
06174e00c7
|
@ -156,7 +156,7 @@ GEM
|
|||
signet (~> 0.7)
|
||||
hashdiff (0.3.7)
|
||||
httpclient (2.8.3)
|
||||
i18n (1.0.0)
|
||||
i18n (1.0.1)
|
||||
concurrent-ruby (~> 1.0)
|
||||
json (2.1.0)
|
||||
jsonapi-renderer (0.2.0)
|
||||
|
@ -191,7 +191,7 @@ GEM
|
|||
multipart-post (2.0.0)
|
||||
mutations (0.8.1)
|
||||
activesupport
|
||||
nio4r (2.3.0)
|
||||
nio4r (2.3.1)
|
||||
nokogiri (1.8.2)
|
||||
mini_portile2 (~> 2.3.0)
|
||||
orm_adapter (0.5.0)
|
||||
|
@ -211,7 +211,7 @@ GEM
|
|||
pry-rails (0.3.6)
|
||||
pry (>= 0.10.4)
|
||||
public_suffix (3.0.2)
|
||||
rack (2.0.4)
|
||||
rack (2.0.5)
|
||||
rack-attack (5.2.0)
|
||||
rack
|
||||
rack-cors (1.0.2)
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class AddMissingIndexesAgain < ActiveRecord::Migration[5.1]
|
||||
def change
|
||||
add_index :points, [:id, :pointer_type]
|
||||
end
|
||||
end
|
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20180508141310) do
|
||||
ActiveRecord::Schema.define(version: 20180518131709) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
@ -310,6 +310,7 @@ ActiveRecord::Schema.define(version: 20180508141310) do
|
|||
t.datetime "discarded_at"
|
||||
t.index ["device_id"], name: "index_points_on_device_id"
|
||||
t.index ["discarded_at"], name: "index_points_on_discarded_at"
|
||||
t.index ["id", "pointer_type"], name: "index_points_on_id_and_pointer_type"
|
||||
t.index ["meta"], name: "index_points_on_meta", using: :gin
|
||||
t.index ["tool_id"], name: "index_points_on_tool_id"
|
||||
end
|
||||
|
|
|
@ -62,7 +62,7 @@ describe Api::ImagesController do
|
|||
end
|
||||
|
||||
describe "#create" do
|
||||
it 'creates one image' do
|
||||
it 'creates one image', :slow do
|
||||
sign_in user
|
||||
before_count = Image.count
|
||||
post :create,
|
||||
|
|
|
@ -10,7 +10,7 @@ describe Api::TokensController do
|
|||
SessionToken.issue_to(user, fbos_version: Gem::Version.new("9.9.9"))
|
||||
end
|
||||
|
||||
it 'creates a new token' do
|
||||
it 'creates a new token', :slow do
|
||||
request.headers["Authorization"] = "bearer #{auth_token.encoded}"
|
||||
sleep 1 # To create unique IAT values.
|
||||
get :show
|
||||
|
|
|
@ -3,7 +3,7 @@ require 'spec_helper'
|
|||
describe Image do
|
||||
let(:device) { FactoryBot.create(:device) }
|
||||
|
||||
it 'adds URL attachments' do
|
||||
it 'adds URL attachments', :slow do
|
||||
image = Image.create(device: device)
|
||||
expect(image.attachment_processed_at).to be_nil
|
||||
expect(image.attachment.exists?).to be_falsy
|
||||
|
|
|
@ -6,7 +6,7 @@ describe Devices::Dump do
|
|||
MODEL_NAMES = Devices::Dump::RESOURCES.without(*SPECIAL).concat(ADDITIONAL)
|
||||
NOPE = "Expected value[%s] to equal %s. Got %s instead"
|
||||
|
||||
it "serializes _all_ the data" do
|
||||
it "serializes _all_ the data", :slow do
|
||||
device = FactoryBot.create(:device)
|
||||
resources = MODEL_NAMES
|
||||
.map { |x| x.to_s.singularize.to_sym }
|
||||
|
|
|
@ -92,7 +92,6 @@ RSpec.configure do |config|
|
|||
config.include Helpers
|
||||
config.infer_spec_type_from_file_location!
|
||||
config.order = "random"
|
||||
|
||||
if ENV["DOCS"]
|
||||
config.after(:each, type: :controller) do
|
||||
SmarfDoc.run!(NiceResponse.new(request), response)
|
||||
|
|
Loading…
Reference in New Issue