apidae 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,1534 @@
1
+  (2.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
2
+  (0.1ms) BEGIN
3
+ ------------------------------------------------------------------------------
4
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
5
+ ------------------------------------------------------------------------------
6
+ Apidae::Obj Destroy (31.0ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
7
+ Apidae::Project Destroy (23.8ms) DELETE FROM "apidae_projects"
8
+ Apidae::Selection Destroy (18.9ms) DELETE FROM "apidae_selections"
9
+ Apidae::Town Destroy (25.5ms) DELETE FROM "apidae_towns"
10
+ Apidae::Reference Destroy (27.1ms) DELETE FROM "apidae_references"
11
+ Apidae::Obj Load (6.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
12
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
13
+  (0.2ms) SAVEPOINT active_record_1
14
+ Apidae::Obj Create (23.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{\"telephone\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 08:28:59.055193"], ["updated_at", "2020-05-20 08:28:59.055193"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
15
+  (0.2ms) RELEASE SAVEPOINT active_record_1
16
+ 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", 140], ["version", "GROUPES"], ["LIMIT", 1]]
17
+  (0.1ms) SAVEPOINT active_record_1
18
+ Apidae::Obj Create (1.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact", "{\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-20 08:28:59.096764"], ["updated_at", "2020-05-20 08:28:59.096764"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 140], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"openings_desc_mode\",\"short_desc\"]}"]]
19
+  (0.2ms) RELEASE SAVEPOINT active_record_1
20
+  (1.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
21
+  (0.6ms) SELECT COUNT(*) FROM "apidae_objs"
22
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
23
+ 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", 140], ["version", "GROUPES"], ["LIMIT", 1]]
24
+  (0.3ms) ROLLBACK
25
+  (0.1ms) BEGIN
26
+ ------------------------------------------------------
27
+ Apidae::FileImportTest: test_existing_selection_update
28
+ ------------------------------------------------------
29
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
30
+ Apidae::Project Destroy (0.6ms) DELETE FROM "apidae_projects"
31
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
32
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
33
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
34
+  (0.1ms) SAVEPOINT active_record_1
35
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["created_at", "2020-05-20 08:28:59.113955"], ["updated_at", "2020-05-20 08:28:59.113955"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
36
+  (0.1ms) RELEASE SAVEPOINT active_record_1
37
+  (0.1ms) SAVEPOINT active_record_1
38
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 08:28:59.115918"], ["updated_at", "2020-05-20 08:28:59.115918"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
39
+  (0.1ms) RELEASE SAVEPOINT active_record_1
40
+  (0.1ms) SAVEPOINT active_record_1
41
+ 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]]
42
+ Apidae::Project Create (6.7ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 08:28:59.133100"], ["updated_at", "2020-05-20 08:28:59.133100"]]
43
+  (0.8ms) RELEASE SAVEPOINT active_record_1
44
+  (0.1ms) SAVEPOINT active_record_1
45
+ 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", "2020-05-20 08:28:59.151071"], ["updated_at", "2020-05-20 08:28:59.151071"], ["apidae_project_id", 29]]
46
+  (0.1ms) RELEASE SAVEPOINT active_record_1
47
+  (0.1ms) SAVEPOINT active_record_1
48
+ Apidae::SelectionObject Create (13.0ms) 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", 36], ["apidae_object_id", 142], ["created_at", "2020-05-20 08:28:59.185768"], ["updated_at", "2020-05-20 08:28:59.185768"]]
49
+  (0.1ms) RELEASE SAVEPOINT active_record_1
50
+  (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", 36]]
51
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 29]]
52
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
53
+ Updating selection 49063
54
+ 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]]
55
+  (0.1ms) SAVEPOINT active_record_1
56
+  (0.1ms) RELEASE SAVEPOINT active_record_1
57
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 36]]
58
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
59
+  (0.1ms) SAVEPOINT active_record_1
60
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 36], ["apidae_object_id", 143], ["created_at", "2020-05-20 08:28:59.214948"], ["updated_at", "2020-05-20 08:28:59.214948"]]
61
+  (0.1ms) RELEASE SAVEPOINT active_record_1
62
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
63
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 36]]
64
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 29]]
65
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 36]]
66
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
67
+  (0.3ms) ROLLBACK
68
+  (0.1ms) BEGIN
69
+ -------------------------------------------------
70
+ Apidae::FileImportTest: test_new_object_insertion
71
+ -------------------------------------------------
72
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
73
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
74
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
75
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
76
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
77
+ 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]]
78
+ Apidae::Town Load (0.8ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
79
+  (0.3ms) SAVEPOINT active_record_1
80
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "title_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 08:28:59.233739"], ["updated_at", "2020-05-20 08:28:59.233739"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["version", "STANDARD"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
81
+  (0.2ms) RELEASE SAVEPOINT active_record_1
82
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
83
+ 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]]
84
+  (2.2ms) ROLLBACK
85
+  (0.1ms) BEGIN
86
+ ---------------------------------------------------------------
87
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
88
+ ---------------------------------------------------------------
89
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
90
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
91
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
92
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
93
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
94
+ 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]]
95
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
96
+  (0.3ms) SAVEPOINT active_record_1
97
+ Apidae::Obj Create (1.1ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 08:28:59.255917"], ["updated_at", "2020-05-20 08:28:59.255917"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
98
+  (0.2ms) RELEASE SAVEPOINT active_record_1
99
+ 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", 145], ["version", "HIVER"], ["LIMIT", 1]]
100
+  (0.5ms) SAVEPOINT active_record_1
101
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 08:28:59.269445"], ["updated_at", "2020-05-20 08:28:59.269445"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 145], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
102
+  (0.3ms) RELEASE SAVEPOINT active_record_1
103
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
104
+  (0.7ms) SELECT COUNT(*) FROM "apidae_objs"
105
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
106
+ 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", 145], ["version", "HIVER"], ["LIMIT", 1]]
107
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 145], ["LIMIT", 1]]
108
+  (0.3ms) ROLLBACK
109
+  (0.1ms) BEGIN
110
+ ----------------------------------------------------
111
+ Apidae::FileImportTest: test_new_selection_insertion
112
+ ----------------------------------------------------
113
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
114
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
115
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections"
116
+ Apidae::Town Destroy (0.4ms) DELETE FROM "apidae_towns"
117
+ Apidae::Reference Destroy (0.4ms) DELETE FROM "apidae_references"
118
+  (0.1ms) SAVEPOINT active_record_1
119
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 08:28:59.291430"], ["updated_at", "2020-05-20 08:28:59.291430"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
120
+  (0.3ms) RELEASE SAVEPOINT active_record_1
121
+  (0.7ms) SAVEPOINT active_record_1
122
+ 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]]
123
+ Apidae::Project Create (0.2ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 08:28:59.298848"], ["updated_at", "2020-05-20 08:28:59.298848"]]
124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
125
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 30]]
126
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
127
+ Updating selection 49063
128
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49063], ["LIMIT", 1]]
129
+  (0.1ms) SAVEPOINT active_record_1
130
+ Apidae::Selection Create (0.5ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-05-20 08:28:59.443010"], ["updated_at", "2020-05-20 08:28:59.443010"], ["apidae_project_id", 30]]
131
+  (0.1ms) RELEASE SAVEPOINT active_record_1
132
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 37]]
133
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
134
+  (0.1ms) SAVEPOINT active_record_1
135
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 37], ["apidae_object_id", 147], ["created_at", "2020-05-20 08:28:59.453792"], ["updated_at", "2020-05-20 08:28:59.453792"]]
136
+  (0.1ms) RELEASE SAVEPOINT active_record_1
137
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
138
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 37]]
139
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 30]]
140
+  (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", 37]]
141
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
142
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
143
+  (0.2ms) ROLLBACK
144
+  (0.1ms) BEGIN
145
+ --------------------------------------------------------
146
+ Apidae::FileImportTest: test_existing_selection_deletion
147
+ --------------------------------------------------------
148
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
149
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
150
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
151
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
152
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
153
+  (0.1ms) SAVEPOINT active_record_1
154
+ 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]]
155
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 08:28:59.472536"], ["updated_at", "2020-05-20 08:28:59.472536"]]
156
+  (0.1ms) RELEASE SAVEPOINT active_record_1
157
+  (0.1ms) SAVEPOINT active_record_1
158
+ Apidae::Selection Create (0.9ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2020-05-20 08:28:59.474613"], ["updated_at", "2020-05-20 08:28:59.474613"], ["apidae_project_id", 31]]
159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
160
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
161
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 31]]
162
+ Apidae::Selection Destroy (0.7ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
163
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 31]]
164
+  (0.4ms) SELECT COUNT(*) FROM "apidae_selections"
165
+  (0.1ms) ROLLBACK
166
+  (0.1ms) BEGIN
167
+ -----------------------------------------------------
168
+ Apidae::FileImportTest: test_existing_object_deletion
169
+ -----------------------------------------------------
170
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
171
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
172
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
173
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
174
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
175
+  (0.1ms) SAVEPOINT active_record_1
176
+ Apidae::Obj Create (1.1ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 08:28:59.486341"], ["updated_at", "2020-05-20 08:28:59.486341"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
177
+  (0.2ms) RELEASE SAVEPOINT active_record_1
178
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
179
+  (0.2ms) SAVEPOINT active_record_1
180
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 148]]
181
+  (0.2ms) RELEASE SAVEPOINT active_record_1
182
+  (0.6ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
183
+  (0.2ms) ROLLBACK
184
+  (0.2ms) BEGIN
185
+ ---------------------------------------------------------------------------
186
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
187
+ ---------------------------------------------------------------------------
188
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
189
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
190
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
191
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
192
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references"
193
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
194
+ Apidae::Town Load (0.4ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
195
+  (0.2ms) SAVEPOINT active_record_1
196
+ Apidae::Obj Create (2.0ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\",\"en\":\"All year round.\",\"de\":\"Ganzjährig.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 08:28:59.505746"], ["updated_at", "2020-05-20 08:28:59.505746"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\",\"en\":\"La Grange des Huskies\",\"de\":\"Huskytouren Grange des Huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
197
+  (0.1ms) RELEASE SAVEPOINT active_record_1
198
+ 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", 149], ["version", "HIVER"], ["LIMIT", 1]]
199
+  (0.2ms) SAVEPOINT active_record_1
200
+ Apidae::Obj Create (1.0ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 08:28:59.518900"], ["updated_at", "2020-05-20 08:28:59.518900"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 149], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
201
+  (0.3ms) RELEASE SAVEPOINT active_record_1
202
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
203
+  (1.8ms) SELECT COUNT(*) FROM "apidae_objs"
204
+ Apidae::Obj Load (0.9ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
205
+ 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", 149], ["version", "HIVER"], ["LIMIT", 1]]
206
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 149], ["LIMIT", 1]]
207
+  (0.1ms) ROLLBACK
208
+  (0.1ms) BEGIN
209
+ --------------------------------------------------------------
210
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
211
+ --------------------------------------------------------------
212
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
213
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
214
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
215
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
216
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
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", 898922], ["LIMIT", 1]]
218
+ Apidae::Town Load (0.5ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
219
+  (0.3ms) SAVEPOINT active_record_1
220
+ Apidae::Obj Create (2.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 898922], ["apidae_type", "HOTELLERIE"], ["apidae_subtype", "2734"], ["contact", "{\"telephone\":[\"04 71 49 09 09\"],\"email\":[\"chatelleraie@wanadoo.fr\"],\"website\":[\"http://chatelleraie.co.uk/fr/\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"nombreChambresDeclareesHotelier\":26,\"nombreTotalPersonnes\":70,\"nombreTotalPersonnesReel\":70,\"nombreChambresFamiliales\":1,\"nombreSuites\":1,\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[2756],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{\"tourismeAffairesEnabled\":true,\"nombreSallesModulables\":1}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/04 au 14/10/2018.\",\"en\":\"From 01/04 to 14/10/2018.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14375379,\"dateDebut\":\"2018-04-01\",\"dateFin\":\"2018-10-14\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false,\"identifiantTechnique\":15927193}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 08:28:59.541682"], ["updated_at", "2020-05-20 08:28:59.541682"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":1890696,\"name\":\"La Chatelleraie st etienne de Maurs 2\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":\"otchataigneraie\",\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[687,1115,1172],\"equipments\":[655,723,821,972,1058,1064,1089,1093,1106,1323],\"comfort\":[838,842,963,1014,1015],\"activities\":[680,3927],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Chambre double : de 55 à 80 €\\nChambre quadruple : de 80 à 125 € (chambre familiale)\\nDemi-pension (/ pers.) : à partir de 50 € (A partir de 50€)\\nPetit déjeuner : à partir de 7,50 €\\nAnimaux : à partir de 5 €.\\n\",\"en\":\"Double room: 55 to 80 €\\nRoom sleeping 4: 80 to 125 €\\nHalf-board: from 50 €\\nBreakfast: from 7.50 €\\nSupplementary payment for pets: from 5 €.\\n\"},\"rates\":[{\"id\":8605788,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"values\":[{\"min\":55.0,\"max\":80.0,\"type\":1466,\"details\":{}},{\"min\":80.0,\"max\":125.0,\"type\":3877,\"details\":{\"fr\":\"chambre familiale\"}},{\"min\":50.0,\"max\":null,\"type\":1465,\"details\":{\"fr\":\"A partir de 50€\"}},{\"min\":7.5,\"max\":null,\"type\":1461,\"details\":{}},{\"min\":5.0,\"max\":null,\"type\":4080,\"details\":{}}]}],\"payment_methods\":[1268,1271],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"HOTAUV015V5022D5\"}}]}]"], ["location_data", "{\"address\":[\"Château de La Devèze\"],\"place\":null,\"latitude\":44.715026,\"longitude\":2.207737,\"access\":{},\"environments\":[135],\"territories\":[711392,742848,896166,908439]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc fr\",\"en\":\"short desc en\"},\"long_desc\":{\"fr\":\"long desc fr\",\"en\":\"long desc en\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Châtelleraie\",\"en\":\"La Châtelleraie\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2018-11-06 11:03:21.304000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme de la Châtaigneraie Cantalienne\",\"owner_id\":1333}"]]
221
+  (0.1ms) RELEASE SAVEPOINT active_record_1
222
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
223
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
224
+  (0.2ms) ROLLBACK
225
+  (0.1ms) BEGIN
226
+ -----------------------------------------------------------------------------------
227
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
228
+ -----------------------------------------------------------------------------------
229
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
230
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
231
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
232
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
233
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
234
+ 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]]
235
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
236
+  (0.1ms) SAVEPOINT active_record_1
237
+ Apidae::Obj Create (1.0ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 08:28:59.563472"], ["updated_at", "2020-05-20 08:28:59.563472"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
238
+  (0.1ms) RELEASE SAVEPOINT active_record_1
239
+ 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", 152], ["version", "HIVER"], ["LIMIT", 1]]
240
+  (0.2ms) SAVEPOINT active_record_1
241
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 08:28:59.574513"], ["updated_at", "2020-05-20 08:28:59.574513"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 152], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
242
+  (0.1ms) RELEASE SAVEPOINT active_record_1
243
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
244
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs"
245
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
246
+ 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", 152], ["version", "HIVER"], ["LIMIT", 1]]
247
+  (0.1ms) ROLLBACK
248
+  (0.1ms) BEGIN
249
+ ---------------------------------------------------
250
+ Apidae::FileImportTest: test_existing_object_update
251
+ ---------------------------------------------------
252
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
253
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
254
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
255
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
256
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
257
+  (0.2ms) SAVEPOINT active_record_1
258
+ 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", 504], ["created_at", "2020-05-20 08:28:59.585631"], ["updated_at", "2020-05-20 08:28:59.585631"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
259
+  (0.1ms) RELEASE SAVEPOINT active_record_1
260
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
261
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
262
+  (0.2ms) SAVEPOINT active_record_1
263
+ Apidae::Obj Update (0.7ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "title_data" = $4, "contact" = $5, "location_data" = $6, "type_data" = $7, "pictures_data" = $8, "attachments_data" = $9, "tags_data" = $10, "updated_at" = $11 WHERE "apidae_objs"."id" = $12 [["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["apidae_type", "STRUCTURE"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["contact", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["updated_at", "2020-05-20 08:28:59.593941"], ["id", 154]]
264
+  (0.2ms) RELEASE SAVEPOINT active_record_1
265
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
266
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
267
+  (0.2ms) ROLLBACK
268
+  (0.1ms) BEGIN
269
+ ------------------------------------------------
270
+ Apidae::FileImportTest: test_full_import_process
271
+ ------------------------------------------------
272
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
273
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
274
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
275
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
276
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
277
+  (0.2ms) SAVEPOINT active_record_1
278
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 08:28:59.606272"], ["updated_at", "2020-05-20 08:28:59.606272"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
279
+  (0.3ms) RELEASE SAVEPOINT active_record_1
280
+  (0.2ms) SAVEPOINT active_record_1
281
+ 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", "2020-05-20 08:28:59.610967"], ["updated_at", "2020-05-20 08:28:59.610967"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
282
+  (0.3ms) RELEASE SAVEPOINT active_record_1
283
+ Apidae::Project Load (0.4ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
284
+  (0.3ms) SAVEPOINT active_record_1
285
+ 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]]
286
+ Apidae::Project Create (0.2ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 08:28:59.619017"], ["updated_at", "2020-05-20 08:28:59.619017"]]
287
+  (0.2ms) RELEASE SAVEPOINT active_record_1
288
+  (0.6ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
289
+ Apidae::Reference Load (1.6ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
290
+  (0.1ms) SAVEPOINT active_record_1
291
+ Apidae::Reference Create (7.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-05-20 08:28:59.635907"], ["updated_at", "2020-05-20 08:28:59.635907"], ["meta_data", "{}"]]
292
+  (0.1ms) RELEASE SAVEPOINT active_record_1
293
+ Apidae::Reference Load (0.4ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
294
+  (0.1ms) SAVEPOINT active_record_1
295
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2020-05-20 08:28:59.646181"], ["updated_at", "2020-05-20 08:28:59.646181"], ["meta_data", "{}"]]
296
+  (0.1ms) RELEASE SAVEPOINT active_record_1
297
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
298
+  (0.1ms) SAVEPOINT active_record_1
299
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2020-05-20 08:28:59.648324"], ["updated_at", "2020-05-20 08:28:59.648324"], ["meta_data", "{}"]]
300
+  (0.1ms) RELEASE SAVEPOINT active_record_1
301
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
302
+  (0.1ms) SAVEPOINT active_record_1
303
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2020-05-20 08:28:59.650463"], ["updated_at", "2020-05-20 08:28:59.650463"], ["meta_data", "{}"]]
304
+  (0.1ms) RELEASE SAVEPOINT active_record_1
305
+  (0.5ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
306
+ Apidae::Reference Load (0.4ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
307
+  (0.2ms) SAVEPOINT active_record_1
308
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2020-05-20 08:28:59.654849"], ["updated_at", "2020-05-20 08:28:59.654849"]]
309
+  (0.1ms) RELEASE SAVEPOINT active_record_1
310
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
311
+  (0.1ms) SAVEPOINT active_record_1
312
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-05-20 08:28:59.657492"], ["updated_at", "2020-05-20 08:28:59.657492"]]
313
+  (0.1ms) RELEASE SAVEPOINT active_record_1
314
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
315
+  (0.2ms) SAVEPOINT active_record_1
316
+ Apidae::Reference Create (0.6ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2020-05-20 08:28:59.660788"], ["updated_at", "2020-05-20 08:28:59.660788"]]
317
+  (0.2ms) RELEASE SAVEPOINT active_record_1
318
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
319
+  (0.1ms) SAVEPOINT active_record_1
320
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2020-05-20 08:28:59.664789"], ["updated_at", "2020-05-20 08:28:59.664789"]]
321
+  (0.1ms) RELEASE SAVEPOINT active_record_1
322
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
323
+  (0.2ms) SAVEPOINT active_record_1
324
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-05-20 08:28:59.667907"], ["updated_at", "2020-05-20 08:28:59.667907"]]
325
+  (0.3ms) RELEASE SAVEPOINT active_record_1
326
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
327
+  (0.1ms) SAVEPOINT active_record_1
328
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-05-20 08:28:59.670755"], ["updated_at", "2020-05-20 08:28:59.670755"]]
329
+  (0.2ms) RELEASE SAVEPOINT active_record_1
330
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
331
+  (0.1ms) SAVEPOINT active_record_1
332
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2020-05-20 08:28:59.673925"], ["updated_at", "2020-05-20 08:28:59.673925"]]
333
+  (0.3ms) RELEASE SAVEPOINT active_record_1
334
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
335
+  (0.1ms) SAVEPOINT active_record_1
336
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-05-20 08:28:59.677199"], ["updated_at", "2020-05-20 08:28:59.677199"]]
337
+  (0.1ms) RELEASE SAVEPOINT active_record_1
338
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
339
+  (0.1ms) SAVEPOINT active_record_1
340
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2020-05-20 08:28:59.679371"], ["updated_at", "2020-05-20 08:28:59.679371"]]
341
+  (0.1ms) RELEASE SAVEPOINT active_record_1
342
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
343
+  (0.1ms) SAVEPOINT active_record_1
344
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2020-05-20 08:28:59.681245"], ["updated_at", "2020-05-20 08:28:59.681245"]]
345
+  (0.1ms) RELEASE SAVEPOINT active_record_1
346
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
347
+  (0.1ms) SAVEPOINT active_record_1
348
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2020-05-20 08:28:59.683087"], ["updated_at", "2020-05-20 08:28:59.683087"]]
349
+  (0.1ms) RELEASE SAVEPOINT active_record_1
350
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
351
+  (0.1ms) SAVEPOINT active_record_1
352
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2020-05-20 08:28:59.684955"], ["updated_at", "2020-05-20 08:28:59.684955"]]
353
+  (0.2ms) RELEASE SAVEPOINT active_record_1
354
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
355
+  (0.1ms) SAVEPOINT active_record_1
356
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2020-05-20 08:28:59.687805"], ["updated_at", "2020-05-20 08:28:59.687805"]]
357
+  (0.1ms) RELEASE SAVEPOINT active_record_1
358
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
359
+  (0.1ms) SAVEPOINT active_record_1
360
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2020-05-20 08:28:59.689717"], ["updated_at", "2020-05-20 08:28:59.689717"]]
361
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
363
+  (0.1ms) SAVEPOINT active_record_1
364
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2020-05-20 08:28:59.691606"], ["updated_at", "2020-05-20 08:28:59.691606"]]
365
+  (0.1ms) RELEASE SAVEPOINT active_record_1
366
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
367
+  (0.1ms) SAVEPOINT active_record_1
368
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2020-05-20 08:28:59.693929"], ["updated_at", "2020-05-20 08:28:59.693929"]]
369
+  (0.1ms) RELEASE SAVEPOINT active_record_1
370
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
371
+  (0.1ms) SAVEPOINT active_record_1
372
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2020-05-20 08:28:59.695907"], ["updated_at", "2020-05-20 08:28:59.695907"]]
373
+  (0.1ms) RELEASE SAVEPOINT active_record_1
374
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references"
375
+ Completed 21 references update
376
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
377
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
378
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
379
+  (0.1ms) SAVEPOINT active_record_1
380
+ Apidae::Town Create (17.6ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["insee_code", "01001"], ["name", "L'Abergement-Clémenciat"], ["postal_code", "01400"], ["created_at", "2020-05-20 08:28:59.707678"], ["updated_at", "2020-05-20 08:28:59.707678"]]
381
+  (0.2ms) RELEASE SAVEPOINT active_record_1
382
+ Apidae::Town Load (0.4ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
383
+  (0.1ms) SAVEPOINT active_record_1
384
+ Apidae::Town Create (0.3ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["insee_code", "01002"], ["name", "L'Abergement-de-Varey"], ["postal_code", "01640"], ["created_at", "2020-05-20 08:28:59.728407"], ["updated_at", "2020-05-20 08:28:59.728407"]]
385
+  (0.1ms) RELEASE SAVEPOINT active_record_1
386
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
387
+  (0.1ms) SAVEPOINT active_record_1
388
+ Apidae::Town Create (0.2ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2020-05-20 08:28:59.730837"], ["updated_at", "2020-05-20 08:28:59.730837"]]
389
+  (0.1ms) RELEASE SAVEPOINT active_record_1
390
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
391
+  (0.1ms) SAVEPOINT active_record_1
392
+ Apidae::Town Update (0.3ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-05-20 08:28:59.732910"], ["id", 22]]
393
+  (0.1ms) RELEASE SAVEPOINT active_record_1
394
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
395
+ Completed 3 towns update
396
+ Processing file : communes.json
397
+ Processing file : elements_reference.json
398
+ Processing file : objets_modifies/objets_modifies-2.json
399
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
400
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
401
+  (0.1ms) SAVEPOINT active_record_1
402
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 4 novembre à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 08:28:59.737297"], ["updated_at", "2020-05-20 08:28:59.737297"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":80314,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Tarif unique : 5 €.\"},\"rates\":[{\"id\":8307032,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"values\":[{\"min\":5.0,\"max\":null,\"type\":4123,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1284,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[542,2060,9580]}"], ["location_data", "{\"address\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"],\"place\":\"La Traverse\",\"latitude\":45.645852,\"longitude\":5.865084,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\\r\\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque.\"},\"long_desc\":{\"fr\":\"Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\\r\\n\\r\\nUn spectacle qui ravira petits et grands.\\r\\n\\r\\nCompagnie du Fil à retordre\\r\\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Les Spécimens - Spectacle familial\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[]}"], ["version", "STANDARD"], ["last_update", "2017-09-21 09:51:57.288000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
404
+ Processing file : objets_modifies/objets_modifies-1.json
405
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
406
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
407
+  (0.1ms) SAVEPOINT active_record_1
408
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "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", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Mardi 7 novembre 2017 de 7h à 19h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924098,\"dateDebut\":\"2017-11-07\",\"dateFin\":\"2017-11-07\",\"horaireOuverture\":\"07:00:00\",\"horaireFermeture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 08:28:59.744279"], ["updated_at", "2020-05-20 08:28:59.744279"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"access\":{},\"environments\":[173]}"], ["description_data", "{\"short_desc\":{\"fr\":\"Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé.\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"3C-Centre de Coordination en Cancerologie\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:27:36.711000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
409
+  (0.1ms) RELEASE SAVEPOINT active_record_1
410
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826186], ["LIMIT", 1]]
411
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
412
+  (0.1ms) SAVEPOINT active_record_1
413
+ Apidae::Obj Update (0.5ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "apidae_subtype" = $4, "title_data" = $5, "description_data" = $6, "contact" = $7, "location_data" = $8, "openings_data" = $9, "rates_data" = $10, "booking_data" = $11, "type_data" = $12, "pictures_data" = $13, "attachments_data" = $14, "entity_data" = $15, "service_data" = $16, "tags_data" = $17, "updated_at" = $18 WHERE "apidae_objs"."id" = $19 [["last_update", "2017-09-14 09:17:06.836000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["contact", "{\"website\":[\"https://www.acielouvert.org\"]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"access\":{}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du samedi 11 au lundi 13 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["type_data", "{\"categories\":[2084],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["updated_at", "2020-05-20 08:28:59.749249"], ["id", 156]]
414
+  (0.2ms) RELEASE SAVEPOINT active_record_1
415
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826282], ["LIMIT", 1]]
416
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
417
+  (0.1ms) SAVEPOINT active_record_1
418
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "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", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 18 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 08:28:59.755306"], ["updated_at", "2020-05-20 08:28:59.755306"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Remise des diplômes POLYTECH Annecy-Chambery\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:29:13.914000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
420
+ 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]]
421
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
422
+  (0.1ms) SAVEPOINT active_record_1
423
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact", "{}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[2064,2257],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13951267,\"dateDebut\":\"2018-04-19\",\"dateFin\":\"2018-04-19\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951269,\"dateDebut\":\"2018-04-20\",\"dateFin\":\"2018-04-20\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951275,\"dateDebut\":\"2018-04-21\",\"dateFin\":\"2018-04-21\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951278,\"dateDebut\":\"2018-04-22\",\"dateFin\":\"2018-04-22\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951279,\"dateDebut\":\"2018-04-24\",\"dateFin\":\"2018-04-24\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951282,\"dateDebut\":\"2018-04-25\",\"dateFin\":\"2018-04-25\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951286,\"dateDebut\":\"2018-04-27\",\"dateFin\":\"2018-04-27\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951289,\"dateDebut\":\"2018-04-28\",\"dateFin\":\"2018-04-28\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951291,\"dateDebut\":\"2018-04-29\",\"dateFin\":\"2018-04-29\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951292,\"dateDebut\":\"2018-04-30\",\"dateFin\":\"2018-04-30\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951297,\"dateDebut\":\"2018-05-02\",\"dateFin\":\"2018-05-02\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951298,\"dateDebut\":\"2018-05-03\",\"dateFin\":\"2018-05-03\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951300,\"dateDebut\":\"2018-05-05\",\"dateFin\":\"2018-05-05\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951303,\"dateDebut\":\"2018-05-06\",\"dateFin\":\"2018-05-06\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951307,\"dateDebut\":\"2018-05-07\",\"dateFin\":\"2018-05-07\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951309,\"dateDebut\":\"2018-05-08\",\"dateFin\":\"2018-05-08\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951311,\"dateDebut\":\"2018-05-10\",\"dateFin\":\"2018-05-10\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968615,\"dateDebut\":\"2018-05-11\",\"dateFin\":\"2018-05-11\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968617,\"dateDebut\":\"2018-05-12\",\"dateFin\":\"2018-05-12\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968619,\"dateDebut\":\"2018-05-13\",\"dateFin\":\"2018-05-13\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[436]}"], ["created_at", "2020-05-20 08:28:59.760766"], ["updated_at", "2020-05-20 08:28:59.760766"], ["pictures_data", "{\"pictures\":{}}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse).\"},\"rates\":[{\"id\":8306899,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-05-13\",\"values\":[{\"min\":15.0,\"max\":32.0,\"type\":5240,\"details\":{\"fr\":\"abonnés Espace Malraux, Bonlieu, La Traverse\"}},{\"min\":39.0,\"max\":null,\"type\":5239,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060,6588,6769,542,9580]}"], ["location_data", "{\"address\":[],\"place\":\"La Croix verte\",\"latitude\":45.644668,\"longitude\":5.867981,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Conception et mise en scène de Bartabas.\\r\\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture.\"},\"long_desc\":{\"fr\":\"On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Ex Anima - Théâtre équestre Zingaro\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-10-06 09:50:00.352000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
424
+  (0.1ms) RELEASE SAVEPOINT active_record_1
425
+ Processing file : criteres_internes.json
426
+ Processing file : selections.json
427
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 32]]
428
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
429
+ Updating selection 49063
430
+ 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]]
431
+  (0.1ms) SAVEPOINT active_record_1
432
+ Apidae::Selection Create (0.3ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-05-20 08:28:59.769934"], ["updated_at", "2020-05-20 08:28:59.769934"], ["apidae_project_id", 32]]
433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
434
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 39]]
435
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
436
+  (0.1ms) SAVEPOINT active_record_1
437
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 39], ["apidae_object_id", 158], ["created_at", "2020-05-20 08:28:59.774042"], ["updated_at", "2020-05-20 08:28:59.774042"]]
438
+  (0.2ms) RELEASE SAVEPOINT active_record_1
439
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826282], ["LIMIT", 1]]
440
+  (0.1ms) SAVEPOINT active_record_1
441
+ 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", 39], ["apidae_object_id", 159], ["created_at", "2020-05-20 08:28:59.776506"], ["updated_at", "2020-05-20 08:28:59.776506"]]
442
+  (0.1ms) RELEASE SAVEPOINT active_record_1
443
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
444
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 39]]
445
+ Updating selection 49073
446
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49073], ["LIMIT", 1]]
447
+  (0.1ms) SAVEPOINT active_record_1
448
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49073], ["created_at", "2020-05-20 08:28:59.780126"], ["updated_at", "2020-05-20 08:28:59.780126"], ["apidae_project_id", 32]]
449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
450
+ 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", 40]]
451
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826186], ["LIMIT", 1]]
452
+  (0.1ms) SAVEPOINT active_record_1
453
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 40], ["apidae_object_id", 156], ["created_at", "2020-05-20 08:28:59.783906"], ["updated_at", "2020-05-20 08:28:59.783906"]]
454
+  (0.1ms) RELEASE SAVEPOINT active_record_1
455
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4828422], ["LIMIT", 1]]
456
+  (0.1ms) SAVEPOINT active_record_1
457
+ 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", 40], ["apidae_object_id", 160], ["created_at", "2020-05-20 08:28:59.786147"], ["updated_at", "2020-05-20 08:28:59.786147"]]
458
+  (0.1ms) RELEASE SAVEPOINT active_record_1
459
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
460
+  (0.1ms) SAVEPOINT active_record_1
461
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 40], ["apidae_object_id", 157], ["created_at", "2020-05-20 08:28:59.788992"], ["updated_at", "2020-05-20 08:28:59.788992"]]
462
+  (0.1ms) RELEASE SAVEPOINT active_record_1
463
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
464
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 40]]
465
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 32]]
466
+  (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", 39]]
467
+  (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", 40]]
468
+ Processing file : objets_supprimes.json
469
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
470
+  (0.1ms) SAVEPOINT active_record_1
471
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 155]]
472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
473
+  (0.1ms) SAVEPOINT active_record_1
474
+ Apidae::FileImport Create (1.5ms) INSERT INTO "apidae_file_imports" ("status", "remote_file", "created", "updated", "deleted", "created_at", "updated_at", "apidae_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["status", "complete"], ["remote_file", "test/data/json_export.zip"], ["created", 4], ["updated", 1], ["deleted", 1], ["created_at", "2020-05-20 08:28:59.812160"], ["updated_at", "2020-05-20 08:28:59.812160"], ["apidae_id", 123]]
475
+  (0.1ms) RELEASE SAVEPOINT active_record_1
476
+ 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}]}
477
+  (0.2ms) SELECT COUNT(*) FROM "apidae_projects"
478
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
479
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
480
+  (0.2ms) ROLLBACK
481
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
482
+  (0.3ms) BEGIN
483
+ -----------------------------------------------------
484
+ Apidae::FileImportTest: test_existing_object_deletion
485
+ -----------------------------------------------------
486
+ Apidae::Obj Destroy (1.0ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
487
+ Apidae::Project Destroy (0.5ms) DELETE FROM "apidae_projects"
488
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
489
+ Apidae::Town Destroy (0.5ms) DELETE FROM "apidae_towns"
490
+ Apidae::Reference Destroy (0.6ms) DELETE FROM "apidae_references"
491
+  (0.2ms) SAVEPOINT active_record_1
492
+ Apidae::Obj Create (1.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:03:34.180250"], ["updated_at", "2020-05-20 09:03:34.180250"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
493
+  (0.2ms) RELEASE SAVEPOINT active_record_1
494
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
495
+  (0.1ms) SAVEPOINT active_record_1
496
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 161]]
497
+  (0.1ms) RELEASE SAVEPOINT active_record_1
498
+  (0.6ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
499
+  (0.2ms) ROLLBACK
500
+  (0.1ms) BEGIN
501
+ ------------------------------------------------
502
+ Apidae::FileImportTest: test_full_import_process
503
+ ------------------------------------------------
504
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
505
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
506
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
507
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
508
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
509
+  (0.1ms) SAVEPOINT active_record_1
510
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:03:34.233742"], ["updated_at", "2020-05-20 09:03:34.233742"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
511
+  (0.1ms) RELEASE SAVEPOINT active_record_1
512
+  (0.1ms) SAVEPOINT active_record_1
513
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["created_at", "2020-05-20 09:03:34.235829"], ["updated_at", "2020-05-20 09:03:34.235829"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
514
+  (0.1ms) RELEASE SAVEPOINT active_record_1
515
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
516
+  (0.2ms) SAVEPOINT active_record_1
517
+ 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]]
518
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:03:34.252344"], ["updated_at", "2020-05-20 09:03:34.252344"]]
519
+  (0.1ms) RELEASE SAVEPOINT active_record_1
520
+  (0.9ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
521
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
522
+  (0.2ms) SAVEPOINT active_record_1
523
+ Apidae::Reference Create (1.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-05-20 09:03:34.267851"], ["updated_at", "2020-05-20 09:03:34.267851"], ["meta_data", "{}"]]
524
+  (0.2ms) RELEASE SAVEPOINT active_record_1
525
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
526
+  (0.1ms) SAVEPOINT active_record_1
527
+ Apidae::Reference Create (0.7ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2020-05-20 09:03:34.271672"], ["updated_at", "2020-05-20 09:03:34.271672"], ["meta_data", "{}"]]
528
+  (0.1ms) RELEASE SAVEPOINT active_record_1
529
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
530
+  (0.1ms) SAVEPOINT active_record_1
531
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2020-05-20 09:03:34.274960"], ["updated_at", "2020-05-20 09:03:34.274960"], ["meta_data", "{}"]]
532
+  (0.1ms) RELEASE SAVEPOINT active_record_1
533
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
534
+  (0.1ms) SAVEPOINT active_record_1
535
+ Apidae::Reference Create (0.5ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2020-05-20 09:03:34.280380"], ["updated_at", "2020-05-20 09:03:34.280380"], ["meta_data", "{}"]]
536
+  (0.2ms) RELEASE SAVEPOINT active_record_1
537
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
538
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
539
+  (0.1ms) SAVEPOINT active_record_1
540
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2020-05-20 09:03:34.284599"], ["updated_at", "2020-05-20 09:03:34.284599"]]
541
+  (0.2ms) RELEASE SAVEPOINT active_record_1
542
+ Apidae::Reference Load (0.4ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
543
+  (0.2ms) SAVEPOINT active_record_1
544
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-05-20 09:03:34.288041"], ["updated_at", "2020-05-20 09:03:34.288041"]]
545
+  (0.1ms) RELEASE SAVEPOINT active_record_1
546
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
547
+  (0.2ms) SAVEPOINT active_record_1
548
+ Apidae::Reference Create (1.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2020-05-20 09:03:34.290934"], ["updated_at", "2020-05-20 09:03:34.290934"]]
549
+  (0.2ms) RELEASE SAVEPOINT active_record_1
550
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
551
+  (0.2ms) SAVEPOINT active_record_1
552
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2020-05-20 09:03:34.295208"], ["updated_at", "2020-05-20 09:03:34.295208"]]
553
+  (0.1ms) RELEASE SAVEPOINT active_record_1
554
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
555
+  (0.1ms) SAVEPOINT active_record_1
556
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-05-20 09:03:34.298314"], ["updated_at", "2020-05-20 09:03:34.298314"]]
557
+  (0.1ms) RELEASE SAVEPOINT active_record_1
558
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
559
+  (0.1ms) SAVEPOINT active_record_1
560
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-05-20 09:03:34.300617"], ["updated_at", "2020-05-20 09:03:34.300617"]]
561
+  (0.1ms) RELEASE SAVEPOINT active_record_1
562
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
563
+  (0.1ms) SAVEPOINT active_record_1
564
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2020-05-20 09:03:34.302630"], ["updated_at", "2020-05-20 09:03:34.302630"]]
565
+  (0.1ms) RELEASE SAVEPOINT active_record_1
566
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
567
+  (0.1ms) SAVEPOINT active_record_1
568
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-05-20 09:03:34.304617"], ["updated_at", "2020-05-20 09:03:34.304617"]]
569
+  (0.2ms) RELEASE SAVEPOINT active_record_1
570
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
571
+  (0.1ms) SAVEPOINT active_record_1
572
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2020-05-20 09:03:34.307089"], ["updated_at", "2020-05-20 09:03:34.307089"]]
573
+  (0.1ms) RELEASE SAVEPOINT active_record_1
574
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
575
+  (0.1ms) SAVEPOINT active_record_1
576
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2020-05-20 09:03:34.310106"], ["updated_at", "2020-05-20 09:03:34.310106"]]
577
+  (0.1ms) RELEASE SAVEPOINT active_record_1
578
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
579
+  (0.1ms) SAVEPOINT active_record_1
580
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2020-05-20 09:03:34.312531"], ["updated_at", "2020-05-20 09:03:34.312531"]]
581
+  (0.1ms) RELEASE SAVEPOINT active_record_1
582
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
583
+  (0.1ms) SAVEPOINT active_record_1
584
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2020-05-20 09:03:34.314778"], ["updated_at", "2020-05-20 09:03:34.314778"]]
585
+  (0.1ms) RELEASE SAVEPOINT active_record_1
586
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
587
+  (0.1ms) SAVEPOINT active_record_1
588
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2020-05-20 09:03:34.316674"], ["updated_at", "2020-05-20 09:03:34.316674"]]
589
+  (0.1ms) RELEASE SAVEPOINT active_record_1
590
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
591
+  (0.1ms) SAVEPOINT active_record_1
592
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2020-05-20 09:03:34.318483"], ["updated_at", "2020-05-20 09:03:34.318483"]]
593
+  (0.1ms) RELEASE SAVEPOINT active_record_1
594
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
595
+  (0.1ms) SAVEPOINT active_record_1
596
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2020-05-20 09:03:34.320441"], ["updated_at", "2020-05-20 09:03:34.320441"]]
597
+  (0.1ms) RELEASE SAVEPOINT active_record_1
598
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
599
+  (0.1ms) SAVEPOINT active_record_1
600
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2020-05-20 09:03:34.322486"], ["updated_at", "2020-05-20 09:03:34.322486"]]
601
+  (0.1ms) RELEASE SAVEPOINT active_record_1
602
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
603
+  (0.1ms) SAVEPOINT active_record_1
604
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2020-05-20 09:03:34.324399"], ["updated_at", "2020-05-20 09:03:34.324399"]]
605
+  (0.1ms) RELEASE SAVEPOINT active_record_1
606
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references"
607
+ Completed 21 references update
608
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
609
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
610
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
611
+  (0.1ms) SAVEPOINT active_record_1
612
+ Apidae::Town Create (0.3ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["insee_code", "01001"], ["name", "L'Abergement-Clémenciat"], ["postal_code", "01400"], ["created_at", "2020-05-20 09:03:34.339042"], ["updated_at", "2020-05-20 09:03:34.339042"]]
613
+  (0.1ms) RELEASE SAVEPOINT active_record_1
614
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
615
+  (0.1ms) SAVEPOINT active_record_1
616
+ Apidae::Town Create (0.3ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["insee_code", "01002"], ["name", "L'Abergement-de-Varey"], ["postal_code", "01640"], ["created_at", "2020-05-20 09:03:34.341097"], ["updated_at", "2020-05-20 09:03:34.341097"]]
617
+  (0.1ms) RELEASE SAVEPOINT active_record_1
618
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
619
+  (0.1ms) SAVEPOINT active_record_1
620
+ Apidae::Town Create (0.2ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2020-05-20 09:03:34.342840"], ["updated_at", "2020-05-20 09:03:34.342840"]]
621
+  (0.1ms) RELEASE SAVEPOINT active_record_1
622
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
623
+  (0.1ms) SAVEPOINT active_record_1
624
+ Apidae::Town Update (0.3ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-05-20 09:03:34.344847"], ["id", 25]]
625
+  (0.1ms) RELEASE SAVEPOINT active_record_1
626
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
627
+ Completed 3 towns update
628
+ Processing file : communes.json
629
+ Processing file : elements_reference.json
630
+ Processing file : objets_modifies/objets_modifies-2.json
631
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
632
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
633
+  (0.2ms) SAVEPOINT active_record_1
634
+ Apidae::Obj Create (12.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 4 novembre à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 09:03:34.356897"], ["updated_at", "2020-05-20 09:03:34.356897"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":80314,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Tarif unique : 5 €.\"},\"rates\":[{\"id\":8307032,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"values\":[{\"min\":5.0,\"max\":null,\"type\":4123,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1284,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[542,2060,9580]}"], ["location_data", "{\"address\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"],\"place\":\"La Traverse\",\"latitude\":45.645852,\"longitude\":5.865084,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\\r\\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque.\"},\"long_desc\":{\"fr\":\"Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\\r\\n\\r\\nUn spectacle qui ravira petits et grands.\\r\\n\\r\\nCompagnie du Fil à retordre\\r\\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Les Spécimens - Spectacle familial\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[]}"], ["version", "STANDARD"], ["last_update", "2017-09-21 09:51:57.288000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
635
+  (0.6ms) RELEASE SAVEPOINT active_record_1
636
+ Processing file : objets_modifies/objets_modifies-1.json
637
+ 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", 4826137], ["LIMIT", 1]]
638
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
639
+  (0.1ms) SAVEPOINT active_record_1
640
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "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", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Mardi 7 novembre 2017 de 7h à 19h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924098,\"dateDebut\":\"2017-11-07\",\"dateFin\":\"2017-11-07\",\"horaireOuverture\":\"07:00:00\",\"horaireFermeture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 09:03:34.381886"], ["updated_at", "2020-05-20 09:03:34.381886"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"access\":{},\"environments\":[173]}"], ["description_data", "{\"short_desc\":{\"fr\":\"Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé.\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"3C-Centre de Coordination en Cancerologie\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:27:36.711000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
641
+  (0.2ms) RELEASE SAVEPOINT active_record_1
642
+ 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]]
643
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
644
+  (0.1ms) SAVEPOINT active_record_1
645
+ Apidae::Obj Update (0.4ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "apidae_subtype" = $4, "title_data" = $5, "description_data" = $6, "contact" = $7, "location_data" = $8, "openings_data" = $9, "rates_data" = $10, "booking_data" = $11, "type_data" = $12, "pictures_data" = $13, "attachments_data" = $14, "entity_data" = $15, "service_data" = $16, "tags_data" = $17, "updated_at" = $18 WHERE "apidae_objs"."id" = $19 [["last_update", "2017-09-14 09:17:06.836000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["contact", "{\"website\":[\"https://www.acielouvert.org\"]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"access\":{}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du samedi 11 au lundi 13 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["type_data", "{\"categories\":[2084],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["updated_at", "2020-05-20 09:03:34.388657"], ["id", 163]]
646
+  (0.2ms) RELEASE SAVEPOINT active_record_1
647
+ 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]]
648
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
649
+  (0.1ms) SAVEPOINT active_record_1
650
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "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", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 18 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 09:03:34.395517"], ["updated_at", "2020-05-20 09:03:34.395517"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Remise des diplômes POLYTECH Annecy-Chambery\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:29:13.914000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
651
+  (0.2ms) RELEASE SAVEPOINT active_record_1
652
+ 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", 4828422], ["LIMIT", 1]]
653
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
654
+  (0.1ms) SAVEPOINT active_record_1
655
+ Apidae::Obj Create (0.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact", "{}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[2064,2257],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13951267,\"dateDebut\":\"2018-04-19\",\"dateFin\":\"2018-04-19\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951269,\"dateDebut\":\"2018-04-20\",\"dateFin\":\"2018-04-20\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951275,\"dateDebut\":\"2018-04-21\",\"dateFin\":\"2018-04-21\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951278,\"dateDebut\":\"2018-04-22\",\"dateFin\":\"2018-04-22\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951279,\"dateDebut\":\"2018-04-24\",\"dateFin\":\"2018-04-24\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951282,\"dateDebut\":\"2018-04-25\",\"dateFin\":\"2018-04-25\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951286,\"dateDebut\":\"2018-04-27\",\"dateFin\":\"2018-04-27\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951289,\"dateDebut\":\"2018-04-28\",\"dateFin\":\"2018-04-28\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951291,\"dateDebut\":\"2018-04-29\",\"dateFin\":\"2018-04-29\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951292,\"dateDebut\":\"2018-04-30\",\"dateFin\":\"2018-04-30\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951297,\"dateDebut\":\"2018-05-02\",\"dateFin\":\"2018-05-02\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951298,\"dateDebut\":\"2018-05-03\",\"dateFin\":\"2018-05-03\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951300,\"dateDebut\":\"2018-05-05\",\"dateFin\":\"2018-05-05\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951303,\"dateDebut\":\"2018-05-06\",\"dateFin\":\"2018-05-06\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951307,\"dateDebut\":\"2018-05-07\",\"dateFin\":\"2018-05-07\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951309,\"dateDebut\":\"2018-05-08\",\"dateFin\":\"2018-05-08\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951311,\"dateDebut\":\"2018-05-10\",\"dateFin\":\"2018-05-10\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968615,\"dateDebut\":\"2018-05-11\",\"dateFin\":\"2018-05-11\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968617,\"dateDebut\":\"2018-05-12\",\"dateFin\":\"2018-05-12\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968619,\"dateDebut\":\"2018-05-13\",\"dateFin\":\"2018-05-13\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[436]}"], ["created_at", "2020-05-20 09:03:34.404248"], ["updated_at", "2020-05-20 09:03:34.404248"], ["pictures_data", "{\"pictures\":{}}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse).\"},\"rates\":[{\"id\":8306899,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-05-13\",\"values\":[{\"min\":15.0,\"max\":32.0,\"type\":5240,\"details\":{\"fr\":\"abonnés Espace Malraux, Bonlieu, La Traverse\"}},{\"min\":39.0,\"max\":null,\"type\":5239,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060,6588,6769,542,9580]}"], ["location_data", "{\"address\":[],\"place\":\"La Croix verte\",\"latitude\":45.644668,\"longitude\":5.867981,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Conception et mise en scène de Bartabas.\\r\\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture.\"},\"long_desc\":{\"fr\":\"On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Ex Anima - Théâtre équestre Zingaro\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-10-06 09:50:00.352000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
656
+  (0.1ms) RELEASE SAVEPOINT active_record_1
657
+ Processing file : criteres_internes.json
658
+ Processing file : selections.json
659
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 33]]
660
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
661
+ Updating selection 49063
662
+ 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]]
663
+  (0.2ms) SAVEPOINT active_record_1
664
+ Apidae::Selection Create (0.6ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:03:34.525915"], ["updated_at", "2020-05-20 09:03:34.525915"], ["apidae_project_id", 33]]
665
+  (0.1ms) RELEASE SAVEPOINT active_record_1
666
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 41]]
667
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
668
+  (0.1ms) SAVEPOINT active_record_1
669
+ 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", 41], ["apidae_object_id", 165], ["created_at", "2020-05-20 09:03:34.575192"], ["updated_at", "2020-05-20 09:03:34.575192"]]
670
+  (0.1ms) RELEASE SAVEPOINT active_record_1
671
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826282], ["LIMIT", 1]]
672
+  (0.1ms) SAVEPOINT active_record_1
673
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 41], ["apidae_object_id", 166], ["created_at", "2020-05-20 09:03:34.577528"], ["updated_at", "2020-05-20 09:03:34.577528"]]
674
+  (0.1ms) RELEASE SAVEPOINT active_record_1
675
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
676
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 41]]
677
+ Updating selection 49073
678
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49073], ["LIMIT", 1]]
679
+  (0.1ms) SAVEPOINT active_record_1
680
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49073], ["created_at", "2020-05-20 09:03:34.581281"], ["updated_at", "2020-05-20 09:03:34.581281"], ["apidae_project_id", 33]]
681
+  (0.2ms) RELEASE SAVEPOINT active_record_1
682
+ 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", 42]]
683
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826186], ["LIMIT", 1]]
684
+  (0.1ms) SAVEPOINT active_record_1
685
+ 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", 42], ["apidae_object_id", 163], ["created_at", "2020-05-20 09:03:34.585154"], ["updated_at", "2020-05-20 09:03:34.585154"]]
686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
687
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4828422], ["LIMIT", 1]]
688
+  (0.1ms) SAVEPOINT active_record_1
689
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 42], ["apidae_object_id", 167], ["created_at", "2020-05-20 09:03:34.587549"], ["updated_at", "2020-05-20 09:03:34.587549"]]
690
+  (0.1ms) RELEASE SAVEPOINT active_record_1
691
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
692
+  (0.1ms) SAVEPOINT active_record_1
693
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 42], ["apidae_object_id", 164], ["created_at", "2020-05-20 09:03:34.589798"], ["updated_at", "2020-05-20 09:03:34.589798"]]
694
+  (0.1ms) RELEASE SAVEPOINT active_record_1
695
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
696
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 42]]
697
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 33]]
698
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 41]]
699
+  (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", 42]]
700
+ Processing file : objets_supprimes.json
701
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
702
+  (0.1ms) SAVEPOINT active_record_1
703
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 162]]
704
+  (0.1ms) RELEASE SAVEPOINT active_record_1
705
+  (0.1ms) SAVEPOINT active_record_1
706
+ Apidae::FileImport Create (0.5ms) INSERT INTO "apidae_file_imports" ("status", "remote_file", "created", "updated", "deleted", "created_at", "updated_at", "apidae_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["status", "complete"], ["remote_file", "test/data/json_export.zip"], ["created", 4], ["updated", 1], ["deleted", 1], ["created_at", "2020-05-20 09:03:34.608017"], ["updated_at", "2020-05-20 09:03:34.608017"], ["apidae_id", 123]]
707
+  (0.1ms) RELEASE SAVEPOINT active_record_1
708
+ 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}]}
709
+  (0.2ms) SELECT COUNT(*) FROM "apidae_projects"
710
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
711
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
712
+  (0.3ms) ROLLBACK
713
+  (0.1ms) BEGIN
714
+ -------------------------------------------------
715
+ Apidae::FileImportTest: test_new_object_insertion
716
+ -------------------------------------------------
717
+ Apidae::Obj Destroy (0.5ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
718
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
719
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
720
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
721
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
722
+ 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]]
723
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
724
+  (0.2ms) SAVEPOINT active_record_1
725
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "title_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:03:34.618449"], ["updated_at", "2020-05-20 09:03:34.618449"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["version", "STANDARD"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
726
+  (0.1ms) RELEASE SAVEPOINT active_record_1
727
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
728
+ 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]]
729
+  (0.1ms) ROLLBACK
730
+  (0.1ms) BEGIN
731
+ ----------------------------------------------------
732
+ Apidae::FileImportTest: test_new_selection_insertion
733
+ ----------------------------------------------------
734
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
735
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
736
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
737
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
738
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references"
739
+  (0.3ms) SAVEPOINT active_record_1
740
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:03:34.628927"], ["updated_at", "2020-05-20 09:03:34.628927"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
741
+  (0.2ms) RELEASE SAVEPOINT active_record_1
742
+  (0.2ms) SAVEPOINT active_record_1
743
+ 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]]
744
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:03:34.633250"], ["updated_at", "2020-05-20 09:03:34.633250"]]
745
+  (0.1ms) RELEASE SAVEPOINT active_record_1
746
+ Apidae::Selection Load (0.4ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 34]]
747
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
748
+ Updating selection 49063
749
+ Apidae::Selection Load (0.5ms) 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]]
750
+  (0.3ms) SAVEPOINT active_record_1
751
+ Apidae::Selection Create (0.3ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:03:34.639448"], ["updated_at", "2020-05-20 09:03:34.639448"], ["apidae_project_id", 34]]
752
+  (0.1ms) RELEASE SAVEPOINT active_record_1
753
+ 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", 43]]
754
+ 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]]
755
+  (0.1ms) SAVEPOINT active_record_1
756
+ 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", 43], ["apidae_object_id", 169], ["created_at", "2020-05-20 09:03:34.646451"], ["updated_at", "2020-05-20 09:03:34.646451"]]
757
+  (0.1ms) RELEASE SAVEPOINT active_record_1
758
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
759
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 43]]
760
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 34]]
761
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 43]]
762
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
763
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
764
+  (0.2ms) ROLLBACK
765
+  (0.1ms) BEGIN
766
+ ------------------------------------------------------------------------------
767
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
768
+ ------------------------------------------------------------------------------
769
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
770
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
771
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
772
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
773
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
774
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
775
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
776
+  (0.3ms) SAVEPOINT active_record_1
777
+ Apidae::Obj Create (1.0ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{\"telephone\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:03:34.661286"], ["updated_at", "2020-05-20 09:03:34.661286"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
779
+ 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", 170], ["version", "GROUPES"], ["LIMIT", 1]]
780
+  (0.2ms) SAVEPOINT active_record_1
781
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact", "{\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-20 09:03:34.675354"], ["updated_at", "2020-05-20 09:03:34.675354"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 170], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"openings_desc_mode\",\"short_desc\"]}"]]
782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
783
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
784
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
785
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
786
+ 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", 170], ["version", "GROUPES"], ["LIMIT", 1]]
787
+  (0.1ms) ROLLBACK
788
+  (0.1ms) BEGIN
789
+ ------------------------------------------------------
790
+ Apidae::FileImportTest: test_existing_selection_update
791
+ ------------------------------------------------------
792
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
793
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
794
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
795
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
796
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
797
+  (0.2ms) SAVEPOINT active_record_1
798
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["created_at", "2020-05-20 09:03:34.688393"], ["updated_at", "2020-05-20 09:03:34.688393"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
799
+  (0.1ms) RELEASE SAVEPOINT active_record_1
800
+  (0.1ms) SAVEPOINT active_record_1
801
+ Apidae::Obj Create (0.2ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:03:34.690539"], ["updated_at", "2020-05-20 09:03:34.690539"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
802
+  (0.1ms) RELEASE SAVEPOINT active_record_1
803
+  (0.2ms) SAVEPOINT active_record_1
804
+ 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]]
805
+ Apidae::Project Create (0.5ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:03:34.693638"], ["updated_at", "2020-05-20 09:03:34.693638"]]
806
+  (0.2ms) RELEASE SAVEPOINT active_record_1
807
+  (0.1ms) SAVEPOINT active_record_1
808
+ Apidae::Selection Create (0.3ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:03:34.696101"], ["updated_at", "2020-05-20 09:03:34.696101"], ["apidae_project_id", 35]]
809
+  (0.2ms) RELEASE SAVEPOINT active_record_1
810
+  (0.1ms) SAVEPOINT active_record_1
811
+ 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", 44], ["apidae_object_id", 172], ["created_at", "2020-05-20 09:03:34.700362"], ["updated_at", "2020-05-20 09:03:34.700362"]]
812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
813
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 44]]
814
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 35]]
815
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
816
+ Updating selection 49063
817
+ 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]]
818
+  (0.1ms) SAVEPOINT active_record_1
819
+  (0.2ms) RELEASE SAVEPOINT active_record_1
820
+ 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", 44]]
821
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
822
+  (0.2ms) SAVEPOINT active_record_1
823
+ 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", 44], ["apidae_object_id", 173], ["created_at", "2020-05-20 09:03:34.710432"], ["updated_at", "2020-05-20 09:03:34.710432"]]
824
+  (0.1ms) RELEASE SAVEPOINT active_record_1
825
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
826
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 44]]
827
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 35]]
828
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 44]]
829
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
830
+  (0.2ms) ROLLBACK
831
+  (0.1ms) BEGIN
832
+ --------------------------------------------------------
833
+ Apidae::FileImportTest: test_existing_selection_deletion
834
+ --------------------------------------------------------
835
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
836
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
837
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
838
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
839
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
840
+  (0.1ms) SAVEPOINT active_record_1
841
+ 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]]
842
+ Apidae::Project Create (0.2ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:03:34.719145"], ["updated_at", "2020-05-20 09:03:34.719145"]]
843
+  (0.1ms) RELEASE SAVEPOINT active_record_1
844
+  (0.1ms) SAVEPOINT active_record_1
845
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:03:34.720621"], ["updated_at", "2020-05-20 09:03:34.720621"], ["apidae_project_id", 36]]
846
+  (0.1ms) RELEASE SAVEPOINT active_record_1
847
+  (0.4ms) SELECT COUNT(*) FROM "apidae_selections"
848
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 36]]
849
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
850
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 36]]
851
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
852
+  (0.2ms) ROLLBACK
853
+  (0.1ms) BEGIN
854
+ ---------------------------------------------------------------------------
855
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
856
+ ---------------------------------------------------------------------------
857
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
858
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
859
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections"
860
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
861
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references"
862
+ 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]]
863
+ Apidae::Town Load (0.4ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
864
+  (0.3ms) SAVEPOINT active_record_1
865
+ Apidae::Obj Create (7.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\",\"en\":\"All year round.\",\"de\":\"Ganzjährig.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 09:03:34.734103"], ["updated_at", "2020-05-20 09:03:34.734103"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\",\"en\":\"La Grange des Huskies\",\"de\":\"Huskytouren Grange des Huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
866
+  (0.2ms) RELEASE SAVEPOINT active_record_1
867
+ 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", 174], ["version", "HIVER"], ["LIMIT", 1]]
868
+  (0.2ms) SAVEPOINT active_record_1
869
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:03:34.752283"], ["updated_at", "2020-05-20 09:03:34.752283"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 174], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
870
+  (0.2ms) RELEASE SAVEPOINT active_record_1
871
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
872
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs"
873
+ 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]]
874
+ 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", 174], ["version", "HIVER"], ["LIMIT", 1]]
875
+ 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", 174], ["LIMIT", 1]]
876
+  (0.2ms) ROLLBACK
877
+  (0.1ms) BEGIN
878
+ ---------------------------------------------------
879
+ Apidae::FileImportTest: test_existing_object_update
880
+ ---------------------------------------------------
881
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
882
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
883
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
884
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
885
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
886
+  (0.1ms) SAVEPOINT active_record_1
887
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:03:34.767085"], ["updated_at", "2020-05-20 09:03:34.767085"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
888
+  (0.2ms) RELEASE SAVEPOINT active_record_1
889
+ 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]]
890
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
891
+  (0.1ms) SAVEPOINT active_record_1
892
+ Apidae::Obj Update (0.5ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "title_data" = $4, "contact" = $5, "location_data" = $6, "type_data" = $7, "pictures_data" = $8, "attachments_data" = $9, "tags_data" = $10, "updated_at" = $11 WHERE "apidae_objs"."id" = $12 [["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["apidae_type", "STRUCTURE"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["contact", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["updated_at", "2020-05-20 09:03:34.771196"], ["id", 176]]
893
+  (0.2ms) RELEASE SAVEPOINT active_record_1
894
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
895
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
896
+  (0.2ms) ROLLBACK
897
+  (0.1ms) BEGIN
898
+ ---------------------------------------------------------------
899
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
900
+ ---------------------------------------------------------------
901
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
902
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
903
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
904
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
905
+ Apidae::Reference Destroy (0.3ms) DELETE FROM "apidae_references"
906
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
907
+ Apidae::Town Load (0.4ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
908
+  (0.2ms) SAVEPOINT active_record_1
909
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 09:03:34.784464"], ["updated_at", "2020-05-20 09:03:34.784464"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
910
+  (0.2ms) RELEASE SAVEPOINT active_record_1
911
+ Apidae::Obj Load (0.7ms) 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", 177], ["version", "HIVER"], ["LIMIT", 1]]
912
+  (0.2ms) SAVEPOINT active_record_1
913
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:03:34.793121"], ["updated_at", "2020-05-20 09:03:34.793121"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 177], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
914
+  (0.1ms) RELEASE SAVEPOINT active_record_1
915
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
916
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
917
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
918
+ 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", 177], ["version", "HIVER"], ["LIMIT", 1]]
919
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 177], ["LIMIT", 1]]
920
+  (0.2ms) ROLLBACK
921
+  (0.1ms) BEGIN
922
+ -----------------------------------------------------------------------------------
923
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
924
+ -----------------------------------------------------------------------------------
925
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
926
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
927
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
928
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
929
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
930
+ 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]]
931
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
932
+  (0.2ms) SAVEPOINT active_record_1
933
+ Apidae::Obj Create (0.7ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 09:03:34.806134"], ["updated_at", "2020-05-20 09:03:34.806134"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
934
+  (0.3ms) RELEASE SAVEPOINT active_record_1
935
+ 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", 179], ["version", "HIVER"], ["LIMIT", 1]]
936
+  (0.1ms) SAVEPOINT active_record_1
937
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:03:34.814316"], ["updated_at", "2020-05-20 09:03:34.814316"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 179], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
938
+  (0.1ms) RELEASE SAVEPOINT active_record_1
939
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
940
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
941
+ 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]]
942
+ 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", 179], ["version", "HIVER"], ["LIMIT", 1]]
943
+  (0.3ms) ROLLBACK
944
+  (0.1ms) BEGIN
945
+ --------------------------------------------------------------
946
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
947
+ --------------------------------------------------------------
948
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
949
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
950
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
951
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
952
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
953
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 898922], ["LIMIT", 1]]
954
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
955
+  (0.1ms) SAVEPOINT active_record_1
956
+ Apidae::Obj Create (0.7ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 898922], ["apidae_type", "HOTELLERIE"], ["apidae_subtype", "2734"], ["contact", "{\"telephone\":[\"04 71 49 09 09\"],\"email\":[\"chatelleraie@wanadoo.fr\"],\"website\":[\"http://chatelleraie.co.uk/fr/\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"nombreChambresDeclareesHotelier\":26,\"nombreTotalPersonnes\":70,\"nombreTotalPersonnesReel\":70,\"nombreChambresFamiliales\":1,\"nombreSuites\":1,\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[2756],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{\"tourismeAffairesEnabled\":true,\"nombreSallesModulables\":1}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/04 au 14/10/2018.\",\"en\":\"From 01/04 to 14/10/2018.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14375379,\"dateDebut\":\"2018-04-01\",\"dateFin\":\"2018-10-14\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false,\"identifiantTechnique\":15927193}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:03:34.828759"], ["updated_at", "2020-05-20 09:03:34.828759"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":1890696,\"name\":\"La Chatelleraie st etienne de Maurs 2\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":\"otchataigneraie\",\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[687,1115,1172],\"equipments\":[655,723,821,972,1058,1064,1089,1093,1106,1323],\"comfort\":[838,842,963,1014,1015],\"activities\":[680,3927],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Chambre double : de 55 à 80 €\\nChambre quadruple : de 80 à 125 € (chambre familiale)\\nDemi-pension (/ pers.) : à partir de 50 € (A partir de 50€)\\nPetit déjeuner : à partir de 7,50 €\\nAnimaux : à partir de 5 €.\\n\",\"en\":\"Double room: 55 to 80 €\\nRoom sleeping 4: 80 to 125 €\\nHalf-board: from 50 €\\nBreakfast: from 7.50 €\\nSupplementary payment for pets: from 5 €.\\n\"},\"rates\":[{\"id\":8605788,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"values\":[{\"min\":55.0,\"max\":80.0,\"type\":1466,\"details\":{}},{\"min\":80.0,\"max\":125.0,\"type\":3877,\"details\":{\"fr\":\"chambre familiale\"}},{\"min\":50.0,\"max\":null,\"type\":1465,\"details\":{\"fr\":\"A partir de 50€\"}},{\"min\":7.5,\"max\":null,\"type\":1461,\"details\":{}},{\"min\":5.0,\"max\":null,\"type\":4080,\"details\":{}}]}],\"payment_methods\":[1268,1271],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"HOTAUV015V5022D5\"}}]}]"], ["location_data", "{\"address\":[\"Château de La Devèze\"],\"place\":null,\"latitude\":44.715026,\"longitude\":2.207737,\"access\":{},\"environments\":[135],\"territories\":[711392,742848,896166,908439]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc fr\",\"en\":\"short desc en\"},\"long_desc\":{\"fr\":\"long desc fr\",\"en\":\"long desc en\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Châtelleraie\",\"en\":\"La Châtelleraie\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2018-11-06 11:03:21.304000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme de la Châtaigneraie Cantalienne\",\"owner_id\":1333}"]]
957
+  (0.3ms) RELEASE SAVEPOINT active_record_1
958
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
959
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1 [["LIMIT", 1]]
960
+  (0.2ms) ROLLBACK
961
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
962
+  (0.2ms) BEGIN
963
+ --------------------------------------------------------------------------------
964
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
965
+ --------------------------------------------------------------------------------
966
+ Apidae::Obj Destroy (1.0ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
967
+ Apidae::Project Destroy (0.5ms) DELETE FROM "apidae_projects"
968
+ Apidae::Selection Destroy (0.6ms) DELETE FROM "apidae_selections"
969
+ Apidae::Town Destroy (0.5ms) DELETE FROM "apidae_towns"
970
+ Apidae::Reference Destroy (0.9ms) DELETE FROM "apidae_references"
971
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
972
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
973
+  (0.2ms) SAVEPOINT active_record_1
974
+ Apidae::Obj Create (17.7ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{\"telephone\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:13:58.402438"], ["updated_at", "2020-05-20 09:13:58.402438"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
975
+  (0.3ms) RELEASE SAVEPOINT active_record_1
976
+ 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", 182], ["version", "GROUPES"], ["LIMIT", 1]]
977
+  (0.1ms) SAVEPOINT active_record_1
978
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact", "{\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-20 09:13:58.437014"], ["updated_at", "2020-05-20 09:13:58.437014"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 182], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
979
+  (0.1ms) RELEASE SAVEPOINT active_record_1
980
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
981
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
982
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
983
+ 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", 182], ["version", "GROUPES"], ["LIMIT", 1]]
984
+  (0.2ms) ROLLBACK
985
+  (0.6ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
986
+  (0.2ms) BEGIN
987
+ --------------------------------------------------------------------------------
988
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
989
+ --------------------------------------------------------------------------------
990
+ Apidae::Obj Destroy (0.7ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
991
+ Apidae::Project Destroy (0.5ms) DELETE FROM "apidae_projects"
992
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
993
+ Apidae::Town Destroy (0.8ms) DELETE FROM "apidae_towns"
994
+ Apidae::Reference Destroy (0.5ms) DELETE FROM "apidae_references"
995
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
996
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
997
+  (0.2ms) SAVEPOINT active_record_1
998
+ Apidae::Obj Create (1.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{\"telephone\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:16:15.343500"], ["updated_at", "2020-05-20 09:16:15.343500"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
999
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1000
+ 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", 184], ["version", "GROUPES"], ["LIMIT", 1]]
1001
+  (0.1ms) SAVEPOINT active_record_1
1002
+ Apidae::Obj Create (6.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact", "{\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-20 09:16:15.356268"], ["updated_at", "2020-05-20 09:16:15.356268"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 184], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
1003
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1004
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1005
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
1006
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
1007
+  (0.2ms) ROLLBACK
1008
+  (0.7ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1009
+  (0.2ms) BEGIN
1010
+ --------------------------------------------------------------------------------
1011
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
1012
+ --------------------------------------------------------------------------------
1013
+ Apidae::Obj Destroy (0.7ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1014
+ Apidae::Project Destroy (0.5ms) DELETE FROM "apidae_projects"
1015
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
1016
+ Apidae::Town Destroy (0.5ms) DELETE FROM "apidae_towns"
1017
+ Apidae::Reference Destroy (0.7ms) DELETE FROM "apidae_references"
1018
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
1019
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
1020
+  (0.1ms) SAVEPOINT active_record_1
1021
+ Apidae::Obj Create (3.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{\"telephone\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:16:49.583495"], ["updated_at", "2020-05-20 09:16:49.583495"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
1022
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1023
+ 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", 186], ["version", "GROUPES"], ["LIMIT", 1]]
1024
+  (0.1ms) SAVEPOINT active_record_1
1025
+ Apidae::Obj Create (0.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact", "{\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-20 09:16:49.614747"], ["updated_at", "2020-05-20 09:16:49.614747"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 186], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
1026
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1027
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1028
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
1029
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
1030
+ 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", 186], ["version", "GROUPES"], ["LIMIT", 1]]
1031
+  (0.2ms) ROLLBACK
1032
+  (0.5ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
1033
+  (0.2ms) BEGIN
1034
+ ----------------------------------------------------
1035
+ Apidae::FileImportTest: test_new_selection_insertion
1036
+ ----------------------------------------------------
1037
+ Apidae::Obj Destroy (0.7ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1038
+ Apidae::Project Destroy (0.4ms) DELETE FROM "apidae_projects"
1039
+ Apidae::Selection Destroy (0.4ms) DELETE FROM "apidae_selections"
1040
+ Apidae::Town Destroy (0.5ms) DELETE FROM "apidae_towns"
1041
+ Apidae::Reference Destroy (0.5ms) DELETE FROM "apidae_references"
1042
+  (0.2ms) SAVEPOINT active_record_1
1043
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:16:57.331027"], ["updated_at", "2020-05-20 09:16:57.331027"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1044
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1045
+  (0.2ms) SAVEPOINT active_record_1
1046
+ 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]]
1047
+ Apidae::Project Create (0.4ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:16:57.345714"], ["updated_at", "2020-05-20 09:16:57.345714"]]
1048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1049
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 37]]
1050
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1051
+ Updating selection 49063
1052
+ 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]]
1053
+  (0.1ms) SAVEPOINT active_record_1
1054
+ Apidae::Selection Create (0.9ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:16:57.511569"], ["updated_at", "2020-05-20 09:16:57.511569"], ["apidae_project_id", 37]]
1055
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1056
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 46]]
1057
+ 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]]
1058
+  (0.1ms) SAVEPOINT active_record_1
1059
+ 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", 46], ["apidae_object_id", 188], ["created_at", "2020-05-20 09:16:57.546346"], ["updated_at", "2020-05-20 09:16:57.546346"]]
1060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1061
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
1062
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 46]]
1063
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 37]]
1064
+  (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", 46]]
1065
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1066
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
1067
+  (0.2ms) ROLLBACK
1068
+  (0.1ms) BEGIN
1069
+ ------------------------------------------------------------------------------
1070
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
1071
+ ------------------------------------------------------------------------------
1072
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1073
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1074
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
1075
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1076
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1077
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
1078
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
1079
+  (0.2ms) SAVEPOINT active_record_1
1080
+ Apidae::Obj Create (1.2ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{\"telephone\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:16:57.565818"], ["updated_at", "2020-05-20 09:16:57.565818"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
1081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1082
+ 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", 189], ["version", "GROUPES"], ["LIMIT", 1]]
1083
+  (0.1ms) SAVEPOINT active_record_1
1084
+ Apidae::Obj Create (1.0ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact", "{\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-20 09:16:57.577081"], ["updated_at", "2020-05-20 09:16:57.577081"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 189], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
1085
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1086
+  (0.6ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1087
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
1088
+ 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", 185789], ["LIMIT", 1]]
1089
+ 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", 189], ["version", "GROUPES"], ["LIMIT", 1]]
1090
+  (0.1ms) ROLLBACK
1091
+  (0.1ms) BEGIN
1092
+ ---------------------------------------------------
1093
+ Apidae::FileImportTest: test_existing_object_update
1094
+ ---------------------------------------------------
1095
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1096
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1097
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1098
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1099
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1100
+  (0.1ms) SAVEPOINT active_record_1
1101
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:16:57.590895"], ["updated_at", "2020-05-20 09:16:57.590895"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1102
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1103
+ 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]]
1104
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
1105
+  (0.1ms) SAVEPOINT active_record_1
1106
+ Apidae::Obj Update (0.5ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "title_data" = $4, "contact" = $5, "location_data" = $6, "type_data" = $7, "pictures_data" = $8, "attachments_data" = $9, "tags_data" = $10, "updated_at" = $11 WHERE "apidae_objs"."id" = $12 [["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["apidae_type", "STRUCTURE"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["contact", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["updated_at", "2020-05-20 09:16:57.595438"], ["id", 191]]
1107
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1108
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1109
+ 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]]
1110
+  (0.3ms) ROLLBACK
1111
+  (0.1ms) BEGIN
1112
+ ---------------------------------------------------------------------------
1113
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
1114
+ ---------------------------------------------------------------------------
1115
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1116
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1117
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1118
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1119
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1120
+ 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]]
1121
+ Apidae::Town Load (0.5ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
1122
+  (0.1ms) SAVEPOINT active_record_1
1123
+ Apidae::Obj Create (0.9ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\",\"en\":\"All year round.\",\"de\":\"Ganzjährig.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 09:16:57.610741"], ["updated_at", "2020-05-20 09:16:57.610741"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\",\"en\":\"La Grange des Huskies\",\"de\":\"Huskytouren Grange des Huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
1124
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1125
+ 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", 192], ["version", "HIVER"], ["LIMIT", 1]]
1126
+  (0.2ms) SAVEPOINT active_record_1
1127
+ Apidae::Obj Create (0.9ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:16:57.621466"], ["updated_at", "2020-05-20 09:16:57.621466"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 192], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
1128
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1129
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1130
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
1131
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
1132
+ 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", 192], ["version", "HIVER"], ["LIMIT", 1]]
1133
+ Apidae::Obj Load (0.6ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 192], ["LIMIT", 1]]
1134
+  (0.3ms) ROLLBACK
1135
+  (0.1ms) BEGIN
1136
+ -------------------------------------------------
1137
+ Apidae::FileImportTest: test_new_object_insertion
1138
+ -------------------------------------------------
1139
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1140
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1141
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections"
1142
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1143
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1144
+ 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]]
1145
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
1146
+  (0.1ms) SAVEPOINT active_record_1
1147
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "title_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:16:57.638105"], ["updated_at", "2020-05-20 09:16:57.638105"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["version", "STANDARD"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
1148
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1149
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1150
+ 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]]
1151
+  (0.2ms) ROLLBACK
1152
+  (0.1ms) BEGIN
1153
+ ------------------------------------------------------
1154
+ Apidae::FileImportTest: test_existing_selection_update
1155
+ ------------------------------------------------------
1156
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1157
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1158
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1159
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1160
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
1161
+  (0.1ms) SAVEPOINT active_record_1
1162
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["created_at", "2020-05-20 09:16:57.646226"], ["updated_at", "2020-05-20 09:16:57.646226"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1163
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1164
+  (0.2ms) SAVEPOINT active_record_1
1165
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:16:57.649409"], ["updated_at", "2020-05-20 09:16:57.649409"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1167
+  (0.1ms) SAVEPOINT active_record_1
1168
+ 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]]
1169
+ Apidae::Project Create (0.3ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:16:57.652245"], ["updated_at", "2020-05-20 09:16:57.652245"]]
1170
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1171
+  (0.1ms) SAVEPOINT active_record_1
1172
+ Apidae::Selection Create (0.3ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:16:57.654334"], ["updated_at", "2020-05-20 09:16:57.654334"], ["apidae_project_id", 38]]
1173
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1174
+  (0.1ms) SAVEPOINT active_record_1
1175
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 47], ["apidae_object_id", 195], ["created_at", "2020-05-20 09:16:57.657153"], ["updated_at", "2020-05-20 09:16:57.657153"]]
1176
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1177
+  (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", 47]]
1178
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 38]]
1179
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1180
+ Updating selection 49063
1181
+ 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]]
1182
+  (0.1ms) SAVEPOINT active_record_1
1183
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1184
+ 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", 47]]
1185
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
1186
+  (0.1ms) SAVEPOINT active_record_1
1187
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 47], ["apidae_object_id", 196], ["created_at", "2020-05-20 09:16:57.667090"], ["updated_at", "2020-05-20 09:16:57.667090"]]
1188
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1189
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
1190
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 47]]
1191
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 38]]
1192
+  (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", 47]]
1193
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1194
+  (0.1ms) ROLLBACK
1195
+  (0.1ms) BEGIN
1196
+ --------------------------------------------------------------------------------
1197
+ Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
1198
+ --------------------------------------------------------------------------------
1199
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1200
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1201
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1202
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
1203
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1204
+ 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]]
1205
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
1206
+  (0.2ms) SAVEPOINT active_record_1
1207
+ Apidae::Obj Create (1.7ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{\"telephone\":[\"04 78 81 84 30\",\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":17994901,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-06-30\",\"complementHoraire\":{},\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2020-05-01\"},{\"dateOuverture\":\"2020-05-08\"},{\"dateOuverture\":\"2020-05-21\"},{\"dateOuverture\":\"2020-06-01\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183551},{\"identifiant\":9577872,\"dateDebut\":\"2019-07-01\",\"dateFin\":\"2019-08-31\",\"horaireOuverture\":\"16:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesExceptionnelles\":[{\"dateOuverture\":\"2019-07-14\"},{\"dateOuverture\":\"2019-08-15\"}],\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183552},{\"identifiant\":9577873,\"dateDebut\":\"2019-09-01\",\"dateFin\":\"2019-09-30\",\"horaireOuverture\":\"15:30:00\",\"type\":\"OUVERTURE_SEMAINE\",\"tousLesAns\":true,\"ouverturesJournalieres\":[{\"jour\":\"DIMANCHE\"}],\"identifiantTechnique\":18183553}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:16:57.678976"], ["updated_at", "2020-05-20 09:16:57.678976"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
1208
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1209
+ 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", 197], ["version", "GROUPES"], ["LIMIT", 1]]
1210
+  (0.1ms) SAVEPOINT active_record_1
1211
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19) RETURNING "id" [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact", "{\"telephone\":[\"07 83 78 46 70\"],\"email\":[\"haut.rhone@aol.fr\"],\"website\":[\"http://www.cft-hr.com\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":18024471,\"dateDebut\":\"2020-05-01\",\"dateFin\":\"2020-10-31\",\"complementHoraire\":{\"libelleFr\":\"à partir de 10h30, uniquement sur réservation\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":18183554}],\"time_periods\":[]}"], ["created_at", "2020-05-20 09:16:57.691944"], ["updated_at", "2020-05-20 09:16:57.691944"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":null},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_desc\":{\"fr\":\"Arrhes demandés pour les groupes\"},\"booking_entities\":null}"], ["version", "GROUPES"], ["root_obj_id", 197], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
1212
+  (0.3ms) RELEASE SAVEPOINT active_record_1
1213
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1214
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
1215
+ Apidae::Obj Load (0.5ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 185789], ["LIMIT", 1]]
1216
+ 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", 197], ["version", "GROUPES"], ["LIMIT", 1]]
1217
+  (0.2ms) ROLLBACK
1218
+  (0.1ms) BEGIN
1219
+ -----------------------------------------------------------------------------------
1220
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
1221
+ -----------------------------------------------------------------------------------
1222
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1223
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1224
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1225
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1226
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
1227
+ 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]]
1228
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
1229
+  (0.1ms) SAVEPOINT active_record_1
1230
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 09:16:57.707975"], ["updated_at", "2020-05-20 09:16:57.707975"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
1231
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1232
+ 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", 199], ["version", "HIVER"], ["LIMIT", 1]]
1233
+  (0.2ms) SAVEPOINT active_record_1
1234
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:16:57.716245"], ["updated_at", "2020-05-20 09:16:57.716245"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 199], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
1235
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1236
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1237
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
1238
+ 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]]
1239
+ 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", 199], ["version", "HIVER"], ["LIMIT", 1]]
1240
+  (0.2ms) ROLLBACK
1241
+  (0.1ms) BEGIN
1242
+ --------------------------------------------------------------
1243
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
1244
+ --------------------------------------------------------------
1245
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1246
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1247
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1248
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1249
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1250
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 898922], ["LIMIT", 1]]
1251
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
1252
+  (0.1ms) SAVEPOINT active_record_1
1253
+ Apidae::Obj Create (0.8ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 898922], ["apidae_type", "HOTELLERIE"], ["apidae_subtype", "2734"], ["contact", "{\"telephone\":[\"04 71 49 09 09\"],\"email\":[\"chatelleraie@wanadoo.fr\"],\"website\":[\"http://chatelleraie.co.uk/fr/\"]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"nombreChambresDeclareesHotelier\":26,\"nombreTotalPersonnes\":70,\"nombreTotalPersonnesReel\":70,\"nombreChambresFamiliales\":1,\"nombreSuites\":1,\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[2756],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":true,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{\"tourismeAffairesEnabled\":true,\"nombreSallesModulables\":1}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/04 au 14/10/2018.\",\"en\":\"From 01/04 to 14/10/2018.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14375379,\"dateDebut\":\"2018-04-01\",\"dateFin\":\"2018-10-14\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false,\"identifiantTechnique\":15927193}],\"time_periods\":[416,418,436]}"], ["created_at", "2020-05-20 09:16:57.729634"], ["updated_at", "2020-05-20 09:16:57.729634"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":1890696,\"name\":\"La Chatelleraie st etienne de Maurs 2\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":\"otchataigneraie\",\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[687,1115,1172],\"equipments\":[655,723,821,972,1058,1064,1089,1093,1106,1323],\"comfort\":[838,842,963,1014,1015],\"activities\":[680,3927],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Chambre double : de 55 à 80 €\\nChambre quadruple : de 80 à 125 € (chambre familiale)\\nDemi-pension (/ pers.) : à partir de 50 € (A partir de 50€)\\nPetit déjeuner : à partir de 7,50 €\\nAnimaux : à partir de 5 €.\\n\",\"en\":\"Double room: 55 to 80 €\\nRoom sleeping 4: 80 to 125 €\\nHalf-board: from 50 €\\nBreakfast: from 7.50 €\\nSupplementary payment for pets: from 5 €.\\n\"},\"rates\":[{\"id\":8605788,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"values\":[{\"min\":55.0,\"max\":80.0,\"type\":1466,\"details\":{}},{\"min\":80.0,\"max\":125.0,\"type\":3877,\"details\":{\"fr\":\"chambre familiale\"}},{\"min\":50.0,\"max\":null,\"type\":1465,\"details\":{\"fr\":\"A partir de 50€\"}},{\"min\":7.5,\"max\":null,\"type\":1461,\"details\":{}},{\"min\":5.0,\"max\":null,\"type\":4080,\"details\":{}}]}],\"payment_methods\":[1268,1271],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"HOTAUV015V5022D5\"}}]}]"], ["location_data", "{\"address\":[\"Château de La Devèze\"],\"place\":null,\"latitude\":44.715026,\"longitude\":2.207737,\"access\":{},\"environments\":[135],\"territories\":[711392,742848,896166,908439]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc fr\",\"en\":\"short desc en\"},\"long_desc\":{\"fr\":\"long desc fr\",\"en\":\"long desc en\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Châtelleraie\",\"en\":\"La Châtelleraie\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2018-11-06 11:03:21.304000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme de la Châtaigneraie Cantalienne\",\"owner_id\":1333}"]]
1254
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1255
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1256
+ 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]]
1257
+  (0.1ms) ROLLBACK
1258
+  (0.1ms) BEGIN
1259
+ --------------------------------------------------------
1260
+ Apidae::FileImportTest: test_existing_selection_deletion
1261
+ --------------------------------------------------------
1262
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1263
+ Apidae::Project Destroy (0.3ms) DELETE FROM "apidae_projects"
1264
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections"
1265
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1266
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
1267
+  (0.1ms) SAVEPOINT active_record_1
1268
+ 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]]
1269
+ Apidae::Project Create (0.4ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:16:57.748990"], ["updated_at", "2020-05-20 09:16:57.748990"]]
1270
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1271
+  (0.1ms) SAVEPOINT active_record_1
1272
+ Apidae::Selection Create (0.5ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:16:57.752014"], ["updated_at", "2020-05-20 09:16:57.752014"], ["apidae_project_id", 39]]
1273
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1274
+  (0.4ms) SELECT COUNT(*) FROM "apidae_selections"
1275
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 39]]
1276
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
1277
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 39]]
1278
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1279
+  (0.1ms) ROLLBACK
1280
+  (0.1ms) BEGIN
1281
+ -----------------------------------------------------
1282
+ Apidae::FileImportTest: test_existing_object_deletion
1283
+ -----------------------------------------------------
1284
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1285
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1286
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1287
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
1288
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1289
+  (0.2ms) SAVEPOINT active_record_1
1290
+ Apidae::Obj Create (0.7ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["created_at", "2020-05-20 09:16:57.762196"], ["updated_at", "2020-05-20 09:16:57.762196"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
1291
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1292
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
1293
+  (0.2ms) SAVEPOINT active_record_1
1294
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 202]]
1295
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1296
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1297
+  (0.2ms) ROLLBACK
1298
+  (0.1ms) BEGIN
1299
+ ------------------------------------------------
1300
+ Apidae::FileImportTest: test_full_import_process
1301
+ ------------------------------------------------
1302
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1303
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
1304
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1305
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
1306
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1307
+  (0.1ms) SAVEPOINT active_record_1
1308
+ Apidae::Obj Create (0.3ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:16:57.773980"], ["updated_at", "2020-05-20 09:16:57.773980"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
1309
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1310
+  (0.3ms) SAVEPOINT active_record_1
1311
+ 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", "2020-05-20 09:16:57.776935"], ["updated_at", "2020-05-20 09:16:57.776935"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
1312
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1313
+ Apidae::Project Load (0.2ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
1314
+  (0.1ms) SAVEPOINT active_record_1
1315
+ 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]]
1316
+ Apidae::Project Create (0.7ms) INSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-05-20 09:16:57.782862"], ["updated_at", "2020-05-20 09:16:57.782862"]]
1317
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1318
+  (0.4ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
1319
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1320
+  (0.3ms) SAVEPOINT active_record_1
1321
+ Apidae::Reference Create (0.8ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-05-20 09:16:57.798293"], ["updated_at", "2020-05-20 09:16:57.798293"], ["meta_data", "{}"]]
1322
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1323
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1324
+  (0.2ms) SAVEPOINT active_record_1
1325
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2020-05-20 09:16:57.802089"], ["updated_at", "2020-05-20 09:16:57.802089"], ["meta_data", "{}"]]
1326
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1327
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1328
+  (0.2ms) SAVEPOINT active_record_1
1329
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2020-05-20 09:16:57.804435"], ["updated_at", "2020-05-20 09:16:57.804435"], ["meta_data", "{}"]]
1330
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1331
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
1332
+  (0.1ms) SAVEPOINT active_record_1
1333
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2020-05-20 09:16:57.806428"], ["updated_at", "2020-05-20 09:16:57.806428"], ["meta_data", "{}"]]
1334
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1335
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
1336
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
1337
+  (0.1ms) SAVEPOINT active_record_1
1338
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2020-05-20 09:16:57.809227"], ["updated_at", "2020-05-20 09:16:57.809227"]]
1339
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1340
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
1341
+  (0.1ms) SAVEPOINT active_record_1
1342
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-05-20 09:16:57.811263"], ["updated_at", "2020-05-20 09:16:57.811263"]]
1343
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1344
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
1345
+  (0.1ms) SAVEPOINT active_record_1
1346
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2020-05-20 09:16:57.813818"], ["updated_at", "2020-05-20 09:16:57.813818"]]
1347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1348
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
1349
+  (0.1ms) SAVEPOINT active_record_1
1350
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2020-05-20 09:16:57.815638"], ["updated_at", "2020-05-20 09:16:57.815638"]]
1351
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1352
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
1353
+  (0.2ms) SAVEPOINT active_record_1
1354
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-05-20 09:16:57.817725"], ["updated_at", "2020-05-20 09:16:57.817725"]]
1355
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1356
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
1357
+  (0.1ms) SAVEPOINT active_record_1
1358
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-05-20 09:16:57.820886"], ["updated_at", "2020-05-20 09:16:57.820886"]]
1359
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1360
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
1361
+  (0.1ms) SAVEPOINT active_record_1
1362
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2020-05-20 09:16:57.822759"], ["updated_at", "2020-05-20 09:16:57.822759"]]
1363
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1364
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
1365
+  (0.1ms) SAVEPOINT active_record_1
1366
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-05-20 09:16:57.824481"], ["updated_at", "2020-05-20 09:16:57.824481"]]
1367
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1368
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
1369
+  (0.1ms) SAVEPOINT active_record_1
1370
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2020-05-20 09:16:57.826584"], ["updated_at", "2020-05-20 09:16:57.826584"]]
1371
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1372
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
1373
+  (0.2ms) SAVEPOINT active_record_1
1374
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2020-05-20 09:16:57.829455"], ["updated_at", "2020-05-20 09:16:57.829455"]]
1375
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1376
+ Apidae::Reference Load (0.3ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
1377
+  (0.1ms) SAVEPOINT active_record_1
1378
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2020-05-20 09:16:57.832504"], ["updated_at", "2020-05-20 09:16:57.832504"]]
1379
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1380
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
1381
+  (0.1ms) SAVEPOINT active_record_1
1382
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2020-05-20 09:16:57.834962"], ["updated_at", "2020-05-20 09:16:57.834962"]]
1383
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1384
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
1385
+  (0.2ms) SAVEPOINT active_record_1
1386
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2020-05-20 09:16:57.837656"], ["updated_at", "2020-05-20 09:16:57.837656"]]
1387
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1388
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
1389
+  (0.1ms) SAVEPOINT active_record_1
1390
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2020-05-20 09:16:57.840267"], ["updated_at", "2020-05-20 09:16:57.840267"]]
1391
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1392
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
1393
+  (0.1ms) SAVEPOINT active_record_1
1394
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2020-05-20 09:16:57.842318"], ["updated_at", "2020-05-20 09:16:57.842318"]]
1395
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1396
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
1397
+  (0.1ms) SAVEPOINT active_record_1
1398
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2020-05-20 09:16:57.844075"], ["updated_at", "2020-05-20 09:16:57.844075"]]
1399
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1400
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
1401
+  (0.1ms) SAVEPOINT active_record_1
1402
+ Apidae::Reference Create (0.4ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2020-05-20 09:16:57.846177"], ["updated_at", "2020-05-20 09:16:57.846177"]]
1403
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1404
+  (0.4ms) SELECT COUNT(*) FROM "apidae_references"
1405
+ Completed 21 references update
1406
+  (0.4ms) SELECT COUNT(*) FROM "apidae_towns"
1407
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
1408
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
1409
+  (0.1ms) SAVEPOINT active_record_1
1410
+ Apidae::Town Create (3.2ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["insee_code", "01001"], ["name", "L'Abergement-Clémenciat"], ["postal_code", "01400"], ["created_at", "2020-05-20 09:16:57.859316"], ["updated_at", "2020-05-20 09:16:57.859316"]]
1411
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1412
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
1413
+  (0.1ms) SAVEPOINT active_record_1
1414
+ Apidae::Town Create (0.3ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["insee_code", "01002"], ["name", "L'Abergement-de-Varey"], ["postal_code", "01640"], ["created_at", "2020-05-20 09:16:57.864617"], ["updated_at", "2020-05-20 09:16:57.864617"]]
1415
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1416
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
1417
+  (0.1ms) SAVEPOINT active_record_1
1418
+ Apidae::Town Create (0.2ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2020-05-20 09:16:57.866258"], ["updated_at", "2020-05-20 09:16:57.866258"]]
1419
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1420
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
1421
+  (0.1ms) SAVEPOINT active_record_1
1422
+ Apidae::Town Update (0.3ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-05-20 09:16:57.868186"], ["id", 28]]
1423
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1424
+  (0.3ms) SELECT COUNT(*) FROM "apidae_towns"
1425
+ Completed 3 towns update
1426
+ Processing file : communes.json
1427
+ Processing file : elements_reference.json
1428
+ Processing file : objets_modifies/objets_modifies-2.json
1429
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
1430
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
1431
+  (0.1ms) SAVEPOINT active_record_1
1432
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "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", "{}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 4 novembre à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 09:16:57.872547"], ["updated_at", "2020-05-20 09:16:57.872547"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":80314,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Tarif unique : 5 €.\"},\"rates\":[{\"id\":8307032,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"values\":[{\"min\":5.0,\"max\":null,\"type\":4123,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1284,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[542,2060,9580]}"], ["location_data", "{\"address\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"],\"place\":\"La Traverse\",\"latitude\":45.645852,\"longitude\":5.865084,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\\r\\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque.\"},\"long_desc\":{\"fr\":\"Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\\r\\n\\r\\nUn spectacle qui ravira petits et grands.\\r\\n\\r\\nCompagnie du Fil à retordre\\r\\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Les Spécimens - Spectacle familial\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[]}"], ["version", "STANDARD"], ["last_update", "2017-09-21 09:51:57.288000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
1433
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1434
+ Processing file : objets_modifies/objets_modifies-1.json
1435
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
1436
+ Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
1437
+  (0.2ms) SAVEPOINT active_record_1
1438
+ Apidae::Obj Create (0.5ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "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", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Mardi 7 novembre 2017 de 7h à 19h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924098,\"dateDebut\":\"2017-11-07\",\"dateFin\":\"2017-11-07\",\"horaireOuverture\":\"07:00:00\",\"horaireFermeture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 09:16:57.880393"], ["updated_at", "2020-05-20 09:16:57.880393"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"access\":{},\"environments\":[173]}"], ["description_data", "{\"short_desc\":{\"fr\":\"Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé.\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"3C-Centre de Coordination en Cancerologie\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:27:36.711000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
1439
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1440
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826186], ["LIMIT", 1]]
1441
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
1442
+  (0.1ms) SAVEPOINT active_record_1
1443
+ Apidae::Obj Update (1.2ms) UPDATE "apidae_objs" SET "last_update" = $1, "owner_data" = $2, "apidae_type" = $3, "apidae_subtype" = $4, "title_data" = $5, "description_data" = $6, "contact" = $7, "location_data" = $8, "openings_data" = $9, "rates_data" = $10, "booking_data" = $11, "type_data" = $12, "pictures_data" = $13, "attachments_data" = $14, "entity_data" = $15, "service_data" = $16, "tags_data" = $17, "updated_at" = $18 WHERE "apidae_objs"."id" = $19 [["last_update", "2017-09-14 09:17:06.836000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["contact", "{\"website\":[\"https://www.acielouvert.org\"]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"access\":{}}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du samedi 11 au lundi 13 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["type_data", "{\"categories\":[2084],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["pictures_data", "{\"pictures\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["updated_at", "2020-05-20 09:16:57.886714"], ["id", 204]]
1444
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1445
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826282], ["LIMIT", 1]]
1446
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
1447
+  (0.1ms) SAVEPOINT active_record_1
1448
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "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", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[570],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 18 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[416]}"], ["created_at", "2020-05-20 09:16:57.892548"], ["updated_at", "2020-05-20 09:16:57.892548"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Remise des diplômes POLYTECH Annecy-Chambery\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:29:13.914000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
1449
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1450
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4828422], ["LIMIT", 1]]
1451
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
1452
+  (0.1ms) SAVEPOINT active_record_1
1453
+ Apidae::Obj Create (0.9ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact", "{}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[2064,2257],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":13951267,\"dateDebut\":\"2018-04-19\",\"dateFin\":\"2018-04-19\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951269,\"dateDebut\":\"2018-04-20\",\"dateFin\":\"2018-04-20\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951275,\"dateDebut\":\"2018-04-21\",\"dateFin\":\"2018-04-21\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951278,\"dateDebut\":\"2018-04-22\",\"dateFin\":\"2018-04-22\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951279,\"dateDebut\":\"2018-04-24\",\"dateFin\":\"2018-04-24\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951282,\"dateDebut\":\"2018-04-25\",\"dateFin\":\"2018-04-25\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951286,\"dateDebut\":\"2018-04-27\",\"dateFin\":\"2018-04-27\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951289,\"dateDebut\":\"2018-04-28\",\"dateFin\":\"2018-04-28\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951291,\"dateDebut\":\"2018-04-29\",\"dateFin\":\"2018-04-29\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951292,\"dateDebut\":\"2018-04-30\",\"dateFin\":\"2018-04-30\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951297,\"dateDebut\":\"2018-05-02\",\"dateFin\":\"2018-05-02\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951298,\"dateDebut\":\"2018-05-03\",\"dateFin\":\"2018-05-03\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951300,\"dateDebut\":\"2018-05-05\",\"dateFin\":\"2018-05-05\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951303,\"dateDebut\":\"2018-05-06\",\"dateFin\":\"2018-05-06\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951307,\"dateDebut\":\"2018-05-07\",\"dateFin\":\"2018-05-07\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951309,\"dateDebut\":\"2018-05-08\",\"dateFin\":\"2018-05-08\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13951311,\"dateDebut\":\"2018-05-10\",\"dateFin\":\"2018-05-10\",\"horaireOuverture\":\"19:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968615,\"dateDebut\":\"2018-05-11\",\"dateFin\":\"2018-05-11\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968617,\"dateDebut\":\"2018-05-12\",\"dateFin\":\"2018-05-12\",\"horaireOuverture\":\"20:30:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false},{\"identifiant\":13968619,\"dateDebut\":\"2018-05-13\",\"dateFin\":\"2018-05-13\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}],\"time_periods\":[436]}"], ["created_at", "2020-05-20 09:16:57.898495"], ["updated_at", "2020-05-20 09:16:57.898495"], ["pictures_data", "{\"pictures\":{}}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse).\"},\"rates\":[{\"id\":8306899,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-05-13\",\"values\":[{\"min\":15.0,\"max\":32.0,\"type\":5240,\"details\":{\"fr\":\"abonnés Espace Malraux, Bonlieu, La Traverse\"}},{\"min\":39.0,\"max\":null,\"type\":5239,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1286],\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060,6588,6769,542,9580]}"], ["location_data", "{\"address\":[],\"place\":\"La Croix verte\",\"latitude\":45.644668,\"longitude\":5.867981,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Conception et mise en scène de Bartabas.\\r\\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture.\"},\"long_desc\":{\"fr\":\"On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Ex Anima - Théâtre équestre Zingaro\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":null}"], ["version", "STANDARD"], ["last_update", "2017-10-06 09:50:00.352000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
1454
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1455
+ Processing file : criteres_internes.json
1456
+ Processing file : selections.json
1457
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 40]]
1458
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
1459
+ Updating selection 49063
1460
+ 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]]
1461
+  (0.1ms) SAVEPOINT active_record_1
1462
+ Apidae::Selection Create (0.3ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-05-20 09:16:57.908200"], ["updated_at", "2020-05-20 09:16:57.908200"], ["apidae_project_id", 40]]
1463
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1464
+ 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", 49]]
1465
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826137], ["LIMIT", 1]]
1466
+  (0.2ms) SAVEPOINT active_record_1
1467
+ 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", 49], ["apidae_object_id", 206], ["created_at", "2020-05-20 09:16:57.912198"], ["updated_at", "2020-05-20 09:16:57.912198"]]
1468
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1469
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826282], ["LIMIT", 1]]
1470
+  (0.1ms) SAVEPOINT active_record_1
1471
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 49], ["apidae_object_id", 207], ["created_at", "2020-05-20 09:16:57.914615"], ["updated_at", "2020-05-20 09:16:57.914615"]]
1472
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1473
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
1474
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 49]]
1475
+ Updating selection 49073
1476
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2 [["apidae_id", 49073], ["LIMIT", 1]]
1477
+  (0.1ms) SAVEPOINT active_record_1
1478
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49073], ["created_at", "2020-05-20 09:16:57.917804"], ["updated_at", "2020-05-20 09:16:57.917804"], ["apidae_project_id", 40]]
1479
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1480
+ Apidae::Obj Load (0.4ms) SELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 50]]
1481
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4826186], ["LIMIT", 1]]
1482
+  (0.1ms) SAVEPOINT active_record_1
1483
+ 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", 50], ["apidae_object_id", 204], ["created_at", "2020-05-20 09:16:57.922070"], ["updated_at", "2020-05-20 09:16:57.922070"]]
1484
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1485
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4828422], ["LIMIT", 1]]
1486
+  (0.1ms) SAVEPOINT active_record_1
1487
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 50], ["apidae_object_id", 208], ["created_at", "2020-05-20 09:16:57.924080"], ["updated_at", "2020-05-20 09:16:57.924080"]]
1488
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1489
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4833997], ["LIMIT", 1]]
1490
+  (0.1ms) SAVEPOINT active_record_1
1491
+ Apidae::SelectionObject Create (0.2ms) INSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_selection_id", 50], ["apidae_object_id", 205], ["created_at", "2020-05-20 09:16:57.926118"], ["updated_at", "2020-05-20 09:16:57.926118"]]
1492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1493
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
1494
+ Apidae::SelectionObject Destroy (0.3ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 50]]
1495
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 40]]
1496
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 49]]
1497
+  (0.4ms) SELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1 [["apidae_selection_id", 50]]
1498
+ Processing file : objets_supprimes.json
1499
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
1500
+  (0.1ms) SAVEPOINT active_record_1
1501
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 203]]
1502
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1503
+  (0.1ms) SAVEPOINT active_record_1
1504
+ Apidae::FileImport Create (0.4ms) INSERT INTO "apidae_file_imports" ("status", "remote_file", "created", "updated", "deleted", "created_at", "updated_at", "apidae_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["status", "complete"], ["remote_file", "test/data/json_export.zip"], ["created", 4], ["updated", 1], ["deleted", 1], ["created_at", "2020-05-20 09:16:57.943256"], ["updated_at", "2020-05-20 09:16:57.943256"], ["apidae_id", 123]]
1505
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1506
+ 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}]}
1507
+  (0.3ms) SELECT COUNT(*) FROM "apidae_projects"
1508
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1509
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1510
+  (0.1ms) ROLLBACK
1511
+  (0.1ms) BEGIN
1512
+ ---------------------------------------------------------------
1513
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
1514
+ ---------------------------------------------------------------
1515
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1516
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
1517
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
1518
+ Apidae::Town Destroy (0.3ms) DELETE FROM "apidae_towns"
1519
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
1520
+ 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]]
1521
+ Apidae::Town Load (0.7ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
1522
+  (0.2ms) SAVEPOINT active_record_1
1523
+ Apidae::Obj Create (0.6ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact", "{\"telephone\":[\"06 16 51 83 85\"],\"email\":[\"traineauxetchiens@orange.fr\"]}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"identifiant\":14321586,\"dateDebut\":\"2017-01-01\",\"dateFin\":\"2017-12-31\",\"complementHoraire\":{\"libelleFr\":\"Sur réservation.\"},\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true,\"identifiantTechnique\":14800708}],\"time_periods\":[416,418,435,436]}"], ["created_at", "2020-05-20 09:16:57.954538"], ["updated_at", "2020-05-20 09:16:57.954538"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":null}]}}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_desc\":{},\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
1524
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1525
+ 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", 209], ["version", "HIVER"], ["LIMIT", 1]]
1526
+  (0.1ms) SAVEPOINT active_record_1
1527
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact", "type_data", "created_at", "updated_at", "pictures_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact", "{}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"products\":[],\"audience\":[],\"animals\":false,\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":null}"], ["created_at", "2020-05-20 09:16:57.962064"], ["updated_at", "2020-05-20 09:16:57.962064"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":null}]}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["version", "HIVER"], ["root_obj_id", 209], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
1528
+  (0.2ms) RELEASE SAVEPOINT active_record_1
1529
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
1530
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs"
1531
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 4838849], ["LIMIT", 1]]
1532
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3 [["root_obj_id", 209], ["version", "HIVER"], ["LIMIT", 1]]
1533
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 209], ["LIMIT", 1]]
1534
+  (0.2ms) ROLLBACK