apidae 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33abbdbe85b4e375a90d5e003724039d802e8c9e817865ab3607a44fca342897
4
- data.tar.gz: d2596dfedc91f0306eeef4360c98066cbcebbc2da3587f1c4041a63843ab1948
3
+ metadata.gz: 0f7955611d92ce6a8114bf59cffe2f7a4cd4e9b39c7ce2529bf891d3fc08c2ad
4
+ data.tar.gz: 0abe8291d4f85db730f5942e3fd3504a2f649594ee56232604b9ff4ee59cd43f
5
5
  SHA512:
6
- metadata.gz: 3d14fa60b837515f4b0596d49c38d1aa2f5e5136b4a6d5c918bfdad16a56b35c3cfe2c2edf79e2a54876abadd717190aa6b6dfa90dbc2fd14044739c99c5f79c
7
- data.tar.gz: 4cd4ccbfc4132dc763b19b3518117b905b254c34824b501e35a805c75d58ac976a544f7515e9285ed80c0768b1acfca6cd53d9b2242dd971127e45fed5ad02c4
6
+ metadata.gz: 5c5ae0d93814c8d2245736db124dd635c6ba44963bc18592c6edae81e8f1609fe30dcc37408f80c53e1eadcccae04ca684fb73d537e0996e4aa88874b2870d61
7
+ data.tar.gz: 4105a6f1f1de41ff52b873ba735633055995a220653b4a209325fd8e17fb8e56a946c1f06add44af7ed3efe0f5ac9a128b2d9aa0eb3b249628771e88972365e0
@@ -346,8 +346,14 @@ module Apidae
346
346
 
347
347
  def self.parse_entity_fields(information_hash, type_data_hash, sp_hash)
348
348
  entity_hash = {}
349
- if information_hash && information_hash[:structureGestion]
350
- entity_hash.merge!({entity_id: information_hash[:structureGestion][:id], service_provider_id: node_id(type_data_hash, :prestataireActivites)})
349
+ if information_hash
350
+ if information_hash[:structureGestion]
351
+ entity_hash.merge!({entity_id: information_hash[:structureGestion][:id], service_provider_id: node_id(type_data_hash, :prestataireActivites)})
352
+ end
353
+
354
+ if information_hash[:informationsLegales]
355
+ entity_hash.merge!({legal: information_hash[:informationsLegales]})
356
+ end
351
357
  end
352
358
  if sp_hash && sp_hash[:prestataireActivites]
353
359
  entity_hash[:is_service_provider] = true
@@ -31,7 +31,6 @@ module Apidae
31
31
  logger.info "Completed #{Town.count} towns update"
32
32
  end
33
33
  ordered_files(zfile).each do |file|
34
- puts "processing #{file.name}"
35
34
  if file.file? && file.name.end_with?('.json')
36
35
  logger.info "Processing file : #{file.name}"
37
36
  if file.name.include?(MODIFIED_DIR)
@@ -45,6 +44,7 @@ module Apidae
45
44
  end
46
45
  end
47
46
  end
47
+ project.cleanup_selections
48
48
  create(result.except(:selections)
49
49
  .merge({remote_file: (zip_file.is_a?(File) ? zip_file.path : zip_file), status: STATUS_COMPLETE, apidae_id: project_id}))
50
50
  logger.info "Import results : #{result}"
@@ -170,7 +170,9 @@ module Apidae
170
170
  def self.add_or_update_selections(project, selections_json, result)
171
171
  selections_hashes = JSON.parse(selections_json, symbolize_names: true)
172
172
  deleted_ids = Selection.where(apidae_project_id: project.id).collect {|sel| sel.apidae_id}.uniq - selections_hashes.collect {|sel| sel[:id]}
173
- Selection.where(apidae_id: deleted_ids).delete_all
173
+ apidae_selection_ids = Selection.where(apidae_id: deleted_ids).map {|s| s.id}
174
+ SelectionObject.where(apidae_selection_id: apidae_selection_ids).delete_all
175
+ Selection.where(id: apidae_selection_ids).delete_all
174
176
  selections_hashes.each do |selection_data|
175
177
  logger.info "Updating selection #{selection_data[:id]}"
176
178
  Selection.add_or_update(selection_data, project.id)
@@ -16,7 +16,7 @@ module Apidae
16
16
  store_accessor :attachments_data, :attachments
17
17
  store_accessor :type_data, :categories, :themes, :capacity, :classification, :labels, :chains, :area, :track,
18
18
  :tricky_sections, :products, :audience, :animals, :animals_desc, :extra, :duration, :certifications, :business
19
- store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id, :is_service_provider
19
+ store_accessor :entity_data, :entity_id, :entity_name, :service_provider_id, :is_service_provider, :legal
20
20
  store_accessor :contact_data, :telephone, :email, :website, :google, :facebook, :twitter, :yelp, :trip_advisor, :fax,
21
21
  :mobile_website, :shorty_url, :contacts
22
22
  store_accessor :location_data, :address, :place, :latitude, :longitude, :access, :territories, :environments, :altitude, :map_reference
@@ -20,5 +20,11 @@ module Apidae
20
20
  def versions=(values)
21
21
  self.versions_data = values.blank? ? nil : values.join('|')
22
22
  end
23
+
24
+ def cleanup_selections
25
+ apidae_selections.reload.each do |s|
26
+ s.cleanup
27
+ end
28
+ end
23
29
  end
24
30
  end
@@ -42,6 +42,20 @@ module Apidae
42
42
  SelectionObject.where(apidae_selection_id: apidae_sel.id, apidae_object_id: removed_ids).delete_all
43
43
  end
44
44
 
45
+ def cleanup
46
+ obsolete_count = apidae_selection_objects
47
+ .joins("LEFT JOIN apidae_objs ON apidae_objs.id = apidae_selection_objects.apidae_object_id")
48
+ .where("apidae_objs.id IS NULL")
49
+ .delete_all
50
+ logger.info "Cleaned up #{obsolete_count} obsolete selection-objects associations for selection #{apidae_id}"
51
+
52
+ dups = apidae_selection_objects.reload.group(:apidae_object_id)
53
+ .select("COUNT(id), apidae_object_id, ARRAY_AGG(id) AS so_ids")
54
+ .having("COUNT(id) > ?", 1).map {|so| so.so_ids}
55
+ dups_count = apidae_selection_objects.where(id: dups.map {|d| d.sort[1..-1]}.flatten).delete_all
56
+ logger.info "Cleaned up #{dups_count} duplicate selection-objects associations for selection #{apidae_id}"
57
+ end
58
+
45
59
  def results(where_clause, offset, size)
46
60
  objects.includes(:town).limit(size).offset(offset).where(where_clause)
47
61
  end
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "1.3.5"
2
+ VERSION = "1.3.6"
3
3
  end
File without changes
@@ -2,15 +2,15 @@
2
2
  # of editing this file, please use the migrations feature of Active Record to
3
3
  # incrementally modify your database, and then regenerate this schema definition.
4
4
  #
5
- # Note that this schema.rb definition is the authoritative source for your
6
- # database schema. If you need to create the application database on another
7
- # system, you should be using db:schema:load, not running all the migrations
8
- # from scratch. The latter is a flawed and unsustainable approach (the more migrations
9
- # you'll amass, the slower it'll run and the greater likelihood for issues).
5
+ # This file is the source Rails uses to define your schema when running `bin/rails
6
+ # db:schema:load`. When creating a new database, `bin/rails db:schema:load` tends to
7
+ # be faster and is potentially less error prone than running all of your
8
+ # migrations from scratch. Old migrations may fail to apply correctly if those
9
+ # migrations use external dependencies or application code.
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2020_05_22_124205) do
13
+ ActiveRecord::Schema.define(version: 2021_06_07_214647) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -92,8 +92,10 @@ ActiveRecord::Schema.define(version: 2020_05_22_124205) do
92
92
  t.datetime "created_at", null: false
