apidae 0.11.0 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,29 @@
1
+ <%= form_for(@export, url: apidae.import_create_path, method: :post, html: {class: styles[:form]}) do |f| %>
2
+ <% if @export.errors.any? %>
3
+ <div id="apidae_form_errors">
4
+ <ul>
5
+ <% @export.errors.full_messages.each do |message| %>
6
+ <li><%= message %></li>
7
+ <% end %>
8
+ </ul>
9
+ </div>
10
+ <% end %>
11
+ <p>
12
+ Pour que les données soient importées correctement,
13
+ vos projets doivent être configurés pour exporter les données au format <strong>JSON V2</strong>, en
14
+ <strong>groupant les objets exportés</strong>.
15
+ </p>
16
+
17
+ <div class="<%= styles[:form_field] %>">
18
+ <div><%= f.label :project_id %></div>
19
+ <div><%= f.text_field :project_id, placeholder: "Ex: 1234" %></div>
20
+ </div>
21
+ <div class="<%= styles[:form_field] %>">
22
+ <div><%= f.label :file_url %></div>
23
+ <div><%= f.text_field :file_url, placeholder: "Ex: http://export.apidae-tourisme.com/exports/1234_20200101-5678_ABCdef.zip" %></div>
24
+ </div>
25
+ <%= f.hidden_field :status %>
26
+ <div class="<%= styles[:form_actions] %>">
27
+ <%= f.submit 'Valider' %> | <%= link_to 'Retour', :back, class: styles[:back] %>
28
+ </div>
29
+ <% end %>
@@ -0,0 +1,11 @@
1
+ <%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
2
+ <div id="apidae_header" class="<%= styles[:header] %>">
3
+ <%= link_to 'Retour', :back, class: styles[:back] %>
4
+ <h1 class="<%= styles[:h1] %>">Apidae - Importer un fichier de données</h1>
5
+ </div>
6
+ <div id="apidae_import" class="<%= styles[:wrapper] %>">
7
+ <div id="apidae_form" class="<%= styles[:body] %>">
8
+ <%= render 'form', styles: styles %>
9
+ </div>
10
+ </div>
11
+ <% end %>
@@ -10,12 +10,21 @@ fr:
10
10
  apidae/obj:
11
11
  apidae_id: Identifiant Apidae
12
12
  selection_apidae_id: Sélection Apidae
13
+ apidae/export:
14
+ project_id: Identifiant du projet
15
+ file_url: URL du fichier d'export
13
16
  errors:
14
17
  models:
15
18
  apidae/project:
16
19
  attributes:
17
20
  apidae_id:
18
21
  taken: Un projet avec cet identifiant Apidae existe déjà.
22
+ apidae/export:
23
+ attributes:
24
+ file_url:
25
+ blank: est requise
26
+ project_id:
27
+ blank: est requis
19
28
  apidae:
20
29
  file_import:
21
30
  status:
@@ -39,4 +48,21 @@ fr:
39
48
  HANDICAP: Handicap
40
49
  TOURISME_AFFAIRES: Affaires
41
50
  GROUPES: Groupes
42
- PRESTATAIRE_ACTIVITES: Prestataire d'activités
51
+ PRESTATAIRE_ACTIVITES: Prestataire d'activités
52
+ types:
53
+ ACTIVITE: Activités
54
+ COMMERCE_ET_SERVICE: Commerces et services
55
+ DEGUSTATION: Producteurs
56
+ DOMAINE_SKIABLE: Domaines skiables
57
+ EQUIPEMENT: Équipements
58
+ FETE_ET_MANIFESTATION: Fêtes et manifestations
59
+ HEBERGEMENT_COLLECTIF: Hébergements collectifs
60
+ HEBERGEMENT_LOCATIF: Hébergements locatifs
61
+ HOTELLERIE: Hôtellerie
62
+ HOTELLERIE_PLEIN_AIR: Hôtellerie de plein air
63
+ PATRIMOINE_CULTUREL: Patrimoine culturel
64
+ PATRIMOINE_NATUREL: Patrimoine naturel
65
+ RESTAURATION: Restauration
66
+ SEJOUR_PACKAGE: Séjour et produits packagés
67
+ STRUCTURE: Entité juridique
68
+ TERRITOIRE: Territoire
@@ -15,6 +15,8 @@ Apidae::Engine.routes.draw do
15
15
 
16
16
  match 'import/callback', via: :post, to: 'import#callback'
17
17
  match 'import/run', via: :post, to: 'import#run'
18
+ match 'import/new', via: :get, to: 'import#new'
19
+ match 'import/create', via: :post, to: 'import#create'
18
20
 
19
21
  root to: 'dashboard#index'
20
22
  end
@@ -1,18 +1,17 @@
1
1
  class MigrateLocalizedApidaeObjFields < ActiveRecord::Migration[5.2]
2
2
  def change
3
- # Todo
4
3
  Apidae::Obj.all.each do |o|
5
- o.short_desc_hash = {'fr' => o.description_data['short_desc']} unless (o.description_data.blank? || !o.description_data.has_key?('short_desc') || o.description_data['short_desc'].is_a?(Hash))
6
- o.long_desc_hash = {'fr' => o.description_data['long_desc']} unless (o.description_data.blank? || !o.description_data.has_key?('long_desc') || o.description_data['long_desc'].is_a?(Hash))
4
+ o.set_short_desc({'fr' => o.description_data['short_desc']}) unless (o.description_data.blank? || !o.description_data.has_key?('short_desc') || o.description_data['short_desc'].is_a?(Hash))
5
+ o.set_long_desc({'fr' => o.description_data['long_desc']}) unless (o.description_data.blank? || !o.description_data.has_key?('long_desc') || o.description_data['long_desc'].is_a?(Hash))
7
6
  o.theme_desc = {'fr' => o.description_data['theme_desc']} unless (o.description_data.blank? || !o.description_data.has_key?('theme_desc') || o.description_data['theme_desc'].is_a?(Hash))
8
7
  o.private_desc = {'fr' => o.description_data['private_desc']} unless (o.description_data.blank? || !o.description_data.has_key?('private_desc') || o.description_data['private_desc'].is_a?(Hash))
9
- o.pictures_hash = {'fr' => o.pictures_data['pictures']} unless (o.pictures_data.blank? || !o.pictures_data.has_key?('pictures') || o.pictures_data['pictures'].is_a?(Hash))
10
- o.attachments_hash = {'fr' => o.attachments_data['attachments']} unless (o.attachments_data.blank? || !o.attachments_data.has_key?('attachments') || o.attachments_data['attachments'].is_a?(Hash))
11
- o.openings_desc_hash = {'fr' => o.openings_data['openings_desc']} unless (o.openings_data.blank? || !o.openings_data.has_key?('openings_desc') || o.openings_data['openings_desc'].is_a?(Hash))
12
- o.rates_desc_hash = {'fr' => o.rates_data['rates_desc']} unless (o.rates_data.blank? || !o.rates_data.has_key?('rates_desc') || o.rates_data['rates_desc'].is_a?(Hash))
13
- o.includes_hash = {'fr' => o.rates_data['includes']} unless (o.rates_data.blank? || !o.rates_data.has_key?('includes') || o.rates_data['includes'].is_a?(Hash))
14
- o.excludes_hash = {'fr' => o.rates_data['excludes']} unless (o.rates_data.blank? || !o.rates_data.has_key?('excludes') || o.rates_data['excludes'].is_a?(Hash))
15
- o.extra_hash = {'fr' => o.type_data['extra']} unless (o.type_data.blank? || !o.type_data.has_key?('extra') || o.type_data['extra'].is_a?(Hash))
8
+ o.set_pictures({'fr' => o.pictures_data['pictures']}) unless (o.pictures_data.blank? || !o.pictures_data.has_key?('pictures') || o.pictures_data['pictures'].is_a?(Hash))
9
+ o.set_attachments({'fr' => o.attachments_data['attachments']}) unless (o.attachments_data.blank? || !o.attachments_data.has_key?('attachments') || o.attachments_data['attachments'].is_a?(Hash))
10
+ o.set_openings_desc({'fr' => o.openings_data['openings_desc']}) unless (o.openings_data.blank? || !o.openings_data.has_key?('openings_desc') || o.openings_data['openings_desc'].is_a?(Hash))
11
+ o.set_rates_desc({'fr' => o.rates_data['rates_desc']}) unless (o.rates_data.blank? || !o.rates_data.has_key?('rates_desc') || o.rates_data['rates_desc'].is_a?(Hash))
12
+ o.set_includes({'fr' => o.rates_data['includes']}) unless (o.rates_data.blank? || !o.rates_data.has_key?('includes') || o.rates_data['includes'].is_a?(Hash))
13
+ o.set_excludes({'fr' => o.rates_data['excludes']}) unless (o.rates_data.blank? || !o.rates_data.has_key?('excludes') || o.rates_data['excludes'].is_a?(Hash))
14
+ o.set_extra({'fr' => o.type_data['extra']}) unless (o.type_data.blank? || !o.type_data.has_key?('extra') || o.type_data['extra'].is_a?(Hash))
16
15
  o.save!
17
16
  end
18
17
  end
@@ -0,0 +1,5 @@
1
+ class RenameObjsContactToContactData < ActiveRecord::Migration[5.2]
2
+ def change
3
+ rename_column :apidae_objs, :contact, :contact_data
4
+ end
5
+ end
@@ -0,0 +1,6 @@
1
+ class AddIsActiveToApidaeReferences < ActiveRecord::Migration[5.2]
2
+ def change
3
+ add_column :apidae_references, :is_active, :boolean
4
+ add_index :apidae_references, :is_active, unique: false
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "0.11.0"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # It's strongly recommended that you check this file into your version control system.
12
12
 
13
- ActiveRecord::Schema.define(version: 2020_03_12_150904) do
13
+ ActiveRecord::Schema.define(version: 2020_05_22_124205) do
14
14
 
15
15
  # These are extensions that must be enabled in order to support this database
16
16
  enable_extension "plpgsql"
@@ -47,7 +47,7 @@ ActiveRecord::Schema.define(version: 2020_03_12_150904) do
47
47
  t.integer "apidae_id"
48
48
  t.string "apidae_type"
49
49
  t.string "apidae_subtype"
50
- t.jsonb "contact"
50
+ t.jsonb "contact_data"
51
51
  t.jsonb "type_data"
52
52
  t.jsonb "openings_data"
53
53
  t.datetime "created_at", null: false
@@ -1532,3 +1532,1867 @@ Apidae::FileImportTest: test_new_object_insertion_with_versions
1532
1532
  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", 209], ["version", "HIVER"], ["LIMIT", 1]]
1533
1533
  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", 209], ["LIMIT", 1]]
1534
1534
   (0.2ms) ROLLBACK
