apidae 1.3.7 → 1.3.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,754 @@
1
+  (21.4ms) DROP DATABASE IF EXISTS "apidae_engine_test"
2
+  (109.4ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
3
+ SQL (0.6ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
4
+  (2.6ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
5
+  (7.8ms) CREATE TABLE "apidae_exports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
6
+  (0.1ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
7
+  (1.8ms) 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)
8
+  (0.2ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
9
+  (1.1ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
10
+  (0.1ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
11
+  (2.3ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)
12
+  (0.7ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
13
+  (0.6ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
14
+  (0.6ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
15
+  (0.5ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
16
+  (0.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
17
+  (1.7ms) CREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locales_data" character varying, "versions_data" character varying)
18
+  (0.1ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
19
+  (1.8ms) CREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "meta_data" jsonb, "is_active" boolean)
20
+  (0.5ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
21
+  (0.4ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
22
+  (0.5ms) CREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")
23
+  (0.1ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
24
+  (1.1ms) 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)
25
+  (0.1ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
26
+  (1.7ms) CREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_project_id" integer)
27
+  (0.1ms) DROP TABLE IF EXISTS "apidae_territories" CASCADE
28
+  (1.5ms) CREATE TABLE "apidae_territories" ("id" bigserial primary key, "apidae_id" integer, "name" character varying, "apidae_type" integer)
29
+  (0.7ms) CREATE INDEX "index_apidae_territories_on_apidae_id" ON "apidae_territories" ("apidae_id")
30
+  (0.1ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
31
+  (1.6ms) 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)
32
+  (0.5ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
33
+  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)
34
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
35
+  (0.2ms) INSERT INTO "schema_migrations" (version) VALUES (20210607214647)
36
+  (1.5ms) CREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)
37
+ 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]]
38
+ TRANSACTION (0.1ms) BEGIN
39
+ 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", "2022-03-29 13:30:42.605893"], ["updated_at", "2022-03-29 13:30:42.605893"]]
40
+ TRANSACTION (0.1ms) COMMIT
41
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
42
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
43
+ TRANSACTION (0.1ms) BEGIN
44
+ ActiveRecord::InternalMetadata Create (0.1ms) INSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key" [["key", "schema_sha1"], ["value", "34f1098ed601674379a2c7ee3f36fdbdd6d59fbf"], ["created_at", "2022-03-29 13:30:42.609318"], ["updated_at", "2022-03-29 13:30:42.609318"]]
45
+ TRANSACTION (0.1ms) COMMIT
46
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
47
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
48
+  (0.1ms) SELECT pg_try_advisory_lock(6146893715189925390)
49
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
50
+ Migrating to CreateApidaeSelections (20170512212941)
51
+ TRANSACTION (0.1ms) BEGIN
52
+  (6.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)
53
+ TRANSACTION (0.1ms) ROLLBACK
54
+  (0.4ms) SELECT pg_advisory_unlock(6146893715189925390)
55
+  (1.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
56
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
57
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
58
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
59
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
60
+  (0.1ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "environment"]]
61
+ SQL (0.1ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
62
+  (2.3ms) DROP TABLE IF EXISTS "apidae_exports" CASCADE
63
+  (2.2ms) CREATE TABLE "apidae_exports" ("id" serial NOT NULL PRIMARY KEY, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
64
+  (1.1ms) DROP TABLE IF EXISTS "apidae_file_imports" CASCADE
65
+  (1.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)
66
+  (0.6ms) DROP TABLE IF EXISTS "apidae_objects_selections" CASCADE
67
+  (1.0ms) CREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)
68
+  (1.4ms) DROP TABLE IF EXISTS "apidae_objs" CASCADE
69
+  (2.0ms) CREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)
70
+  (0.5ms) CREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")
71
+  (0.5ms) CREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")
72
+  (0.4ms) CREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")
73
+  (0.4ms) CREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")
74
+  (1.1ms) DROP TABLE IF EXISTS "apidae_projects" CASCADE
75
+  (1.4ms) 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)
76
+  (1.5ms) DROP TABLE IF EXISTS "apidae_references" CASCADE
77
+  (1.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, "is_active" boolean)
78
+  (0.5ms) CREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")
79
+  (0.4ms) CREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")
80
+  (0.4ms) CREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")
81
+  (0.8ms) DROP TABLE IF EXISTS "apidae_selection_objects" CASCADE
82
+  (1.2ms) 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)
83
+  (0.9ms) DROP TABLE IF EXISTS "apidae_selections" CASCADE
84
+  (1.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)
85
+  (1.2ms) DROP TABLE IF EXISTS "apidae_territories" CASCADE
86
+  (1.4ms) CREATE TABLE "apidae_territories" ("id" bigserial primary key, "apidae_id" integer, "name" character varying, "apidae_type" integer)
87
+  (0.4ms) CREATE INDEX "index_apidae_territories_on_apidae_id" ON "apidae_territories" ("apidae_id")
88
+  (1.2ms) DROP TABLE IF EXISTS "apidae_towns" CASCADE
89
+  (1.4ms) 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)
90
+  (0.4ms) CREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")
91
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
92
+  (0.6ms) INSERT INTO "schema_migrations" (version) VALUES
93
+ (20170512212941),
94
+ (20170512214641),
95
+ (20170512221525),
96
+ (20170513114002),
97
+ (20170513114409),
98
+ (20170513115401),
99
+ (20170513121215),
100
+ (20170513205932),
101
+ (20170720161134),
102
+ (20170730102424),
103
+ (20171025075304),
104
+ (20180217222410),
105
+ (20180218172704),
106
+ (20180218231319),
107
+ (20180222104915),
108
+ (20180222105302),
109
+ (20180307164936),
110
+ (20180307170349),
111
+ (20180314093512),
112
+ (20180314132631),
113
+ (20180319143954),
114
+ (20180417164604),
115
+ (20180417165744),
116
+ (20180417171344),
117
+ (20180418141248),
118
+ (20180418141305),
119
+ (20180424141656),
120
+ (20180519170210),
121
+ (20180521211735),
122
+ (20180625050400),
123
+ (20181024072424),
124
+ (20181024072843),
125
+ (20190111162443),
126
+ (20190123142628),
127
+ (20190123160046),
128
+ (20190123214635),
129
+ (20190124162543),
130
+ (20190127210921),
131
+ (20190127213602),
132
+ (20190304142446),
133
+ (20190418133435),
134
+ (20190517153215),
135
+ (20200111214145),
136
+ (20200111214631),
137
+ (20200224130804),
138
+ (20200224145802),
139
+ (20200312150008),
140
+ (20200312150904),
141
+ (20200522124205),
142
+ (20200528101957),
143
+ (20201112080847);
144
+
145
+ 
146
+ 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]]
147
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "environment"], ["LIMIT", 1]]
148
+ ActiveRecord::InternalMetadata Load (0.1ms) SELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2 [["key", "schema_sha1"], ["LIMIT", 1]]
149
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
150
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
151
+ TRANSACTION (0.2ms) BEGIN
152
+ ------------------------------------------------------
153
+ Apidae::FileImportTest: test_existing_selection_update
154
+ ------------------------------------------------------
155
+ Apidae::Obj Destroy (1.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
156
+ Apidae::Project Destroy (0.6ms) DELETE FROM "apidae_projects"
157
+ Apidae::Selection Destroy (0.8ms) DELETE FROM "apidae_selections"
158
+ Apidae::Town Destroy (0.9ms) DELETE FROM "apidae_towns"
159
+ Apidae::Reference Destroy (1.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
160
+ TRANSACTION (0.3ms) SAVEPOINT active_record_1
161
+ Apidae::Obj Create (2.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", "2022-03-29 13:31:25.614619"], ["updated_at", "2022-03-29 13:31:25.614619"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
162
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
163
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
164
+ 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", "2022-03-29 13:31:25.618423"], ["updated_at", "2022-03-29 13:31:25.618423"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
165
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
166
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
167
+ 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]]
168
+ Apidae::Project Create (0.8ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2022-03-29 13:31:25.626688"], ["updated_at", "2022-03-29 13:31:25.626688"]]
169
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
170
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
171
+ Apidae::Selection Create (0.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 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2022-03-29 13:31:25.633068"], ["updated_at", "2022-03-29 13:31:25.633068"], ["apidae_project_id", 1]]
172
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
173
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
174
+ Apidae::SelectionObject Create (1.1ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 1], ["apidae_object_id", 1], ["created_at", "2022-03-29 13:31:25.654900"], ["updated_at", "2022-03-29 13:31:25.654900"]]
175
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
176
+  (1.7ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 1]]
177
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
178
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE 1=0
179
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
180
+ Updating selection 49063
181
+ 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]]
182
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 1]]
183
+ 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]]
184
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
185
+ 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", 1], ["apidae_object_id", 2], ["created_at", "2022-03-29 13:31:25.687432"], ["updated_at", "2022-03-29 13:31:25.687432"]]
186
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
187
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 1]]
188
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 1]]
189
+  (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", 1]]
190
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
191
+ TRANSACTION (0.2ms) ROLLBACK
192
+ TRANSACTION (0.1ms) BEGIN
193
+ ----------------------------------------------------
194
+ Apidae::FileImportTest: test_new_selection_insertion
195
+ ----------------------------------------------------
196
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
197
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
198
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
199
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
200
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
201
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
202
+ 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", "2022-03-29 13:31:25.693741"], ["updated_at", "2022-03-29 13:31:25.693741"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
203
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
204
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
205
+ 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]]
206
+ 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", "2022-03-29 13:31:25.695851"], ["updated_at", "2022-03-29 13:31:25.695851"]]
207
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
208
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 2]]
209
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE 1=0
210
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
211
+ Updating selection 49063
212
+ 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]]
213
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
214
+ 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", "2022-03-29 13:31:25.714883"], ["updated_at", "2022-03-29 13:31:25.714883"], ["apidae_project_id", 2]]
215
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
216
+ Apidae::Obj Load (0.7ms) 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]]
217
+ 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]]
218
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
219
+ Apidae::SelectionObject Create (0.3ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 2], ["apidae_object_id", 3], ["created_at", "2022-03-29 13:31:25.718270"], ["updated_at", "2022-03-29 13:31:25.718270"]]
220
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
221
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 2]]
222
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 2]]
223
+  (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", 2]]
224
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
225
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
226
+ TRANSACTION (0.2ms) ROLLBACK
227
+ TRANSACTION (0.1ms) BEGIN
228
+ ------------------------------------------------
229
+ Apidae::FileImportTest: test_full_import_process
230
+ ------------------------------------------------
231
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
232
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
233
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
234
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
235
+ Apidae::Reference Destroy (0.6ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
236
+ TRANSACTION (0.3ms) SAVEPOINT active_record_1
237
+ 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", 123], ["created_at", "2022-03-29 13:31:25.725551"], ["updated_at", "2022-03-29 13:31:25.725551"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
238
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
239
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
240
+ 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", 4826186], ["created_at", "2022-03-29 13:31:25.727153"], ["updated_at", "2022-03-29 13:31:25.727153"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
241
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
242
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
243
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
244
+ 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]]
245
+ 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", "2022-03-29 13:31:25.730039"], ["updated_at", "2022-03-29 13:31:25.730039"]]
246
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
247
+  (0.8ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND (apidae_type != 'internal') [["is_active", true]]
248
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
249
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
250
+ Apidae::Reference Create (1.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2022-03-29 13:31:25.736650"], ["updated_at", "2022-03-29 13:31:25.736650"], ["meta_data", "{}"], ["is_active", true]]
251
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
252
+ Apidae::Reference Load (0.4ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
253
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
254
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2022-03-29 13:31:25.739380"], ["updated_at", "2022-03-29 13:31:25.739380"], ["meta_data", "{}"], ["is_active", true]]
255
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
256
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
257
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
258
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2022-03-29 13:31:25.740911"], ["updated_at", "2022-03-29 13:31:25.740911"], ["meta_data", "{}"], ["is_active", true]]
259
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
260
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
261
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
262
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2022-03-29 13:31:25.742446"], ["updated_at", "2022-03-29 13:31:25.742446"], ["meta_data", "{}"], ["is_active", false]]
263
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
264
+  (0.4ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2 [["is_active", true], ["apidae_type", "internal"]]
265
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
266
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
267
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2022-03-29 13:31:25.744705"], ["updated_at", "2022-03-29 13:31:25.744705"], ["is_active", true]]
268
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
269
+ Apidae::Reference Load (0.5ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
270
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
271
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2022-03-29 13:31:25.746812"], ["updated_at", "2022-03-29 13:31:25.746812"], ["is_active", true]]
272
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
273
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
274
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
275
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2022-03-29 13:31:25.748334"], ["updated_at", "2022-03-29 13:31:25.748334"], ["is_active", true]]
276
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
277
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
278
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
279
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2022-03-29 13:31:25.749714"], ["updated_at", "2022-03-29 13:31:25.749714"], ["is_active", true]]
280
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
281
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
282
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
283
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2022-03-29 13:31:25.751071"], ["updated_at", "2022-03-29 13:31:25.751071"], ["is_active", true]]
284
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
285
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
286
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
287
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2022-03-29 13:31:25.752373"], ["updated_at", "2022-03-29 13:31:25.752373"], ["is_active", true]]
288
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
289
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
290
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
291
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2022-03-29 13:31:25.753669"], ["updated_at", "2022-03-29 13:31:25.753669"], ["is_active", true]]
292
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
293
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
294
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
295
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2022-03-29 13:31:25.755089"], ["updated_at", "2022-03-29 13:31:25.755089"], ["is_active", true]]
296
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
297
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
298
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
299
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2022-03-29 13:31:25.756402"], ["updated_at", "2022-03-29 13:31:25.756402"], ["is_active", true]]
300
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
301
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
302
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
303
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2022-03-29 13:31:25.757890"], ["updated_at", "2022-03-29 13:31:25.757890"], ["is_active", true]]
304
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
305
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
306
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
307
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2022-03-29 13:31:25.759232"], ["updated_at", "2022-03-29 13:31:25.759232"], ["is_active", true]]
308
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
309
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
310
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
311
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2022-03-29 13:31:25.760548"], ["updated_at", "2022-03-29 13:31:25.760548"], ["is_active", true]]
312
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
313
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
314
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
315
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2022-03-29 13:31:25.761850"], ["updated_at", "2022-03-29 13:31:25.761850"], ["is_active", true]]
316
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
317
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
318
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
319
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2022-03-29 13:31:25.763196"], ["updated_at", "2022-03-29 13:31:25.763196"], ["is_active", true]]
320
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
321
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
322
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
323
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2022-03-29 13:31:25.764738"], ["updated_at", "2022-03-29 13:31:25.764738"], ["is_active", true]]
324
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
325
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
326
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
327
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2022-03-29 13:31:25.766158"], ["updated_at", "2022-03-29 13:31:25.766158"], ["is_active", true]]
328
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
329
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4 [["is_active", true], ["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
330
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
331
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2022-03-29 13:31:25.767495"], ["updated_at", "2022-03-29 13:31:25.767495"], ["is_active", true]]
332
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
333
+  (0.4ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
334
+ Completed 20 references update
335
+  (0.3ms) SELECT COUNT(*) FROM "apidae_towns"
336
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2 [["is_active", true], ["apidae_type", "Pays"]]
337
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
338
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
339
+ Apidae::Town Create (1.0ms) 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", "2022-03-29 13:31:25.777515"], ["updated_at", "2022-03-29 13:31:25.777515"]]
340
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
341
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
342
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
343
+ 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", "2022-03-29 13:31:25.779914"], ["updated_at", "2022-03-29 13:31:25.779914"]]
344
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
345
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
346
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
347
+ Apidae::Town Create (0.3ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2022-03-29 13:31:25.785355"], ["updated_at", "2022-03-29 13:31:25.785355"]]
348
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
349
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
350
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
351
+ Apidae::Town Update (0.4ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2022-03-29 13:31:25.787021"], ["id", 1]]
352
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
353
+  (0.3ms) SELECT COUNT(*) FROM "apidae_towns"
354
+ Completed 3 towns update
355
+ Processing file : objets_modifies/objets_modifies-2.json
356
+ 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", 4833997], ["LIMIT", 1]]
357
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
358
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
359
+ Apidae::Obj Create (1.9ms) 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\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 4 novembre à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13969038,\"external_id\":null,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.793665"], ["updated_at", "2022-03-29 13:31:25.793665"], ["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],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[542,2060,9580]}"], ["location_data", "{\"address\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"],\"place\":\"La Traverse\",\"latitude\":45.645852,\"longitude\":5.865084,\"map_reference\":null,\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\\r\\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque.\"},\"long_desc\":{\"fr\":\"Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\\r\\n\\r\\nUn spectacle qui ravira petits et grands.\\r\\n\\r\\nCompagnie du Fil à retordre\\r\\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Les Spécimens - Spectacle familial\"}}"], ["booking_data", "{\"booking_entities\":[],\"booking_desc\":[{},[]]}"], ["version", "STANDARD"], ["last_update", "2017-09-21 09:51:57.288000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
360
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
361
+ Processing file : objets_modifies/objets_modifies-1.json
362
+ 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]]
363
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
364
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
365
+ Apidae::Obj Create (1.0ms) 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\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[570],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Mardi 7 novembre 2017 de 7h à 19h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13924098,\"external_id\":null,\"start_date\":\"2017-11-07\",\"end_date\":\"2017-11-07\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"07:00:00\",\"end_time\":\"19:00:00\",\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.800025"], ["updated_at", "2022-03-29 13:31:25.800025"], ["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\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"map_reference\":null,\"altitude\":null,\"access\":{},\"environments\":[173]}"], ["description_data", "{\"short_desc\":{\"fr\":\"Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé.\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"3C-Centre de Coordination en Cancerologie\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:27:36.711000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
366
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
367
+ 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", 4826186], ["LIMIT", 1]]
368
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
369
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
370
+ Apidae::Obj Update (0.9ms) UPDATE "apidae_objs" SET "apidae_type" = $1, "apidae_subtype" = $2, "contact_data" = $3, "type_data" = $4, "openings_data" = $5, "updated_at" = $6, "pictures_data" = $7, "entity_data" = $8, "service_data" = $9, "rates_data" = $10, "attachments_data" = $11, "tags_data" = $12, "location_data" = $13, "description_data" = $14, "title_data" = $15, "booking_data" = $16, "last_update" = $17, "owner_data" = $18 WHERE "apidae_objs"."id" = $19 [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["contact_data", "{\"contacts\":null,\"website\":{\"53824257\":{\"value\":\"https://www.acielouvert.org\",\"description\":null}}}"], ["type_data", "{\"categories\":[2084],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du samedi 11 au lundi 13 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13924478,\"external_id\":null,\"start_date\":\"2017-11-11\",\"end_date\":\"2017-11-13\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["updated_at", "2022-03-29 13:31:25.804349"], ["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\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"map_reference\":\"J5\",\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["last_update", "2017-09-14 09:17:06.836000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["id", 5]]
371
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
372
+ 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", 4826282], ["LIMIT", 1]]
373
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
374
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
375
+ Apidae::Obj Create (1.1ms) 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\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[570],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 18 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13925007,\"external_id\":null,\"start_date\":\"2017-11-18\",\"end_date\":\"2017-11-18\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.808670"], ["updated_at", "2022-03-29 13:31:25.808670"], ["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\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"map_reference\":\"J5\",\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Remise des diplômes POLYTECH Annecy-Chambery\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:29:13.914000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
376
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
377
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4828422], ["LIMIT", 1]]
378
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
379
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
380
+ Apidae::Obj Create (2.9ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[2064,2257],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13951267,\"external_id\":null,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-04-19\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951269,\"external_id\":null,\"start_date\":\"2018-04-20\",\"end_date\":\"2018-04-20\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951275,\"external_id\":null,\"start_date\":\"2018-04-21\",\"end_date\":\"2018-04-21\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951278,\"external_id\":null,\"start_date\":\"2018-04-22\",\"end_date\":\"2018-04-22\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951279,\"external_id\":null,\"start_date\":\"2018-04-24\",\"end_date\":\"2018-04-24\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951282,\"external_id\":null,\"start_date\":\"2018-04-25\",\"end_date\":\"2018-04-25\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951286,\"external_id\":null,\"start_date\":\"2018-04-27\",\"end_date\":\"2018-04-27\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951289,\"external_id\":null,\"start_date\":\"2018-04-28\",\"end_date\":\"2018-04-28\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951291,\"external_id\":null,\"start_date\":\"2018-04-29\",\"end_date\":\"2018-04-29\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951292,\"external_id\":null,\"start_date\":\"2018-04-30\",\"end_date\":\"2018-04-30\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951297,\"external_id\":null,\"start_date\":\"2018-05-02\",\"end_date\":\"2018-05-02\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951298,\"external_id\":null,\"start_date\":\"2018-05-03\",\"end_date\":\"2018-05-03\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951300,\"external_id\":null,\"start_date\":\"2018-05-05\",\"end_date\":\"2018-05-05\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951303,\"external_id\":null,\"start_date\":\"2018-05-06\",\"end_date\":\"2018-05-06\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951307,\"external_id\":null,\"start_date\":\"2018-05-07\",\"end_date\":\"2018-05-07\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951309,\"external_id\":null,\"start_date\":\"2018-05-08\",\"end_date\":\"2018-05-08\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"19:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951311,\"external_id\":null,\"start_date\":\"2018-05-10\",\"end_date\":\"2018-05-10\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"19:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968615,\"external_id\":null,\"start_date\":\"2018-05-11\",\"end_date\":\"2018-05-11\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968617,\"external_id\":null,\"start_date\":\"2018-05-12\",\"end_date\":\"2018-05-12\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968619,\"external_id\":null,\"start_date\":\"2018-05-13\",\"end_date\":\"2018-05-13\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.813102"], ["updated_at", "2022-03-29 13:31:25.813102"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse).\"},\"rates\":[{\"id\":8306899,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-05-13\",\"values\":[{\"min\":15.0,\"max\":32.0,\"type\":5240,\"details\":{\"fr\":\"abonnés Espace Malraux, Bonlieu, La Traverse\"}},{\"min\":39.0,\"max\":null,\"type\":5239,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1286],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060,6588,6769,542,9580]}"], ["location_data", "{\"address\":[],\"place\":\"La Croix verte\",\"latitude\":45.644668,\"longitude\":5.867981,\"map_reference\":null,\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Conception et mise en scène de Bartabas.\\r\\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture.\"},\"long_desc\":{\"fr\":\"On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Ex Anima - Théâtre équestre Zingaro\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-10-06 09:50:00.352000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
381
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
382
+ Processing file : selections.json
383
+ Apidae::Selection Load (0.4ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 3]]
384
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE 1=0
385
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections" WHERE 1=0
386
+ Updating selection 49063
387
+ Apidae::Selection Load (0.7ms) 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]]
388
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
389
+ 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", "2022-03-29 13:31:25.825534"], ["updated_at", "2022-03-29 13:31:25.825534"], ["apidae_project_id", 3]]
390
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
391
+ Apidae::Obj Load (0.8ms) 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]]
392
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
393
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
394
+ 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", 3], ["apidae_object_id", 7], ["created_at", "2022-03-29 13:31:25.829991"], ["updated_at", "2022-03-29 13:31:25.829991"]]
395
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
396
+ 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", 4826282], ["LIMIT", 1]]
397
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
398
+ 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", 3], ["apidae_object_id", 8], ["created_at", "2022-03-29 13:31:25.832118"], ["updated_at", "2022-03-29 13:31:25.832118"]]
399
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
400
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 3]]
401
+ Updating selection 49073
402
+ 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", 49073], ["LIMIT", 1]]
403
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
404
+ 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 2"], ["reference", "selection-2"], ["apidae_id", 49073], ["created_at", "2022-03-29 13:31:25.834746"], ["updated_at", "2022-03-29 13:31:25.834746"], ["apidae_project_id", 3]]
405
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
406
+ Apidae::Obj Load (1.0ms) 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]]
407
+ Apidae::Obj Load (0.8ms) 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]]
408
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
409
+ 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", 4], ["apidae_object_id", 5], ["created_at", "2022-03-29 13:31:25.839279"], ["updated_at", "2022-03-29 13:31:25.839279"]]
410
+ TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1
411
+ Apidae::Obj Load (0.8ms) 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]]
412
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
413
+ 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", "2022-03-29 13:31:25.842273"], ["updated_at", "2022-03-29 13:31:25.842273"]]
414
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
415
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
416
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
417
+ 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", 6], ["created_at", "2022-03-29 13:31:25.844137"], ["updated_at", "2022-03-29 13:31:25.844137"]]
418
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
419
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 4]]
420
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 3]]
421
+  (0.8ms) 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]]
422
+  (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]]
423
+ Processing file : objets_supprimes.json
424
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
425
+ Apidae::Selection Exists? (0.5ms) SELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2 [["apidae_object_id", 4], ["LIMIT", 1]]
426
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
427
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 4]]
428
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
429
+ Processing file : elements_reference.json
430
+ Processing file : criteres_internes.json
431
+ Processing file : communes.json
432
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 3]]
433
+ Apidae::SelectionObject Destroy (2.1ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."id" IN (SELECT "apidae_selection_objects"."id" FROM "apidae_selection_objects" LEFT JOIN apidae_objs ON apidae_objs.id = apidae_selection_objects.apidae_object_id WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND (apidae_objs.id IS NULL)) [["apidae_selection_id", 3]]
434
+ Cleaned up 0 obsolete selection-objects associations for selection 49063
435
+ Apidae::SelectionObject Load (0.2ms) SELECT "apidae_selection_objects".* FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 3]]
436
+ Apidae::SelectionObject Load (0.6ms) SELECT COUNT(id), apidae_object_id, ARRAY_AGG(id) AS so_ids FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 GROUP BY "apidae_selection_objects"."apidae_object_id" HAVING (COUNT(id) > 1) [["apidae_selection_id", 3]]
437
+ 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]]
438
+ Cleaned up 0 duplicate selection-objects associations for selection 49063
439
+ Apidae::SelectionObject Destroy (0.5ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."id" IN (SELECT "apidae_selection_objects"."id" FROM "apidae_selection_objects" LEFT JOIN apidae_objs ON apidae_objs.id = apidae_selection_objects.apidae_object_id WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND (apidae_objs.id IS NULL)) [["apidae_selection_id", 4]]
440
+ Cleaned up 0 obsolete selection-objects associations for selection 49073
441
+ Apidae::SelectionObject Load (0.1ms) SELECT "apidae_selection_objects".* FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 4]]
442
+ Apidae::SelectionObject Load (0.2ms) SELECT COUNT(id), apidae_object_id, ARRAY_AGG(id) AS so_ids FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 GROUP BY "apidae_selection_objects"."apidae_object_id" HAVING (COUNT(id) > 1) [["apidae_selection_id", 4]]
443
+ 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]]
444
+ Cleaned up 0 duplicate selection-objects associations for selection 49073
445
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
446
+ 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", "2022-03-29 13:31:25.868118"], ["updated_at", "2022-03-29 13:31:25.868118"], ["apidae_id", 123]]
447
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
448
+ 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}]}
449
+  (0.2ms) SELECT COUNT(*) FROM "apidae_projects"
450
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
451
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
452
+ TRANSACTION (0.2ms) ROLLBACK
453
+ TRANSACTION (0.1ms) BEGIN
454
+ -----------------------------------------------------
455
+ Apidae::FileImportTest: test_existing_object_deletion
456
+ -----------------------------------------------------
457
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
458
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
459
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
460
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
461
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
462
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
463
+ 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", "2022-03-29 13:31:25.873874"], ["updated_at", "2022-03-29 13:31:25.873874"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
464
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
465
+ 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]]
466
+ Apidae::Selection Exists? (0.3ms) SELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2 [["apidae_object_id", 10], ["LIMIT", 1]]
467
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
468
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 10]]
469
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
470
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
471
+ TRANSACTION (0.1ms) ROLLBACK
472
+ TRANSACTION (0.1ms) BEGIN
473
+ ------------------------------------------------------------------------------
474
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
475
+ ------------------------------------------------------------------------------
476
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
477
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
478
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
479
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
480
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
481
+ 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]]
482
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
483
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
484
+ Apidae::Obj Create (1.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\":{\"5673157\":{\"value\":\"04 78 81 84 30\",\"description\":\"Jean Claude THOOS\"},\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":{\"allowed\":true,\"desc\":{\"fr\":\"Tenus en laisse uniquement\"},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":17994901,\"external_id\":18183551,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-06-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577872,\"external_id\":18183552,\"start_date\":\"2019-07-01\",\"end_date\":\"2019-08-31\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"16:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577873,\"external_id\":18183553,\"start_date\":\"2019-09-01\",\"end_date\":\"2019-09-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[4188]}"], ["created_at", "2022-03-29 13:31:25.882810"], ["updated_at", "2022-03-29 13:31:25.882810"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null,\"legal\":{},\"is_service_provider\":true}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Tarifs groupes et scolaires en téléchargement (fichiers ci-dessous)\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"map_reference\":null,\"altitude\":null,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]],\"visits_allowed\":false,\"visits_desc\":{},\"visits_duration\":50,\"visits_services\":[491]}"], ["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}"]]
485
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
486
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 11], ["version", "GROUPES"], ["LIMIT", 1]]
487
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
488
+ Apidae::Obj Create (0.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":{\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":18024471,\"external_id\":18183554,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"à partir de 10h30, uniquement sur réservation\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.892039"], ["updated_at", "2022-03-29 13:31:25.892039"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Groupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{\"fr\":\"Arrhes demandés pour les groupes\"},null]}"], ["version", "GROUPES"], ["root_obj_id", 11], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
489
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
490
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
491
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
492
+ Apidae::Obj Load (0.8ms) 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]]
493
+ 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", 11], ["version", "GROUPES"], ["LIMIT", 1]]
494
+ TRANSACTION (0.1ms) ROLLBACK
495
+ TRANSACTION (0.1ms) BEGIN
496
+ --------------------------------------------------------------
497
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
498
+ --------------------------------------------------------------
499
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
500
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
501
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
502
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
503
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
504
+ 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]]
505
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
506
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
507
+ Apidae::Obj Create (1.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 898922], ["apidae_type", "HOTELLERIE"], ["apidae_subtype", "2734"], ["contact_data", "{\"contacts\":[{\"identifiant\":12954222,\"referent\":true,\"nom\":\"HORGAN\",\"prenom\":\"Carrie\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":36504396,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"chatelleraie@wanadoo.fr\"}},{\"identifiant\":36504397,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"04 71 49 09 09\"}}]}],\"telephone\":{\"36504392\":{\"value\":\"04 71 49 09 09\",\"description\":null}},\"fax\":{\"36504393\":{\"value\":\"04 71 49 07 07\",\"description\":null}},\"email\":{\"36504394\":{\"value\":\"chatelleraie@wanadoo.fr\",\"description\":null}},\"website\":{\"36504395\":{\"value\":\"http://chatelleraie.co.uk/fr/\",\"description\":null}}}"], ["type_data", "{\"categories\":[1610,1619],\"themes\":[],\"capacity\":{\"nombreChambresDeclareesHotelier\":26,\"nombreTotalPersonnes\":70,\"nombreTotalPersonnesReel\":70,\"nombreChambresFamiliales\":1,\"nombreSuites\":1,\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[2756],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":true,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{\"tourismeAffairesEnabled\":true,\"nombreSallesModulables\":1},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/04 au 14/10/2018.\",\"en\":\"From 01/04 to 14/10/2018.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14375379,\"external_id\":15927193,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.902694"], ["updated_at", "2022-03-29 13:31:25.902694"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":1890696,\"name\":\"La Chatelleraie st etienne de Maurs 2\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":\"otchataigneraie\",\"expiration_date\":\"\"},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[687,1115,1172],\"equipments\":[655,723,821,972,1058,1064,1089,1093,1106,1323],\"comfort\":[838,842,963,1014,1015],\"activities\":[680,3927],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Chambre double : de 55 à 80 €\\nChambre quadruple : de 80 à 125 € (chambre familiale)\\nDemi-pension (/ pers.) : à partir de 50 € (A partir de 50€)\\nPetit déjeuner : à partir de 7,50 €\\nAnimaux : à partir de 5 €.\\n\",\"en\":\"Double room: 55 to 80 €\\nRoom sleeping 4: 80 to 125 €\\nHalf-board: from 50 €\\nBreakfast: from 7.50 €\\nSupplementary payment for pets: from 5 €.\\n\"},\"rates\":[{\"id\":8605788,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"values\":[{\"min\":55.0,\"max\":80.0,\"type\":1466,\"details\":{}},{\"min\":80.0,\"max\":125.0,\"type\":3877,\"details\":{\"fr\":\"chambre familiale\"}},{\"min\":50.0,\"max\":null,\"type\":1465,\"details\":{\"fr\":\"A partir de 50€\"}},{\"min\":7.5,\"max\":null,\"type\":1461,\"details\":{}},{\"min\":5.0,\"max\":null,\"type\":4080,\"details\":{}}]}],\"payment_methods\":[1268,1271],\"tax_included\":false,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"HOTAUV015V5022D5\"}}]}]"], ["location_data", "{\"address\":[\"Château de La Devèze\"],\"place\":null,\"latitude\":44.715026,\"longitude\":2.207737,\"map_reference\":null,\"altitude\":null,\"access\":{},\"environments\":[135],\"territories\":[711392,742848,896166,908439]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc fr\",\"en\":\"short desc en\"},\"long_desc\":{\"fr\":\"long desc fr\",\"en\":\"long desc en\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Châtelleraie\",\"en\":\"La Châtelleraie\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2018-11-06 11:03:21.304000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme de la Châtaigneraie Cantalienne\",\"owner_id\":1333}"]]
508
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
509
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
510
+ Apidae::Obj Load (0.8ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
511
+ TRANSACTION (0.1ms) ROLLBACK
512
+ TRANSACTION (0.1ms) BEGIN
513
+ -------------------------------------------------
514
+ Apidae::FileImportTest: test_new_object_insertion
515
+ -------------------------------------------------
516
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
517
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
518
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
519
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
520
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
521
+ 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]]
522
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
523
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
524
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.914082"], ["updated_at", "2022-03-29 13:31:25.914082"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"legal\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["booking_data", "{}"], ["version", "STANDARD"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
525
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
526
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
527
+ Apidae::Obj Load (0.9ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
528
+ TRANSACTION (0.1ms) ROLLBACK
529
+ TRANSACTION (0.1ms) BEGIN
530
+ ---------------------------------------------------------------------------
531
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
532
+ ---------------------------------------------------------------------------
533
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
534
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
535
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
536
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
537
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
538
+ 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]]
539
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
540
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
541
+ Apidae::Obj Create (2.1ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\",\"en\":\"All year round.\",\"de\":\"Ganzjährig.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.922114"], ["updated_at", "2022-03-29 13:31:25.922114"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"tax_included\":null,\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\",\"en\":\"La Grange des Huskies\",\"de\":\"Huskytouren Grange des Huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
542
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
543
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 15], ["version", "HIVER"], ["LIMIT", 1]]
544
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
545
+ Apidae::Obj Create (0.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.932524"], ["updated_at", "2022-03-29 13:31:25.932524"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 15], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
546
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
547
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
548
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
549
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
550
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 15], ["version", "HIVER"], ["LIMIT", 1]]
551
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 15], ["LIMIT", 1]]
552
+ TRANSACTION (0.2ms) ROLLBACK
553
+ TRANSACTION (0.1ms) BEGIN
554
+ ---------------------------------------------------------------
555
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
556
+ ---------------------------------------------------------------
557
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
558
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
559
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
560
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
561
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
562
+ 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]]
563
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
564
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
565
+ Apidae::Obj Create (1.1ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.944454"], ["updated_at", "2022-03-29 13:31:25.944454"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"tax_included\":null,\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
566
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
567
+ Apidae::Obj Load (0.8ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 17], ["version", "HIVER"], ["LIMIT", 1]]
568
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
569
+ Apidae::Obj Create (1.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.949957"], ["updated_at", "2022-03-29 13:31:25.949957"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 17], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
570
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
571
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
572
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
573
+ 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]]
574
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 17], ["version", "HIVER"], ["LIMIT", 1]]
575
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 17], ["LIMIT", 1]]
576
+ TRANSACTION (0.1ms) ROLLBACK
577
+ TRANSACTION (0.1ms) BEGIN
578
+ -----------------------------------------------------------------------------------
579
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
580
+ -----------------------------------------------------------------------------------
581
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
582
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
583
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
584
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
585
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
586
+ 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]]
587
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
588
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
589
+ 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", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.960786"], ["updated_at", "2022-03-29 13:31:25.960786"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"tax_included\":null,\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
590
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
591
+ 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", 19], ["version", "HIVER"], ["LIMIT", 1]]
592
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
593
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.971593"], ["updated_at", "2022-03-29 13:31:25.971593"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 19], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
594
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
595
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
596
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
597
+ 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]]
598
+ 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", 19], ["version", "HIVER"], ["LIMIT", 1]]
599
+ TRANSACTION (0.2ms) ROLLBACK
600
+ TRANSACTION (0.1ms) BEGIN
601
+ --------------------------------------------------------------------------------
602
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
603
+ --------------------------------------------------------------------------------
604
+ Apidae::Obj Destroy (0.5ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
605
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
606
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
607
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
608
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
609
+ 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]]
610
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
611
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
612
+ 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\":{\"5673157\":{\"value\":\"04 78 81 84 30\",\"description\":\"Jean Claude THOOS\"},\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":{\"allowed\":true,\"desc\":{\"fr\":\"Tenus en laisse uniquement\"},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":17994901,\"external_id\":18183551,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-06-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577872,\"external_id\":18183552,\"start_date\":\"2019-07-01\",\"end_date\":\"2019-08-31\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"16:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577873,\"external_id\":18183553,\"start_date\":\"2019-09-01\",\"end_date\":\"2019-09-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[4188]}"], ["created_at", "2022-03-29 13:31:25.980713"], ["updated_at", "2022-03-29 13:31:25.980713"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null,\"legal\":{},\"is_service_provider\":true}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Tarifs groupes et scolaires en téléchargement (fichiers ci-dessous)\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"map_reference\":null,\"altitude\":null,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]],\"visits_allowed\":false,\"visits_desc\":{},\"visits_duration\":50,\"visits_services\":[491]}"], ["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}"]]
613
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
614
+ 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", 21], ["version", "GROUPES"], ["LIMIT", 1]]
615
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
616
+ 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", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":{\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":18024471,\"external_id\":18183554,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"à partir de 10h30, uniquement sur réservation\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.988734"], ["updated_at", "2022-03-29 13:31:25.988734"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Groupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{\"fr\":\"Arrhes demandés pour les groupes\"},null]}"], ["version", "GROUPES"], ["root_obj_id", 21], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
617
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
618
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
619
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
620
+ Apidae::Obj Load (0.7ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
621
+ 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", 21], ["version", "GROUPES"], ["LIMIT", 1]]
622
+ TRANSACTION (0.6ms) ROLLBACK
623
+ TRANSACTION (0.1ms) BEGIN
624
+ --------------------------------------------------------
625
+ Apidae::FileImportTest: test_existing_selection_deletion
626
+ --------------------------------------------------------
627
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
628
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
629
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
630
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
631
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
632
+ TRANSACTION (0.2ms) SAVEPOINT active_record_1
633
+ 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]]
634
+ 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", "2022-03-29 13:31:25.999489"], ["updated_at", "2022-03-29 13:31:25.999489"]]
635
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
636
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
637
+ 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", "2022-03-29 13:31:26.000643"], ["updated_at", "2022-03-29 13:31:26.000643"], ["apidae_project_id", 4]]
638
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
639
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
640
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 4]]
641
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
642
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 5]]
643
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."id" = $1 [["id", 5]]
644
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 4]]
645
+  (0.5ms) SELECT COUNT(*) FROM "apidae_selections"
646
+ TRANSACTION (0.1ms) ROLLBACK
647
+ TRANSACTION (0.2ms) BEGIN
648
+ ---------------------------------------------------------------------------------
649
+ Apidae::FileImportTest: test_object_deletion_cancelled_if_used_by_another_project
650
+ ---------------------------------------------------------------------------------
651
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
652
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
653
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
654
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
655
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
656
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
657
+ 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]]
658
+ 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", "2022-03-29 13:31:26.009122"], ["updated_at", "2022-03-29 13:31:26.009122"]]
659
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
660
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
661
+ Apidae::Project Exists? (0.2ms) SELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 456], ["LIMIT", 1]]
662
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 456], ["created_at", "2022-03-29 13:31:26.010711"], ["updated_at", "2022-03-29 13:31:26.010711"]]
663
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
664
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
665
+ 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", "2022-03-29 13:31:26.011740"], ["updated_at", "2022-03-29 13:31:26.011740"], ["apidae_project_id", 5]]
666
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
667
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
668
+ 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 99"], ["reference", "selection-99"], ["apidae_id", 49999], ["created_at", "2022-03-29 13:31:26.012950"], ["updated_at", "2022-03-29 13:31:26.012950"], ["apidae_project_id", 6]]
669
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
670
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
671
+ 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", 503], ["created_at", "2022-03-29 13:31:26.014411"], ["updated_at", "2022-03-29 13:31:26.014411"], ["title_data", "{\"title\":{\"\":\"Société des violoncellistes aixois\"}}"]]
672
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
673
+ TRANSACTION (0.3ms) SAVEPOINT active_record_1
674
+ Apidae::SelectionObject Create (0.5ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 6], ["apidae_object_id", 23], ["created_at", "2022-03-29 13:31:26.017332"], ["updated_at", "2022-03-29 13:31:26.017332"]]
675
+ TRANSACTION (0.2ms) RELEASE SAVEPOINT active_record_1
676
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
677
+ 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", "2022-03-29 13:31:26.019420"], ["updated_at", "2022-03-29 13:31:26.019420"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
678
+ TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1
679
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
680
+ Apidae::SelectionObject Create (0.6ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 6], ["apidae_object_id", 24], ["created_at", "2022-03-29 13:31:26.021523"], ["updated_at", "2022-03-29 13:31:26.021523"]]
681
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
682
+ 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]]
683
+ TRANSACTION (6.1ms) SAVEPOINT active_record_1
684
+ Apidae::SelectionObject Create (0.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", 7], ["apidae_object_id", 24], ["created_at", "2022-03-29 13:31:26.024411"], ["updated_at", "2022-03-29 13:31:26.024411"]]
685
+ TRANSACTION (0.3ms) RELEASE SAVEPOINT active_record_1
686
+  (0.7ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 6]]
687
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 7]]
688
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
689
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE 1=0
690
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
691
+ Updating selection 49063
692
+ 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]]
693
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 6]]
694
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 [["apidae_id", 504]]
695
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND "apidae_selection_objects"."apidae_object_id" = $2 [["apidae_selection_id", 6], ["apidae_object_id", 24]]
696
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 5]]
697
+  (0.7ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 6]]
698
+ 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]]
699
+ Apidae::Selection Exists? (0.6ms) SELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2 [["apidae_object_id", 24], ["LIMIT", 1]]
700
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
701
+  (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", 7]]
702
+ TRANSACTION (0.2ms) ROLLBACK
703
+ TRANSACTION (0.1ms) BEGIN
704
+ ---------------------------------------------------
705
+ Apidae::FileImportTest: test_existing_object_update
706
+ ---------------------------------------------------
707
+ Apidae::Obj Destroy (0.9ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
708
+ Apidae::Project Destroy (0.4ms) DELETE FROM "apidae_projects"
709
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
710
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
711
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 [["is_active", true]]
712
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
713
+ 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", "2022-03-29 13:31:26.047735"], ["updated_at", "2022-03-29 13:31:26.047735"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
714
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
715
+ 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]]
716
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
717
+ TRANSACTION (0.1ms) SAVEPOINT active_record_1
718
+ Apidae::Obj Update (0.4ms) UPDATE "apidae_objs" SET "apidae_type" = $1, "contact_data" = $2, "type_data" = $3, "updated_at" = $4, "pictures_data" = $5, "entity_data" = $6, "attachments_data" = $7, "tags_data" = $8, "location_data" = $9, "title_data" = $10, "booking_data" = $11, "last_update" = $12, "owner_data" = $13 WHERE "apidae_objs"."id" = $14 [["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["updated_at", "2022-03-29 13:31:26.050491"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"legal\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["booking_data", "{}"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["id", 25]]
719
+ TRANSACTION (0.1ms) RELEASE SAVEPOINT active_record_1
720
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
721
+ 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]]
722
+ TRANSACTION (0.1ms) ROLLBACK
723
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
724
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
725
+ TRANSACTION (0.1ms) BEGIN
726
+ -------------------------------------------------
727
+ Apidae::ObjTest: test_populate_empty_booking_desc
728
+ -------------------------------------------------
729
+ Apidae::Town Load (0.5ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
730
+ TRANSACTION (0.1ms) ROLLBACK
731
+  (0.4ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
732
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
733
+ TRANSACTION (0.2ms) BEGIN
734
+ -------------------------------------------------
735
+ Apidae::ObjTest: test_populate_empty_booking_desc
736
+ -------------------------------------------------
737
+ Apidae::Town Load (0.7ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
738
+ TRANSACTION (2.0ms) ROLLBACK
739
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
740
+  (0.4ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
741
+ TRANSACTION (0.3ms) BEGIN
742
+ -------------------------------------------------
743
+ Apidae::ObjTest: test_populate_empty_booking_desc
744
+ -------------------------------------------------
745
+ Apidae::Town Load (0.7ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
746
+ TRANSACTION (0.2ms) ROLLBACK
747
+  (0.5ms) SELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 [["key", "schema_sha1"]]
748
+  (0.3ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
749
+ TRANSACTION (0.3ms) BEGIN
750
+ -------------------------------------------------
751
+ Apidae::ObjTest: test_populate_empty_booking_desc
752
+ -------------------------------------------------
753
+ Apidae::Town Load (0.6ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
754
+ TRANSACTION (0.2ms) ROLLBACK