93
93
  t.datetime "updated_at", null: false
94
94
  t.jsonb "meta_data"
95
+ t.boolean "is_active"
95
96
  t.index ["apidae_id"], name: "index_apidae_references_on_apidae_id"
96
97
  t.index ["apidae_type"], name: "index_apidae_references_on_apidae_type"
98
+ t.index ["is_active"], name: "index_apidae_references_on_is_active"
97
99
  end
98
100
 
99
101
  create_table "apidae_selection_objects", force: :cascade do |t|
@@ -112,6 +114,13 @@ ActiveRecord::Schema.define(version: 2020_05_22_124205) do
112
114
  t.integer "apidae_project_id"
113
115
  end
114
116
 
117
+ create_table "apidae_territories", force: :cascade do |t|
118
+ t.integer "apidae_id"
119
+ t.string "name"
120
+ t.integer "apidae_type"
121
+ t.index ["apidae_id"], name: "index_apidae_territories_on_apidae_id"
122
+ end
123
+
115
124
  create_table "apidae_towns", id: :serial, force: :cascade do |t|
116
125
  t.string "country"
117
126
  t.integer "apidae_id"
@@ -348,3 +348,52 @@ Migrating to AddVersionIndexOnApidaeObjs (20200312150904)
348
348
   (0.1ms) COMMIT
349
349
   (0.2ms) SELECT pg_advisory_unlock(6140174353533887940)