1535
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1536
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1537
+  (25.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1538
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1539
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1540
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1541
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1542
+  (250.4ms) DROP DATABASE IF EXISTS "apidae_engine_test"
1543
+  (608.2ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
1544
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1545
+  (0.2ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
1546
+  (12.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)
1547
+  (0.3ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
1548
+  (3.4ms) 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)
1549
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
1550
+  (1.8ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
1551
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
1552
+  (3.4ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact" 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)
1553
+  (0.8ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
1554
+  (1.5ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
1555
+  (0.8ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
1556
+  (0.8ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
1557
+  (0.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
1558
+  (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)
1559
+  (0.2ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
1560
+  (2.5ms) 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)
1561
+  (0.8ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
1562
+  (0.9ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
1563
+  (0.1ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
1564
+  (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)
1565
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
1566
+  (2.4ms) 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)
1567
+  (0.3ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
1568
+  (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)
1569
+  (0.9ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
1570
+  (2.1ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1571
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1572
+  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES (20200312150904)
1573
+  (2.0ms) 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)
1574
+ 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]]
1575
+  (0.1ms) BEGIN
1576
+ 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", "2020-05-22 13:06:19.828941"], ["updated_at", "2020-05-22 13:06:19.828941"]]
1577
+  (0.3ms) COMMIT
1578
+ 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]]
1579
+  (0.1ms) BEGIN
1580
+  (0.1ms) COMMIT
1581
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1582
+  (0.2ms) SELECT pg_try_advisory_lock(6146893715189925390)
1583
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1584
+ Migrating to CreateApidaeSelections (20170512212941)
1585
+  (0.1ms) BEGIN
1586
+  (21.4ms) 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)
1587
+  (0.2ms) ROLLBACK
1588
+  (0.3ms) SELECT pg_advisory_unlock(6146893715189925390)
1589
+  (0.1ms) SELECT pg_try_advisory_lock(6146893715189925390)
1590
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1591
+ Migrating to CreateApidaeSelections (20170512212941)
1592
+  (0.1ms) BEGIN
1593
+  (5.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)
1594
+  (0.2ms) ROLLBACK
1595
+  (0.2ms) SELECT pg_advisory_unlock(6146893715189925390)
1596
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1597
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1598
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1599
+  (0.2ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1600
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1601
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
1602
+  (215.4ms) DROP DATABASE IF EXISTS "apidae_engine_test"
1603
+  (551.1ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
1604
+ SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
1605
+  (0.2ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
1606
+  (10.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)
1607
+  (0.4ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
1608
+  (5.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)
1609
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
1610
+  (2.1ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
1611
+  (0.3ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
1612
+  (3.3ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact" 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)
1613
+  (1.0ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
1614
+  (1.0ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
1615
+  (0.9ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
1616
+  (0.8ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
1617
+  (0.2ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
1618
+  (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)
1619
+  (0.3ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
1620
+  (3.4ms) 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)
1621
+  (0.8ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
1622
+  (0.8ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
1623
+  (0.1ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
1624
+  (1.6ms) 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)
1625
+  (0.2ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
1626
+  (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)
1627
+  (0.2ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
1628
+  (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)
1629
+  (0.9ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
1630
+  (2.0ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
1631
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1632
+  (0.5ms) INSERT INTO "schema_migrations" (version) VALUES (20200312150904)
1633
+  (0.8ms) INSERT INTO "schema_migrations" (version) VALUES
1634
+ (20170513114409),
1635
+ (20180417171344),
1636
+ (20190127213602),
1637
+ (20180519170210),
1638
+ (20170513114002),
1639
+ (20180218172704),
1640
+ (20190304142446),
1641
+ (20180314093512),
1642
+ (20170730102424),
1643
+ (20190123160046),
1644
+ (20190123142628),
1645
+ (20180625050400),
1646
+ (20170512212941),
1647
+ (20180418141248),
1648
+ (20180307164936),
1649
+ (20180222105302),
1650
+ (20171025075304),
1651
+ (20170513205932),
1652
+ (20181024072843),
1653
+ (20180217222410),
1654
+ (20170513121215),
1655
+ (20190124162543),
1656
+ (20181024072424),
1657
+ (20180307170349),
1658
+ (20180424141656),
1659
+ (20180218231319),
1660
+ (20170512221525),
1661
+ (20200224130804),
1662
+ (20180417164604),
1663
+ (20180319143954),
1664
+ (20180314132631),
1665
+ (20180418141305),
1666
+ (20180521211735),
1667
+ (20170513115401),
1668
+ (20200111214145),
1669
+ (20200111214631),
1670
+ (20170720161134),
1671
+ (20190123214635),
1672
+ (20190111162443),
1673
+ (20200312150008),
1674
+ (20170512214641),
1675
+ (20190127210921),
1676
+ (20200224145802),
1677
+ (20180417165744),
1678
+ (20190418133435),
1679
+ (20180222104915),
1680
+ (20190517153215);
1681
+
1682
+ 
1683
+  (4.8ms) 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)
1684
+ 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]]
1685
+  (0.2ms) BEGIN
1686
+ 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", "2020-05-22 13:07:11.779737"], ["updated_at", "2020-05-22 13:07:11.779737"]]
1687
+  (0.4ms) COMMIT
1688
+ 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]]
1689
+  (0.1ms) BEGIN
1690
+  (0.1ms) COMMIT
1691
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1692
+  (0.2ms) SELECT pg_try_advisory_lock(6146893715189925390)
1693
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1694
+ Migrating to RenameObjsContactToContactData (20200522124205)
1695
+  (0.1ms) BEGIN
1696
+  (0.4ms) ALTER TABLE "apidae_objs" RENAME COLUMN "contact" TO "contact_data"
1697
+ ActiveRecord::SchemaMigration Create (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version" [["version", "20200522124205"]]
1698
+  (6.3ms) COMMIT
1699
+ ActiveRecord::InternalMetadata Load (0.5ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
1700
+  (0.1ms) BEGIN
1701
+  (0.1ms) COMMIT
1702
+  (0.2ms) SELECT pg_advisory_unlock(6146893715189925390)
1703
+  (0.2ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1704
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1705
+  (0.2ms) BEGIN
1706
+ -----------------------------------------------------
1707
+ Apidae::FileImportTest: test_existing_object_deletion
1708
+ -----------------------------------------------------
1709
+ Apidae::Obj Destroy (26.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1710
+ Apidae::Project Destroy (9.3ms) DELETE FROM "apidae_projects"
1711
+ Apidae::Selection Destroy (12.1ms) DELETE FROM "apidae_selections"
1712
+ Apidae::Town Destroy (16.8ms) DELETE FROM "apidae_towns"
1713
+ Apidae::Reference Destroy (18.8ms) DELETE FROM "apidae_references"
1714
+  (0.2ms) SAVEPOINT active_record_1
1715
+ Apidae::Obj Create (6.8ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-22 13:07:37.410054"], ["updated_at", "2020-05-22 13:07:37.410054"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1716
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1717
+ 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]]
1718
+  (0.1ms) SAVEPOINT active_record_1
1719
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 1]]
1720
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1721
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1722
+  (0.1ms) ROLLBACK
1723
+  (0.1ms) BEGIN
1724
+ -------------------------------------------------
1725
+ Apidae::FileImportTest: test_new_object_insertion
1726
+ -------------------------------------------------
1727
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1728
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1729
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1730
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1731
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references"
1732
+ 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", 504], ["LIMIT", 1]]
1733
+  (0.2ms) ROLLBACK
1734
+  (0.2ms) BEGIN
1735
+ --------------------------------------------------------
1736
+ Apidae::FileImportTest: test_existing_selection_deletion
1737
+ --------------------------------------------------------
1738
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1739
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1740
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1741
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
1742
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1743
+  (0.2ms) SAVEPOINT active_record_1
1744
+ 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]]
1745
+ 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", "2020-05-22 13:07:37.497922"], ["updated_at", "2020-05-22 13:07:37.497922"]]
1746
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1747
+  (0.2ms) SAVEPOINT active_record_1
1748
+ Apidae::Selection Create (0.5ms) 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", "2020-05-22 13:07:37.508270"], ["updated_at", "2020-05-22 13:07:37.508270"], ["apidae_project_id", 1]]
1749
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1750
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1751
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
1752
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
1753
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
1754
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1755
+  (0.1ms) ROLLBACK
1756
+  (0.1ms) BEGIN
1757
+ --------------------------------------------------------------------------------
1758
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
1759
+ --------------------------------------------------------------------------------
1760
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1761
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1762
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1763
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1764
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references"
1765
+ 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]]
1766
+  (0.2ms) ROLLBACK
1767
+  (0.1ms) BEGIN
1768
+ ---------------------------------------------------------------
1769
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
1770
+ ---------------------------------------------------------------
1771
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1772
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1773
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
1774
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
1775
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1776
+ 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]]
1777
+  (0.2ms) ROLLBACK
1778
+  (0.1ms) BEGIN
1779
+ ---------------------------------------------------------------------------
1780
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
1781
+ ---------------------------------------------------------------------------
1782
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1783
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1784
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1785
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1786
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1787
+ 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]]
1788
+  (0.2ms) ROLLBACK
1789
+  (0.1ms) BEGIN
1790
+ --------------------------------------------------------------
1791
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
1792
+ --------------------------------------------------------------
1793
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1794
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
1795
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1796
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
1797
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
1798
+ 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", 898922], ["LIMIT", 1]]
1799
+  (0.1ms) ROLLBACK
1800
+  (0.1ms) BEGIN
1801
+ ---------------------------------------------------
1802
+ Apidae::FileImportTest: test_existing_object_update
1803
+ ---------------------------------------------------
1804
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1805
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1806
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1807
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1808
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1809
+  (0.1ms) SAVEPOINT active_record_1
1810
+ 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", "2020-05-22 13:07:37.545555"], ["updated_at", "2020-05-22 13:07:37.545555"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1812
+ 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]]
1813
+  (0.2ms) ROLLBACK
1814
+  (0.1ms) BEGIN
1815
+ -----------------------------------------------------------------------------------
1816
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
1817
+ -----------------------------------------------------------------------------------
1818
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1819
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1820
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1821
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1822
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1823
+ 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", 4838849], ["LIMIT", 1]]
1824
+  (0.1ms) ROLLBACK
1825
+  (0.1ms) BEGIN
1826
+ ------------------------------------------------------
1827
+ Apidae::FileImportTest: test_existing_selection_update
1828
+ ------------------------------------------------------
1829
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1830
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1831
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
1832
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1833
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
1834
+  (0.1ms) SAVEPOINT active_record_1
1835
+ 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", 503], ["created_at", "2020-05-22 13:07:37.557924"], ["updated_at", "2020-05-22 13:07:37.557924"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1836
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1837
+  (0.1ms) SAVEPOINT active_record_1
1838
+ 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", "2020-05-22 13:07:37.559595"], ["updated_at", "2020-05-22 13:07:37.559595"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1839
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1840
+  (0.1ms) SAVEPOINT active_record_1
1841
+ 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]]
1842
+ 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", "2020-05-22 13:07:37.561614"], ["updated_at", "2020-05-22 13:07:37.561614"]]
1843
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1844
+  (0.1ms) SAVEPOINT active_record_1
1845
+ 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", "2020-05-22 13:07:37.562933"], ["updated_at", "2020-05-22 13:07:37.562933"], ["apidae_project_id", 2]]
1846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1847
+  (0.1ms) SAVEPOINT active_record_1
1848
+ Apidae::SelectionObject Create (6.7ms) 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", 3], ["created_at", "2020-05-22 13:07:37.595752"], ["updated_at", "2020-05-22 13:07:37.595752"]]
1849
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1850
+  (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", 2]]
1851
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 2]]
1852
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1853
+ Updating selection 49063
1854
+ 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]]
1855
+  (0.1ms) SAVEPOINT active_record_1
1856
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1857
+ 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", 2]]
1858
+ 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]]
1859
+  (0.1ms) SAVEPOINT active_record_1
1860
+ 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", 2], ["apidae_object_id", 4], ["created_at", "2020-05-22 13:07:37.616909"], ["updated_at", "2020-05-22 13:07:37.616909"]]
1861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1862
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
1863
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 2]]
1864
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 2]]
1865
+  (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]]
1866
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1867
+  (0.1ms) ROLLBACK
1868
+  (0.1ms) BEGIN
1869
+ ------------------------------------------------------------------------------
1870
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
1871
+ ------------------------------------------------------------------------------
1872
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1873
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1874
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
1875
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1876
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1877
+ 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]]
1878
+  (0.1ms) ROLLBACK
1879
+  (0.1ms) BEGIN
1880
+ ----------------------------------------------------
1881
+ Apidae::FileImportTest: test_new_selection_insertion
1882
+ ----------------------------------------------------
1883
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1884
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1885
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
1886
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1887
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
1888
+  (0.1ms) SAVEPOINT active_record_1
1889
+ 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", "2020-05-22 13:07:37.632601"], ["updated_at", "2020-05-22 13:07:37.632601"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1890
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1891
+  (0.1ms) SAVEPOINT active_record_1
1892
+ 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]]
1893
+ 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", "2020-05-22 13:07:37.635567"], ["updated_at", "2020-05-22 13:07:37.635567"]]
1894
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1895
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 3]]
1896
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections" WHERE 1=0
1897
+ Updating selection 49063
1898
+ 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]]
1899
+  (0.1ms) SAVEPOINT active_record_1
1900
+ 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", "2020-05-22 13:07:37.736852"], ["updated_at", "2020-05-22 13:07:37.736852"], ["apidae_project_id", 3]]
1901
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1902
+ 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", 3]]
1903
+ 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]]
1904
+  (0.1ms) SAVEPOINT active_record_1
1905
+ 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", "2020-05-22 13:07:37.744302"], ["updated_at", "2020-05-22 13:07:37.744302"]]
1906
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1907
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
1908
+ 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]]
1909
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 3]]
1910
+  (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", 3]]
1911
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1912
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
1913
+  (0.3ms) ROLLBACK
1914
+  (0.1ms) BEGIN
1915
+ ------------------------------------------------
1916
+ Apidae::FileImportTest: test_full_import_process
1917
+ ------------------------------------------------
1918
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1919
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1920
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
1921
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
1922
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
1923
+  (0.1ms) SAVEPOINT active_record_1
1924
+ 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", "2020-05-22 13:07:37.762598"], ["updated_at", "2020-05-22 13:07:37.762598"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
1925
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1926
+  (0.3ms) SAVEPOINT active_record_1
1927
+ 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", "2020-05-22 13:07:37.765090"], ["updated_at", "2020-05-22 13:07:37.765090"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
1928
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1929
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
1930
+  (0.1ms) SAVEPOINT active_record_1
1931
+ 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]]
1932
+ 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", "2020-05-22 13:07:37.769183"], ["updated_at", "2020-05-22 13:07:37.769183"]]
1933
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1934
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
1935
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1936
+  (0.1ms) SAVEPOINT active_record_1
1937
+ Apidae::Reference Create (0.7ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-05-22 13:07:37.780846"], ["updated_at", "2020-05-22 13:07:37.780846"], ["meta_data", "{}"]]
1938
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1939
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1940
+  (0.1ms) SAVEPOINT active_record_1
1941
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2020-05-22 13:07:37.783744"], ["updated_at", "2020-05-22 13:07:37.783744"], ["meta_data", "{}"]]
1942
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1943
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1944
+  (0.1ms) SAVEPOINT active_record_1
1945
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2020-05-22 13:07:37.785609"], ["updated_at", "2020-05-22 13:07:37.785609"], ["meta_data", "{}"]]
1946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1947
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1948
+  (0.1ms) SAVEPOINT active_record_1
1949
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2020-05-22 13:07:37.787458"], ["updated_at", "2020-05-22 13:07:37.787458"], ["meta_data", "{}"]]
1950
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1951
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
1952
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
1953
+  (0.1ms) SAVEPOINT active_record_1
1954
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2020-05-22 13:07:37.790082"], ["updated_at", "2020-05-22 13:07:37.790082"]]
1955
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1956
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
1957
+  (0.1ms) SAVEPOINT active_record_1
1958
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-05-22 13:07:37.791895"], ["updated_at", "2020-05-22 13:07:37.791895"]]
1959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1960
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
1961
+  (0.1ms) SAVEPOINT active_record_1
1962
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2020-05-22 13:07:37.793623"], ["updated_at", "2020-05-22 13:07:37.793623"]]
1963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1964
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
1965
+  (0.1ms) SAVEPOINT active_record_1
1966
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2020-05-22 13:07:37.795590"], ["updated_at", "2020-05-22 13:07:37.795590"]]
1967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1968
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
1969
+  (0.1ms) SAVEPOINT active_record_1
1970
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-05-22 13:07:37.797191"], ["updated_at", "2020-05-22 13:07:37.797191"]]
1971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1972
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
1973
+  (0.1ms) SAVEPOINT active_record_1
1974
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-05-22 13:07:37.798797"], ["updated_at", "2020-05-22 13:07:37.798797"]]
1975
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1976
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
1977
+  (0.1ms) SAVEPOINT active_record_1
1978
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2020-05-22 13:07:37.800465"], ["updated_at", "2020-05-22 13:07:37.800465"]]
1979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1980
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
1981
+  (0.1ms) SAVEPOINT active_record_1
1982
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-05-22 13:07:37.802142"], ["updated_at", "2020-05-22 13:07:37.802142"]]
1983
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1984
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
1985
+  (0.1ms) SAVEPOINT active_record_1
1986
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2020-05-22 13:07:37.804085"], ["updated_at", "2020-05-22 13:07:37.804085"]]
1987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1988
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
1989
+  (0.1ms) SAVEPOINT active_record_1
1990
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2020-05-22 13:07:37.805874"], ["updated_at", "2020-05-22 13:07:37.805874"]]
1991
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1992
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
1993
+  (0.1ms) SAVEPOINT active_record_1
1994
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2020-05-22 13:07:37.807495"], ["updated_at", "2020-05-22 13:07:37.807495"]]
1995
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1996
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
1997
+  (0.1ms) SAVEPOINT active_record_1
1998
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2020-05-22 13:07:37.809209"], ["updated_at", "2020-05-22 13:07:37.809209"]]
1999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2000
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
2001
+  (0.1ms) SAVEPOINT active_record_1
2002
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2020-05-22 13:07:37.810934"], ["updated_at", "2020-05-22 13:07:37.810934"]]
2003
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2004
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
2005
+  (0.1ms) SAVEPOINT active_record_1
2006
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2020-05-22 13:07:37.812604"], ["updated_at", "2020-05-22 13:07:37.812604"]]
2007
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2008
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
2009
+  (0.1ms) SAVEPOINT active_record_1
2010
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2020-05-22 13:07:37.814453"], ["updated_at", "2020-05-22 13:07:37.814453"]]
2011
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2012
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
2013
+  (0.1ms) SAVEPOINT active_record_1
2014
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2020-05-22 13:07:37.816582"], ["updated_at", "2020-05-22 13:07:37.816582"]]
2015
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2016
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
2017
+  (0.1ms) SAVEPOINT active_record_1
2018
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2020-05-22 13:07:37.819040"], ["updated_at", "2020-05-22 13:07:37.819040"]]
2019
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2020
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references"
2021
+ Completed 21 references update
2022
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
2023
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
2024
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
2025
+  (0.1ms) SAVEPOINT active_record_1
2026
+ Apidae::Town Create (0.5ms) 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", "2020-05-22 13:07:37.832263"], ["updated_at", "2020-05-22 13:07:37.832263"]]
2027
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2028
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
2029
+  (0.1ms) SAVEPOINT active_record_1
2030
+ 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", "2020-05-22 13:07:37.834439"], ["updated_at", "2020-05-22 13:07:37.834439"]]
2031
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2032
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
2033
+  (0.1ms) SAVEPOINT active_record_1
2034
+ 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", "2020-05-22 13:07:37.836093"], ["updated_at", "2020-05-22 13:07:37.836093"]]
2035
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2036
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
2037
+  (0.1ms) SAVEPOINT active_record_1
2038
+ Apidae::Town Update (0.2ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-05-22 13:07:37.837825"], ["id", 1]]
2039
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2040
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
2041
+ Completed 3 towns update
2042
+ Processing file : communes.json
2043
+ Processing file : elements_reference.json
2044
+ Processing file : objets_modifies/objets_modifies-2.json
2045
+ 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", 4833997], ["LIMIT", 1]]
2046
+  (0.2ms) ROLLBACK
2047
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2048
+  (0.2ms) BEGIN
2049
+ -------------------------------------------------
2050
+ Apidae::FileImportTest: test_new_object_insertion
2051
+ -------------------------------------------------
2052
+ Apidae::Obj Destroy (0.6ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2053
+ Apidae::Project Destroy (0.4ms) DELETE FROM "apidae_projects"
2054
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
2055
+ Apidae::Town Destroy (0.4ms) DELETE FROM "apidae_towns"
2056
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references"
2057
+ 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", 504], ["LIMIT", 1]]
2058
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2059
+  (0.2ms) ROLLBACK
2060
+  (0.1ms) BEGIN
2061
+ -----------------------------------------------------
2062
+ Apidae::FileImportTest: test_existing_object_deletion
2063
+ -----------------------------------------------------
2064
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2065
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2066
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2067
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2068
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2069
+  (0.1ms) SAVEPOINT active_record_1
2070
+ 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", 504], ["created_at", "2020-05-22 13:08:26.380067"], ["updated_at", "2020-05-22 13:08:26.380067"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2071
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2072
+ 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]]
2073
+  (0.2ms) SAVEPOINT active_record_1
2074
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 8]]
2075
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2076
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2077
+  (0.2ms) ROLLBACK
2078
+  (0.1ms) BEGIN
2079
+ --------------------------------------------------------------------------------
2080
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
2081
+ --------------------------------------------------------------------------------
2082
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2083
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2084
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2085
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2086
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2087
+ 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]]
2088
+  (0.1ms) ROLLBACK
2089
+  (0.1ms) BEGIN
2090
+ ------------------------------------------------------
2091
+ Apidae::FileImportTest: test_existing_selection_update
2092
+ ------------------------------------------------------
2093
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2094
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2095
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2096
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2097
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2098
+  (0.1ms) SAVEPOINT active_record_1
2099
+ 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", "2020-05-22 13:08:26.398038"], ["updated_at", "2020-05-22 13:08:26.398038"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2101
+  (0.1ms) SAVEPOINT active_record_1
2102
+ 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", "2020-05-22 13:08:26.399834"], ["updated_at", "2020-05-22 13:08:26.399834"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2103
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2104
+  (0.1ms) SAVEPOINT active_record_1
2105
+ 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]]
2106
+ 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", "2020-05-22 13:08:26.411688"], ["updated_at", "2020-05-22 13:08:26.411688"]]
2107
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2108
+  (0.1ms) SAVEPOINT active_record_1
2109
+ 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", "2020-05-22 13:08:26.420477"], ["updated_at", "2020-05-22 13:08:26.420477"], ["apidae_project_id", 5]]
2110
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2111
+  (0.1ms) SAVEPOINT active_record_1
2112
+ 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", 9], ["created_at", "2020-05-22 13:08:26.447212"], ["updated_at", "2020-05-22 13:08:26.447212"]]
2113
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2114
+  (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", 4]]
2115
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
2116
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
2117
+ Updating selection 49063
2118
+ 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]]
2119
+  (0.1ms) SAVEPOINT active_record_1
2120
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2121
+ 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]]
2122
+ 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]]
2123
+  (0.1ms) SAVEPOINT active_record_1
2124
+ 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", 10], ["created_at", "2020-05-22 13:08:26.464406"], ["updated_at", "2020-05-22 13:08:26.464406"]]
2125
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2126
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
2127
+ 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]]
2128
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
2129
+  (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]]
2130
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2131
+  (0.1ms) ROLLBACK
2132
+  (0.1ms) BEGIN
2133
+ ----------------------------------------------------
2134
+ Apidae::FileImportTest: test_new_selection_insertion
2135
+ ----------------------------------------------------
2136
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2137
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2138
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2139
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2140
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2141
+  (0.1ms) SAVEPOINT active_record_1
2142
+ 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", "2020-05-22 13:08:26.473800"], ["updated_at", "2020-05-22 13:08:26.473800"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2144
+  (0.1ms) SAVEPOINT active_record_1
2145
+ 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]]
2146
+ 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", "2020-05-22 13:08:26.476338"], ["updated_at", "2020-05-22 13:08:26.476338"]]
2147
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2148
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 6]]
2149
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
2150
+ Updating selection 49063
2151
+ 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]]
2152
+  (0.1ms) SAVEPOINT active_record_1
2153
+ 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 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-05-22 13:08:26.557395"], ["updated_at", "2020-05-22 13:08:26.557395"], ["apidae_project_id", 6]]
2154
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2155
+ 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", 5]]
2156
+ 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]]
2157
+  (0.2ms) SAVEPOINT active_record_1
2158
+ 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", 5], ["apidae_object_id", 11], ["created_at", "2020-05-22 13:08:26.572854"], ["updated_at", "2020-05-22 13:08:26.572854"]]
2159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2160
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
2161
+ 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]]
2162
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 6]]
2163
+  (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]]
2164
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2165
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
2166
+  (0.1ms) ROLLBACK
2167
+  (0.1ms) BEGIN
2168
+ ------------------------------------------------
2169
+ Apidae::FileImportTest: test_full_import_process
2170
+ ------------------------------------------------
2171
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2172
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2173
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2174
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2175
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2176
+  (0.1ms) SAVEPOINT active_record_1
2177
+ 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", 123], ["created_at", "2020-05-22 13:08:26.602882"], ["updated_at", "2020-05-22 13:08:26.602882"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
2178
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2179
+  (0.1ms) SAVEPOINT active_record_1
2180
+ 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", "2020-05-22 13:08:26.604550"], ["updated_at", "2020-05-22 13:08:26.604550"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
2181
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2182
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
2183
+  (0.1ms) SAVEPOINT active_record_1
2184
+ 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]]
2185
+ 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", "2020-05-22 13:08:26.608400"], ["updated_at", "2020-05-22 13:08:26.608400"]]
2186
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2187
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
2188
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2189
+  (0.1ms) SAVEPOINT active_record_1
2190
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-05-22 13:08:26.619848"], ["updated_at", "2020-05-22 13:08:26.619848"], ["meta_data", "{}"]]
2191
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2192
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2193
+  (0.1ms) SAVEPOINT active_record_1
2194
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2020-05-22 13:08:26.622153"], ["updated_at", "2020-05-22 13:08:26.622153"], ["meta_data", "{}"]]
2195
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2196
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2197
+  (0.1ms) SAVEPOINT active_record_1
2198
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2020-05-22 13:08:26.624185"], ["updated_at", "2020-05-22 13:08:26.624185"], ["meta_data", "{}"]]
2199
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2200
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2201
+  (0.1ms) SAVEPOINT active_record_1
2202
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2020-05-22 13:08:26.626201"], ["updated_at", "2020-05-22 13:08:26.626201"], ["meta_data", "{}"]]
2203
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2204
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
2205
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
2206
+  (0.1ms) SAVEPOINT active_record_1
2207
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2020-05-22 13:08:26.629019"], ["updated_at", "2020-05-22 13:08:26.629019"]]
2208
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2209
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
2210
+  (0.1ms) SAVEPOINT active_record_1
2211
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-05-22 13:08:26.630966"], ["updated_at", "2020-05-22 13:08:26.630966"]]
2212
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2213
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
2214
+  (0.1ms) SAVEPOINT active_record_1
2215
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2020-05-22 13:08:26.632985"], ["updated_at", "2020-05-22 13:08:26.632985"]]
2216
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2217
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
2218
+  (0.1ms) SAVEPOINT active_record_1
2219
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2020-05-22 13:08:26.634773"], ["updated_at", "2020-05-22 13:08:26.634773"]]
2220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2221
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
2222
+  (0.1ms) SAVEPOINT active_record_1
2223
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-05-22 13:08:26.636443"], ["updated_at", "2020-05-22 13:08:26.636443"]]
2224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2225
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
2226
+  (0.1ms) SAVEPOINT active_record_1
2227
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-05-22 13:08:26.638386"], ["updated_at", "2020-05-22 13:08:26.638386"]]
2228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2229
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
2230
+  (0.1ms) SAVEPOINT active_record_1
2231
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2020-05-22 13:08:26.640090"], ["updated_at", "2020-05-22 13:08:26.640090"]]
2232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2233
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
2234
+  (0.1ms) SAVEPOINT active_record_1
2235
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-05-22 13:08:26.641630"], ["updated_at", "2020-05-22 13:08:26.641630"]]
2236
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2237
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
2238
+  (0.1ms) SAVEPOINT active_record_1
2239
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2020-05-22 13:08:26.643381"], ["updated_at", "2020-05-22 13:08:26.643381"]]
2240
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2241
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
2242
+  (0.1ms) SAVEPOINT active_record_1
2243
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2020-05-22 13:08:26.645193"], ["updated_at", "2020-05-22 13:08:26.645193"]]
2244
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2245
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
2246
+  (0.1ms) SAVEPOINT active_record_1
2247
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2020-05-22 13:08:26.647402"], ["updated_at", "2020-05-22 13:08:26.647402"]]
2248
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2249
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
2250
+  (0.1ms) SAVEPOINT active_record_1
2251
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2020-05-22 13:08:26.649405"], ["updated_at", "2020-05-22 13:08:26.649405"]]
2252
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2253
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
2254
+  (0.2ms) SAVEPOINT active_record_1
2255
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2020-05-22 13:08:26.651585"], ["updated_at", "2020-05-22 13:08:26.651585"]]
2256
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2257
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
2258
+  (0.1ms) SAVEPOINT active_record_1
2259
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2020-05-22 13:08:26.653475"], ["updated_at", "2020-05-22 13:08:26.653475"]]
2260
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2261
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
2262
+  (0.1ms) SAVEPOINT active_record_1
2263
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2020-05-22 13:08:26.655364"], ["updated_at", "2020-05-22 13:08:26.655364"]]
2264
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2265
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
2266
+  (0.1ms) SAVEPOINT active_record_1
2267
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2020-05-22 13:08:26.657122"], ["updated_at", "2020-05-22 13:08:26.657122"]]
2268
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2269
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
2270
+  (0.1ms) SAVEPOINT active_record_1
2271
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2020-05-22 13:08:26.658734"], ["updated_at", "2020-05-22 13:08:26.658734"]]
2272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2273
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references"
2274
+ Completed 21 references update
2275
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
2276
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
2277
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
2278
+  (0.1ms) SAVEPOINT active_record_1
2279
+ 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", "2020-05-22 13:08:26.669110"], ["updated_at", "2020-05-22 13:08:26.669110"]]
2280
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2281
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
2282
+  (0.1ms) SAVEPOINT active_record_1
2283
+ 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", "2020-05-22 13:08:26.671096"], ["updated_at", "2020-05-22 13:08:26.671096"]]
2284
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2285
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
2286
+  (0.1ms) SAVEPOINT active_record_1
2287
+ 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", "2020-05-22 13:08:26.672741"], ["updated_at", "2020-05-22 13:08:26.672741"]]
2288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2289
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
2290
+  (0.1ms) SAVEPOINT active_record_1
2291
+ Apidae::Town Update (0.2ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-05-22 13:08:26.674364"], ["id", 4]]
2292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2293
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
2294
+ Completed 3 towns update
2295
+ Processing file : communes.json
2296
+ Processing file : elements_reference.json
2297
+ Processing file : objets_modifies/objets_modifies-2.json
2298
+ 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]]
2299
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
2300
+  (0.2ms) ROLLBACK
2301
+  (0.1ms) BEGIN
2302
+ ------------------------------------------------------------------------------
2303
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
2304
+ ------------------------------------------------------------------------------
2305
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2306
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2307
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2308
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2309
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2310
+ 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]]
2311
+  (0.1ms) ROLLBACK
2312
+  (0.1ms) BEGIN
2313
+ --------------------------------------------------------
2314
+ Apidae::FileImportTest: test_existing_selection_deletion
2315
+ --------------------------------------------------------
2316
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2317
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2318
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2319
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2320
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2321
+  (0.1ms) SAVEPOINT active_record_1
2322
+ 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]]
2323
+ 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", "2020-05-22 13:08:26.688980"], ["updated_at", "2020-05-22 13:08:26.688980"]]
2324
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2325
+  (0.1ms) SAVEPOINT active_record_1
2326
+ 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", "2020-05-22 13:08:26.690242"], ["updated_at", "2020-05-22 13:08:26.690242"], ["apidae_project_id", 8]]
2327
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2328
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2329
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 8]]
2330
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
2331
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 8]]
2332
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2333
+  (0.1ms) ROLLBACK
2334
+  (0.1ms) BEGIN
2335
+ -----------------------------------------------------------------------------------
2336
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
2337
+ -----------------------------------------------------------------------------------
2338
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2339
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2340
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2341
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2342
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2343
+ 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", 4838849], ["LIMIT", 1]]
2344
+  (0.2ms) ROLLBACK
2345
+  (0.1ms) BEGIN
2346
+ --------------------------------------------------------------
2347
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
2348
+ --------------------------------------------------------------
2349
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2350
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2351
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2352
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2353
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2354
+ 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]]
2355
+  (0.1ms) ROLLBACK
2356
+  (0.1ms) BEGIN
2357
+ ---------------------------------------------------------------
2358
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
2359
+ ---------------------------------------------------------------
2360
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2361
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2362
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2363
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2364
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2365
+ 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", 4838849], ["LIMIT", 1]]
2366
+  (0.1ms) ROLLBACK
2367
+  (0.1ms) BEGIN
2368
+ ---------------------------------------------------------------------------
2369
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
2370
+ ---------------------------------------------------------------------------
2371
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2372
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2373
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2374
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2375
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2376
+ 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]]
2377
+  (0.1ms) ROLLBACK
2378
+  (0.1ms) BEGIN
2379
+ ---------------------------------------------------
2380
+ Apidae::FileImportTest: test_existing_object_update
2381
+ ---------------------------------------------------
2382
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2383
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2384
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2385
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2386
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2387
+  (0.1ms) SAVEPOINT active_record_1
2388
+ 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", "2020-05-22 13:08:26.720505"], ["updated_at", "2020-05-22 13:08:26.720505"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2389
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2390
+ 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]]
2391
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2392
+  (0.1ms) ROLLBACK
2393
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2394
+  (0.2ms) BEGIN
2395
+ -----------------------------------------------------
2396
+ Apidae::FileImportTest: test_existing_object_deletion
2397
+ -----------------------------------------------------
2398
+ Apidae::Obj Destroy (0.6ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2399
+ Apidae::Project Destroy (0.4ms) DELETE FROM "apidae_projects"
2400
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
2401
+ Apidae::Town Destroy (0.4ms) DELETE FROM "apidae_towns"
2402
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references"
2403
+  (0.2ms) SAVEPOINT active_record_1
2404
+ 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", 504], ["created_at", "2020-05-22 13:11:48.308131"], ["updated_at", "2020-05-22 13:11:48.308131"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2405
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2406
+ 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]]
2407
+  (0.1ms) SAVEPOINT active_record_1
2408
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 15]]
2409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2410
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2411
+  (0.2ms) ROLLBACK
2412
+  (0.1ms) BEGIN
2413
+ ------------------------------------------------
2414
+ Apidae::FileImportTest: test_full_import_process
2415
+ ------------------------------------------------
2416
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2417
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2418
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2419
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2420
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2421
+  (0.2ms) SAVEPOINT active_record_1
2422
+ 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", "2020-05-22 13:11:48.360830"], ["updated_at", "2020-05-22 13:11:48.360830"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
2423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2424
+  (0.1ms) SAVEPOINT active_record_1
2425
+ 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", "2020-05-22 13:11:48.362960"], ["updated_at", "2020-05-22 13:11:48.362960"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
2426
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2427
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
2428
+  (0.2ms) SAVEPOINT active_record_1
2429
+ 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]]
2430
+ 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", "2020-05-22 13:11:48.376204"], ["updated_at", "2020-05-22 13:11:48.376204"]]
2431
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2432
+  (0.4ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
2433
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2434
+  (0.1ms) SAVEPOINT active_record_1
2435
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-05-22 13:11:48.389115"], ["updated_at", "2020-05-22 13:11:48.389115"], ["meta_data", "{}"]]
2436
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2437
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2438
+  (0.1ms) SAVEPOINT active_record_1
2439
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2020-05-22 13:11:48.391631"], ["updated_at", "2020-05-22 13:11:48.391631"], ["meta_data", "{}"]]
2440
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2441
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2442
+  (0.1ms) SAVEPOINT active_record_1
2443
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2020-05-22 13:11:48.393840"], ["updated_at", "2020-05-22 13:11:48.393840"], ["meta_data", "{}"]]
2444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2445
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
2446
+  (0.1ms) SAVEPOINT active_record_1
2447
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2020-05-22 13:11:48.396092"], ["updated_at", "2020-05-22 13:11:48.396092"], ["meta_data", "{}"]]
2448
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2449
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
2450
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
2451
+  (0.1ms) SAVEPOINT active_record_1
2452
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2020-05-22 13:11:48.399567"], ["updated_at", "2020-05-22 13:11:48.399567"]]
2453
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2454
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
2455
+  (0.1ms) SAVEPOINT active_record_1
2456
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-05-22 13:11:48.401926"], ["updated_at", "2020-05-22 13:11:48.401926"]]
2457
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2458
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
2459
+  (0.1ms) SAVEPOINT active_record_1
2460
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2020-05-22 13:11:48.403932"], ["updated_at", "2020-05-22 13:11:48.403932"]]
2461
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2462
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
2463
+  (0.1ms) SAVEPOINT active_record_1
2464
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2020-05-22 13:11:48.405847"], ["updated_at", "2020-05-22 13:11:48.405847"]]
2465
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2466
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
2467
+  (0.1ms) SAVEPOINT active_record_1
2468
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-05-22 13:11:48.407736"], ["updated_at", "2020-05-22 13:11:48.407736"]]
2469
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2470
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
2471
+  (0.1ms) SAVEPOINT active_record_1
2472
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-05-22 13:11:48.409561"], ["updated_at", "2020-05-22 13:11:48.409561"]]
2473
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2474
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
2475
+  (0.1ms) SAVEPOINT active_record_1
2476
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2020-05-22 13:11:48.411716"], ["updated_at", "2020-05-22 13:11:48.411716"]]
2477
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2478
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
2479
+  (0.1ms) SAVEPOINT active_record_1
2480
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-05-22 13:11:48.413912"], ["updated_at", "2020-05-22 13:11:48.413912"]]
2481
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2482
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
2483
+  (0.1ms) SAVEPOINT active_record_1
2484
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2020-05-22 13:11:48.415774"], ["updated_at", "2020-05-22 13:11:48.415774"]]
2485
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2486
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
2487
+  (0.1ms) SAVEPOINT active_record_1
2488
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2020-05-22 13:11:48.417588"], ["updated_at", "2020-05-22 13:11:48.417588"]]
2489
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2490
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
2491
+  (0.1ms) SAVEPOINT active_record_1
2492
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2020-05-22 13:11:48.419943"], ["updated_at", "2020-05-22 13:11:48.419943"]]
2493
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2494
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
2495
+  (0.1ms) SAVEPOINT active_record_1
2496
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2020-05-22 13:11:48.422099"], ["updated_at", "2020-05-22 13:11:48.422099"]]
2497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2498
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
2499
+  (0.1ms) SAVEPOINT active_record_1
2500
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2020-05-22 13:11:48.424169"], ["updated_at", "2020-05-22 13:11:48.424169"]]
2501
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2502
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
2503
+  (0.2ms) SAVEPOINT active_record_1
2504
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2020-05-22 13:11:48.426180"], ["updated_at", "2020-05-22 13:11:48.426180"]]
2505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2506
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
2507
+  (0.2ms) SAVEPOINT active_record_1
2508
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2020-05-22 13:11:48.428461"], ["updated_at", "2020-05-22 13:11:48.428461"]]
2509
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2510
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
2511
+  (0.1ms) SAVEPOINT active_record_1
2512
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2020-05-22 13:11:48.430452"], ["updated_at", "2020-05-22 13:11:48.430452"]]
2513
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2514
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
2515
+  (0.1ms) SAVEPOINT active_record_1
2516
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2020-05-22 13:11:48.432363"], ["updated_at", "2020-05-22 13:11:48.432363"]]
2517
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2518
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references"
2519
+ Completed 21 references update
2520
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
2521
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
2522
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
2523
+  (0.2ms) SAVEPOINT active_record_1
2524
+ Apidae::Town Create (0.4ms) 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", "2020-05-22 13:11:48.445853"], ["updated_at", "2020-05-22 13:11:48.445853"]]
2525
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2526
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
2527
+  (0.1ms) SAVEPOINT active_record_1
2528
+ 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", 2], ["insee_code", "01002"], ["name", "L'Abergement-de-Varey"], ["postal_code", "01640"], ["created_at", "2020-05-22 13:11:48.448232"], ["updated_at", "2020-05-22 13:11:48.448232"]]
2529
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2530
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
2531
+  (0.1ms) SAVEPOINT active_record_1
2532
+ 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", "2020-05-22 13:11:48.450254"], ["updated_at", "2020-05-22 13:11:48.450254"]]
2533
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2534
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
2535
+  (0.1ms) SAVEPOINT active_record_1
2536
+ Apidae::Town Update (0.3ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-05-22 13:11:48.452415"], ["id", 7]]
2537
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2538
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
2539
+ Completed 3 towns update
2540
+ Processing file : communes.json
2541
+ Processing file : elements_reference.json
2542
+ Processing file : objets_modifies/objets_modifies-2.json
2543
+ 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]]
2544
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
2545
+  (0.2ms) SAVEPOINT active_record_1
2546
+ Apidae::Obj Create (7.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", 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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 4 novembre à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}],\"time_periods\":[416]}"], ["created_at", "2020-05-22 13:11:48.469431"], ["updated_at", "2020-05-22 13:11:48.469431"], ["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\":{}}"], ["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,\"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_desc\":{},\"booking_entities\":[]}"], ["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}"]]
2547
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2548
+ Processing file : objets_modifies/objets_modifies-1.json
2549
+ 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", 4826137], ["LIMIT", 1]]
2550
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2551
+  (0.1ms) SAVEPOINT active_record_1
2552
+ 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,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Mardi 7 novembre 2017 de 7h à 19h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924098,\"dateDebut\":\"2017-11-07\",\"dateFin\":\"2017-11-07\",\"horaireOuverture\":\"07:00:00\",\"horaireFermeture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-22 13:11:48.486483"], ["updated_at", "2020-05-22 13:11:48.486483"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"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_desc\":{},\"booking_entities\":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}"]]
2553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2554
+ 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]]
2555
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2556
+  (0.1ms) SAVEPOINT active_record_1
2557
+ Apidae::Obj Update (0.3ms) 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\":[\"https://www.acielouvert.org\"]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"access\":{}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du samedi 11 au lundi 13 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":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,\"products\":[],\"audience\":[],\"animals\":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", "2020-05-22 13:11:48.493079"], ["id", 17]]
2558
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2559
+ 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]]
2560
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2561
+  (0.1ms) SAVEPOINT active_record_1
2562
+ 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", 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,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 18 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-22 13:11:48.498693"], ["updated_at", "2020-05-22 13:11:48.498693"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"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_desc\":{},\"booking_entities\":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}"]]
2563
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2564
+ 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]]
2565
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
2566
+  (0.2ms) SAVEPOINT active_record_1
2567
+ 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", "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", 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,\"products\":[],\"audience\":[],\"animals\":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\":[{\"identifiant\":13951267,\"dateDebut\":\"2018-04-19\",\"dateFin\":\"2018-04-19\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951269,\"dateDebut\":\"2018-04-20\",\"dateFin\":\"2018-04-20\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951275,\"dateDebut\":\"2018-04-21\",\"dateFin\":\"2018-04-21\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951278,\"dateDebut\":\"2018-04-22\",\"dateFin\":\"2018-04-22\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951279,\"dateDebut\":\"2018-04-24\",\"dateFin\":\"2018-04-24\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951282,\"dateDebut\":\"2018-04-25\",\"dateFin\":\"2018-04-25\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951286,\"dateDebut\":\"2018-04-27\",\"dateFin\":\"2018-04-27\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951289,\"dateDebut\":\"2018-04-28\",\"dateFin\":\"2018-04-28\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951291,\"dateDebut\":\"2018-04-29\",\"dateFin\":\"2018-04-29\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951292,\"dateDebut\":\"2018-04-30\",\"dateFin\":\"2018-04-30\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951297,\"dateDebut\":\"2018-05-02\",\"dateFin\":\"2018-05-02\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951298,\"dateDebut\":\"2018-05-03\",\"dateFin\":\"2018-05-03\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951300,\"dateDebut\":\"2018-05-05\",\"dateFin\":\"2018-05-05\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951303,\"dateDebut\":\"2018-05-06\",\"dateFin\":\"2018-05-06\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951307,\"dateDebut\":\"2018-05-07\",\"dateFin\":\"2018-05-07\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951309,\"dateDebut\":\"2018-05-08\",\"dateFin\":\"2018-05-08\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951311,\"dateDebut\":\"2018-05-10\",\"dateFin\":\"2018-05-10\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968615,\"dateDebut\":\"2018-05-11\",\"dateFin\":\"2018-05-11\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968617,\"dateDebut\":\"2018-05-12\",\"dateFin\":\"2018-05-12\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968619,\"dateDebut\":\"2018-05-13\",\"dateFin\":\"2018-05-13\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[436]}"], ["created_at", "2020-05-22 13:11:48.504241"], ["updated_at", "2020-05-22 13:11:48.504241"], ["pictures_data", "{\"pictures\":{}}"], ["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\":{}}"], ["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,\"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_desc\":{},\"booking_entities\":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}"]]
2568
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2569
+ Processing file : criteres_internes.json
2570
+ Processing file : selections.json
2571
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 9]]
2572
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
2573
+ Updating selection 49063
2574
+ 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]]
2575
+  (0.1ms) SAVEPOINT active_record_1
2576
+ Apidae::Selection Create (0.5ms) 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", "2020-05-22 13:11:48.598744"], ["updated_at", "2020-05-22 13:11:48.598744"], ["apidae_project_id", 9]]
2577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2578
+ Apidae::Obj Load (0.5ms) 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]]
2579
+ 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]]
2580
+  (0.1ms) SAVEPOINT active_record_1
2581
+ 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", 7], ["apidae_object_id", 19], ["created_at", "2020-05-22 13:11:48.669338"], ["updated_at", "2020-05-22 13:11:48.669338"]]
2582
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2583
+ 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]]
2584
+  (0.2ms) SAVEPOINT active_record_1
2585
+ 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", 20], ["created_at", "2020-05-22 13:11:48.672555"], ["updated_at", "2020-05-22 13:11:48.672555"]]
2586
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2587
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
2588
+ 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]]
2589
+ Updating selection 49073
2590
+ 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]]
2591
+  (0.1ms) SAVEPOINT active_record_1
2592
+ 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", "2020-05-22 13:11:48.676862"], ["updated_at", "2020-05-22 13:11:48.676862"], ["apidae_project_id", 9]]
2593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2594
+ 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", 8]]
2595
+ 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]]
2596
+  (0.1ms) SAVEPOINT active_record_1
2597
+ 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", 17], ["created_at", "2020-05-22 13:11:48.680356"], ["updated_at", "2020-05-22 13:11:48.680356"]]
2598
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2599
+ 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]]
2600
+  (0.1ms) SAVEPOINT active_record_1
2601
+ 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", 21], ["created_at", "2020-05-22 13:11:48.682299"], ["updated_at", "2020-05-22 13:11:48.682299"]]
2602
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2603
+ 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]]
2604
+  (0.1ms) SAVEPOINT active_record_1
2605
+ 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", 18], ["created_at", "2020-05-22 13:11:48.684083"], ["updated_at", "2020-05-22 13:11:48.684083"]]
2606
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2607
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
2608
+ Apidae::SelectionObject Destroy (0.1ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 8]]
2609
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 9]]
2610
+  (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", 7]]
2611
+  (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]]
2612
+ Processing file : objets_supprimes.json
2613
+ 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]]
2614
+  (0.1ms) SAVEPOINT active_record_1
2615
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 16]]
2616
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2617
+  (0.2ms) SAVEPOINT active_record_1
2618
+ Apidae::FileImport Create (0.9ms) 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", "2020-05-22 13:11:48.699807"], ["updated_at", "2020-05-22 13:11:48.699807"], ["apidae_id", 123]]
2619
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2620
+ 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}]}
2621
+  (0.3ms) SELECT COUNT(*) FROM "apidae_projects"
2622
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2623
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2624
+  (0.4ms) ROLLBACK
2625
+  (0.1ms) BEGIN
2626
+ -----------------------------------------------------------------------------------
2627
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
2628
+ -----------------------------------------------------------------------------------
2629
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2630
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2631
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2632
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2633
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2634
+ 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]]
2635
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
2636
+  (0.1ms) SAVEPOINT active_record_1
2637
+ 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", "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) 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\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-22 13:11:48.710787"], ["updated_at", "2020-05-22 13:11:48.710787"], ["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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"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,\"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_desc\":{},\"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}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
2638
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2639
+ 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", 22], ["version", "HIVER"], ["LIMIT", 1]]
2640
+  (0.1ms) SAVEPOINT active_record_1
2641
+ Apidae::Obj Create (0.2ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) 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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 13:11:48.718577"], ["updated_at", "2020-05-22 13:11:48.718577"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["version", "HIVER"], ["root_obj_id", 22], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
2642
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2643
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2644
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
2645
+ 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]]
2646
+ 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", 22], ["version", "HIVER"], ["LIMIT", 1]]
2647
+  (0.1ms) ROLLBACK
2648
+  (0.1ms) BEGIN
2649
+ --------------------------------------------------------------
2650
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
2651
+ --------------------------------------------------------------
2652
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2653
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2654
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2655
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2656
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2657
+ 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", 898922], ["LIMIT", 1]]
2658
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
2659
+  (0.1ms) SAVEPOINT active_record_1
2660
+ Apidae::Obj Create (0.7ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_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) 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\":[\"04 71 49 09 09\"],\"email\":[\"chatelleraie@wanadoo.fr\"],\"website\":[\"http://chatelleraie.co.uk/fr/\"]}"], ["type_data", "{\"categories\":[],\"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,\"products\":[],\"audience\":[],\"animals\":true,\"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\":[{\"identifiant\":14375379,\"dateDebut\":\"2018-04-01\",\"dateFin\":\"2018-10-14\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false,\"identifiantTechnique\":15927193}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-22 13:11:48.729555"], ["updated_at", "2020-05-22 13:11:48.729555"], ["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\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["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\":{}}"], ["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,\"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_desc\":{},\"booking_entities\":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}"]]
2661
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2662
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2663
+ 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]]
2664
+  (0.1ms) ROLLBACK
2665
+  (0.1ms) BEGIN
2666
+ ------------------------------------------------------
2667
+ Apidae::FileImportTest: test_existing_selection_update
2668
+ ------------------------------------------------------
2669
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2670
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2671
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2672
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2673
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2674
+  (0.1ms) SAVEPOINT active_record_1
2675
+ 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", "2020-05-22 13:11:48.742987"], ["updated_at", "2020-05-22 13:11:48.742987"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2676
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2677
+  (0.1ms) SAVEPOINT active_record_1
2678
+ 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", "2020-05-22 13:11:48.744889"], ["updated_at", "2020-05-22 13:11:48.744889"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2679
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2680
+  (0.1ms) SAVEPOINT active_record_1
2681
+ 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]]
2682
+ 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", "2020-05-22 13:11:48.747077"], ["updated_at", "2020-05-22 13:11:48.747077"]]
2683
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2684
+  (0.2ms) SAVEPOINT active_record_1
2685
+ 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", "2020-05-22 13:11:48.748757"], ["updated_at", "2020-05-22 13:11:48.748757"], ["apidae_project_id", 10]]
2686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2687
+  (0.1ms) SAVEPOINT active_record_1
2688
+ 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", 9], ["apidae_object_id", 25], ["created_at", "2020-05-22 13:11:48.751668"], ["updated_at", "2020-05-22 13:11:48.751668"]]
2689
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2690
+  (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]]
2691
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 10]]
2692
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
2693
+ Updating selection 49063
2694
+ 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]]
2695
+  (0.1ms) SAVEPOINT active_record_1
2696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2697
+ 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", 9]]
2698
+ 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]]
2699
+  (0.1ms) SAVEPOINT active_record_1
2700
+ 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", 26], ["created_at", "2020-05-22 13:11:48.760058"], ["updated_at", "2020-05-22 13:11:48.760058"]]
2701
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2702
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
2703
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 9]]
2704
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 10]]
2705
+  (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]]
2706
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2707
+  (0.1ms) ROLLBACK
2708
+  (0.1ms) BEGIN
2709
+ ---------------------------------------------------------------
2710
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
2711
+ ---------------------------------------------------------------
2712
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2713
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2714
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2715
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2716
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2717
+ 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]]
2718
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
2719
+  (0.1ms) SAVEPOINT active_record_1
2720
+ 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", "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) 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\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-22 13:11:48.771378"], ["updated_at", "2020-05-22 13:11:48.771378"], ["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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"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,\"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_desc\":{},\"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}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
2721
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2722
+ 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", 27], ["version", "HIVER"], ["LIMIT", 1]]
2723
+  (0.1ms) SAVEPOINT active_record_1
2724
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) 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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 13:11:48.778591"], ["updated_at", "2020-05-22 13:11:48.778591"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["version", "HIVER"], ["root_obj_id", 27], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
2725
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2726
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2727
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
2728
+ 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]]
2729
+ 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", 27], ["version", "HIVER"], ["LIMIT", 1]]
2730
+ 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", 27], ["LIMIT", 1]]
2731
+  (0.1ms) ROLLBACK
2732
+  (0.1ms) BEGIN
2733
+ ---------------------------------------------------
2734
+ Apidae::FileImportTest: test_existing_object_update
2735
+ ---------------------------------------------------
2736
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2737
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2738
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2739
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2740
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2741
+  (0.1ms) SAVEPOINT active_record_1
2742
+ 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", "2020-05-22 13:11:48.789125"], ["updated_at", "2020-05-22 13:11:48.789125"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2743
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2744
+ 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]]
2745
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2746
+  (0.1ms) SAVEPOINT active_record_1
2747
+ Apidae::Obj Update (0.6ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "title_data" = $4, "contact_data" = $5, "location_data" = $6, "type_data" = $7, "pictures_data" = $8, "attachments_data" = $9, "tags_data" = $10, "updated_at" = $11 WHERE "apidae_objs"."id" = $12 [["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,\"access\":{}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["updated_at", "2020-05-22 13:11:48.792834"], ["id", 29]]
2748
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2749
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2750
+ 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]]
2751
+  (0.2ms) ROLLBACK
2752
+  (0.1ms) BEGIN
2753
+ ------------------------------------------------------------------------------
2754
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
2755
+ ------------------------------------------------------------------------------
2756
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2757
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2758
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections"
2759
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2760
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2761
+ 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]]
2762
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
2763
+  (0.1ms) SAVEPOINT active_record_1
2764
+ Apidae::Obj Create (6.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\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"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\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-22 13:11:48.806355"], ["updated_at", "2020-05-22 13:11:48.806355"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["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\":{}}"], ["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\",\"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\",\"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,\"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_desc\":{},\"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}]}"], ["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}"]]
2765
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2766
+ 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", 30], ["version", "GROUPES"], ["LIMIT", 1]]
2767
+  (0.2ms) SAVEPOINT active_record_1
2768
+ Apidae::Obj Create (0.7ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_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) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":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\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-22 13:11:48.827927"], ["updated_at", "2020-05-22 13:11:48.827927"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["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\",\"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\",\"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_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 30], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
2769
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2770
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2771
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
2772
+ 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]]
2773
+ 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", 30], ["version", "GROUPES"], ["LIMIT", 1]]
2774
+  (0.1ms) ROLLBACK
2775
+  (0.1ms) BEGIN
2776
+ ---------------------------------------------------------------------------
2777
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
2778
+ ---------------------------------------------------------------------------
2779
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2780
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2781
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2782
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2783
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2784
+ 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", 4838849], ["LIMIT", 1]]
2785
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
2786
+  (0.1ms) SAVEPOINT active_record_1
2787
+ 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", "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) 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\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["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,\"products\":[],\"audience\":[],\"animals\":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\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-22 13:11:48.842900"], ["updated_at", "2020-05-22 13:11:48.842900"], ["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\":null},{\"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\":null}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"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,\"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_desc\":{},\"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}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
2788
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2789
+ 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", 32], ["version", "HIVER"], ["LIMIT", 1]]
2790
+  (0.1ms) SAVEPOINT active_record_1
2791
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) 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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 13:11:48.851550"], ["updated_at", "2020-05-22 13:11:48.851550"], ["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\":null},{\"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\":null},{\"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\":null}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}]}}"], ["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\":{}}"], ["version", "HIVER"], ["root_obj_id", 32], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
2792
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2793
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2794
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
2795
+ 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]]
2796
+ 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", 32], ["version", "HIVER"], ["LIMIT", 1]]
2797
+ 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", 32], ["LIMIT", 1]]
2798
+  (0.1ms) ROLLBACK
2799
+  (0.1ms) BEGIN
2800
+ --------------------------------------------------------------------------------
2801
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
2802
+ --------------------------------------------------------------------------------
2803
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2804
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2805
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2806
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2807
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2808
+ 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]]
2809
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
2810
+  (0.1ms) SAVEPOINT active_record_1
2811
+ Apidae::Obj Create (1.3ms) 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\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"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\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-22 13:11:48.866678"], ["updated_at", "2020-05-22 13:11:48.866678"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["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\":{}}"], ["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\",\"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\",\"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,\"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_desc\":{},\"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}]}"], ["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}"]]
2812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2813
+ 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", 34], ["version", "GROUPES"], ["LIMIT", 1]]
2814
+  (0.1ms) SAVEPOINT active_record_1
2815
+ 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", "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) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":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\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-22 13:11:48.878776"], ["updated_at", "2020-05-22 13:11:48.878776"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["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\",\"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\",\"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_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 34], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
2816
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2817
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2818
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
2819
+ 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]]
2820
+ 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", 34], ["version", "GROUPES"], ["LIMIT", 1]]
2821
+  (0.2ms) ROLLBACK
2822
+  (0.1ms) BEGIN
2823
+ -------------------------------------------------
2824
+ Apidae::FileImportTest: test_new_object_insertion
2825
+ -------------------------------------------------
2826
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2827
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2828
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2829
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2830
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2831
+ 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]]
2832
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2833
+  (0.2ms) SAVEPOINT active_record_1
2834
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "title_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 13:11:48.891935"], ["updated_at", "2020-05-22 13:11:48.891935"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["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}"]]
2835
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2836
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2837
+ 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]]
2838
+  (0.2ms) ROLLBACK
2839
+  (0.1ms) BEGIN
2840
+ ----------------------------------------------------
2841
+ Apidae::FileImportTest: test_new_selection_insertion
2842
+ ----------------------------------------------------
2843
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2844
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2845
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2846
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2847
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2848
+  (0.1ms) SAVEPOINT active_record_1
2849
+ 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", "2020-05-22 13:11:48.899342"], ["updated_at", "2020-05-22 13:11:48.899342"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2850
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2851
+  (0.1ms) SAVEPOINT active_record_1
2852
+ 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]]
2853
+ 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", "2020-05-22 13:11:48.901552"], ["updated_at", "2020-05-22 13:11:48.901552"]]
2854
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2855
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 11]]
2856
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
2857
+ Updating selection 49063
2858
+ 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]]
2859
+  (0.1ms) SAVEPOINT active_record_1
2860
+ 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", "2020-05-22 13:11:48.904583"], ["updated_at", "2020-05-22 13:11:48.904583"], ["apidae_project_id", 11]]
2861
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2862
+ 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", 10]]
2863
+ 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]]
2864
+  (0.1ms) SAVEPOINT active_record_1
2865
+ 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", 10], ["apidae_object_id", 37], ["created_at", "2020-05-22 13:11:48.908451"], ["updated_at", "2020-05-22 13:11:48.908451"]]
2866
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2867
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
2868
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 10]]
2869
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 11]]
2870
+  (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", 10]]
2871
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2872
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
2873
+  (0.1ms) ROLLBACK
2874
+  (0.1ms) BEGIN
2875
+ --------------------------------------------------------
2876
+ Apidae::FileImportTest: test_existing_selection_deletion
2877
+ --------------------------------------------------------
2878
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2879
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
2880
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2881
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
2882
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2883
+  (0.1ms) SAVEPOINT active_record_1
2884
+ 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]]
2885
+ 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", "2020-05-22 13:11:48.918751"], ["updated_at", "2020-05-22 13:11:48.918751"]]
2886
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2887
+  (0.1ms) SAVEPOINT active_record_1
2888
+ 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", "2020-05-22 13:11:48.920244"], ["updated_at", "2020-05-22 13:11:48.920244"], ["apidae_project_id", 12]]
2889
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2890
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2891
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 12]]
2892
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
2893
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 12]]
2894
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2895
+  (0.1ms) ROLLBACK
2896
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2897
+  (0.1ms) BEGIN
2898
+ ---------------------------------------------------
2899
+ Apidae::FileImportTest: test_existing_object_update
2900
+ ---------------------------------------------------
2901
+ Apidae::Obj Destroy (0.7ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2902
+ Apidae::Project Destroy (0.4ms) DELETE FROM "apidae_projects"
2903
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
2904
+ Apidae::Town Destroy (0.5ms) DELETE FROM "apidae_towns"
2905
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references"
2906
+  (0.2ms) SAVEPOINT active_record_1
2907
+ Apidae::Obj Create (7.6ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-22 14:12:18.259599"], ["updated_at", "2020-05-22 14:12:18.259599"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2908
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2909
+ 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]]
2910
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
2911
+  (0.2ms) SAVEPOINT active_record_1
2912
+ Apidae::Obj Update (0.4ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "title_data" = $4, "contact_data" = $5, "location_data" = $6, "type_data" = $7, "pictures_data" = $8, "attachments_data" = $9, "tags_data" = $10, "updated_at" = $11 WHERE "apidae_objs"."id" = $12 [["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,\"access\":{}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["updated_at", "2020-05-22 14:12:18.324082"], ["id", 38]]
2913
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2914
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2915
+ 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]]
2916
+  (0.2ms) ROLLBACK
2917
+  (0.1ms) BEGIN
2918
+ ----------------------------------------------------
2919
+ Apidae::FileImportTest: test_new_selection_insertion
2920
+ ----------------------------------------------------
2921
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2922
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2923
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2924
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2925
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2926
+  (0.1ms) SAVEPOINT active_record_1
2927
+ 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", "2020-05-22 14:12:18.336486"], ["updated_at", "2020-05-22 14:12:18.336486"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
2928
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2929
+  (0.2ms) SAVEPOINT active_record_1
2930
+ 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]]
2931
+ 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", "2020-05-22 14:12:18.348741"], ["updated_at", "2020-05-22 14:12:18.348741"]]
2932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2933
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 13]]
2934
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
2935
+ Updating selection 49063
2936
+ 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]]
2937
+  (0.1ms) SAVEPOINT active_record_1
2938
+ Apidae::Selection Create (6.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", "2020-05-22 14:12:18.430899"], ["updated_at", "2020-05-22 14:12:18.430899"], ["apidae_project_id", 13]]
2939
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2940
+ Apidae::Obj Load (0.5ms) 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]]
2941
+ 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]]
2942
+  (0.1ms) SAVEPOINT active_record_1
2943
+ 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", 12], ["apidae_object_id", 39], ["created_at", "2020-05-22 14:12:18.469828"], ["updated_at", "2020-05-22 14:12:18.469828"]]
2944
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2945
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
2946
+ 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]]
2947
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 13]]
2948
+  (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]]
2949
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
2950
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
2951
+  (0.1ms) ROLLBACK
2952
+  (0.1ms) BEGIN
2953
+ ---------------------------------------------------------------------------
2954
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
2955
+ ---------------------------------------------------------------------------
2956
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2957
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2958
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
2959
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2960
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
2961
+ 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]]
2962
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
2963
+  (0.1ms) SAVEPOINT active_record_1
2964
+ Apidae::Obj Create (13.1ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_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) 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\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["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,\"products\":[],\"audience\":[],\"animals\":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\",\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-22 14:12:18.482545"], ["updated_at", "2020-05-22 14:12:18.482545"], ["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\":null},{\"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\":null}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"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,\"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_desc\":{},\"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}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
2965
+  (0.3ms) RELEASE SAVEPOINT active_record_1
2966
+ 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", 40], ["version", "HIVER"], ["LIMIT", 1]]
2967
+  (0.2ms) SAVEPOINT active_record_1
2968
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) 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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 14:12:18.508473"], ["updated_at", "2020-05-22 14:12:18.508473"], ["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\":null},{\"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\":null},{\"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\":null}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}]}}"], ["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\":{}}"], ["version", "HIVER"], ["root_obj_id", 40], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
2969
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2970
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2971
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
2972
+ 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]]
2973
+ 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", 40], ["version", "HIVER"], ["LIMIT", 1]]
2974
+ 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", 40], ["LIMIT", 1]]
2975
+  (0.2ms) ROLLBACK
2976
+  (0.1ms) BEGIN
2977
+ ---------------------------------------------------------------
2978
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
2979
+ ---------------------------------------------------------------
2980
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2981
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
2982
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
2983
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
2984
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
2985
+ 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]]
2986
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
2987
+  (0.2ms) SAVEPOINT active_record_1
2988
+ 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", "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) 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\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["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,\"products\":[],\"audience\":[],\"animals\":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\",\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-22 14:12:18.527471"], ["updated_at", "2020-05-22 14:12:18.527471"], ["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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"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,\"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_desc\":{},\"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}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
2989
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2990
+ 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", 42], ["version", "HIVER"], ["LIMIT", 1]]
2991
+  (0.2ms) SAVEPOINT active_record_1
2992
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) 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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 14:12:18.535709"], ["updated_at", "2020-05-22 14:12:18.535709"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["version", "HIVER"], ["root_obj_id", 42], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
2993
+  (0.2ms) RELEASE SAVEPOINT active_record_1
2994
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
2995
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
2996
+ 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]]
2997
+ 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", 42], ["version", "HIVER"], ["LIMIT", 1]]
2998
+ 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", 42], ["LIMIT", 1]]
2999
+  (0.1ms) ROLLBACK
3000
+  (0.1ms) BEGIN
3001
+ -----------------------------------------------------------------------------------
3002
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
3003
+ -----------------------------------------------------------------------------------
3004
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3005
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
3006
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
3007
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
3008
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
3009
+ 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]]
3010
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
3011
+  (0.1ms) SAVEPOINT active_record_1
3012
+ 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", "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) 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\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["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,\"products\":[],\"audience\":[],\"animals\":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\",\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-22 14:12:18.548228"], ["updated_at", "2020-05-22 14:12:18.548228"], ["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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"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,\"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_desc\":{},\"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}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
3013
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3014
+ 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", 44], ["version", "HIVER"], ["LIMIT", 1]]
3015
+  (0.1ms) SAVEPOINT active_record_1
3016
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) 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,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 14:12:18.555773"], ["updated_at", "2020-05-22 14:12:18.555773"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["version", "HIVER"], ["root_obj_id", 44], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
3017
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3018
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3019
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
3020
+ 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]]
3021
+ 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", 44], ["version", "HIVER"], ["LIMIT", 1]]
3022
+  (0.1ms) ROLLBACK
3023
+  (0.1ms) BEGIN
3024
+ -----------------------------------------------------
3025
+ Apidae::FileImportTest: test_existing_object_deletion
3026
+ -----------------------------------------------------
3027
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3028
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
3029
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
3030
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
3031
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
3032
+  (0.1ms) SAVEPOINT active_record_1
3033
+ 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", "2020-05-22 14:12:18.565641"], ["updated_at", "2020-05-22 14:12:18.565641"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
3034
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3035
+ 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]]
3036
+  (0.1ms) SAVEPOINT active_record_1
3037
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 46]]
3038
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3039
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3040
+  (0.1ms) ROLLBACK
3041
+  (0.1ms) BEGIN
3042
+ ------------------------------------------------------
3043
+ Apidae::FileImportTest: test_existing_selection_update
3044
+ ------------------------------------------------------
3045
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3046
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
3047
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
3048
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
3049
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
3050
+  (0.1ms) SAVEPOINT active_record_1
3051
+ 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", "2020-05-22 14:12:18.573312"], ["updated_at", "2020-05-22 14:12:18.573312"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
3052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3053
+  (0.1ms) SAVEPOINT active_record_1
3054
+ 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", "2020-05-22 14:12:18.575088"], ["updated_at", "2020-05-22 14:12:18.575088"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
3055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3056
+  (0.1ms) SAVEPOINT active_record_1
3057
+ 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]]
3058
+ 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", "2020-05-22 14:12:18.577161"], ["updated_at", "2020-05-22 14:12:18.577161"]]
3059
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3060
+  (0.1ms) SAVEPOINT active_record_1
3061
+ 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", "2020-05-22 14:12:18.578527"], ["updated_at", "2020-05-22 14:12:18.578527"], ["apidae_project_id", 14]]
3062
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3063
+  (0.1ms) SAVEPOINT active_record_1
3064
+ 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", 13], ["apidae_object_id", 47], ["created_at", "2020-05-22 14:12:18.581028"], ["updated_at", "2020-05-22 14:12:18.581028"]]
3065
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3066
+  (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", 13]]
3067
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 14]]
3068
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
3069
+ Updating selection 49063
3070
+ 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]]
3071
+  (0.1ms) SAVEPOINT active_record_1
3072
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3073
+ 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", 13]]
3074
+ 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]]
3075
+  (0.1ms) SAVEPOINT active_record_1
3076
+ 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", 13], ["apidae_object_id", 48], ["created_at", "2020-05-22 14:12:18.589697"], ["updated_at", "2020-05-22 14:12:18.589697"]]
3077
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3078
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
3079
+ Apidae::SelectionObject Destroy (0.1ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 13]]
3080
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 14]]
3081
+  (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", 13]]
3082
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
3083
+  (0.1ms) ROLLBACK
3084
+  (0.1ms) BEGIN
3085
+ ------------------------------------------------------------------------------
3086
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
3087
+ ------------------------------------------------------------------------------
3088
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3089
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
3090
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
3091
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
3092
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
3093
+ 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]]
3094
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
3095
+  (0.1ms) SAVEPOINT active_record_1
3096
+ Apidae::Obj Create (0.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", "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\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[],\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[],\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-22 14:12:18.600691"], ["updated_at", "2020-05-22 14:12:18.600691"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["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\":{}}"], ["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\",\"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\",\"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,\"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_desc\":{},\"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}]}"], ["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}"]]
3097
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3098
+ 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", 49], ["version", "GROUPES"], ["LIMIT", 1]]
3099
+  (0.1ms) SAVEPOINT active_record_1
3100
+ 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", "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) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":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\",\"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\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[]}"], ["created_at", "2020-05-22 14:12:18.616787"], ["updated_at", "2020-05-22 14:12:18.616787"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["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\",\"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\",\"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_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 49], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
3101
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3102
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3103
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
3104
+ 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]]
3105
+ 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", "GROUPES"], ["LIMIT", 1]]
3106
+  (0.2ms) ROLLBACK
3107
+  (0.2ms) BEGIN
3108
+ ------------------------------------------------
3109
+ Apidae::FileImportTest: test_full_import_process
3110
+ ------------------------------------------------
3111
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3112
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
3113
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
3114
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
3115
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
3116
+  (0.1ms) SAVEPOINT active_record_1
3117
+ Apidae::Obj Create (1.0ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-22 14:12:18.628665"], ["updated_at", "2020-05-22 14:12:18.628665"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
3118
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3119
+  (0.1ms) SAVEPOINT active_record_1
3120
+ 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", "2020-05-22 14:12:18.631237"], ["updated_at", "2020-05-22 14:12:18.631237"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
3121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3122
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
3123
+  (0.1ms) SAVEPOINT active_record_1
3124
+ 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]]
3125
+ 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", "2020-05-22 14:12:18.635764"], ["updated_at", "2020-05-22 14:12:18.635764"]]
3126
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3127
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
3128
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
3129
+  (0.1ms) SAVEPOINT active_record_1
3130
+ Apidae::Reference Create (6.6ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-05-22 14:12:18.649539"], ["updated_at", "2020-05-22 14:12:18.649539"], ["meta_data", "{}"]]
3131
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3132
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
3133
+  (0.1ms) SAVEPOINT active_record_1
3134
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2020-05-22 14:12:18.660981"], ["updated_at", "2020-05-22 14:12:18.660981"], ["meta_data", "{}"]]
3135
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3136
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
3137
+  (0.1ms) SAVEPOINT active_record_1
3138
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2020-05-22 14:12:18.664675"], ["updated_at", "2020-05-22 14:12:18.664675"], ["meta_data", "{}"]]
3139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3140
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
3141
+  (0.1ms) SAVEPOINT active_record_1
3142
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2020-05-22 14:12:18.667768"], ["updated_at", "2020-05-22 14:12:18.667768"], ["meta_data", "{}"]]
3143
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3144
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
3145
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
3146
+  (0.1ms) SAVEPOINT active_record_1
3147
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2020-05-22 14:12:18.672158"], ["updated_at", "2020-05-22 14:12:18.672158"]]
3148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3149
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
3150
+  (0.1ms) SAVEPOINT active_record_1
3151
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-05-22 14:12:18.674367"], ["updated_at", "2020-05-22 14:12:18.674367"]]
3152
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3153
+ Apidae::Reference Load (0.6ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
3154
+  (0.1ms) SAVEPOINT active_record_1
3155
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2020-05-22 14:12:18.676970"], ["updated_at", "2020-05-22 14:12:18.676970"]]
3156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3157
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
3158
+  (0.1ms) SAVEPOINT active_record_1
3159
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2020-05-22 14:12:18.679652"], ["updated_at", "2020-05-22 14:12:18.679652"]]
3160
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3161
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
3162
+  (0.1ms) SAVEPOINT active_record_1
3163
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-05-22 14:12:18.682201"], ["updated_at", "2020-05-22 14:12:18.682201"]]
3164
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3165
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
3166
+  (0.1ms) SAVEPOINT active_record_1
3167
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-05-22 14:12:18.685403"], ["updated_at", "2020-05-22 14:12:18.685403"]]
3168
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3169
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
3170
+  (0.1ms) SAVEPOINT active_record_1
3171
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2020-05-22 14:12:18.688077"], ["updated_at", "2020-05-22 14:12:18.688077"]]
3172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3173
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
3174
+  (0.1ms) SAVEPOINT active_record_1
3175
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-05-22 14:12:18.690218"], ["updated_at", "2020-05-22 14:12:18.690218"]]
3176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3177
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
3178
+  (0.1ms) SAVEPOINT active_record_1
3179
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2020-05-22 14:12:18.692613"], ["updated_at", "2020-05-22 14:12:18.692613"]]
3180
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3181
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
3182
+  (0.1ms) SAVEPOINT active_record_1
3183
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2020-05-22 14:12:18.694784"], ["updated_at", "2020-05-22 14:12:18.694784"]]
3184
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3185
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
3186
+  (0.1ms) SAVEPOINT active_record_1
3187
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2020-05-22 14:12:18.697073"], ["updated_at", "2020-05-22 14:12:18.697073"]]
3188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3189
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
3190
+  (0.1ms) SAVEPOINT active_record_1
3191
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2020-05-22 14:12:18.699643"], ["updated_at", "2020-05-22 14:12:18.699643"]]
3192
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3193
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
3194
+  (0.1ms) SAVEPOINT active_record_1
3195
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2020-05-22 14:12:18.702257"], ["updated_at", "2020-05-22 14:12:18.702257"]]
3196
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3197
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
3198
+  (0.1ms) SAVEPOINT active_record_1
3199
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2020-05-22 14:12:18.704599"], ["updated_at", "2020-05-22 14:12:18.704599"]]
3200
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3201
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
3202
+  (0.1ms) SAVEPOINT active_record_1
3203
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2020-05-22 14:12:18.707107"], ["updated_at", "2020-05-22 14:12:18.707107"]]
3204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3205
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
3206
+  (0.1ms) SAVEPOINT active_record_1
3207
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2020-05-22 14:12:18.709379"], ["updated_at", "2020-05-22 14:12:18.709379"]]
3208
+  (0.6ms) RELEASE SAVEPOINT active_record_1
3209
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
3210
+  (0.2ms) SAVEPOINT active_record_1
3211
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2020-05-22 14:12:18.711629"], ["updated_at", "2020-05-22 14:12:18.711629"]]
3212
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3213
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references"
3214
+ Completed 21 references update
3215
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
3216
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
3217
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
3218
+  (0.1ms) SAVEPOINT active_record_1
3219
+ 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", "2020-05-22 14:12:18.728987"], ["updated_at", "2020-05-22 14:12:18.728987"]]
3220
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3221
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
3222
+  (0.1ms) SAVEPOINT active_record_1
3223
+ 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", "2020-05-22 14:12:18.731992"], ["updated_at", "2020-05-22 14:12:18.731992"]]
3224
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3225
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
3226
+  (0.1ms) SAVEPOINT active_record_1
3227
+ 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", "2020-05-22 14:12:18.733627"], ["updated_at", "2020-05-22 14:12:18.733627"]]
3228
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3229
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
3230
+  (0.1ms) SAVEPOINT active_record_1
3231
+ Apidae::Town Update (0.2ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-05-22 14:12:18.735446"], ["id", 10]]
3232
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3233
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
3234
+ Completed 3 towns update
3235
+ Processing file : communes.json
3236
+ Processing file : elements_reference.json
3237
+ Processing file : objets_modifies/objets_modifies-2.json
3238
+ 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]]
3239
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
3240
+  (0.1ms) SAVEPOINT active_record_1
3241
+ 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,\"products\":[],\"audience\":[],\"animals\":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\",\"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}]}]}],\"time_periods\":[416]}"], ["created_at", "2020-05-22 14:12:18.744333"], ["updated_at", "2020-05-22 14:12:18.744333"], ["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\":{}}"], ["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,\"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_desc\":{},\"booking_entities\":[]}"], ["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}"]]
3242
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3243
+ Processing file : objets_modifies/objets_modifies-1.json
3244
+ 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]]
3245
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
3246
+  (0.1ms) SAVEPOINT active_record_1
3247
+ 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,\"products\":[],\"audience\":[570],\"animals\":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\",\"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}]}]}],\"time_periods\":[416]}"], ["created_at", "2020-05-22 14:12:18.750761"], ["updated_at", "2020-05-22 14:12:18.750761"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"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_desc\":{},\"booking_entities\":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}"]]
3248
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3249
+ 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]]
3250
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
3251
+  (0.1ms) SAVEPOINT active_record_1
3252
+ Apidae::Obj Update (0.4ms) 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\":[\"https://www.acielouvert.org\"]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":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,\"products\":[],\"audience\":[],\"animals\":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", "2020-05-22 14:12:18.756075"], ["id", 52]]
3253
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3254
+ 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]]
3255
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
3256
+  (0.1ms) SAVEPOINT active_record_1
3257
+ 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,\"products\":[],\"audience\":[570],\"animals\":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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416]}"], ["created_at", "2020-05-22 14:12:18.761492"], ["updated_at", "2020-05-22 14:12:18.761492"], ["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\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"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_desc\":{},\"booking_entities\":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}"]]
3258
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3259
+ 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]]
3260
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
3261
+  (0.1ms) SAVEPOINT active_record_1
3262
+ 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", "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", 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,\"products\":[],\"audience\":[],\"animals\":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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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\",\"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}]}]}],\"time_periods\":[436]}"], ["created_at", "2020-05-22 14:12:18.766864"], ["updated_at", "2020-05-22 14:12:18.766864"], ["pictures_data", "{\"pictures\":{}}"], ["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\":{}}"], ["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,\"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_desc\":{},\"booking_entities\":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}"]]
3263
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3264
+ Processing file : criteres_internes.json
3265
+ Processing file : selections.json
3266
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 15]]
3267
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
3268
+ Updating selection 49063
3269
+ 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]]
3270
+  (0.1ms) SAVEPOINT active_record_1
3271
+ 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", "2020-05-22 14:12:18.779305"], ["updated_at", "2020-05-22 14:12:18.779305"], ["apidae_project_id", 15]]
3272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3273
+ 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]]
3274
+ 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]]
3275
+  (0.2ms) SAVEPOINT active_record_1
3276
+ 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", 14], ["apidae_object_id", 54], ["created_at", "2020-05-22 14:12:18.782729"], ["updated_at", "2020-05-22 14:12:18.782729"]]
3277
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3278
+ 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]]
3279
+  (0.1ms) SAVEPOINT active_record_1
3280
+ 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", 55], ["created_at", "2020-05-22 14:12:18.784773"], ["updated_at", "2020-05-22 14:12:18.784773"]]
3281
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3282
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
3283
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 14]]
3284
+ Updating selection 49073
3285
+ 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]]
3286
+  (0.1ms) SAVEPOINT active_record_1
3287
+ 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", "2020-05-22 14:12:18.787965"], ["updated_at", "2020-05-22 14:12:18.787965"], ["apidae_project_id", 15]]
3288
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3289
+ 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", 15]]
3290
+ 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]]
3291
+  (0.1ms) SAVEPOINT active_record_1
3292
+ 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", 15], ["apidae_object_id", 52], ["created_at", "2020-05-22 14:12:18.791394"], ["updated_at", "2020-05-22 14:12:18.791394"]]
3293
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3294
+ 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]]
3295
+  (0.1ms) SAVEPOINT active_record_1
3296
+ Apidae::SelectionObject Create (2.7ms) 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", 15], ["apidae_object_id", 56], ["created_at", "2020-05-22 14:12:18.793411"], ["updated_at", "2020-05-22 14:12:18.793411"]]
3297
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3298
+ 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]]
3299
+  (0.1ms) SAVEPOINT active_record_1
3300
+ 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", 15], ["apidae_object_id", 53], ["created_at", "2020-05-22 14:12:18.798747"], ["updated_at", "2020-05-22 14:12:18.798747"]]
3301
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3302
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
3303
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 15]]
3304
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 15]]
3305
+  (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", 14]]
3306
+  (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", 15]]
3307
+ Processing file : objets_supprimes.json
3308
+ 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]]
3309
+  (0.1ms) SAVEPOINT active_record_1
3310
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 51]]
3311
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3312
+  (0.2ms) SAVEPOINT active_record_1
3313
+ Apidae::FileImport Create (0.4ms) 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", "2020-05-22 14:12:18.815216"], ["updated_at", "2020-05-22 14:12:18.815216"], ["apidae_id", 123]]
3314
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3315
+ 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}]}
3316
+  (0.2ms) SELECT COUNT(*) FROM "apidae_projects"
3317
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
3318
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3319
+  (0.1ms) ROLLBACK
3320
+  (0.1ms) BEGIN
3321
+ --------------------------------------------------------------------------------
3322
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
3323
+ --------------------------------------------------------------------------------
3324
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3325
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
3326
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
3327
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
3328
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
3329
+ 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]]
3330
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
3331
+  (0.1ms) SAVEPOINT active_record_1
3332
+ 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", "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\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[],\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[],\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-22 14:12:18.824560"], ["updated_at", "2020-05-22 14:12:18.824560"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["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\":{}}"], ["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\",\"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\",\"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,\"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_desc\":{},\"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}]}"], ["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}"]]
3333
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3334
+ 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", 57], ["version", "GROUPES"], ["LIMIT", 1]]
3335
+  (0.1ms) SAVEPOINT active_record_1
3336
+ 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", "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) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":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\",\"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\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[]}"], ["created_at", "2020-05-22 14:12:18.835435"], ["updated_at", "2020-05-22 14:12:18.835435"], ["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\":null},{\"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\":null},{\"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\":null}]}}"], ["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\":{}}"], ["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\",\"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\",\"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_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 57], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
3337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3338
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3339
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
3340
+ 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]]
3341
+ 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", 57], ["version", "GROUPES"], ["LIMIT", 1]]
3342
+  (0.1ms) ROLLBACK
3343
+  (0.1ms) BEGIN
3344
+ --------------------------------------------------------
3345
+ Apidae::FileImportTest: test_existing_selection_deletion
3346
+ --------------------------------------------------------
3347
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3348
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
3349
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
3350
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
3351
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
3352
+  (0.1ms) SAVEPOINT active_record_1
3353
+ 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]]
3354
+ 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", "2020-05-22 14:12:18.846270"], ["updated_at", "2020-05-22 14:12:18.846270"]]
3355
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3356
+  (0.1ms) SAVEPOINT active_record_1
3357
+ 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", "2020-05-22 14:12:18.847697"], ["updated_at", "2020-05-22 14:12:18.847697"], ["apidae_project_id", 16]]
3358
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3359
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
3360
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 16]]
3361
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
3362
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 16]]
3363
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
3364
+  (0.1ms) ROLLBACK
3365
+  (0.1ms) BEGIN
3366
+ --------------------------------------------------------------
3367
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
3368
+ --------------------------------------------------------------
3369
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3370
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
3371
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
3372
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
3373
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
3374
+ 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", 898922], ["LIMIT", 1]]
3375
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
3376
+  (0.1ms) SAVEPOINT active_record_1
3377
+ Apidae::Obj Create (6.9ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_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) 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\":[\"04 71 49 09 09\"],\"email\":[\"chatelleraie@wanadoo.fr\"],\"website\":[\"http://chatelleraie.co.uk/fr/\"]}"], ["type_data", "{\"categories\":[],\"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,\"products\":[],\"audience\":[],\"animals\":true,\"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\",\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":null,\"end_time\":null,\"recurrence\":null}]}]}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-22 14:12:18.857847"], ["updated_at", "2020-05-22 14:12:18.857847"], ["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\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["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\":{}}"], ["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,\"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_desc\":{},\"booking_entities\":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}"]]
3378
+  (0.2ms) RELEASE SAVEPOINT active_record_1
3379
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3380
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
3381
+  (0.3ms) ROLLBACK
3382
+  (0.1ms) BEGIN
3383
+ -------------------------------------------------
3384
+ Apidae::FileImportTest: test_new_object_insertion
3385
+ -------------------------------------------------
3386
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3387
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
3388
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
3389
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
3390
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
3391
+ 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]]
3392
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
3393
+  (0.1ms) SAVEPOINT active_record_1
3394
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "title_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-22 14:12:18.883110"], ["updated_at", "2020-05-22 14:12:18.883110"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["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}"]]
3395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
3396
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
3397
+ 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]]
3398
+  (0.1ms) ROLLBACK