apidae 0.9.31 → 0.9.32

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
- SHA1:
3
- metadata.gz: b11e661ee1dbdf4a10b2e7a99e50355f3e27c999
4
- data.tar.gz: e915875e1afc08473c4de6e13e759a4e64db8d4c
2
+ SHA256:
3
+ metadata.gz: db36dfb4480f3b1bc1458a618b0a2ce5c3c9a3b496474e04407f1eee9256734e
4
+ data.tar.gz: 5e20f5c540670359f7e1efebd3413b070f1f87a3f5864a4dcd9e0cf1917ec7ee
5
5
  SHA512:
6
- metadata.gz: 260c76e1bf42ccdd5e05513ea52a70335f352d0053ce667c5d32fbb254e82b2408e3ae4abcb0941f1f935cb3280b782261367c5bda5e673beac864121f6d8bb7
7
- data.tar.gz: 1dc41e22f0c80fc56d0c2d2bbef568b89be652281733c52ca6eed93d1b8e2e9ddf886c836f1b09caffba57b5cedbe5a161a6a1efb88b8e18ad0b282ebc41a777
6
+ metadata.gz: 03e5f796b063b512c3a433cf44e36360044cbac1fd881a0ae9d6f92f2f09953a405dc78224b8f378f6c7badff97c8910c3f3cb07bbae75f85e51bc8fb374c1cc
7
+ data.tar.gz: 328ab820e3d843f86089f3ce3616347eacb63a3635f58637af8c799b65a79562d2a7e59c8371cf4925b5c253cab7853837f9a77737ce69b8c5859bfcf1972d46
@@ -45,6 +45,7 @@ module Apidae
45
45
  end
46
46
  end
47
47
  end
48
+ project.cleanup_selections
48
49
  create(result.except(:selections)
49
50
  .merge({remote_file: (zip_file.is_a?(File) ? zip_file.path : zip_file), status: STATUS_COMPLETE, apidae_id: project_id}))
50
51
  logger.info "Import results : #{result}"
@@ -170,7 +171,9 @@ module Apidae
170
171
  def self.add_or_update_selections(project, selections_json, result)
171
172
  selections_hashes = JSON.parse(selections_json, symbolize_names: true)
172
173
  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
174
+ apidae_selection_ids = Selection.where(apidae_id: deleted_ids).map {|s| s.id}
175
+ SelectionObject.where(apidae_selection_id: apidae_selection_ids).delete_all
176
+ Selection.where(id: apidae_selection_ids).delete_all
174
177
  selections_hashes.each do |selection_data|
175
178
  logger.info "Updating selection #{selection_data[:id]}"
176
179
  Selection.add_or_update(selection_data, project.id)
@@ -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 = "0.9.31"
2
+ VERSION = "0.9.32"
3
3
  end
@@ -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)
@@ -7171,3 +7171,2290 @@ Apidae::FileImportTest: test_existing_object_update
7171
7171
   (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7172
7172
  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]]
7173
7173
   (0.1ms) ROLLBACK