350
350
   (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
351
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
352
+
353
+ Being able to do this is deprecated. Autoloading during initialization is going
354
+ to be an error condition in future versions of Rails.
355
+
356
+ Reloading does not reboot the application, and therefore code executed during
357
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
358
+ the expected changes won't be reflected in that stale Module object.
359
+
360
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
361
+
362
+ In order to autoload safely at boot time, please wrap your code in a reloader
363
+ callback this way:
364
+
365
+ Rails.application.reloader.to_prepare do
366
+ # Autoload classes and modules needed at boot time here.
367
+ end
368
+
369
+ That block runs when the application boots, and every time there is a reload.
370
+ For historical reasons, it may run twice, so it has to be idempotent.
371
+
372
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
373
+ Rails autoloads and reloads.
374
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
375
+  (170.6ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
376
+ DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
377
+
378
+ Being able to do this is deprecated. Autoloading during initialization is going
379
+ to be an error condition in future versions of Rails.
380
+
381
+ Reloading does not reboot the application, and therefore code executed during
382
+ initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
383
+ the expected changes won't be reflected in that stale Module object.
384
+
385
+ `config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
386
+
387
+ In order to autoload safely at boot time, please wrap your code in a reloader
388
+ callback this way:
389
+
390
+ Rails.application.reloader.to_prepare do
391
+ # Autoload classes and modules needed at boot time here.
392
+ end
393
+
394
+ That block runs when the application boots, and every time there is a reload.
395
+ For historical reasons, it may run twice, so it has to be idempotent.
396
+
397
+ Check the "Autoloading and Reloading Constants" guide to learn more about how
398
+ Rails autoloads and reloads.
399
+ (called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
@@ -8581,3 +8581,880 @@ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_
8581
8581
  Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
8582
8582
  Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 49], ["version", "HIVER"], ["LIMIT", 1]]
8583
8583
   (0.1ms) ROLLBACK
8584
+  (41.9ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
8585
+  (3.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8586
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8587
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8588
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8589
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8590
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8591
+  (60.2ms) DROP DATABASE IF EXISTS "apidae_engine_test"
8592
+  (193.0ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
8593
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
8594
+  (0.1ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
8595
+  (5.7ms) CREATE TABLE "apidae_exports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8596
+  (0.3ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
8597
+  (3.5ms) CREATE TABLE "apidae_file_imports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_file" character varying, "created" integer, "updated" integer, "deleted" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_id" integer)
8598
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
8599
+  (1.9ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
8600
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
8601
+  (3.0ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)
8602
+  (1.0ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
8603
+  (1.3ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
8604
+  (1.2ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
8605
+  (3.3ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
8606
+  (0.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
8607
+  (2.7ms) CREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locales_data" character varying, "versions_data" character varying)
8608
+  (0.2ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
8609
+  (2.6ms) CREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "meta_data" jsonb)
8610
+  (1.1ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
8611
+  (1.0ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
8612
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
8613
+  (1.8ms) CREATE TABLE "apidae_selection_objects" ("id" bigserial primary key, "apidae_selection_id" integer, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8614
+  (0.3ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
8615
+  (3.0ms) CREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_project_id" integer)
8616
+  (0.4ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
8617
+  (2.8ms) CREATE TABLE "apidae_towns" ("id" serial NOT NULL PRIMARY KEY, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "description" character varying)
8618
+  (0.9ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
8619
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
8620
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8621
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES (20200522124205)
8622
+  (2.4ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
8623
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8624
+ TRANSACTION (0.1ms) BEGIN
8625
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2021-07-08 16:26:31.414859"], ["updated_at", "2021-07-08 16:26:31.414859"]]
8626
+ TRANSACTION (0.3ms) COMMIT
8627
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8628
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
8629
+ TRANSACTION (0.1ms) BEGIN
8630
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "4833c52ee41489f29ae21b7070d030aaee5c8762"], ["created_at", "2021-07-08 16:26:31.420121"], ["updated_at", "2021-07-08 16:26:31.420121"]]
8631
+ TRANSACTION (0.3ms) COMMIT
8632
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8633
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8634
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8635
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8636
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8637
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8638
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8639
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8640
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
8641
+  (4.9ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
8642
+  (4.2ms) CREATE TABLE "apidae_exports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8643
+  (2.4ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
8644
+  (2.9ms) CREATE TABLE "apidae_file_imports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_file" character varying, "created" integer, "updated" integer, "deleted" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_id" integer)
8645
+  (1.4ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
8646
+  (2.4ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
8647
+  (2.5ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
8648
+  (3.0ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)
8649
+  (0.8ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
8650
+  (1.0ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
8651
+  (1.0ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
8652
+  (0.8ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
8653
+  (1.6ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
8654
+  (3.3ms) CREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locales_data" character varying, "versions_data" character varying)
8655
+  (1.8ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
8656
+  (2.9ms) CREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "meta_data" jsonb)
8657
+  (0.9ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
8658
+  (0.8ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
8659
+  (1.3ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
8660
+  (1.9ms) CREATE TABLE "apidae_selection_objects" ("id" bigserial primary key, "apidae_selection_id" integer, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8661
+  (1.4ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
8662
+  (3.3ms) CREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_project_id" integer)
8663
+  (2.0ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
8664
+  (2.9ms) CREATE TABLE "apidae_towns" ("id" serial NOT NULL PRIMARY KEY, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "description" character varying)
8665
+  (0.9ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
8666
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8667
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES
8668
+ (20170512212941),
8669
+ (20170512214641),
8670
+ (20170512221525),
8671
+ (20170513114002),
8672
+ (20170513114409),
8673
+ (20170513115401),
8674
+ (20170513121215),
8675
+ (20170513205932),
8676
+ (20170720161134),
8677
+ (20170730102424),
8678
+ (20171025075304),
8679
+ (20180217222410),
8680
+ (20180218172704),
8681
+ (20180218231319),
8682
+ (20180222104915),
8683
+ (20180222105302),
8684
+ (20180307164936),
8685
+ (20180307170349),
8686
+ (20180314093512),
8687
+ (20180314132631),
8688
+ (20180319143954),
8689
+ (20180417164604),
8690
+ (20180417165744),
8691
+ (20180417171344),
8692
+ (20180418141248),
8693
+ (20180418141305),
8694
+ (20180424141656),
8695
+ (20180519170210),
8696
+ (20180521211735),
8697
+ (20180625050400),
8698
+ (20181024072424),
8699
+ (20181024072843),
8700
+ (20190111162443),
8701
+ (20190123142628),
8702
+ (20190123160046),
8703
+ (20190123214635),
8704
+ (20190124162543),
8705
+ (20190127210921),
8706
+ (20190127213602),
8707
+ (20190304142446),
8708
+ (20190418133435),
8709
+ (20190517153215),
8710
+ (20200111214145),
8711
+ (20200111214631),
8712
+ (20200224130804),
8713
+ (20200224145802),
8714
+ (20200312150008),
8715
+ (20200312150904);
8716
+
8717
+ 
8718
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8719
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8720
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
8721
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
8722
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8723
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8724
+  (0.3ms) SELECT pg_try_advisory_lock(6146893715189925390)
8725
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8726
+ Migrating to AddIsActiveToApidaeReferences (20200528101957)
8727
+ TRANSACTION (0.3ms) BEGIN
8728
+  (0.9ms) ALTER TABLE "apidae_references" ADD "is_active" boolean
8729
+  (42.1ms) CREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")
8730
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200528101957"]]
8731
+ TRANSACTION (2.2ms) COMMIT
8732
+ Migrating to CreateApidaeTerritories (20201112080847)
8733
+ TRANSACTION (0.1ms) BEGIN
8734
+  (4.0ms) CREATE TABLE "apidae_territories" ("id" bigserial primary key, "apidae_id" integer, "name" character varying)
8735
+  (0.8ms) CREATE INDEX "index_apidae_territories_on_apidae_id" ON "apidae_territories" ("apidae_id")
8736
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20201112080847"]]
8737
+ TRANSACTION (0.3ms) COMMIT
8738
+ Migrating to AddApidaeTypeToApidaeTerritories (20210607214647)
8739
+ TRANSACTION (0.3ms) BEGIN
8740
+  (0.3ms) ALTER TABLE "apidae_territories" ADD "apidae_type" integer
8741
+ ActiveRecord::SchemaMigration Create (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20210607214647"]]
8742
+ TRANSACTION (0.3ms) COMMIT
8743
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8744
+  (0.2ms) SELECT pg_advisory_unlock(6146893715189925390)
8745
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8746
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
8747
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8748
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8749
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8750
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8751
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8752
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8753
+  (45.4ms) DROP DATABASE IF EXISTS "apidae_engine_test"
8754
+  (78.8ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
8755
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
8756
+  (0.1ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
8757
+  (5.8ms) CREATE TABLE "apidae_exports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8758
+  (0.2ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
8759
+  (2.7ms) CREATE TABLE "apidae_file_imports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_file" character varying, "created" integer, "updated" integer, "deleted" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_id" integer)
8760
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
8761
+  (1.8ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
8762
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
8763
+  (2.7ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)
8764
+  (0.9ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
8765
+  (1.0ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
8766
+  (0.8ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
8767
+  (1.0ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
8768
+  (0.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
8769
+  (2.8ms) CREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locales_data" character varying, "versions_data" character varying)
8770
+  (0.3ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
8771
+  (2.6ms) CREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "meta_data" jsonb, "is_active" boolean)
8772
+  (0.9ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
8773
+  (0.9ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
8774
+  (1.0ms) CREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")
8775
+  (0.1ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
8776
+  (1.8ms) CREATE TABLE "apidae_selection_objects" ("id" bigserial primary key, "apidae_selection_id" integer, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8777
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
8778
+  (2.9ms) CREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_project_id" integer)
8779
+  (0.2ms) DROP TABLE IF EXISTS "apidae_territories" CASCADE
8780
+  (2.6ms) CREATE TABLE "apidae_territories" ("id" bigserial primary key, "apidae_id" integer, "name" character varying, "apidae_type" integer)
8781
+  (0.9ms) CREATE INDEX "index_apidae_territories_on_apidae_id" ON "apidae_territories" ("apidae_id")
8782
+  (0.1ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
8783
+  (2.5ms) CREATE TABLE "apidae_towns" ("id" serial NOT NULL PRIMARY KEY, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "description" character varying)
8784
+  (0.8ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
8785
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
8786
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8787
+  (28.4ms) INSERT INTO "schema_migrations" (version) VALUES (20210607214647)
8788
+  (3.0ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
8789
+ ActiveRecord::InternalMetadata Load (0.4ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8790
+ TRANSACTION (0.1ms) BEGIN
8791
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2021-07-08 16:27:36.866536"], ["updated_at", "2021-07-08 16:27:36.866536"]]
8792
+ TRANSACTION (0.2ms) COMMIT
8793
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8794
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
8795
+ TRANSACTION (0.1ms) BEGIN
8796
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "34f1098ed601674379a2c7ee3f36fdbdd6d59fbf"], ["created_at", "2021-07-08 16:27:36.870552"], ["updated_at", "2021-07-08 16:27:36.870552"]]
8797
+ TRANSACTION (0.3ms) COMMIT
8798
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8799
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8800
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8801
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8802
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8803
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8804
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8805
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
8806
+  (38.8ms) DROP DATABASE IF EXISTS "apidae_engine_test"
8807
+  (85.2ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
8808
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
8809
+  (0.2ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
8810
+  (5.5ms) CREATE TABLE "apidae_exports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8811
+  (0.3ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
8812
+  (2.5ms) CREATE TABLE "apidae_file_imports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_file" character varying, "created" integer, "updated" integer, "deleted" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_id" integer)
8813
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
8814
+  (4.8ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
8815
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
8816
+  (2.7ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)
8817
+  (0.9ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
8818
+  (1.0ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
8819
+  (1.0ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
8820
+  (1.0ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
8821
+  (0.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
8822
+  (2.5ms) CREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locales_data" character varying, "versions_data" character varying)
8823
+  (0.2ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
8824
+  (3.6ms) CREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "meta_data" jsonb, "is_active" boolean)
8825
+  (1.3ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
8826
+  (1.1ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
8827
+  (1.1ms) CREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")
8828
+  (0.3ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
8829
+  (2.4ms) CREATE TABLE "apidae_selection_objects" ("id" bigserial primary key, "apidae_selection_id" integer, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
8830
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
8831
+  (2.9ms) CREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_project_id" integer)
8832
+  (0.3ms) DROP TABLE IF EXISTS "apidae_territories" CASCADE
8833
+  (2.9ms) CREATE TABLE "apidae_territories" ("id" bigserial primary key, "apidae_id" integer, "name" character varying, "apidae_type" integer)
8834
+  (0.9ms) CREATE INDEX "index_apidae_territories_on_apidae_id" ON "apidae_territories" ("apidae_id")
8835
+  (0.1ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
8836
+  (2.8ms) CREATE TABLE "apidae_towns" ("id" serial NOT NULL PRIMARY KEY, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "description" character varying)
8837
+  (1.1ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
8838
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
8839
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8840
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20210607214647)
8841
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES
8842
+ (20170512212941),
8843
+ (20170512214641),
8844
+ (20170512221525),
8845
+ (20170513114002),
8846
+ (20170513114409),
8847
+ (20170513115401),
8848
+ (20170513121215),
8849
+ (20170513205932),
8850
+ (20170720161134),
8851
+ (20170730102424),
8852
+ (20171025075304),
8853
+ (20180217222410),
8854
+ (20180218172704),
8855
+ (20180218231319),
8856
+ (20180222104915),
8857
+ (20180222105302),
8858
+ (20180307164936),
8859
+ (20180307170349),
8860
+ (20180314093512),
8861
+ (20180314132631),
8862
+ (20180319143954),
8863
+ (20180417164604),
8864
+ (20180417165744),
8865
+ (20180417171344),
8866
+ (20180418141248),
8867
+ (20180418141305),
8868
+ (20180424141656),
8869
+ (20180519170210),
8870
+ (20180521211735),
8871
+ (20180625050400),
8872
+ (20181024072424),
8873
+ (20181024072843),
8874
+ (20190111162443),
8875
+ (20190123142628),
8876
+ (20190123160046),
8877
+ (20190123214635),
8878
+ (20190124162543),
8879
+ (20190127210921),
8880
+ (20190127213602),
8881
+ (20190304142446),
8882
+ (20190418133435),
8883
+ (20190517153215),
8884
+ (20200111214145),
8885
+ (20200111214631),
8886
+ (20200224130804),
8887
+ (20200224145802),
8888
+ (20200312150008),
8889
+ (20200312150904),
8890
+ (20200522124205),
8891
+ (20200528101957),
8892
+ (20201112080847);
8893
+
8894
+ 
8895
+  (2.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
8896
+ ActiveRecord::InternalMetadata Load (0.3ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8897
+ TRANSACTION (0.2ms) BEGIN
8898
+ ActiveRecord::InternalMetadata Create (0.4ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "environment"], ["value", "test"], ["created_at", "2021-07-08 16:27:56.801417"], ["updated_at", "2021-07-08 16:27:56.801417"]]
8899
+ TRANSACTION (0.2ms) COMMIT
8900
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
8901
+ ActiveRecord::InternalMetadata Load (0.2ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
8902
+ TRANSACTION (0.1ms) BEGIN
8903
+ ActiveRecord::InternalMetadata Create (0.2ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "34f1098ed601674379a2c7ee3f36fdbdd6d59fbf"], ["created_at", "2021-07-08 16:27:56.805839"], ["updated_at", "2021-07-08 16:27:56.805839"]]
8904
+ TRANSACTION (0.2ms) COMMIT
8905
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8906
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
8907
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8908
+ TRANSACTION (0.2ms) BEGIN
8909
+ ---------------------------------------------------------------------------------
8910
+ Apidae::FileImportTest: test_object_deletion_cancelled_if_used_by_another_project
8911
+ ---------------------------------------------------------------------------------
8912
+ Apidae::Obj Destroy (0.7ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8913
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
8914
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
8915
+ Apidae::Town Destroy (0.5ms) DELETE FROM "apidae_towns"
8916
+ Apidae::Reference Destroy (0.6ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8917
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8918
+ Apidae::Project Exists? (0.2ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
8919
+ Apidae::Project Create (0.5ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 16:28:05.060247"], ["updated_at", "2021-07-08 16:28:05.060247"]]
8920
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8921
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8922
+ Apidae::Project Exists? (0.2ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 456], ["LIMIT", 1]]
8923
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 456], ["created_at", "2021-07-08 16:28:05.062919"], ["updated_at", "2021-07-08 16:28:05.062919"]]
8924
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8925
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
8926
+ Apidae::Selection Create (1.0ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2021-07-08 16:28:05.072896"], ["updated_at", "2021-07-08 16:28:05.072896"], ["apidae_project_id", 1]]
8927
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8928
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8929
+ Apidae::Selection Create (0.4ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 99"], ["reference", "selection-99"], ["apidae_id", 49999], ["created_at", "2021-07-08 16:28:05.076173"], ["updated_at", "2021-07-08 16:28:05.076173"], ["apidae_project_id", 2]]
8930
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8931
+ TRANSACTION (0.3ms) SAVEPOINT active_record_1
8932
+ Apidae::Obj Create (3.1ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["created_at", "2021-07-08 16:28:05.109904"], ["updated_at", "2021-07-08 16:28:05.109904"], ["title_data", "{\"title\":{\"\":\"Société des violoncellistes aixois\"}}"]]
8933
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8934
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
8935
+ Apidae::SelectionObject Create (0.8ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 1], ["apidae_object_id", 1], ["created_at", "2021-07-08 16:28:05.152104"], ["updated_at", "2021-07-08 16:28:05.152104"]]
8936
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8937
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
8938
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2021-07-08 16:28:05.154968"], ["updated_at", "2021-07-08 16:28:05.154968"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
8939
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8940
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8941
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 1], ["apidae_object_id", 2], ["created_at", "2021-07-08 16:28:05.157707"], ["updated_at", "2021-07-08 16:28:05.157707"]]
8942
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8943
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
8944
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8945
+ Apidae::SelectionObject Create (0.3ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 2], ["apidae_object_id", 2], ["created_at", "2021-07-08 16:28:05.161773"], ["updated_at", "2021-07-08 16:28:05.161773"]]
8946
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8947
+  (0.7ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 1]]
8948
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 2]]
8949
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
8950
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
8951
+ Updating selection 49063
8952
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49063], ["LIMIT", 1]]
8953
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 1]]
8954
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 [["apidae_id", 504]]
8955
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND "apidae_selection_objects"."apidae_object_id" = $2 [["apidae_selection_id", 1], ["apidae_object_id", 2]]
8956
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
8957
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 1]]
8958
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
8959
+ Apidae::Selection Exists? (0.3ms) SELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2 [["apidae_object_id", 2], ["LIMIT", 1]]
8960
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8961
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 2]]
8962
+ TRANSACTION (0.2ms) ROLLBACK
8963
+ TRANSACTION (0.1ms) BEGIN
8964
+ ---------------------------------------------------------------------------
8965
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
8966
+ ---------------------------------------------------------------------------
8967
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8968
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8969
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8970
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8971
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8972
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
8973
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
8974
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8975
+ Apidae::Obj Create (1.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\",\"en\":\"All year round.\",\"de\":\"Ganzjährig.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.246249"], ["updated_at", "2021-07-08 16:28:05.246249"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\",\"en\":\"La Grange des Huskies\",\"de\":\"Huskytouren Grange des Huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
8976
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8977
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 3], ["version", "HIVER"], ["LIMIT", 1]]
8978
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8979
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2021-07-08 16:28:05.257083"], ["updated_at", "2021-07-08 16:28:05.257083"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 3], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
8980
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8981
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8982
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
8983
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
8984
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 3], ["version", "HIVER"], ["LIMIT", 1]]
8985
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 3], ["LIMIT", 1]]
8986
+ TRANSACTION (0.1ms) ROLLBACK
8987
+ TRANSACTION (0.1ms) BEGIN
8988
+ ------------------------------------------------
8989
+ Apidae::FileImportTest: test_full_import_process
8990
+ ------------------------------------------------
8991
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8992
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
8993
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
8994
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
8995
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8996
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
8997
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 16:28:05.269713"], ["updated_at", "2021-07-08 16:28:05.269713"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
8998
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
8999
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9000
+ Apidae::Obj Create (0.2ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["created_at", "2021-07-08 16:28:05.272053"], ["updated_at", "2021-07-08 16:28:05.272053"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
9001
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9002
+ Apidae::Project Load (0.1ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
9003
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9004
+ Apidae::Project Exists? (0.2ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
9005
+ Apidae::Project Create (0.2ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 16:28:05.275571"], ["updated_at", "2021-07-08 16:28:05.275571"]]
9006
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9007
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND (apidae_type != 'internal') [["is_active", true]]
9008
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
9009
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9010
+ Apidae::Reference Create (1.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2021-07-08 16:28:05.284361"], ["updated_at", "2021-07-08 16:28:05.284361"], ["meta_data", "{}"], ["is_active", true]]
9011
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9012
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
9013
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9014
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2021-07-08 16:28:05.288246"], ["updated_at", "2021-07-08 16:28:05.288246"], ["meta_data", "{}"], ["is_active", true]]
9015
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9016
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
9017
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9018
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2021-07-08 16:28:05.290668"], ["updated_at", "2021-07-08 16:28:05.290668"], ["meta_data", "{}"], ["is_active", true]]
9019
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9020
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
9021
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9022
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2021-07-08 16:28:05.293008"], ["updated_at", "2021-07-08 16:28:05.293008"], ["meta_data", "{}"], ["is_active", false]]
9023
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9024
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2 [["is_active", true], ["apidae_type", "internal"]]
9025
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
9026
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9027
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2021-07-08 16:28:05.296287"], ["updated_at", "2021-07-08 16:28:05.296287"], ["is_active", true]]
9028
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9029
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
9030
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9031
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2021-07-08 16:28:05.298526"], ["updated_at", "2021-07-08 16:28:05.298526"], ["is_active", true]]
9032
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9033
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
9034
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9035
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2021-07-08 16:28:05.300622"], ["updated_at", "2021-07-08 16:28:05.300622"], ["is_active", true]]
9036
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9037
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
9038
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9039
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2021-07-08 16:28:05.303171"], ["updated_at", "2021-07-08 16:28:05.303171"], ["is_active", true]]
9040
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9041
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
9042
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9043
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2021-07-08 16:28:05.305616"], ["updated_at", "2021-07-08 16:28:05.305616"], ["is_active", true]]
9044
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9045
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
9046
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9047
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2021-07-08 16:28:05.307886"], ["updated_at", "2021-07-08 16:28:05.307886"], ["is_active", true]]
9048
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9049
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
9050
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9051
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2021-07-08 16:28:05.310115"], ["updated_at", "2021-07-08 16:28:05.310115"], ["is_active", true]]
9052
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9053
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
9054
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9055
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2021-07-08 16:28:05.312258"], ["updated_at", "2021-07-08 16:28:05.312258"], ["is_active", true]]
9056
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9057
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
9058
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9059
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2021-07-08 16:28:05.314441"], ["updated_at", "2021-07-08 16:28:05.314441"], ["is_active", true]]
9060
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9061
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
9062
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9063
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2021-07-08 16:28:05.316695"], ["updated_at", "2021-07-08 16:28:05.316695"], ["is_active", true]]
9064
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9065
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
9066
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9067
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2021-07-08 16:28:05.318771"], ["updated_at", "2021-07-08 16:28:05.318771"], ["is_active", true]]
9068
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9069
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
9070
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9071
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2021-07-08 16:28:05.321278"], ["updated_at", "2021-07-08 16:28:05.321278"], ["is_active", true]]
9072
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9073
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
9074
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9075
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2021-07-08 16:28:05.323556"], ["updated_at", "2021-07-08 16:28:05.323556"], ["is_active", true]]
9076
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9077
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
9078
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9079
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2021-07-08 16:28:05.325690"], ["updated_at", "2021-07-08 16:28:05.325690"], ["is_active", true]]
9080
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9081
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
9082
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9083
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2021-07-08 16:28:05.327657"], ["updated_at", "2021-07-08 16:28:05.327657"], ["is_active", true]]
9084
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9085
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
9086
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9087
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2021-07-08 16:28:05.329675"], ["updated_at", "2021-07-08 16:28:05.329675"], ["is_active", true]]
9088
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9089
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
9090
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9091
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2021-07-08 16:28:05.331640"], ["updated_at", "2021-07-08 16:28:05.331640"], ["is_active", true]]
9092
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9093
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9094
+ Completed 20 references update
9095
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
9096
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2 [["is_active", true], ["apidae_type", "Pays"]]
9097
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
9098
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9099
+ Apidae::Town Create (0.6ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["insee_code", "01001"], ["name", "L'Abergement-Clémenciat"], ["postal_code", "01400"], ["created_at", "2021-07-08 16:28:05.340488"], ["updated_at", "2021-07-08 16:28:05.340488"]]
9100
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9101
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
9102
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9103
+ Apidae::Town Create (0.2ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["insee_code", "01002"], ["name", "L'Abergement-de-Varey"], ["postal_code", "01640"], ["created_at", "2021-07-08 16:28:05.343268"], ["updated_at", "2021-07-08 16:28:05.343268"]]
9104
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9105
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
9106
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9107
+ Apidae::Town Create (0.3ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2021-07-08 16:28:05.345149"], ["updated_at", "2021-07-08 16:28:05.345149"]]
9108
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9109
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
9110
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9111
+ Apidae::Town Update (0.3ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2021-07-08 16:28:05.347472"], ["id", 1]]
9112
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9113
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
9114
+ Completed 3 towns update
9115
+ Processing file : objets_modifies/objets_modifies-2.json
9116
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
9117
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
9118
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9119
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 4 novembre à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13969038,\"external_id\":null,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.351973"], ["updated_at", "2021-07-08 16:28:05.351973"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":80314,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Tarif unique : 5 €.\"},\"rates\":[{\"id\":8307032,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"values\":[{\"min\":5.0,\"max\":null,\"type\":4123,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1284,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[542,2060,9580]}"], ["location_data", "{\"address\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"],\"place\":\"La Traverse\",\"latitude\":45.645852,\"longitude\":5.865084,\"map_reference\":null,\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\\r\\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque.\"},\"long_desc\":{\"fr\":\"Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\\r\\n\\r\\nUn spectacle qui ravira petits et grands.\\r\\n\\r\\nCompagnie du Fil à retordre\\r\\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Les Spécimens - Spectacle familial\"}}"], ["booking_data", "{\"booking_entities\":[],\"booking_desc\":[{},[]]}"], ["version", "STANDARD"], ["last_update", "2017-09-21 09:51:57.288000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
9120
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9121
+ Processing file : objets_modifies/objets_modifies-1.json
9122
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
9123
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
9124
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9125
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[570],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Mardi 7 novembre 2017 de 7h à 19h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13924098,\"external_id\":null,\"start_date\":\"2017-11-07\",\"end_date\":\"2017-11-07\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"07:00:00\",\"end_time\":\"19:00:00\",\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.359291"], ["updated_at", "2021-07-08 16:28:05.359291"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"map_reference\":null,\"altitude\":null,\"access\":{},\"environments\":[173]}"], ["description_data", "{\"short_desc\":{\"fr\":\"Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé.\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"3C-Centre de Coordination en Cancerologie\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:27:36.711000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
9126
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9127
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826186], ["LIMIT", 1]]
9128
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
9129
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9130
+ Apidae::Obj Update (0.8ms) UPDATE "apidae_objs" SET "apidae_type" = $1, "apidae_subtype" = $2, "contact_data" = $3, "type_data" = $4, "openings_data" = $5, "updated_at" = $6, "pictures_data" = $7, "entity_data" = $8, "service_data" = $9, "rates_data" = $10, "attachments_data" = $11, "tags_data" = $12, "location_data" = $13, "description_data" = $14, "title_data" = $15, "booking_data" = $16, "last_update" = $17, "owner_data" = $18 WHERE "apidae_objs"."id" = $19 [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["contact_data", "{\"contacts\":null,\"website\":{\"53824257\":{\"value\":\"https://www.acielouvert.org\",\"description\":null}}}"], ["type_data", "{\"categories\":[2084],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du samedi 11 au lundi 13 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13924478,\"external_id\":null,\"start_date\":\"2017-11-11\",\"end_date\":\"2017-11-13\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["updated_at", "2021-07-08 16:28:05.364285"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"map_reference\":\"J5\",\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["last_update", "2017-09-14 09:17:06.836000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["id", 6]]
9131
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9132
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826282], ["LIMIT", 1]]
9133
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
9134
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9135
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[570],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 18 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13925007,\"external_id\":null,\"start_date\":\"2017-11-18\",\"end_date\":\"2017-11-18\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.370186"], ["updated_at", "2021-07-08 16:28:05.370186"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"map_reference\":\"J5\",\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Remise des diplômes POLYTECH Annecy-Chambery\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:29:13.914000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
9136
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9137
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4828422], ["LIMIT", 1]]
9138
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
9139
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9140
+ Apidae::Obj Create (0.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[2064,2257],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13951267,\"external_id\":null,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-04-19\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951269,\"external_id\":null,\"start_date\":\"2018-04-20\",\"end_date\":\"2018-04-20\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951275,\"external_id\":null,\"start_date\":\"2018-04-21\",\"end_date\":\"2018-04-21\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951278,\"external_id\":null,\"start_date\":\"2018-04-22\",\"end_date\":\"2018-04-22\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951279,\"external_id\":null,\"start_date\":\"2018-04-24\",\"end_date\":\"2018-04-24\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951282,\"external_id\":null,\"start_date\":\"2018-04-25\",\"end_date\":\"2018-04-25\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951286,\"external_id\":null,\"start_date\":\"2018-04-27\",\"end_date\":\"2018-04-27\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951289,\"external_id\":null,\"start_date\":\"2018-04-28\",\"end_date\":\"2018-04-28\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951291,\"external_id\":null,\"start_date\":\"2018-04-29\",\"end_date\":\"2018-04-29\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951292,\"external_id\":null,\"start_date\":\"2018-04-30\",\"end_date\":\"2018-04-30\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951297,\"external_id\":null,\"start_date\":\"2018-05-02\",\"end_date\":\"2018-05-02\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951298,\"external_id\":null,\"start_date\":\"2018-05-03\",\"end_date\":\"2018-05-03\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951300,\"external_id\":null,\"start_date\":\"2018-05-05\",\"end_date\":\"2018-05-05\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951303,\"external_id\":null,\"start_date\":\"2018-05-06\",\"end_date\":\"2018-05-06\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951307,\"external_id\":null,\"start_date\":\"2018-05-07\",\"end_date\":\"2018-05-07\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951309,\"external_id\":null,\"start_date\":\"2018-05-08\",\"end_date\":\"2018-05-08\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"19:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951311,\"external_id\":null,\"start_date\":\"2018-05-10\",\"end_date\":\"2018-05-10\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"19:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968615,\"external_id\":null,\"start_date\":\"2018-05-11\",\"end_date\":\"2018-05-11\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968617,\"external_id\":null,\"start_date\":\"2018-05-12\",\"end_date\":\"2018-05-12\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968619,\"external_id\":null,\"start_date\":\"2018-05-13\",\"end_date\":\"2018-05-13\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[436],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.377296"], ["updated_at", "2021-07-08 16:28:05.377296"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse).\"},\"rates\":[{\"id\":8306899,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-05-13\",\"values\":[{\"min\":15.0,\"max\":32.0,\"type\":5240,\"details\":{\"fr\":\"abonnés Espace Malraux, Bonlieu, La Traverse\"}},{\"min\":39.0,\"max\":null,\"type\":5239,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060,6588,6769,542,9580]}"], ["location_data", "{\"address\":[],\"place\":\"La Croix verte\",\"latitude\":45.644668,\"longitude\":5.867981,\"map_reference\":null,\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Conception et mise en scène de Bartabas.\\r\\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture.\"},\"long_desc\":{\"fr\":\"On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Ex Anima - Théâtre équestre Zingaro\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-10-06 09:50:00.352000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
9141
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9142
+ Processing file : selections.json
9143
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 3]]
9144
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
9145
+ Updating selection 49063
9146
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49063], ["LIMIT", 1]]
9147
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9148
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2021-07-08 16:28:05.415611"], ["updated_at", "2021-07-08 16:28:05.415611"], ["apidae_project_id", 3]]
9149
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9150
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 3]]
9151
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
9152
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9153
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 3], ["apidae_object_id", 8], ["created_at", "2021-07-08 16:28:05.419988"], ["updated_at", "2021-07-08 16:28:05.419988"]]
9154
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9155
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826282], ["LIMIT", 1]]
9156
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9157
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 3], ["apidae_object_id", 9], ["created_at", "2021-07-08 16:28:05.422400"], ["updated_at", "2021-07-08 16:28:05.422400"]]
9158
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9159
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 3]]
9160
+ Updating selection 49073
9161
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49073], ["LIMIT", 1]]
9162
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9163
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49073], ["created_at", "2021-07-08 16:28:05.425528"], ["updated_at", "2021-07-08 16:28:05.425528"], ["apidae_project_id", 3]]
9164
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9165
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 4]]
9166
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826186], ["LIMIT", 1]]
9167
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9168
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 4], ["apidae_object_id", 6], ["created_at", "2021-07-08 16:28:05.429550"], ["updated_at", "2021-07-08 16:28:05.429550"]]
9169
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9170
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4828422], ["LIMIT", 1]]
9171
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9172
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 4], ["apidae_object_id", 10], ["created_at", "2021-07-08 16:28:05.432045"], ["updated_at", "2021-07-08 16:28:05.432045"]]
9173
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9174
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
9175
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9176
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 4], ["apidae_object_id", 7], ["created_at", "2021-07-08 16:28:05.434360"], ["updated_at", "2021-07-08 16:28:05.434360"]]
9177
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9178
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 4]]
9179
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 3]]
9180
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 3]]
9181
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 4]]
9182
+ Processing file : objets_supprimes.json
9183
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
9184
+ Apidae::Selection Exists? (0.3ms) SELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2 [["apidae_object_id", 5], ["LIMIT", 1]]
9185
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9186
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 5]]
9187
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9188
+ Processing file : elements_reference.json
9189
+ Processing file : criteres_internes.json
9190
+ Processing file : communes.json
9191
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9192
+ Apidae::FileImport Create (41.6ms) INSERT INTO "apidae_file_imports" ("status", "remote_file", "created", "updated", "deleted", "created_at", "updated_at", "apidae_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["status", "complete"], ["remote_file", "test/data/json_export.zip"], ["created", 4], ["updated", 1], ["deleted", 1], ["created_at", "2021-07-08 16:28:05.452119"], ["updated_at", "2021-07-08 16:28:05.452119"], ["apidae_id", 123]]
9193
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9194
+ Import results : {:created=>4, :updated=>1, :deleted=>1, :selections=>[{:apidae_id=>49063, :reference=>"selection-1", :objects=>2}, {:apidae_id=>49073, :reference=>"selection-2", :objects=>3}]}
9195
+  (0.2ms) SELECT COUNT(*) FROM "apidae_projects"
9196
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
9197
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9198
+ TRANSACTION (0.3ms) ROLLBACK
9199
+ TRANSACTION (0.1ms) BEGIN
9200
+ --------------------------------------------------------------------------------
9201
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
9202
+ --------------------------------------------------------------------------------
9203
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9204
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9205
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
9206
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9207
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9208
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
9209
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
9210
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9211
+ Apidae::Obj Create (2.2ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["apidae_subtype", "2993"], ["contact_data", "{\"contacts\":[{\"identifiant\":1441007,\"referent\":false,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":442,\"libelleFr\":\"Madame\",\"ordre\":4},\"nom\":\"THOOS\",\"prenom\":\"Josette\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":470,\"libelleFr\":\"Gérance\",\"ordre\":9}},{\"identifiant\":1441008,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443,\"libelleFr\":\"Monsieur\",\"ordre\":9},\"nom\":\"THOOS\",\"prenom\":\"Jean Claude\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":460,\"libelleFr\":\"Présidence\",\"ordre\":15}}],\"telephone\":{\"5673157\":{\"value\":\"04 78 81 84 30\",\"description\":\"Jean Claude THOOS\"},\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":{\"allowed\":true,\"desc\":{\"fr\":\"Tenus en laisse uniquement\"},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":17994901,\"external_id\":18183551,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-06-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577872,\"external_id\":18183552,\"start_date\":\"2019-07-01\",\"end_date\":\"2019-08-31\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"16:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577873,\"external_id\":18183553,\"start_date\":\"2019-09-01\",\"end_date\":\"2019-09-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[4188]}"], ["created_at", "2021-07-08 16:28:05.505110"], ["updated_at", "2021-07-08 16:28:05.505110"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null,\"is_service_provider\":true}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Tarifs groupes et scolaires en téléchargement (fichiers ci-dessous)\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"map_reference\":null,\"altitude\":null,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]],\"visits_allowed\":false,\"visits_desc\":{}}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
9212
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9213
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 11], ["version", "GROUPES"], ["LIMIT", 1]]
9214
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9215
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":{\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":18024471,\"external_id\":18183554,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"à partir de 10h30, uniquement sur réservation\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.521707"], ["updated_at", "2021-07-08 16:28:05.521707"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Groupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{\"fr\":\"Arrhes demandés pour les groupes\"},null]}"], ["version", "GROUPES"], ["root_obj_id", 11], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
9216
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9217
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9218
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
9219
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
9220
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 11], ["version", "GROUPES"], ["LIMIT", 1]]
9221
+ TRANSACTION (0.1ms) ROLLBACK
9222
+ TRANSACTION (0.1ms) BEGIN
9223
+ -----------------------------------------------------
9224
+ Apidae::FileImportTest: test_existing_object_deletion
9225
+ -----------------------------------------------------
9226
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9227
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
9228
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
9229
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9230
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9231
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9232
+ Apidae::Obj Create (0.2ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2021-07-08 16:28:05.533328"], ["updated_at", "2021-07-08 16:28:05.533328"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
9233
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9234
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
9235
+ Apidae::Selection Exists? (0.4ms) SELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2 [["apidae_object_id", 13], ["LIMIT", 1]]
9236
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9237
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 13]]
9238
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9239
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9240
+ TRANSACTION (0.1ms) ROLLBACK
9241
+ TRANSACTION (0.1ms) BEGIN
9242
+ ---------------------------------------------------
9243
+ Apidae::FileImportTest: test_existing_object_update
9244
+ ---------------------------------------------------
9245
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9246
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9247
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections"
9248
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9249
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9250
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9251
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2021-07-08 16:28:05.544538"], ["updated_at", "2021-07-08 16:28:05.544538"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
9252
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9253
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
9254
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
9255
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9256
+ Apidae::Obj Update (0.5ms) UPDATE "apidae_objs" SET "apidae_type" = $1, "contact_data" = $2, "type_data" = $3, "updated_at" = $4, "pictures_data" = $5, "entity_data" = $6, "attachments_data" = $7, "tags_data" = $8, "location_data" = $9, "title_data" = $10, "booking_data" = $11, "last_update" = $12, "owner_data" = $13 WHERE "apidae_objs"."id" = $14 [["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["updated_at", "2021-07-08 16:28:05.549059"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["booking_data", "{}"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["id", 14]]
9257
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9258
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9259
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
9260
+ TRANSACTION (0.1ms) ROLLBACK
9261
+ TRANSACTION (0.1ms) BEGIN
9262
+ ----------------------------------------------------
9263
+ Apidae::FileImportTest: test_new_selection_insertion
9264
+ ----------------------------------------------------
9265
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9266
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9267
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
9268
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9269
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9270
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9271
+ Apidae::Obj Create (0.2ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2021-07-08 16:28:05.559478"], ["updated_at", "2021-07-08 16:28:05.559478"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
9272
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9273
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9274
+ Apidae::Project Exists? (0.2ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
9275
+ Apidae::Project Create (0.2ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 16:28:05.562340"], ["updated_at", "2021-07-08 16:28:05.562340"]]
9276
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9277
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 4]]
9278
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
9279
+ Updating selection 49063
9280
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49063], ["LIMIT", 1]]
9281
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9282
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2021-07-08 16:28:05.565723"], ["updated_at", "2021-07-08 16:28:05.565723"], ["apidae_project_id", 4]]
9283
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9284
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 5]]
9285
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
9286
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9287
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 5], ["apidae_object_id", 15], ["created_at", "2021-07-08 16:28:05.569852"], ["updated_at", "2021-07-08 16:28:05.569852"]]
9288
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9289
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 5]]
9290
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 4]]
9291
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 5]]
9292
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
9293
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
9294
+ TRANSACTION (0.1ms) ROLLBACK
9295
+ TRANSACTION (0.1ms) BEGIN
9296
+ -----------------------------------------------------------------------------------
9297
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
9298
+ -----------------------------------------------------------------------------------
9299
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9300
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9301
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
9302
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9303
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9304
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
9305
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
9306
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9307
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.585026"], ["updated_at", "2021-07-08 16:28:05.585026"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
9308
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9309
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 16], ["version", "HIVER"], ["LIMIT", 1]]
9310
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9311
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2021-07-08 16:28:05.592563"], ["updated_at", "2021-07-08 16:28:05.592563"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 16], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
9312
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9313
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9314
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
9315
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
9316
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 16], ["version", "HIVER"], ["LIMIT", 1]]
9317
+ TRANSACTION (0.2ms) ROLLBACK
9318
+ TRANSACTION (0.1ms) BEGIN
9319
+ -------------------------------------------------
9320
+ Apidae::FileImportTest: test_new_object_insertion
9321
+ -------------------------------------------------
9322
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9323
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9324
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
9325
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9326
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9327
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
9328
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
9329
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9330
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2021-07-08 16:28:05.605191"], ["updated_at", "2021-07-08 16:28:05.605191"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["booking_data", "{}"], ["version", "STANDARD"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
9331
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9332
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9333
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
9334
+ TRANSACTION (0.2ms) ROLLBACK
9335
+ TRANSACTION (0.1ms) BEGIN
9336
+ --------------------------------------------------------
9337
+ Apidae::FileImportTest: test_existing_selection_deletion
9338
+ --------------------------------------------------------
9339
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9340
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9341
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
9342
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9343
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9344
+ TRANSACTION (0.3ms) SAVEPOINT active_record_1
9345
+ Apidae::Project Exists? (0.4ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
9346
+ Apidae::Project Create (0.4ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 16:28:05.616667"], ["updated_at", "2021-07-08 16:28:05.616667"]]
9347
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9348
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9349
+ Apidae::Selection Create (0.3ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2021-07-08 16:28:05.618864"], ["updated_at", "2021-07-08 16:28:05.618864"], ["apidae_project_id", 5]]
9350
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9351
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
9352
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
9353
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
9354
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
9355
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
9356
+ TRANSACTION (0.1ms) ROLLBACK
9357
+ TRANSACTION (0.1ms) BEGIN
9358
+ --------------------------------------------------------------
9359
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
9360
+ --------------------------------------------------------------
9361
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9362
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9363
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
9364
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9365
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9366
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 898922], ["LIMIT", 1]]
9367
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
9368
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9369
+ Apidae::Obj Create (1.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 898922], ["apidae_type", "HOTELLERIE"], ["apidae_subtype", "2734"], ["contact_data", "{\"contacts\":[{\"identifiant\":12954222,\"referent\":true,\"nom\":\"HORGAN\",\"prenom\":\"Carrie\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":36504396,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"chatelleraie@wanadoo.fr\"}},{\"identifiant\":36504397,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"04 71 49 09 09\"}}]}],\"telephone\":{\"36504392\":{\"value\":\"04 71 49 09 09\",\"description\":null}},\"fax\":{\"36504393\":{\"value\":\"04 71 49 07 07\",\"description\":null}},\"email\":{\"36504394\":{\"value\":\"chatelleraie@wanadoo.fr\",\"description\":null}},\"website\":{\"36504395\":{\"value\":\"http://chatelleraie.co.uk/fr/\",\"description\":null}}}"], ["type_data", "{\"categories\":[1610,1619],\"themes\":[],\"capacity\":{\"nombreChambresDeclareesHotelier\":26,\"nombreTotalPersonnes\":70,\"nombreTotalPersonnesReel\":70,\"nombreChambresFamiliales\":1,\"nombreSuites\":1,\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[2756],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":true,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{\"tourismeAffairesEnabled\":true,\"nombreSallesModulables\":1}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/04 au 14/10/2018.\",\"en\":\"From 01/04 to 14/10/2018.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14375379,\"external_id\":15927193,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.630561"], ["updated_at", "2021-07-08 16:28:05.630561"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":1890696,\"name\":\"La Chatelleraie st etienne de Maurs 2\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":\"otchataigneraie\",\"expiration_date\":\"\"},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[687,1115,1172],\"equipments\":[655,723,821,972,1058,1064,1089,1093,1106,1323],\"comfort\":[838,842,963,1014,1015],\"activities\":[680,3927],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Chambre double : de 55 à 80 €\\nChambre quadruple : de 80 à 125 € (chambre familiale)\\nDemi-pension (/ pers.) : à partir de 50 € (A partir de 50€)\\nPetit déjeuner : à partir de 7,50 €\\nAnimaux : à partir de 5 €.\\n\",\"en\":\"Double room: 55 to 80 €\\nRoom sleeping 4: 80 to 125 €\\nHalf-board: from 50 €\\nBreakfast: from 7.50 €\\nSupplementary payment for pets: from 5 €.\\n\"},\"rates\":[{\"id\":8605788,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"values\":[{\"min\":55.0,\"max\":80.0,\"type\":1466,\"details\":{}},{\"min\":80.0,\"max\":125.0,\"type\":3877,\"details\":{\"fr\":\"chambre familiale\"}},{\"min\":50.0,\"max\":null,\"type\":1465,\"details\":{\"fr\":\"A partir de 50€\"}},{\"min\":7.5,\"max\":null,\"type\":1461,\"details\":{}},{\"min\":5.0,\"max\":null,\"type\":4080,\"details\":{}}]}],\"payment_methods\":[1268,1271],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"HOTAUV015V5022D5\"}}]}]"], ["location_data", "{\"address\":[\"Château de La Devèze\"],\"place\":null,\"latitude\":44.715026,\"longitude\":2.207737,\"map_reference\":null,\"altitude\":null,\"access\":{},\"environments\":[135],\"territories\":[711392,742848,896166,908439]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc fr\",\"en\":\"short desc en\"},\"long_desc\":{\"fr\":\"long desc fr\",\"en\":\"long desc en\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Châtelleraie\",\"en\":\"La Châtelleraie\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2018-11-06 11:03:21.304000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme de la Châtaigneraie Cantalienne\",\"owner_id\":1333}"]]
9370
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9371
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9372
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
9373
+ TRANSACTION (0.1ms) ROLLBACK
9374
+ TRANSACTION (0.2ms) BEGIN
9375
+ ---------------------------------------------------------------
9376
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
9377
+ ---------------------------------------------------------------
9378
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9379
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9380
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
9381
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
9382
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9383
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
9384
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
9385
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9386
+ Apidae::Obj Create (0.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.651803"], ["updated_at", "2021-07-08 16:28:05.651803"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
9387
+ TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1
9388
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 20], ["version", "HIVER"], ["LIMIT", 1]]
9389
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9390
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2021-07-08 16:28:05.664668"], ["updated_at", "2021-07-08 16:28:05.664668"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 20], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
9391
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9392
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9393
+  (1.1ms) SELECT COUNT(*) FROM "apidae_objs"
9394
+ Apidae::Obj Load (0.9ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
9395
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 20], ["version", "HIVER"], ["LIMIT", 1]]
9396
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 20], ["LIMIT", 1]]
9397
+ TRANSACTION (0.2ms) ROLLBACK
9398
+ TRANSACTION (0.1ms) BEGIN
9399
+ ------------------------------------------------------------------------------
9400
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
9401
+ ------------------------------------------------------------------------------
9402
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9403
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9404
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
9405
+ Apidae::Town Destroy (0.4ms) DELETE FROM "apidae_towns"
9406
+ Apidae::Reference Destroy (0.5ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9407
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
9408
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
9409
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
9410
+ Apidae::Obj Create (1.0ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["apidae_subtype", "2993"], ["contact_data", "{\"contacts\":[{\"identifiant\":1441007,\"referent\":false,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":442,\"libelleFr\":\"Madame\",\"ordre\":4},\"nom\":\"THOOS\",\"prenom\":\"Josette\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":470,\"libelleFr\":\"Gérance\",\"ordre\":9}},{\"identifiant\":1441008,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443,\"libelleFr\":\"Monsieur\",\"ordre\":9},\"nom\":\"THOOS\",\"prenom\":\"Jean Claude\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":460,\"libelleFr\":\"Présidence\",\"ordre\":15}}],\"telephone\":{\"5673157\":{\"value\":\"04 78 81 84 30\",\"description\":\"Jean Claude THOOS\"},\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":{\"allowed\":true,\"desc\":{\"fr\":\"Tenus en laisse uniquement\"},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":17994901,\"external_id\":18183551,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-06-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577872,\"external_id\":18183552,\"start_date\":\"2019-07-01\",\"end_date\":\"2019-08-31\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"16:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577873,\"external_id\":18183553,\"start_date\":\"2019-09-01\",\"end_date\":\"2019-09-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[4188]}"], ["created_at", "2021-07-08 16:28:05.689176"], ["updated_at", "2021-07-08 16:28:05.689176"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null,\"is_service_provider\":true}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Tarifs groupes et scolaires en téléchargement (fichiers ci-dessous)\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"map_reference\":null,\"altitude\":null,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]],\"visits_allowed\":false,\"visits_desc\":{}}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
9411
+ TRANSACTION (0.4ms) RELEASE SAVEPOINT active_record_1
9412
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 22], ["version", "GROUPES"], ["LIMIT", 1]]
9413
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9414
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":{\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":18024471,\"external_id\":18183554,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"à partir de 10h30, uniquement sur réservation\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[],\"openings_extra\":[]}"], ["created_at", "2021-07-08 16:28:05.706365"], ["updated_at", "2021-07-08 16:28:05.706365"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Groupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{\"fr\":\"Arrhes demandés pour les groupes\"},null]}"], ["version", "GROUPES"], ["root_obj_id", 22], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
9415
+ TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1
9416
+  (1.1ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9417
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs"
9418
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
9419
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 22], ["version", "GROUPES"], ["LIMIT", 1]]
9420
+ TRANSACTION (0.2ms) ROLLBACK
9421
+ TRANSACTION (0.1ms) BEGIN
9422
+ ------------------------------------------------------
9423
+ Apidae::FileImportTest: test_existing_selection_update
9424
+ ------------------------------------------------------
9425
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
9426
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
9427
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
9428
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
9429
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
9430
+ TRANSACTION (0.4ms) SAVEPOINT active_record_1
9431
+ Apidae::Obj Create (0.7ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["created_at", "2021-07-08 16:28:05.727217"], ["updated_at", "2021-07-08 16:28:05.727217"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
9432
+ TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1
9433
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9434
+ Apidae::Obj Create (0.2ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2021-07-08 16:28:05.732440"], ["updated_at", "2021-07-08 16:28:05.732440"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
9435
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9436
+ TRANSACTION (0.6ms) SAVEPOINT active_record_1
9437
+ Apidae::Project Exists? (0.7ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
9438
+ Apidae::Project Create (0.5ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 16:28:05.737977"], ["updated_at", "2021-07-08 16:28:05.737977"]]
9439
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9440
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9441
+ Apidae::Selection Create (0.3ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2021-07-08 16:28:05.740765"], ["updated_at", "2021-07-08 16:28:05.740765"], ["apidae_project_id", 6]]
9442
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
9443
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9444
+ Apidae::SelectionObject Create (0.3ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 7], ["apidae_object_id", 24], ["created_at", "2021-07-08 16:28:05.743558"], ["updated_at", "2021-07-08 16:28:05.743558"]]
9445
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9446
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 7]]
9447
+ Apidae::Selection Load (0.6ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 6]]
9448
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections" WHERE 1=0
9449
+ Updating selection 49063
9450
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49063], ["LIMIT", 1]]
9451
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 7]]
9452
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
9453
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
9454
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 7], ["apidae_object_id", 25], ["created_at", "2021-07-08 16:28:05.756436"], ["updated_at", "2021-07-08 16:28:05.756436"]]
9455
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
9456
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 7]]
9457
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 6]]
9458
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 7]]
9459
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
9460
+ TRANSACTION (0.1ms) ROLLBACK