7174
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7175
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7176
+  (45.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7177
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7178
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7179
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7180
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7181
+  (61.3ms) DROP DATABASE IF EXISTS "apidae_engine_test"
7182
+  (258.9ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
7183
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
7184
+  (0.2ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
7185
+  (5.3ms) 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)
7186
+  (0.2ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
7187
+  (2.6ms) 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)
7188
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
7189
+  (3.1ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
7190
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
7191
+  (3.1ms) 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)
7192
+  (0.9ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
7193
+  (0.9ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
7194
+  (1.0ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
7195
+  (0.8ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
7196
+  (0.2ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
7197
+  (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)
7198
+  (0.2ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
7199
+  (2.8ms) 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)
7200
+  (1.1ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
7201
+  (0.9ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
7202
+  (0.1ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
7203
+  (1.7ms) 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)
7204
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
7205
+  (2.7ms) 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)
7206
+  (0.2ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
7207
+  (2.7ms) 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)
7208
+  (0.9ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
7209
+  (2.2ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
7210
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7211
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200522124205)
7212
+  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
7213
+ 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]]
7214
+  (0.1ms) BEGIN
7215
+ ActiveRecord::InternalMetadata Create (0.3ms) 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 15:53:43.193494"], ["updated_at", "2021-07-08 15:53:43.193494"]]
7216
+  (0.3ms) COMMIT
7217
+ 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]]
7218
+  (0.1ms) BEGIN
7219
+  (0.1ms) COMMIT
7220
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7221
+  (37.1ms) SELECT pg_try_advisory_lock(6146893715189925390)
7222
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7223
+ Migrating to CreateApidaeSelections (20170512212941)
7224
+  (0.1ms) BEGIN
7225
+  (43.1ms) 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)
7226
+  (0.2ms) ROLLBACK
7227
+  (0.3ms) SELECT pg_advisory_unlock(6146893715189925390)
7228
+  (1.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7229
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7230
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7231
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7232
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7233
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7234
+ SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
7235
+  (48.3ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
7236
+  (48.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)
7237
+  (2.7ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
7238
+  (3.6ms) 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)
7239
+  (1.4ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
7240
+  (2.2ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
7241
+  (3.0ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
7242
+  (3.9ms) 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)
7243
+  (1.1ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
7244
+  (1.4ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
7245
+  (1.2ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
7246
+  (1.2ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
7247
+  (1.8ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
7248
+  (3.0ms) 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)
7249
+  (2.3ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
7250
+  (2.7ms) 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)
7251
+  (1.0ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
7252
+  (0.9ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
7253
+  (1.2ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
7254
+  (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)
7255
+  (1.6ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
7256
+  (2.6ms) 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)
7257
+  (2.0ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
7258
+  (3.1ms) 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)
7259
+  (0.9ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
7260
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7261
+  (0.7ms) INSERT INTO "schema_migrations" (version) VALUES
7262
+ (20170513114409),
7263
+ (20180417171344),
7264
+ (20190127213602),
7265
+ (20180519170210),
7266
+ (20170513114002),
7267
+ (20180218172704),
7268
+ (20190304142446),
7269
+ (20180314093512),
7270
+ (20170730102424),
7271
+ (20190123160046),
7272
+ (20190123142628),
7273
+ (20180625050400),
7274
+ (20170512212941),
7275
+ (20180418141248),
7276
+ (20180307164936),
7277
+ (20180222105302),
7278
+ (20171025075304),
7279
+ (20200312150904),
7280
+ (20170513205932),
7281
+ (20181024072843),
7282
+ (20180217222410),
7283
+ (20170513121215),
7284
+ (20190124162543),
7285
+ (20181024072424),
7286
+ (20180307170349),
7287
+ (20180424141656),
7288
+ (20180218231319),
7289
+ (20170512221525),
7290
+ (20200224130804),
7291
+ (20180417164604),
7292
+ (20180319143954),
7293
+ (20180314132631),
7294
+ (20180418141305),
7295
+ (20180521211735),
7296
+ (20170513115401),
7297
+ (20200111214145),
7298
+ (20200111214631),
7299
+ (20170720161134),
7300
+ (20190123214635),
7301
+ (20190111162443),
7302
+ (20200312150008),
7303
+ (20170512214641),
7304
+ (20190127210921),
7305
+ (20200224145802),
7306
+ (20180417165744),
7307
+ (20190418133435),
7308
+ (20180222104915),
7309
+ (20190517153215);
7310
+
7311
+ 
7312
+ 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]]
7313
+  (0.2ms) BEGIN
7314
+  (0.1ms) COMMIT
7315
+ 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]]
7316
+  (0.2ms) BEGIN
7317
+  (0.1ms) COMMIT
7318
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7319
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7320
+  (0.3ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7321
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7322
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7323
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7324
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7325
+  (41.0ms) DROP DATABASE IF EXISTS "apidae_engine_test"
7326
+  (151.7ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
7327
+ SQL (0.3ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
7328
+  (0.1ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
7329
+  (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)
7330
+  (0.2ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
7331
+  (3.1ms) 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)
7332
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
7333
+  (2.4ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
7334
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
7335
+  (3.6ms) 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)
7336
+  (1.6ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
7337
+  (1.1ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
7338
+  (0.8ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
7339
+  (0.8ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
7340
+  (0.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
7341
+  (2.6ms) 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)
7342
+  (0.2ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
7343
+  (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)
7344
+  (0.8ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
7345
+  (1.1ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
7346
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
7347
+  (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)
7348
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
7349
+  (2.5ms) 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)
7350
+  (0.2ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
7351
+  (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)
7352
+  (0.9ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
7353
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
7354
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7355
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200522124205)
7356
+  (2.1ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
7357
+ 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]]
7358
+  (0.1ms) BEGIN
7359
+ ActiveRecord::InternalMetadata Create (0.3ms) 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 15:54:31.164864"], ["updated_at", "2021-07-08 15:54:31.164864"]]
7360
+  (0.2ms) COMMIT
7361
+ 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]]
7362
+  (0.1ms) BEGIN
7363
+  (0.1ms) COMMIT
7364
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7365
+  (1.0ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7366
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7367
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7368
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7369
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7370
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
7371
+  (82.4ms) DROP DATABASE IF EXISTS "apidae_engine_test"
7372
+  (176.4ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
7373
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
7374
+  (0.2ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
7375
+  (5.9ms) 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)
7376
+  (0.3ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
7377
+  (2.6ms) 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)
7378
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
7379
+  (2.3ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
7380
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
7381
+  (3.1ms) 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)
7382
+  (1.1ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
7383
+  (1.2ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
7384
+  (1.0ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
7385
+  (1.0ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
7386
+  (0.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
7387
+  (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)
7388
+  (0.5ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
7389
+  (5.0ms) 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)
7390
+  (0.8ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
7391
+  (0.9ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
7392
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
7393
+  (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)
7394
+  (0.3ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
7395
+  (2.7ms) 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)
7396
+  (0.2ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
7397
+  (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)
7398
+  (1.0ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
7399
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
7400
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7401
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200522124205)
7402
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES
7403
+ (20170513114409),
7404
+ (20180417171344),
7405
+ (20190127213602),
7406
+ (20180519170210),
7407
+ (20170513114002),
7408
+ (20180218172704),
7409
+ (20190304142446),
7410
+ (20180314093512),
7411
+ (20170730102424),
7412
+ (20190123160046),
7413
+ (20190123142628),
7414
+ (20180625050400),
7415
+ (20170512212941),
7416
+ (20180418141248),
7417
+ (20180307164936),
7418
+ (20180222105302),
7419
+ (20171025075304),
7420
+ (20200312150904),
7421
+ (20170513205932),
7422
+ (20181024072843),
7423
+ (20180217222410),
7424
+ (20170513121215),
7425
+ (20190124162543),
7426
+ (20181024072424),
7427
+ (20180307170349),
7428
+ (20180424141656),
7429
+ (20180218231319),
7430
+ (20170512221525),
7431
+ (20200224130804),
7432
+ (20180417164604),
7433
+ (20180319143954),
7434
+ (20180314132631),
7435
+ (20180418141305),
7436
+ (20180521211735),
7437
+ (20170513115401),
7438
+ (20200111214145),
7439
+ (20200111214631),
7440
+ (20170720161134),
7441
+ (20190123214635),
7442
+ (20190111162443),
7443
+ (20200312150008),
7444
+ (20170512214641),
7445
+ (20190127210921),
7446
+ (20200224145802),
7447
+ (20180417165744),
7448
+ (20190418133435),
7449
+ (20180222104915),
7450
+ (20190517153215);
7451
+
7452
+ 
7453
+  (2.2ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
7454
+ 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]]
7455
+  (0.1ms) BEGIN
7456
+ ActiveRecord::InternalMetadata Create (0.3ms) 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 15:55:10.814807"], ["updated_at", "2021-07-08 15:55:10.814807"]]
7457
+  (0.2ms) COMMIT
7458
+ 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]]
7459
+  (0.1ms) BEGIN
7460
+  (0.1ms) COMMIT
7461
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7462
+  (3.3ms) SELECT pg_try_advisory_lock(6146893715189925390)
7463
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7464
+ Migrating to AddIsActiveToApidaeReferences (20200528101957)
7465
+  (0.1ms) BEGIN
7466
+  (0.5ms) ALTER TABLE "apidae_references" ADD "is_active" boolean
7467
+  (41.5ms) CREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")
7468
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200528101957"]]
7469
+  (2.1ms) COMMIT
7470
+ 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]]
7471
+  (0.2ms) BEGIN
7472
+  (0.2ms) COMMIT
7473
+  (0.3ms) SELECT pg_advisory_unlock(6146893715189925390)
7474
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7475
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
7476
+  (0.2ms) BEGIN
7477
+ ----------------------------------------------------
7478
+ Apidae::FileImportTest: test_new_selection_insertion
7479
+ ----------------------------------------------------
7480
+ Apidae::Obj Destroy (43.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7481
+ Apidae::Project Destroy (37.2ms) DELETE FROM "apidae_projects"
7482
+ Apidae::Selection Destroy (25.9ms) DELETE FROM "apidae_selections"
7483
+ Apidae::Town Destroy (37.6ms) DELETE FROM "apidae_towns"
7484
+ Apidae::Reference Destroy (31.6ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7485
+  (0.2ms) SAVEPOINT active_record_1
7486
+ Apidae::Obj Create (0.9ms) 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 15:55:38.954674"], ["updated_at", "2021-07-08 15:55:38.954674"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
7487
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7488
+  (0.1ms) SAVEPOINT active_record_1
7489
+ 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]]
7490
+ Apidae::Project Create (0.6ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 15:55:38.967946"], ["updated_at", "2021-07-08 15:55:38.967946"]]
7491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7492
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
7493
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
7494
+ Updating selection 49063
7495
+ 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]]
7496
+  (0.1ms) SAVEPOINT active_record_1
7497
+ Apidae::Selection Create (41.8ms) 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 15:55:39.083797"], ["updated_at", "2021-07-08 15:55:39.083797"], ["apidae_project_id", 1]]
7498
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7499
+ Apidae::Obj Load (54.9ms) 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]]
7500
+ 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", 504], ["LIMIT", 1]]
7501
+  (0.1ms) SAVEPOINT active_record_1
7502
+ Apidae::SelectionObject Create (0.5ms) 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 15:55:39.221245"], ["updated_at", "2021-07-08 15:55:39.221245"]]
7503
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7504
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
7505
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 1]]
7506
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
7507
+  (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", 1]]
7508
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
7509
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
7510
+  (0.2ms) ROLLBACK
7511
+  (0.1ms) BEGIN
7512
+ ---------------------------------------------------
7513
+ Apidae::FileImportTest: test_existing_object_update
7514
+ ---------------------------------------------------
7515
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7516
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
7517
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
7518
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
7519
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7520
+  (0.2ms) SAVEPOINT active_record_1
7521
+ 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 15:55:39.231672"], ["updated_at", "2021-07-08 15:55:39.231672"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
7522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7523
+ 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]]
7524
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
7525
+  (0.2ms) SAVEPOINT active_record_1
7526
+ Apidae::Obj Update (0.3ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "title_data" = $4, "contact_data" = $5, "location_data" = $6, "booking_data" = $7, "type_data" = $8, "pictures_data" = $9, "attachments_data" = $10, "entity_data" = $11, "tags_data" = $12, "updated_at" = $13 WHERE "apidae_objs"."id" = $14 [["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}"], ["apidae_type", "STRUCTURE"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["contact_data", "{\"contacts\":[]}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["booking_data", "{}"], ["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}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["entity_data", "{}"], ["tags_data", "{}"], ["updated_at", "2021-07-08 15:55:39.244633"], ["id", 2]]
7527
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7528
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7529
+ 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]]
7530
+  (0.1ms) ROLLBACK
7531
+  (0.1ms) BEGIN
7532
+ -----------------------------------------------------
7533
+ Apidae::FileImportTest: test_existing_object_deletion
7534
+ -----------------------------------------------------
7535
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7536
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
7537
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
7538
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
7539
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7540
+  (0.1ms) SAVEPOINT active_record_1
7541
+ 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 15:55:39.252358"], ["updated_at", "2021-07-08 15:55:39.252358"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
7542
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7543
+ 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]]
7544
+ 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", 3], ["LIMIT", 1]]
7545
+  (0.1ms) SAVEPOINT active_record_1
7546
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 3]]
7547
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7548
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7549
+  (0.1ms) ROLLBACK
7550
+  (0.2ms) BEGIN
7551
+ ---------------------------------------------------------------------------------
7552
+ Apidae::FileImportTest: test_object_deletion_cancelled_if_used_by_another_project
7553
+ ---------------------------------------------------------------------------------
7554
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7555
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
7556
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
7557
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
7558
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7559
+  (0.1ms) SAVEPOINT active_record_1
7560
+ Apidae::Project Exists (0.3ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
7561
+ 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 15:55:39.266710"], ["updated_at", "2021-07-08 15:55:39.266710"]]
7562
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7563
+  (0.1ms) SAVEPOINT active_record_1
7564
+ 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]]
7565
+ 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 15:55:39.268646"], ["updated_at", "2021-07-08 15:55:39.268646"]]
7566
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7567
+  (0.1ms) SAVEPOINT active_record_1
7568
+ 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", 49063], ["created_at", "2021-07-08 15:55:39.270269"], ["updated_at", "2021-07-08 15:55:39.270269"], ["apidae_project_id", 2]]
7569
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7570
+  (0.1ms) SAVEPOINT active_record_1
7571
+ 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 99"], ["reference", "selection-99"], ["apidae_id", 49999], ["created_at", "2021-07-08 15:55:39.271764"], ["updated_at", "2021-07-08 15:55:39.271764"], ["apidae_project_id", 3]]
7572
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7573
+  (0.1ms) SAVEPOINT active_record_1
7574
+ 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", 503], ["created_at", "2021-07-08 15:55:39.274188"], ["updated_at", "2021-07-08 15:55:39.274188"], ["title_data", "{\"title\":{\"\":\"Société des violoncellistes aixois\"}}"]]
7575
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7576
+  (0.2ms) SAVEPOINT active_record_1
7577
+ 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", 4], ["created_at", "2021-07-08 15:55:39.278430"], ["updated_at", "2021-07-08 15:55:39.278430"]]
7578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7579
+  (0.2ms) SAVEPOINT active_record_1
7580
+ 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 15:55:39.280651"], ["updated_at", "2021-07-08 15:55:39.280651"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
7581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7582
+  (0.1ms) SAVEPOINT active_record_1
7583
+ 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", 5], ["created_at", "2021-07-08 15:55:39.283305"], ["updated_at", "2021-07-08 15:55:39.283305"]]
7584
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7585
+ 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]]
7586
+  (0.1ms) SAVEPOINT active_record_1
7587
+ 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", 3], ["apidae_object_id", 5], ["created_at", "2021-07-08 15:55:39.286641"], ["updated_at", "2021-07-08 15:55:39.286641"]]
7588
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7589
+  (1.0ms) 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]]
7590
+  (0.6ms) 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]]
7591
+  (0.2ms) ROLLBACK
7592
+  (0.3ms) BEGIN
7593
+ --------------------------------------------------------------
7594
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
7595
+ --------------------------------------------------------------
7596
+ Apidae::Obj Destroy (0.7ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7597
+ Apidae::Project Destroy (0.6ms) DELETE FROM "apidae_projects"
7598
+ Apidae::Selection Destroy (0.5ms) DELETE FROM "apidae_selections"
7599
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
7600
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7601
+ 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", 898922], ["LIMIT", 1]]
7602
+ Apidae::Town Load (0.4ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
7603
+  (0.1ms) SAVEPOINT active_record_1
7604
+ Apidae::Obj Create (15.7ms) 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 15:55:39.307690"], ["updated_at", "2021-07-08 15:55:39.307690"], ["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}"]]
7605
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7606
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7607
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
7608
+  (0.1ms) ROLLBACK
7609
+  (0.1ms) BEGIN
7610
+ ------------------------------------------------------
7611
+ Apidae::FileImportTest: test_existing_selection_update
7612
+ ------------------------------------------------------
7613
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7614
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
7615
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
7616
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
7617
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7618
+  (0.2ms) SAVEPOINT active_record_1
7619
+ 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", 503], ["created_at", "2021-07-08 15:55:39.341614"], ["updated_at", "2021-07-08 15:55:39.341614"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
7620
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7621
+  (0.1ms) SAVEPOINT active_record_1
7622
+ 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 15:55:39.343824"], ["updated_at", "2021-07-08 15:55:39.343824"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
7623
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7624
+  (0.1ms) SAVEPOINT active_record_1
7625
+ 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]]
7626
+ 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 15:55:39.346899"], ["updated_at", "2021-07-08 15:55:39.346899"]]
7627
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7628
+  (0.1ms) SAVEPOINT active_record_1
7629
+ 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", 49063], ["created_at", "2021-07-08 15:55:39.349242"], ["updated_at", "2021-07-08 15:55:39.349242"], ["apidae_project_id", 4]]
7630
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7631
+  (0.1ms) SAVEPOINT active_record_1
7632
+ 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 15:55:39.351621"], ["updated_at", "2021-07-08 15:55:39.351621"]]
7633
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7634
+  (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", 4]]
7635
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 4]]
7636
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
7637
+ Updating selection 49063
7638
+ 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]]
7639
+  (0.1ms) SAVEPOINT active_record_1
7640
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7641
+ 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", 4]]
7642
+ Apidae::Obj Load (0.7ms) 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]]
7643
+  (0.2ms) SAVEPOINT active_record_1
7644
+ 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", 4], ["apidae_object_id", 8], ["created_at", "2021-07-08 15:55:39.361243"], ["updated_at", "2021-07-08 15:55:39.361243"]]
7645
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7646
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
7647
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 4]]
7648
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 4]]
7649
+  (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", 4]]
7650
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
7651
+  (0.1ms) ROLLBACK
7652
+  (0.1ms) BEGIN
7653
+ ------------------------------------------------------------------------------
7654
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
7655
+ ------------------------------------------------------------------------------
7656
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7657
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
7658
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
7659
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
7660
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7661
+ 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]]
7662
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
7663
+  (0.3ms) SAVEPOINT active_record_1
7664
+ Apidae::Obj Create (1.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", 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 15:55:39.375034"], ["updated_at", "2021-07-08 15:55:39.375034"], ["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}"]]
7665
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7666
+ 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", 9], ["version", "GROUPES"], ["LIMIT", 1]]
7667
+  (0.1ms) SAVEPOINT active_record_1
7668
+ Apidae::Obj Create (1.3ms) 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 15:55:39.390539"], ["updated_at", "2021-07-08 15:55:39.390539"], ["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", 9], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
7669
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7670
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7671
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
7672
+ 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", 185789], ["LIMIT", 1]]
7673
+ 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", 9], ["version", "GROUPES"], ["LIMIT", 1]]
7674
+  (0.1ms) ROLLBACK
7675
+  (0.1ms) BEGIN
7676
+ ------------------------------------------------
7677
+ Apidae::FileImportTest: test_full_import_process
7678
+ ------------------------------------------------
7679
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7680
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
7681
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
7682
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
7683
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7684
+  (0.1ms) SAVEPOINT active_record_1
7685
+ 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", 123], ["created_at", "2021-07-08 15:55:39.404007"], ["updated_at", "2021-07-08 15:55:39.404007"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
7686
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7687
+  (0.1ms) SAVEPOINT active_record_1
7688
+ Apidae::Obj Create (0.5ms) 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 15:55:39.406628"], ["updated_at", "2021-07-08 15:55:39.406628"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
7689
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7690
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
7691
+  (0.1ms) SAVEPOINT active_record_1
7692
+ 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]]
7693
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 15:55:39.412165"], ["updated_at", "2021-07-08 15:55:39.412165"]]
7694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7695
+  (0.6ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND (apidae_type != 'internal') [["is_active", true]]
7696
+ 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", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
7697
+  (0.1ms) SAVEPOINT active_record_1
7698
+ Apidae::Reference Create (43.1ms) 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 15:55:39.424079"], ["updated_at", "2021-07-08 15:55:39.424079"], ["meta_data", "{}"], ["is_active", true]]
7699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7700
+ 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", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
7701
+  (0.1ms) SAVEPOINT active_record_1
7702
+ 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 15:55:39.470380"], ["updated_at", "2021-07-08 15:55:39.470380"], ["meta_data", "{}"], ["is_active", true]]
7703
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7704
+ 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", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
7705
+  (0.1ms) SAVEPOINT active_record_1
7706
+ 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 15:55:39.472800"], ["updated_at", "2021-07-08 15:55:39.472800"], ["meta_data", "{}"], ["is_active", true]]
7707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7708
+ 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]]
7709
+  (0.1ms) SAVEPOINT active_record_1
7710
+ 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", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2021-07-08 15:55:39.474964"], ["updated_at", "2021-07-08 15:55:39.474964"], ["meta_data", "{}"], ["is_active", false]]
7711
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7712
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2 [["is_active", true], ["apidae_type", "internal"]]
7713
+ 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]]
7714
+  (0.1ms) SAVEPOINT active_record_1
7715
+ 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 15:55:39.478250"], ["updated_at", "2021-07-08 15:55:39.478250"], ["is_active", true]]
7716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7717
+ 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]]
7718
+  (0.1ms) SAVEPOINT active_record_1
7719
+ 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 15:55:39.480396"], ["updated_at", "2021-07-08 15:55:39.480396"], ["is_active", true]]
7720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7721
+ 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]]
7722
+  (0.1ms) SAVEPOINT active_record_1
7723
+ 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 15:55:39.482454"], ["updated_at", "2021-07-08 15:55:39.482454"], ["is_active", true]]
7724
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7725
+ 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", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
7726
+  (0.1ms) SAVEPOINT active_record_1
7727
+ 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 15:55:39.484146"], ["updated_at", "2021-07-08 15:55:39.484146"], ["is_active", true]]
7728
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7729
+ 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", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
7730
+  (0.1ms) SAVEPOINT active_record_1
7731
+ 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 15:55:39.485930"], ["updated_at", "2021-07-08 15:55:39.485930"], ["is_active", true]]
7732
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7733
+ 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]]
7734
+  (0.1ms) SAVEPOINT active_record_1
7735
+ 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 15:55:39.487728"], ["updated_at", "2021-07-08 15:55:39.487728"], ["is_active", true]]
7736
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7737
+ 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]]
7738
+  (0.1ms) SAVEPOINT active_record_1
7739
+ 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 15:55:39.489528"], ["updated_at", "2021-07-08 15:55:39.489528"], ["is_active", true]]
7740
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7741
+ 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]]
7742
+  (0.1ms) SAVEPOINT active_record_1
7743
+ 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 15:55:39.491257"], ["updated_at", "2021-07-08 15:55:39.491257"], ["is_active", true]]
7744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7745
+ 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]]
7746
+  (0.1ms) SAVEPOINT active_record_1
7747
+ 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 15:55:39.493011"], ["updated_at", "2021-07-08 15:55:39.493011"], ["is_active", true]]
7748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7749
+ 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]]
7750
+  (0.1ms) SAVEPOINT active_record_1
7751
+ 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 15:55:39.494688"], ["updated_at", "2021-07-08 15:55:39.494688"], ["is_active", true]]
7752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7753
+ 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]]
7754
+  (0.1ms) SAVEPOINT active_record_1
7755
+ 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 15:55:39.496382"], ["updated_at", "2021-07-08 15:55:39.496382"], ["is_active", true]]
7756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7757
+ 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", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
7758
+  (0.1ms) SAVEPOINT active_record_1
7759
+ 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 15:55:39.498192"], ["updated_at", "2021-07-08 15:55:39.498192"], ["is_active", true]]
7760
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7761
+ 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]]
7762
+  (0.1ms) SAVEPOINT active_record_1
7763
+ 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 15:55:39.500060"], ["updated_at", "2021-07-08 15:55:39.500060"], ["is_active", true]]
7764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7765
+ 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]]
7766
+  (0.1ms) SAVEPOINT active_record_1
7767
+ 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 15:55:39.501753"], ["updated_at", "2021-07-08 15:55:39.501753"], ["is_active", true]]
7768
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7769
+ 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", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
7770
+  (0.1ms) SAVEPOINT active_record_1
7771
+ 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 15:55:39.503619"], ["updated_at", "2021-07-08 15:55:39.503619"], ["is_active", true]]
7772
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7773
+ 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]]
7774
+  (0.1ms) SAVEPOINT active_record_1
7775
+ 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 15:55:39.505402"], ["updated_at", "2021-07-08 15:55:39.505402"], ["is_active", true]]
7776
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7777
+ 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", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
7778
+  (0.1ms) SAVEPOINT active_record_1
7779
+ 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 15:55:39.507284"], ["updated_at", "2021-07-08 15:55:39.507284"], ["is_active", true]]
7780
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7781
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7782
+ Completed 20 references update
7783
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
7784
+ 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"]]
7785
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
7786
+  (0.2ms) SAVEPOINT active_record_1
7787
+ Apidae::Town Create (2.9ms) 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 15:55:39.518228"], ["updated_at", "2021-07-08 15:55:39.518228"]]
7788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7789
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
7790
+  (0.1ms) SAVEPOINT active_record_1
7791
+ 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 15:55:39.523412"], ["updated_at", "2021-07-08 15:55:39.523412"]]
7792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7793
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
7794
+  (0.1ms) SAVEPOINT active_record_1
7795
+ 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", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2021-07-08 15:55:39.525138"], ["updated_at", "2021-07-08 15:55:39.525138"]]
7796
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7797
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
7798
+  (0.1ms) SAVEPOINT active_record_1
7799
+ Apidae::Town Update (0.2ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2021-07-08 15:55:39.526979"], ["id", 1]]
7800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7801
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
7802
+ Completed 3 towns update
7803
+ Processing file : objets_modifies/objets_modifies-2.json
7804
+ 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]]
7805
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
7806
+  (0.1ms) SAVEPOINT active_record_1
7807
+ 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 15:55:39.530737"], ["updated_at", "2021-07-08 15:55:39.530737"], ["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}"]]
7808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7809
+ Processing file : objets_modifies/objets_modifies-1.json
7810
+ 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]]
7811
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
7812
+  (0.1ms) SAVEPOINT active_record_1
7813
+ 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", "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 15:55:39.537659"], ["updated_at", "2021-07-08 15:55:39.537659"], ["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}"]]
7814
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7815
+ 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]]
7816
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
7817
+  (0.1ms) SAVEPOINT active_record_1
7818
+ Apidae::Obj Update (0.7ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "apidae_subtype" = $4, "title_data" = $5, "description_data" = $6, "contact_data" = $7, "location_data" = $8, "openings_data" = $9, "rates_data" = $10, "booking_data" = $11, "type_data" = $12, "pictures_data" = $13, "attachments_data" = $14, "entity_data" = $15, "service_data" = $16, "tags_data" = $17, "updated_at" = $18 WHERE "apidae_objs"."id" = $19 [["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}"], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["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\":{}}"], ["contact_data", "{\"contacts\":null,\"website\":{\"53824257\":{\"value\":\"https://www.acielouvert.org\",\"description\":null}}}"], ["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\":{}}"], ["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\":[]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},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}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["updated_at", "2021-07-08 15:55:39.544636"], ["id", 12]]
7819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7820
+ 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", 4826282], ["LIMIT", 1]]
7821
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
7822
+  (0.1ms) SAVEPOINT active_record_1
7823
+ Apidae::Obj Create (0.3ms) 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 15:55:39.550326"], ["updated_at", "2021-07-08 15:55:39.550326"], ["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}"]]
7824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7825
+ 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", 4828422], ["LIMIT", 1]]
7826
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
7827
+  (0.1ms) SAVEPOINT active_record_1
7828
+ Apidae::Obj Create (1.1ms) 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 15:55:39.555124"], ["updated_at", "2021-07-08 15:55:39.555124"], ["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}"]]
7829
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7830
+ Processing file : selections.json
7831
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
7832
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
7833
+ Updating selection 49063
7834
+ 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]]
7835
+  (0.1ms) SAVEPOINT active_record_1
7836
+ 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 15:55:39.570226"], ["updated_at", "2021-07-08 15:55:39.570226"], ["apidae_project_id", 5]]
7837
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7838
+ 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]]
7839
+ 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]]
7840
+  (0.1ms) SAVEPOINT active_record_1
7841
+ 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", 14], ["created_at", "2021-07-08 15:55:39.573778"], ["updated_at", "2021-07-08 15:55:39.573778"]]
7842
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7843
+ 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]]
7844
+  (0.1ms) SAVEPOINT active_record_1
7845
+ 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", 5], ["apidae_object_id", 15], ["created_at", "2021-07-08 15:55:39.575620"], ["updated_at", "2021-07-08 15:55:39.575620"]]
7846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7847
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
7848
+ 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]]
7849
+ Updating selection 49073
7850
+ 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]]
7851
+  (0.1ms) SAVEPOINT active_record_1
7852
+ 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 15:55:39.578662"], ["updated_at", "2021-07-08 15:55:39.578662"], ["apidae_project_id", 5]]
7853
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7854
+ 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", 6]]
7855
+ 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]]
7856
+  (0.1ms) SAVEPOINT active_record_1
7857
+ 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", 6], ["apidae_object_id", 12], ["created_at", "2021-07-08 15:55:39.581967"], ["updated_at", "2021-07-08 15:55:39.581967"]]
7858
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7859
+ 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]]
7860
+  (0.1ms) SAVEPOINT active_record_1
7861
+ 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", 6], ["apidae_object_id", 16], ["created_at", "2021-07-08 15:55:39.584027"], ["updated_at", "2021-07-08 15:55:39.584027"]]
7862
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7863
+ 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]]
7864
+  (0.1ms) SAVEPOINT active_record_1
7865
+ 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", 6], ["apidae_object_id", 13], ["created_at", "2021-07-08 15:55:39.585899"], ["updated_at", "2021-07-08 15:55:39.585899"]]
7866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7867
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
7868
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 6]]
7869
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
7870
+  (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]]
7871
+  (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", 6]]
7872
+ Processing file : objets_supprimes.json
7873
+ 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", 123], ["LIMIT", 1]]
7874
+ 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", 11], ["LIMIT", 1]]
7875
+  (0.1ms) SAVEPOINT active_record_1
7876
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 11]]
7877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7878
+ Processing file : elements_reference.json
7879
+ Processing file : criteres_internes.json
7880
+ Processing file : communes.json
7881
+  (0.2ms) SAVEPOINT active_record_1
7882
+ Apidae::FileImport Create (2.8ms) 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 15:55:39.603076"], ["updated_at", "2021-07-08 15:55:39.603076"], ["apidae_id", 123]]
7883
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7884
+ 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}]}
7885
+  (0.3ms) SELECT COUNT(*) FROM "apidae_projects"
7886
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
7887
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7888
+  (0.2ms) ROLLBACK
7889
+  (0.1ms) BEGIN
7890
+ -----------------------------------------------------------------------------------
7891
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
7892
+ -----------------------------------------------------------------------------------
7893
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7894
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
7895
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
7896
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
7897
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7898
+ 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", 4838849], ["LIMIT", 1]]
7899
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
7900
+  (0.2ms) SAVEPOINT active_record_1
7901
+ Apidae::Obj Create (0.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", 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 15:55:39.617437"], ["updated_at", "2021-07-08 15:55:39.617437"], ["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}"]]
7902
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7903
+ 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", 17], ["version", "HIVER"], ["LIMIT", 1]]
7904
+  (0.1ms) SAVEPOINT active_record_1
7905
+ Apidae::Obj Create (41.5ms) 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 15:55:39.625228"], ["updated_at", "2021-07-08 15:55:39.625228"], ["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", 17], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
7906
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7907
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7908
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
7909
+ 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]]
7910
+ 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", 17], ["version", "HIVER"], ["LIMIT", 1]]
7911
+  (0.2ms) ROLLBACK
7912
+  (0.1ms) BEGIN
7913
+ -------------------------------------------------
7914
+ Apidae::FileImportTest: test_new_object_insertion
7915
+ -------------------------------------------------
7916
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7917
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
7918
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
7919
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
7920
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7921
+ 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]]
7922
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
7923
+  (0.1ms) SAVEPOINT active_record_1
7924
+ 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", "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 15:55:39.681087"], ["updated_at", "2021-07-08 15:55:39.681087"], ["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}"]]
7925
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7926
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7927
+ 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]]
7928
+  (0.1ms) ROLLBACK
7929
+  (0.1ms) BEGIN
7930
+ --------------------------------------------------------
7931
+ Apidae::FileImportTest: test_existing_selection_deletion
7932
+ --------------------------------------------------------
7933
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7934
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
7935
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
7936
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
7937
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7938
+  (0.1ms) SAVEPOINT active_record_1
7939
+ Apidae::Project Exists (0.3ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
7940
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 15:55:39.691094"], ["updated_at", "2021-07-08 15:55:39.691094"]]
7941
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7942
+  (0.1ms) SAVEPOINT active_record_1
7943
+ 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 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2021-07-08 15:55:39.692953"], ["updated_at", "2021-07-08 15:55:39.692953"], ["apidae_project_id", 6]]
7944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7945
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
7946
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 6]]
7947
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
7948
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 6]]
7949
+  (0.4ms) SELECT COUNT(*) FROM "apidae_selections"
7950
+  (0.2ms) ROLLBACK
7951
+  (0.1ms) BEGIN
7952
+ ---------------------------------------------------------------------------
7953
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
7954
+ ---------------------------------------------------------------------------
7955
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7956
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
7957
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
7958
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
7959
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7960
+ 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", 4838849], ["LIMIT", 1]]
7961
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
7962
+  (0.2ms) SAVEPOINT active_record_1
7963
+ Apidae::Obj Create (1.1ms) 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 15:55:39.706413"], ["updated_at", "2021-07-08 15:55:39.706413"], ["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}"]]
7964
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7965
+ 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", 20], ["version", "HIVER"], ["LIMIT", 1]]
7966
+  (0.1ms) SAVEPOINT active_record_1
7967
+ 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 15:55:39.717256"], ["updated_at", "2021-07-08 15:55:39.717256"], ["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", 20], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
7968
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7969
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7970
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
7971
+ 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]]
7972
+ 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", 20], ["version", "HIVER"], ["LIMIT", 1]]
7973
+ 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", 20], ["LIMIT", 1]]
7974
+  (0.1ms) ROLLBACK
7975
+  (0.1ms) BEGIN
7976
+ --------------------------------------------------------------------------------
7977
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
7978
+ --------------------------------------------------------------------------------
7979
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7980
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
7981
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
7982
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
7983
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
7984
+ 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]]
7985
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
7986
+  (0.1ms) SAVEPOINT active_record_1
7987
+ 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", 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 15:55:39.731774"], ["updated_at", "2021-07-08 15:55:39.731774"], ["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}"]]
7988
+  (0.2ms) RELEASE SAVEPOINT active_record_1
7989
+ 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]]
7990
+  (0.1ms) SAVEPOINT active_record_1
7991
+ Apidae::Obj Create (0.5ms) 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 15:55:39.746305"], ["updated_at", "2021-07-08 15:55:39.746305"], ["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\"]}"]]
7992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
7993
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7994
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
7995
+ 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]]
7996
+ 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]]
7997
+  (0.2ms) ROLLBACK
7998
+  (0.1ms) BEGIN
7999
+ ---------------------------------------------------------------
8000
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
8001
+ ---------------------------------------------------------------
8002
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8003
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
8004
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8005
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8006
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8007
+ 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", 4838849], ["LIMIT", 1]]
8008
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
8009
+  (0.1ms) SAVEPOINT active_record_1
8010
+ Apidae::Obj Create (0.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", 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 15:55:39.761652"], ["updated_at", "2021-07-08 15:55:39.761652"], ["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}"]]
8011
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8012
+ Apidae::Obj Load (0.1ms) 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", 24], ["version", "HIVER"], ["LIMIT", 1]]
8013
+  (0.1ms) SAVEPOINT active_record_1
8014
+ 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 15:55:39.768855"], ["updated_at", "2021-07-08 15:55:39.768855"], ["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", 24], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
8015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8016
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8017
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
8018
+ 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", 4838849], ["LIMIT", 1]]
8019
+ 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", 24], ["version", "HIVER"], ["LIMIT", 1]]
8020
+ 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", 24], ["LIMIT", 1]]
8021
+  (0.1ms) ROLLBACK
8022
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
8023
+  (0.2ms) BEGIN
8024
+ ---------------------------------------------------------------------------------
8025
+ Apidae::FileImportTest: test_object_deletion_cancelled_if_used_by_another_project
8026
+ ---------------------------------------------------------------------------------
8027
+ Apidae::Obj Destroy (0.6ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8028
+ Apidae::Project Destroy (0.4ms) DELETE FROM "apidae_projects"
8029
+ Apidae::Selection Destroy (0.5ms) DELETE FROM "apidae_selections"
8030
+ Apidae::Town Destroy (0.4ms) DELETE FROM "apidae_towns"
8031
+ Apidae::Reference Destroy (0.6ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8032
+  (0.2ms) SAVEPOINT active_record_1
8033
+ Apidae::Project Exists (0.3ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
8034
+ 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 15:56:14.237643"], ["updated_at", "2021-07-08 15:56:14.237643"]]
8035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8036
+  (0.1ms) SAVEPOINT active_record_1
8037
+ 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]]
8038
+ Apidae::Project Create (0.2ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 456], ["created_at", "2021-07-08 15:56:14.239830"], ["updated_at", "2021-07-08 15:56:14.239830"]]
8039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8040
+  (0.1ms) SAVEPOINT active_record_1
8041
+ 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 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2021-07-08 15:56:14.250221"], ["updated_at", "2021-07-08 15:56:14.250221"], ["apidae_project_id", 7]]
8042
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8043
+  (0.1ms) SAVEPOINT active_record_1
8044
+ 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 99"], ["reference", "selection-99"], ["apidae_id", 49999], ["created_at", "2021-07-08 15:56:14.252460"], ["updated_at", "2021-07-08 15:56:14.252460"], ["apidae_project_id", 8]]
8045
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8046
+  (0.1ms) SAVEPOINT active_record_1
8047
+ Apidae::Obj Create (0.5ms) 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 15:56:14.289101"], ["updated_at", "2021-07-08 15:56:14.289101"], ["title_data", "{\"title\":{\"\":\"Société des violoncellistes aixois\"}}"]]
8048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8049
+  (0.1ms) SAVEPOINT active_record_1
8050
+ Apidae::SelectionObject Create (0.4ms) 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", 8], ["apidae_object_id", 26], ["created_at", "2021-07-08 15:56:14.305106"], ["updated_at", "2021-07-08 15:56:14.305106"]]
8051
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8052
+  (0.1ms) SAVEPOINT active_record_1
8053
+ 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 15:56:14.307358"], ["updated_at", "2021-07-08 15:56:14.307358"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
8054
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8055
+  (0.1ms) SAVEPOINT active_record_1
8056
+ 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", 8], ["apidae_object_id", 27], ["created_at", "2021-07-08 15:56:14.309471"], ["updated_at", "2021-07-08 15:56:14.309471"]]
8057
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8058
+ 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]]
8059
+  (0.1ms) SAVEPOINT active_record_1
8060
+ 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", 9], ["apidae_object_id", 27], ["created_at", "2021-07-08 15:56:14.314377"], ["updated_at", "2021-07-08 15:56:14.314377"]]
8061
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8062
+  (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", 8]]
8063
+  (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", 9]]
8064
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 7]]
8065
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
8066
+ Updating selection 49063
8067
+ 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]]
8068
+  (0.1ms) SAVEPOINT active_record_1
8069
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8070
+ 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", 8]]
8071
+ 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 [["apidae_id", 504]]
8072
+ 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", 8], ["apidae_object_id", 27]]
8073
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 7]]
8074
+  (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", 8]]
8075
+ 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]]
8076
+ 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", 27], ["LIMIT", 1]]
8077
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8078
+  (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", 9]]
8079
+  (0.2ms) ROLLBACK
8080
+  (0.2ms) BEGIN
8081
+ --------------------------------------------------------------
8082
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
8083
+ --------------------------------------------------------------
8084
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8085
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
8086
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
8087
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
8088
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8089
+ 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", 898922], ["LIMIT", 1]]
8090
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
8091
+  (0.3ms) SAVEPOINT active_record_1
8092
+ Apidae::Obj Create (1.1ms) 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 15:56:14.400170"], ["updated_at", "2021-07-08 15:56:14.400170"], ["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}"]]
8093
+  (0.3ms) RELEASE SAVEPOINT active_record_1
8094
+  (1.1ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8095
+ Apidae::Obj Load (1.7ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
8096
+  (0.2ms) ROLLBACK
8097
+  (0.1ms) BEGIN
8098
+ -----------------------------------------------------
8099
+ Apidae::FileImportTest: test_existing_object_deletion
8100
+ -----------------------------------------------------
8101
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8102
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
8103
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
8104
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
8105
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8106
+  (0.1ms) SAVEPOINT active_record_1
8107
+ 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 15:56:14.424883"], ["updated_at", "2021-07-08 15:56:14.424883"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
8108
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8109
+ 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]]
8110
+ Apidae::Selection Exists (0.5ms) 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", 29], ["LIMIT", 1]]
8111
+  (0.1ms) SAVEPOINT active_record_1
8112
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 29]]
8113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8114
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8115
+  (0.2ms) ROLLBACK
8116
+  (0.1ms) BEGIN
8117
+ ----------------------------------------------------
8118
+ Apidae::FileImportTest: test_new_selection_insertion
8119
+ ----------------------------------------------------
8120
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8121
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8122
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8123
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8124
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8125
+  (0.1ms) SAVEPOINT active_record_1
8126
+ 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 15:56:14.436353"], ["updated_at", "2021-07-08 15:56:14.436353"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
8127
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8128
+  (0.1ms) SAVEPOINT active_record_1
8129
+ Apidae::Project Exists (0.3ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
8130
+ 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 15:56:14.439317"], ["updated_at", "2021-07-08 15:56:14.439317"]]
8131
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8132
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 9]]
8133
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections" WHERE 1=0
8134
+ Updating selection 49063
8135
+ 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]]
8136
+  (0.2ms) SAVEPOINT active_record_1
8137
+ 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 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2021-07-08 15:56:14.514208"], ["updated_at", "2021-07-08 15:56:14.514208"], ["apidae_project_id", 9]]
8138
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8139
+ 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", 10]]
8140
+ 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]]
8141
+  (0.1ms) SAVEPOINT active_record_1
8142
+ 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", 10], ["apidae_object_id", 30], ["created_at", "2021-07-08 15:56:14.519704"], ["updated_at", "2021-07-08 15:56:14.519704"]]
8143
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8144
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
8145
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 10]]
8146
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 9]]
8147
+  (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", 10]]
8148
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
8149
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
8150
+  (0.1ms) ROLLBACK
8151
+  (0.1ms) BEGIN
8152
+ ---------------------------------------------------------------------------
8153
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
8154
+ ---------------------------------------------------------------------------
8155
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8156
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8157
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
8158
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
8159
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8160
+ 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]]
8161
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
8162
+  (0.1ms) SAVEPOINT active_record_1
8163
+ 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.\",\"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 15:56:14.533218"], ["updated_at", "2021-07-08 15:56:14.533218"], ["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}"]]
8164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8165
+ 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", 31], ["version", "HIVER"], ["LIMIT", 1]]
8166
+  (0.2ms) SAVEPOINT active_record_1
8167
+ 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 15:56:14.541921"], ["updated_at", "2021-07-08 15:56:14.541921"], ["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", 31], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
8168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8169
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8170
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
8171
+ 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]]
8172
+ Apidae::Obj Load (0.4ms) 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", 31], ["version", "HIVER"], ["LIMIT", 1]]
8173
+ 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", 31], ["LIMIT", 1]]
8174
+  (0.2ms) ROLLBACK
8175
+  (0.1ms) BEGIN
8176
+ --------------------------------------------------------------------------------
8177
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
8178
+ --------------------------------------------------------------------------------
8179
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8180
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8181
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8182
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
8183
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8184
+ 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]]
8185
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
8186
+  (0.1ms) SAVEPOINT active_record_1
8187
+ Apidae::Obj Create (1.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 15:56:14.558265"], ["updated_at", "2021-07-08 15:56:14.558265"], ["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}"]]
8188
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8189
+ 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", 33], ["version", "GROUPES"], ["LIMIT", 1]]
8190
+  (0.1ms) SAVEPOINT active_record_1
8191
+ 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", "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 15:56:14.571723"], ["updated_at", "2021-07-08 15:56:14.571723"], ["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", 33], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
8192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8193
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8194
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
8195
+ 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]]
8196
+ 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", 33], ["version", "GROUPES"], ["LIMIT", 1]]
8197
+  (0.1ms) ROLLBACK
8198
+  (0.1ms) BEGIN
8199
+ ---------------------------------------------------------------
8200
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
8201
+ ---------------------------------------------------------------
8202
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8203
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8204
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8205
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8206
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8207
+ 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", 4838849], ["LIMIT", 1]]
8208
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
8209
+  (0.1ms) SAVEPOINT active_record_1
8210
+ 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 15:56:14.584985"], ["updated_at", "2021-07-08 15:56:14.584985"], ["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}"]]
8211
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8212
+ 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", 35], ["version", "HIVER"], ["LIMIT", 1]]
8213
+  (0.2ms) SAVEPOINT active_record_1
8214
+ 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 15:56:14.593869"], ["updated_at", "2021-07-08 15:56:14.593869"], ["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", 35], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
8215
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8216
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8217
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
8218
+ 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]]
8219
+ 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", 35], ["version", "HIVER"], ["LIMIT", 1]]
8220
+ 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", 35], ["LIMIT", 1]]
8221
+  (0.1ms) ROLLBACK
8222
+  (0.1ms) BEGIN
8223
+ ------------------------------------------------------------------------------
8224
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
8225
+ ------------------------------------------------------------------------------
8226
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8227
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8228
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8229
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8230
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8231
+ 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", 185789], ["LIMIT", 1]]
8232
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
8233
+  (0.1ms) SAVEPOINT active_record_1
8234
+ Apidae::Obj Create (1.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", 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 15:56:14.608362"], ["updated_at", "2021-07-08 15:56:14.608362"], ["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}"]]
8235
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8236
+ 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", 37], ["version", "GROUPES"], ["LIMIT", 1]]
8237
+  (0.1ms) SAVEPOINT active_record_1
8238
+ 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", "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 15:56:14.623482"], ["updated_at", "2021-07-08 15:56:14.623482"], ["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", 37], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
8239
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8240
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8241
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
8242
+ 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]]
8243
+ 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", 37], ["version", "GROUPES"], ["LIMIT", 1]]
8244
+  (0.1ms) ROLLBACK
8245
+  (0.1ms) BEGIN
8246
+ ------------------------------------------------
8247
+ Apidae::FileImportTest: test_full_import_process
8248
+ ------------------------------------------------
8249
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8250
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8251
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8252
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8253
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8254
+  (0.1ms) SAVEPOINT active_record_1
8255
+ 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", 123], ["created_at", "2021-07-08 15:56:14.633947"], ["updated_at", "2021-07-08 15:56:14.633947"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
8256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8257
+  (0.1ms) SAVEPOINT active_record_1
8258
+ 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", 4826186], ["created_at", "2021-07-08 15:56:14.635991"], ["updated_at", "2021-07-08 15:56:14.635991"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
8259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8260
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
8261
+  (0.1ms) SAVEPOINT active_record_1
8262
+ Apidae::Project Exists (0.3ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
8263
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2021-07-08 15:56:14.640622"], ["updated_at", "2021-07-08 15:56:14.640622"]]
8264
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8265
+  (0.4ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND (apidae_type != 'internal') [["is_active", true]]
8266
+ 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]]
8267
+  (0.1ms) SAVEPOINT active_record_1
8268
+ Apidae::Reference Create (0.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 15:56:14.652897"], ["updated_at", "2021-07-08 15:56:14.652897"], ["meta_data", "{}"], ["is_active", true]]
8269
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8270
+ 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]]
8271
+  (0.1ms) SAVEPOINT active_record_1
8272
+ 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 15:56:14.655691"], ["updated_at", "2021-07-08 15:56:14.655691"], ["meta_data", "{}"], ["is_active", true]]
8273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8274
+ 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", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
8275
+  (0.1ms) SAVEPOINT active_record_1
8276
+ 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 15:56:14.658180"], ["updated_at", "2021-07-08 15:56:14.658180"], ["meta_data", "{}"], ["is_active", true]]
8277
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8278
+ 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]]
8279
+  (0.1ms) SAVEPOINT active_record_1
8280
+ 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", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2021-07-08 15:56:14.660400"], ["updated_at", "2021-07-08 15:56:14.660400"], ["meta_data", "{}"], ["is_active", false]]
8281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8282
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2 [["is_active", true], ["apidae_type", "internal"]]
8283
+ 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]]
8284
+  (0.1ms) SAVEPOINT active_record_1
8285
+ Apidae::Reference Create (0.4ms) 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 15:56:14.663830"], ["updated_at", "2021-07-08 15:56:14.663830"], ["is_active", true]]
8286
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8287
+ 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", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
8288
+  (0.1ms) SAVEPOINT active_record_1
8289
+ 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 15:56:14.666733"], ["updated_at", "2021-07-08 15:56:14.666733"], ["is_active", true]]
8290
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8291
+ 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]]
8292
+  (0.1ms) SAVEPOINT active_record_1
8293
+ 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 15:56:14.668827"], ["updated_at", "2021-07-08 15:56:14.668827"], ["is_active", true]]
8294
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8295
+ 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", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
8296
+  (0.1ms) SAVEPOINT active_record_1
8297
+ 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 15:56:14.670763"], ["updated_at", "2021-07-08 15:56:14.670763"], ["is_active", true]]
8298
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8299
+ 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]]
8300
+  (0.1ms) SAVEPOINT active_record_1
8301
+ 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 15:56:14.672526"], ["updated_at", "2021-07-08 15:56:14.672526"], ["is_active", true]]
8302
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8303
+ 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]]
8304
+  (0.1ms) SAVEPOINT active_record_1
8305
+ 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 15:56:14.674273"], ["updated_at", "2021-07-08 15:56:14.674273"], ["is_active", true]]
8306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8307
+ 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]]
8308
+  (0.1ms) SAVEPOINT active_record_1
8309
+ 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 15:56:14.675999"], ["updated_at", "2021-07-08 15:56:14.675999"], ["is_active", true]]
8310
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8311
+ 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]]
8312
+  (0.1ms) SAVEPOINT active_record_1
8313
+ 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 15:56:14.677766"], ["updated_at", "2021-07-08 15:56:14.677766"], ["is_active", true]]
8314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8315
+ 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]]
8316
+  (0.1ms) SAVEPOINT active_record_1
8317
+ 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 15:56:14.679484"], ["updated_at", "2021-07-08 15:56:14.679484"], ["is_active", true]]
8318
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8319
+ 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]]
8320
+  (0.1ms) SAVEPOINT active_record_1
8321
+ 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 15:56:14.681192"], ["updated_at", "2021-07-08 15:56:14.681192"], ["is_active", true]]
8322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8323
+ 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]]
8324
+  (0.1ms) SAVEPOINT active_record_1
8325
+ 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 15:56:14.682895"], ["updated_at", "2021-07-08 15:56:14.682895"], ["is_active", true]]
8326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8327
+ 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", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
8328
+  (0.1ms) SAVEPOINT active_record_1
8329
+ Apidae::Reference Create (0.3ms) 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 15:56:14.684764"], ["updated_at", "2021-07-08 15:56:14.684764"], ["is_active", true]]
8330
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8331
+ 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", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
8332
+  (0.2ms) SAVEPOINT active_record_1
8333
+ Apidae::Reference Create (0.3ms) 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 15:56:14.687865"], ["updated_at", "2021-07-08 15:56:14.687865"], ["is_active", true]]
8334
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8335
+ Apidae::Reference Load (0.6ms) 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]]
8336
+  (0.1ms) SAVEPOINT active_record_1
8337
+ Apidae::Reference Create (0.3ms) 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 15:56:14.691589"], ["updated_at", "2021-07-08 15:56:14.691589"], ["is_active", true]]
8338
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8339
+ 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]]
8340
+  (0.1ms) SAVEPOINT active_record_1
8341
+ 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 15:56:14.693829"], ["updated_at", "2021-07-08 15:56:14.693829"], ["is_active", true]]
8342
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8343
+ 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]]
8344
+  (0.1ms) SAVEPOINT active_record_1
8345
+ 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 15:56:14.695869"], ["updated_at", "2021-07-08 15:56:14.695869"], ["is_active", true]]
8346
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8347
+ 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]]
8348
+  (0.1ms) SAVEPOINT active_record_1
8349
+ 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 15:56:14.697845"], ["updated_at", "2021-07-08 15:56:14.697845"], ["is_active", true]]
8350
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8351
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8352
+ Completed 20 references update
8353
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
8354
+ 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"]]
8355
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
8356
+  (0.1ms) SAVEPOINT active_record_1
8357
+ 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", 1], ["insee_code", "01001"], ["name", "L'Abergement-Clémenciat"], ["postal_code", "01400"], ["created_at", "2021-07-08 15:56:14.708344"], ["updated_at", "2021-07-08 15:56:14.708344"]]
8358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8359
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
8360
+  (0.1ms) SAVEPOINT active_record_1
8361
+ 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 15:56:14.710203"], ["updated_at", "2021-07-08 15:56:14.710203"]]
8362
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8363
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
8364
+  (0.1ms) SAVEPOINT active_record_1
8365
+ 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", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2021-07-08 15:56:14.711717"], ["updated_at", "2021-07-08 15:56:14.711717"]]
8366
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8367
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
8368
+  (0.1ms) SAVEPOINT active_record_1
8369
+ Apidae::Town Update (0.2ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2021-07-08 15:56:14.713433"], ["id", 4]]
8370
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8371
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
8372
+ Completed 3 towns update
8373
+ Processing file : objets_modifies/objets_modifies-2.json
8374
+ 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]]
8375
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
8376
+  (0.1ms) SAVEPOINT active_record_1
8377
+ Apidae::Obj Create (4.1ms) 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 15:56:14.717084"], ["updated_at", "2021-07-08 15:56:14.717084"], ["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}"]]
8378
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8379
+ Processing file : objets_modifies/objets_modifies-1.json
8380
+ 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]]
8381
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
8382
+  (0.1ms) SAVEPOINT active_record_1
8383
+ 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 15:56:14.728748"], ["updated_at", "2021-07-08 15:56:14.728748"], ["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}"]]
8384
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8385
+ 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]]
8386
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
8387
+  (0.1ms) SAVEPOINT active_record_1
8388
+ Apidae::Obj Update (0.5ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "apidae_subtype" = $4, "title_data" = $5, "description_data" = $6, "contact_data" = $7, "location_data" = $8, "openings_data" = $9, "rates_data" = $10, "booking_data" = $11, "type_data" = $12, "pictures_data" = $13, "attachments_data" = $14, "entity_data" = $15, "service_data" = $16, "tags_data" = $17, "updated_at" = $18 WHERE "apidae_objs"."id" = $19 [["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}"], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["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\":{}}"], ["contact_data", "{\"contacts\":null,\"website\":{\"53824257\":{\"value\":\"https://www.acielouvert.org\",\"description\":null}}}"], ["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\":{}}"], ["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\":[]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},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}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["updated_at", "2021-07-08 15:56:14.734149"], ["id", 40]]
8389
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8390
+ 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", 4826282], ["LIMIT", 1]]
8391
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
8392
+  (0.1ms) SAVEPOINT active_record_1
8393
+ Apidae::Obj Create (0.3ms) 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 15:56:14.739518"], ["updated_at", "2021-07-08 15:56:14.739518"], ["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}"]]
8394
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8395
+ 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]]
8396
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
8397
+  (0.1ms) SAVEPOINT active_record_1
8398
+ 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 15:56:14.744471"], ["updated_at", "2021-07-08 15:56:14.744471"], ["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}"]]
8399
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8400
+ Processing file : selections.json
8401
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 10]]
8402
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
8403
+ Updating selection 49063
8404
+ 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]]
8405
+  (0.1ms) SAVEPOINT active_record_1
8406
+ 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 15:56:14.756475"], ["updated_at", "2021-07-08 15:56:14.756475"], ["apidae_project_id", 10]]
8407
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8408
+ 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", 11]]
8409
+ 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]]
8410
+  (0.1ms) SAVEPOINT active_record_1
8411
+ 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", 11], ["apidae_object_id", 42], ["created_at", "2021-07-08 15:56:14.760004"], ["updated_at", "2021-07-08 15:56:14.760004"]]
8412
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8413
+ 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]]
8414
+  (0.1ms) SAVEPOINT active_record_1
8415
+ 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", 11], ["apidae_object_id", 43], ["created_at", "2021-07-08 15:56:14.761867"], ["updated_at", "2021-07-08 15:56:14.761867"]]
8416
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8417
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
8418
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 11]]
8419
+ Updating selection 49073
8420
+ 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]]
8421
+  (0.1ms) SAVEPOINT active_record_1
8422
+ 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 15:56:14.764818"], ["updated_at", "2021-07-08 15:56:14.764818"], ["apidae_project_id", 10]]
8423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8424
+ 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", 12]]
8425
+ 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]]
8426
+  (0.1ms) SAVEPOINT active_record_1
8427
+ 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", 12], ["apidae_object_id", 40], ["created_at", "2021-07-08 15:56:14.767983"], ["updated_at", "2021-07-08 15:56:14.767983"]]
8428
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8429
+ 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]]
8430
+  (0.1ms) SAVEPOINT active_record_1
8431
+ 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", 12], ["apidae_object_id", 44], ["created_at", "2021-07-08 15:56:14.770189"], ["updated_at", "2021-07-08 15:56:14.770189"]]
8432
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8433
+ 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]]
8434
+  (0.1ms) SAVEPOINT active_record_1
8435
+ 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", 12], ["apidae_object_id", 41], ["created_at", "2021-07-08 15:56:14.771993"], ["updated_at", "2021-07-08 15:56:14.771993"]]
8436
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8437
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
8438
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 12]]
8439
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 10]]
8440
+  (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", 11]]
8441
+  (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", 12]]
8442
+ Processing file : objets_supprimes.json
8443
+ 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", 123], ["LIMIT", 1]]
8444
+ Apidae::Selection Exists (0.2ms) 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", 39], ["LIMIT", 1]]
8445
+  (0.1ms) SAVEPOINT active_record_1
8446
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 39]]
8447
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8448
+ Processing file : elements_reference.json
8449
+ Processing file : criteres_internes.json
8450
+ Processing file : communes.json
8451
+  (0.2ms) SAVEPOINT active_record_1
8452
+ Apidae::FileImport Create (0.5ms) 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 15:56:14.789365"], ["updated_at", "2021-07-08 15:56:14.789365"], ["apidae_id", 123]]
8453
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8454
+ 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}]}
8455
+  (0.2ms) SELECT COUNT(*) FROM "apidae_projects"
8456
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
8457
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8458
+  (0.2ms) ROLLBACK
8459
+  (0.1ms) BEGIN
8460
+ ---------------------------------------------------
8461
+ Apidae::FileImportTest: test_existing_object_update
8462
+ ---------------------------------------------------
8463
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8464
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
8465
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
8466
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
8467
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8468
+  (0.1ms) SAVEPOINT active_record_1
8469
+ 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 15:56:14.798974"], ["updated_at", "2021-07-08 15:56:14.798974"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
8470
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8471
+ 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]]
8472
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
8473
+  (0.1ms) SAVEPOINT active_record_1
8474
+ Apidae::Obj Update (0.3ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "title_data" = $4, "contact_data" = $5, "location_data" = $6, "booking_data" = $7, "type_data" = $8, "pictures_data" = $9, "attachments_data" = $10, "entity_data" = $11, "tags_data" = $12, "updated_at" = $13 WHERE "apidae_objs"."id" = $14 [["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}"], ["apidae_type", "STRUCTURE"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["contact_data", "{\"contacts\":[]}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["booking_data", "{}"], ["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}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["entity_data", "{}"], ["tags_data", "{}"], ["updated_at", "2021-07-08 15:56:14.802593"], ["id", 45]]
8475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8476
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8477
+ 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]]
8478
+  (0.1ms) ROLLBACK
8479
+  (0.1ms) BEGIN
8480
+ --------------------------------------------------------
8481
+ Apidae::FileImportTest: test_existing_selection_deletion
8482
+ --------------------------------------------------------
8483
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8484
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
8485
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
8486
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8487
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8488
+  (0.2ms) SAVEPOINT active_record_1
8489
+ 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]]
8490
+ 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 15:56:14.811545"], ["updated_at", "2021-07-08 15:56:14.811545"]]
8491
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8492
+  (0.1ms) SAVEPOINT active_record_1
8493
+ 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 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2021-07-08 15:56:14.813240"], ["updated_at", "2021-07-08 15:56:14.813240"], ["apidae_project_id", 11]]
8494
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8495
+  (0.4ms) SELECT COUNT(*) FROM "apidae_selections"
8496
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 11]]
8497
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
8498
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 11]]
8499
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
8500
+  (0.1ms) ROLLBACK
8501
+  (0.1ms) BEGIN
8502
+ ------------------------------------------------------
8503
+ Apidae::FileImportTest: test_existing_selection_update
8504
+ ------------------------------------------------------
8505
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8506
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8507
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8508
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
8509
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8510
+  (0.1ms) SAVEPOINT active_record_1
8511
+ 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", 503], ["created_at", "2021-07-08 15:56:14.822532"], ["updated_at", "2021-07-08 15:56:14.822532"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
8512
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8513
+  (0.1ms) SAVEPOINT active_record_1
8514
+ 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 15:56:14.824587"], ["updated_at", "2021-07-08 15:56:14.824587"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
8515
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8516
+  (0.1ms) SAVEPOINT active_record_1
8517
+ 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]]
8518
+ 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 15:56:14.826650"], ["updated_at", "2021-07-08 15:56:14.826650"]]
8519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8520
+  (0.1ms) SAVEPOINT active_record_1
8521
+ 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", 49063], ["created_at", "2021-07-08 15:56:14.827982"], ["updated_at", "2021-07-08 15:56:14.827982"], ["apidae_project_id", 12]]
8522
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8523
+  (0.1ms) SAVEPOINT active_record_1
8524
+ Apidae::SelectionObject Create (0.6ms) 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", 14], ["apidae_object_id", 46], ["created_at", "2021-07-08 15:56:14.831104"], ["updated_at", "2021-07-08 15:56:14.831104"]]
8525
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8526
+  (0.6ms) 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", 14]]
8527
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 12]]
8528
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
8529
+ Updating selection 49063
8530
+ 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]]
8531
+  (0.1ms) SAVEPOINT active_record_1
8532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8533
+ 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", 14]]
8534
+ 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]]
8535
+  (0.1ms) SAVEPOINT active_record_1
8536
+ 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", 14], ["apidae_object_id", 47], ["created_at", "2021-07-08 15:56:14.840125"], ["updated_at", "2021-07-08 15:56:14.840125"]]
8537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8538
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
8539
+ Apidae::SelectionObject Destroy (0.1ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 14]]
8540
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 12]]
8541
+  (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", 14]]
8542
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
8543
+  (0.1ms) ROLLBACK
8544
+  (0.1ms) BEGIN
8545
+ -------------------------------------------------
8546
+ Apidae::FileImportTest: test_new_object_insertion
8547
+ -------------------------------------------------
8548
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8549
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
8550
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
8551
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8552
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8553
+ 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]]
8554
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
8555
+  (0.1ms) SAVEPOINT active_record_1
8556
+ 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 15:56:14.848541"], ["updated_at", "2021-07-08 15:56:14.848541"], ["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}"]]
8557
+  (0.2ms) RELEASE SAVEPOINT active_record_1
8558
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8559
+ 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]]
8560
+  (0.2ms) ROLLBACK
8561
+  (0.1ms) BEGIN
8562
+ -----------------------------------------------------------------------------------
8563
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
8564
+ -----------------------------------------------------------------------------------
8565
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8566
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
8567
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
8568
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
8569
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
8570
+ 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", 4838849], ["LIMIT", 1]]
8571
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
8572
+  (0.1ms) SAVEPOINT active_record_1
8573
+ 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 15:56:14.859671"], ["updated_at", "2021-07-08 15:56:14.859671"], ["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}"]]
8574
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8575
+ 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]]
8576
+  (0.1ms) SAVEPOINT active_record_1
8577
+ 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 15:56:14.868288"], ["updated_at", "2021-07-08 15:56:14.868288"], ["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", 49], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
8578
+  (0.1ms) RELEASE SAVEPOINT active_record_1
8579
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
8580
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
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
+ 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
+  (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