apidae 0.9.23 → 0.9.24

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8dee48fd2b8808b2229b97a48aa7f33905168161
4
- data.tar.gz: b46567843cb53f55b2b8679c72b4c2b70fd0632b
3
+ metadata.gz: d98e31c208ca7e2278f0935d90244af260530c85
4
+ data.tar.gz: 58863aba8887f50cce542c583e2a16ac528e34aa
5
5
  SHA512:
6
- metadata.gz: 62cb9107e29bf2aba9dc240023a22615d371850bb88a732d9bf97d9728ab053c2acf65e9b1d0a5fca64c52d90516b1c8d5c2cc4707f9471525b4af2bd1ce341d
7
- data.tar.gz: 29e0fd0106e606d88953c92521800b39d8a37ccc485cd543bc025ce2e1af1b970baea77db586bac619d16254d7797785b7f2ff2e9df33d9f227db0255fc0ee1e
6
+ metadata.gz: a654464adc2fa6f764c67f2d8f4e2d27b4ce3b5057e410d6c3834258ffca4e4f7843b90a395da213a77372796f9067afa6b67abbdb4854809cde3a658352215f
7
+ data.tar.gz: a8d36d009139a90d5b13ecdec5f3a3b7b31a36d18de74984c02398c40d664321c912faa5bb021d7e3c9c44105bbd76c980a489c8f1b67bbafc4e1ad5e2a7d732
@@ -39,11 +39,13 @@ module Apidae
39
39
  field_hash = self.send(:"#{f}_hash") || {}
40
40
  unless @obj_version == DEFAULT_VERSION
41
41
  versioned_obj = in_version(@obj_version)
42
- versioned_hash = versioned_obj ? (versioned_obj.send(:"#{f}_hash") || {}) : {}
43
- if versioned_obj.versioned_fields.include?(f.to_s)
44
- field_hash = versioned_hash
45
- else
46
- field_hash.deep_merge!(versioned_hash)
42
+ if versioned_obj
43
+ versioned_hash = versioned_obj.send(:"#{f}_hash") || {}
44
+ if versioned_obj.versioned_fields.include?(f.to_s)
45
+ field_hash = versioned_hash
46
+ else
47
+ field_hash.deep_merge!(versioned_hash)
48
+ end
47
49
  end
48
50
  end
49
51
  field_hash[@locale] || field_hash[DEFAULT_LOCALE]
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "0.9.23"
2
+ VERSION = "0.9.24"
3
3
  end
@@ -362883,3 +362883,487 @@ Apidae::FileImportTest: test_new_object_insertion_with_locales
362883
362883
   (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
362884
362884
  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]]
362885
362885
   (0.1ms) ROLLBACK
362886
+  (0.8ms) SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
362887
+  (0.2ms) BEGIN
362888
+ -----------------------------------------------------------------------------------
362889
+ Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
362890
+ -----------------------------------------------------------------------------------
362891
+ Apidae::Obj Destroy (25.9ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
362892
+ Apidae::Project Destroy (0.5ms) DELETE FROM "apidae_projects"
362893
+ Apidae::Selection Destroy (7.4ms) DELETE FROM "apidae_selections"
362894
+ Apidae::Town Destroy (11.2ms) DELETE FROM "apidae_towns"
362895
+ Apidae::Reference Destroy (1.0ms) DELETE FROM "apidae_references"
362896
+ Apidae::Obj Load (6.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]]
362897
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
362898
+  (6.1ms) SAVEPOINT active_record_1
362899
+ Apidae::Obj Create (20.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-03-13 08:44:34.855688"], ["updated_at", "2020-03-13 08:44:34.855688"], ["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},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":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}"]]
362900
+  (0.5ms) RELEASE SAVEPOINT active_record_1
362901
+ 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", 119], ["version", "HIVER"], ["LIMIT", 1]]
362902
+  (0.1ms) SAVEPOINT active_record_1
362903
+ 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-03-13 08:44:34.886244"], ["updated_at", "2020-03-13 08:44:34.886244"], ["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\":\"\"},{\"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\":\"\"},{\"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\":\"\"}]}}"], ["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", 119], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
362904
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362905
+  (0.7ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
362906
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
362907
+ 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]]
362908
+ 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", 119], ["version", "HIVER"], ["LIMIT", 1]]
362909
+  (5.4ms) ROLLBACK
362910
+  (0.1ms) BEGIN
362911
+ ---------------------------------------------------------------
362912
+ Apidae::FileImportTest: test_new_object_insertion_with_versions
362913
+ ---------------------------------------------------------------
362914
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
362915
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
362916
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
362917
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
362918
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
362919
+ 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]]
362920
+ Apidae::Town Load (0.4ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
362921
+  (0.1ms) SAVEPOINT active_record_1
362922
+ 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-03-13 08:44:34.908401"], ["updated_at", "2020-03-13 08:44:34.908401"], ["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},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":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}"]]
362923
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362924
+ 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", 121], ["version", "HIVER"], ["LIMIT", 1]]
362925
+  (0.1ms) SAVEPOINT active_record_1
362926
+ 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-03-13 08:44:34.915029"], ["updated_at", "2020-03-13 08:44:34.915029"], ["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\":\"\"},{\"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\":\"\"},{\"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\":\"\"}]}}"], ["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", 121], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
362927
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362928
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
362929
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
362930
+ 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]]
362931
+ 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", 121], ["version", "HIVER"], ["LIMIT", 1]]
362932
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2 [["id", 121], ["LIMIT", 1]]
362933
+ 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", 121], ["version", "HIVER"], ["LIMIT", 1]]
362934
+  (0.1ms) ROLLBACK
362935
+  (0.1ms) BEGIN
362936
+ ------------------------------------------------
362937
+ Apidae::FileImportTest: test_full_import_process
362938
+ ------------------------------------------------
362939
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
362940
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
362941
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
362942
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
362943
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
362944
+  (0.1ms) SAVEPOINT active_record_1
362945
+ Apidae::Obj Create (0.4ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["created_at", "2020-03-13 08:44:34.929555"], ["updated_at", "2020-03-13 08:44:34.929555"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
362946
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362947
+  (0.1ms) SAVEPOINT active_record_1
362948
+ Apidae::Obj Create (0.2ms) INSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["created_at", "2020-03-13 08:44:34.932061"], ["updated_at", "2020-03-13 08:44:34.932061"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
362949
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362950
+ Apidae::Project Load (0.3ms) SELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2 [["apidae_id", 123], ["LIMIT", 1]]
362951
+  (0.2ms) SAVEPOINT active_record_1
362952
+ 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]]
362953
+ 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-03-13 08:44:34.947357"], ["updated_at", "2020-03-13 08:44:34.947357"]]
362954
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362955
+  (0.3ms) SELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')
362956
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
362957
+  (0.2ms) SAVEPOINT active_record_1
362958
+ Apidae::Reference Create (0.6ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2020-03-13 08:44:34.961394"], ["updated_at", "2020-03-13 08:44:34.961394"], ["meta_data", "{}"]]
362959
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362960
+ 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]]
362961
+  (0.1ms) SAVEPOINT active_record_1
362962
+ 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-03-13 08:44:34.965183"], ["updated_at", "2020-03-13 08:44:34.965183"], ["meta_data", "{}"]]
362963
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362964
+ 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]]
362965
+  (0.1ms) SAVEPOINT active_record_1
362966
+ 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-03-13 08:44:34.967428"], ["updated_at", "2020-03-13 08:44:34.967428"], ["meta_data", "{}"]]
362967
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362968
+ 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", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
362969
+  (0.1ms) SAVEPOINT active_record_1
362970
+ Apidae::Reference Create (0.4ms) 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-03-13 08:44:34.971120"], ["updated_at", "2020-03-13 08:44:34.971120"], ["meta_data", "{}"]]
362971
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362972
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "internal"]]
362973
+ 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]]
362974
+  (0.1ms) SAVEPOINT active_record_1
362975
+ 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-03-13 08:44:34.976620"], ["updated_at", "2020-03-13 08:44:34.976620"]]
362976
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362977
+ 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]]
362978
+  (0.1ms) SAVEPOINT active_record_1
362979
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2020-03-13 08:44:34.978939"], ["updated_at", "2020-03-13 08:44:34.978939"]]
362980
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362981
+ 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]]
362982
+  (0.1ms) SAVEPOINT active_record_1
362983
+ 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-03-13 08:44:34.982473"], ["updated_at", "2020-03-13 08:44:34.982473"]]
362984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362985
+ 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]]
362986
+  (0.3ms) SAVEPOINT active_record_1
362987
+ 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-03-13 08:44:34.986576"], ["updated_at", "2020-03-13 08:44:34.986576"]]
362988
+  (0.2ms) RELEASE SAVEPOINT active_record_1
362989
+ 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", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
362990
+  (0.2ms) SAVEPOINT active_record_1
362991
+ Apidae::Reference Create (0.3ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2020-03-13 08:44:34.990933"], ["updated_at", "2020-03-13 08:44:34.990933"]]
362992
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362993
+ 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]]
362994
+  (0.1ms) SAVEPOINT active_record_1
362995
+ Apidae::Reference Create (0.2ms) INSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2020-03-13 08:44:34.995399"], ["updated_at", "2020-03-13 08:44:34.995399"]]
362996
+  (0.1ms) RELEASE SAVEPOINT active_record_1
362997
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
362998
+  (0.1ms) SAVEPOINT active_record_1
362999
+ 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-03-13 08:44:34.998168"], ["updated_at", "2020-03-13 08:44:34.998168"]]
363000
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363001
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
363002
+  (0.1ms) SAVEPOINT active_record_1
363003
+ 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", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2020-03-13 08:44:35.000595"], ["updated_at", "2020-03-13 08:44:35.000595"]]
363004
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363005
+ 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]]
363006
+  (0.1ms) SAVEPOINT active_record_1
363007
+ 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-03-13 08:44:35.003753"], ["updated_at", "2020-03-13 08:44:35.003753"]]
363008
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363009
+ 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]]
363010
+  (0.1ms) SAVEPOINT active_record_1
363011
+ 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-03-13 08:44:35.005940"], ["updated_at", "2020-03-13 08:44:35.005940"]]
363012
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363013
+ Apidae::Reference Load (0.1ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3 [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
363014
+  (0.1ms) SAVEPOINT active_record_1
363015
+ 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-03-13 08:44:35.008667"], ["updated_at", "2020-03-13 08:44:35.008667"]]
363016
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363017
+ 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]]
363018
+  (0.1ms) SAVEPOINT active_record_1
363019
+ 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-03-13 08:44:35.010645"], ["updated_at", "2020-03-13 08:44:35.010645"]]
363020
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363021
+ 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]]
363022
+  (0.1ms) SAVEPOINT active_record_1
363023
+ 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-03-13 08:44:35.012874"], ["updated_at", "2020-03-13 08:44:35.012874"]]
363024
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363025
+ 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]]
363026
+  (0.1ms) SAVEPOINT active_record_1
363027
+ 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-03-13 08:44:35.015735"], ["updated_at", "2020-03-13 08:44:35.015735"]]
363028
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363029
+ 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]]
363030
+  (0.1ms) SAVEPOINT active_record_1
363031
+ 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-03-13 08:44:35.018277"], ["updated_at", "2020-03-13 08:44:35.018277"]]
363032
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363033
+ 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]]
363034
+  (0.1ms) SAVEPOINT active_record_1
363035
+ 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-03-13 08:44:35.020423"], ["updated_at", "2020-03-13 08:44:35.020423"]]
363036
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363037
+ 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]]
363038
+  (0.1ms) SAVEPOINT active_record_1
363039
+ 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-03-13 08:44:35.023061"], ["updated_at", "2020-03-13 08:44:35.023061"]]
363040
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363041
+  (0.2ms) SELECT COUNT(*) FROM "apidae_references"
363042
+ Completed 21 references update
363043
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
363044
+ Apidae::Reference Load (0.2ms) SELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1 [["apidae_type", "Pays"]]
363045
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 1], ["LIMIT", 1]]
363046
+  (0.1ms) SAVEPOINT active_record_1
363047
+ Apidae::Town Create (0.4ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 1], ["insee_code", "01001"], ["name", "L'Abergement-Clémenciat"], ["postal_code", "01400"], ["created_at", "2020-03-13 08:44:35.042682"], ["updated_at", "2020-03-13 08:44:35.042682"]]
363048
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363049
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 2], ["LIMIT", 1]]
363050
+  (0.1ms) SAVEPOINT active_record_1
363051
+ Apidae::Town Create (0.2ms) INSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["apidae_id", 2], ["insee_code", "01002"], ["name", "L'Abergement-de-Varey"], ["postal_code", "01640"], ["created_at", "2020-03-13 08:44:35.044746"], ["updated_at", "2020-03-13 08:44:35.044746"]]
363052
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363053
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 3], ["LIMIT", 1]]
363054
+  (0.1ms) SAVEPOINT active_record_1
363055
+ 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-03-13 08:44:35.046217"], ["updated_at", "2020-03-13 08:44:35.046217"]]
363056
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363057
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1 [["LIMIT", 1]]
363058
+  (0.1ms) SAVEPOINT active_record_1
363059
+ Apidae::Town Update (0.2ms) UPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2 [["updated_at", "2020-03-13 08:44:35.047822"], ["id", 19]]
363060
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363061
+  (0.2ms) SELECT COUNT(*) FROM "apidae_towns"
363062
+ Completed 3 towns update
363063
+ Processing file : communes.json
363064
+ Processing file : elements_reference.json
363065
+ Processing file : objets_modifies/objets_modifies-2.json
363066
+ 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]]
363067
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
363068
+  (0.1ms) SAVEPOINT active_record_1
363069
+ 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", "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-03-13 08:44:35.051863"], ["updated_at", "2020-03-13 08:44:35.051863"], ["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,\"from\":\"2017-11-04\",\"to\":\"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}"]]
363070
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363071
+ Processing file : objets_modifies/objets_modifies-1.json
363072
+ 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]]
363073
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
363074
+  (0.1ms) SAVEPOINT active_record_1
363075
+ 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-03-13 08:44:35.058357"], ["updated_at", "2020-03-13 08:44:35.058357"], ["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}"]]
363076
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363077
+ 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]]
363078
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
363079
+  (0.1ms) SAVEPOINT active_record_1
363080
+ 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-03-13 08:44:35.064080"], ["id", 124]]
363081
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363082
+ 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]]
363083
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
363084
+  (0.1ms) SAVEPOINT active_record_1
363085
+ Apidae::Obj Create (0.3ms) 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-03-13 08:44:35.069000"], ["updated_at", "2020-03-13 08:44:35.069000"], ["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}"]]
363086
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363087
+ 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]]
363088
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30287], ["LIMIT", 1]]
363089
+  (0.1ms) SAVEPOINT active_record_1
363090
+ 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", "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-03-13 08:44:35.073545"], ["updated_at", "2020-03-13 08:44:35.073545"], ["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,\"from\":\"2018-04-19\",\"to\":\"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}"]]
363091
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363092
+ Processing file : criteres_internes.json
363093
+ Processing file : selections.json
363094
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 25]]
363095
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
363096
+ Updating selection 49063
363097
+ Apidae::Selection Load (0.1ms) 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]]
363098
+  (0.1ms) SAVEPOINT active_record_1
363099
+ Apidae::Selection Create (0.4ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-03-13 08:44:35.155340"], ["updated_at", "2020-03-13 08:44:35.155340"], ["apidae_project_id", 25]]
363100
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363101
+ 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", 31]]
363102
+ 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]]
363103
+  (0.1ms) SAVEPOINT active_record_1
363104
+ 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", 31], ["apidae_object_id", 126], ["created_at", "2020-03-13 08:44:35.185426"], ["updated_at", "2020-03-13 08:44:35.185426"]]
363105
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363106
+ 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]]
363107
+  (0.1ms) SAVEPOINT active_record_1
363108
+ 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", 31], ["apidae_object_id", 127], ["created_at", "2020-03-13 08:44:35.187873"], ["updated_at", "2020-03-13 08:44:35.187873"]]
363109
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363110
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
363111
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 31]]
363112
+ Updating selection 49073
363113
+ 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]]
363114
+  (0.1ms) SAVEPOINT active_record_1
363115
+ 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-03-13 08:44:35.191253"], ["updated_at", "2020-03-13 08:44:35.191253"], ["apidae_project_id", 25]]
363116
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363117
+ 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", 32]]
363118
+ 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]]
363119
+  (0.1ms) SAVEPOINT active_record_1
363120
+ 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", 32], ["apidae_object_id", 124], ["created_at", "2020-03-13 08:44:35.194871"], ["updated_at", "2020-03-13 08:44:35.194871"]]
363121
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363122
+ 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]]
363123
+  (0.1ms) SAVEPOINT active_record_1
363124
+ 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", 32], ["apidae_object_id", 128], ["created_at", "2020-03-13 08:44:35.197043"], ["updated_at", "2020-03-13 08:44:35.197043"]]
363125
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363126
+ 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]]
363127
+  (0.1ms) SAVEPOINT active_record_1
363128
+ 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", 32], ["apidae_object_id", 125], ["created_at", "2020-03-13 08:44:35.199121"], ["updated_at", "2020-03-13 08:44:35.199121"]]
363129
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363130
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
363131
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 32]]
363132
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 25]]
363133
+  (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", 31]]
363134
+  (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", 32]]
363135
+ Processing file : objets_supprimes.json
363136
+ 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", 123], ["LIMIT", 1]]
363137
+  (0.1ms) SAVEPOINT active_record_1
363138
+ Apidae::Obj Destroy (0.3ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 123]]
363139
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363140
+  (0.1ms) SAVEPOINT active_record_1
363141
+ Apidae::FileImport Create (0.9ms) INSERT INTO "apidae_file_imports" ("status", "remote_file", "created", "updated", "deleted", "created_at", "updated_at", "apidae_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id" [["status", "complete"], ["remote_file", "test/data/json_export.zip"], ["created", 4], ["updated", 1], ["deleted", 1], ["created_at", "2020-03-13 08:44:35.223784"], ["updated_at", "2020-03-13 08:44:35.223784"], ["apidae_id", 123]]
363142
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363143
+ 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}]}
363144
+  (0.2ms) SELECT COUNT(*) FROM "apidae_projects"
363145
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
363146
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363147
+  (0.2ms) ROLLBACK
363148
+  (0.1ms) BEGIN
363149
+ ------------------------------------------------------
363150
+ Apidae::FileImportTest: test_existing_selection_update
363151
+ ------------------------------------------------------
363152
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363153
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363154
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
363155
+ Apidae::Town Destroy (0.4ms) DELETE FROM "apidae_towns"
363156
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
363157
+  (0.1ms) SAVEPOINT active_record_1
363158
+ 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-03-13 08:44:35.232163"], ["updated_at", "2020-03-13 08:44:35.232163"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
363159
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363160
+  (0.1ms) SAVEPOINT active_record_1
363161
+ 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-03-13 08:44:35.233990"], ["updated_at", "2020-03-13 08:44:35.233990"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
363162
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363163
+  (0.1ms) SAVEPOINT active_record_1
363164
+ 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]]
363165
+ 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-03-13 08:44:35.236304"], ["updated_at", "2020-03-13 08:44:35.236304"]]
363166
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363167
+  (0.1ms) SAVEPOINT active_record_1
363168
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2020-03-13 08:44:35.238002"], ["updated_at", "2020-03-13 08:44:35.238002"], ["apidae_project_id", 26]]
363169
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363170
+  (0.1ms) SAVEPOINT active_record_1
363171
+ 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", 33], ["apidae_object_id", 129], ["created_at", "2020-03-13 08:44:35.240586"], ["updated_at", "2020-03-13 08:44:35.240586"]]
363172
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363173
+  (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", 33]]
363174
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 26]]
363175
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
363176
+ Updating selection 49063
363177
+ 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]]
363178
+  (0.1ms) SAVEPOINT active_record_1
363179
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363180
+ 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", 33]]
363181
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
363182
+  (0.1ms) SAVEPOINT active_record_1
363183
+ 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", 33], ["apidae_object_id", 130], ["created_at", "2020-03-13 08:44:35.247793"], ["updated_at", "2020-03-13 08:44:35.247793"]]
363184
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363185
+ Apidae::Obj Load (0.3ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
363186
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 33]]
363187
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 26]]
363188
+  (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", 33]]
363189
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
363190
+  (0.1ms) ROLLBACK
363191
+  (0.1ms) BEGIN
363192
+ -------------------------------------------------
363193
+ Apidae::FileImportTest: test_new_object_insertion
363194
+ -------------------------------------------------
363195
+ Apidae::Obj Destroy (0.4ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363196
+ Apidae::Project Destroy (0.2ms) DELETE FROM "apidae_projects"
363197
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
363198
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
363199
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
363200
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
363201
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
363202
+  (0.1ms) SAVEPOINT active_record_1
363203
+ 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", "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-03-13 08:44:35.258900"], ["updated_at", "2020-03-13 08:44:35.258900"], ["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}"]]
363204
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363205
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363206
+ 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]]
363207
+  (0.1ms) ROLLBACK
363208
+  (0.1ms) BEGIN
363209
+ ---------------------------------------------------------------------------
363210
+ Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
363211
+ ---------------------------------------------------------------------------
363212
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363213
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363214
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
363215
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
363216
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
363217
+ 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]]
363218
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5388], ["LIMIT", 1]]
363219
+  (0.2ms) SAVEPOINT active_record_1
363220
+ Apidae::Obj Create (6.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-03-13 08:44:35.269618"], ["updated_at", "2020-03-13 08:44:35.269618"], ["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},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":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}"]]
363221
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363222
+ 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", 132], ["version", "HIVER"], ["LIMIT", 1]]
363223
+  (0.1ms) SAVEPOINT active_record_1
363224
+ 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-03-13 08:44:35.286144"], ["updated_at", "2020-03-13 08:44:35.286144"], ["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\":\"\"},{\"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\":\"\"},{\"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\":\"\"}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\"}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\"}]}}"], ["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", 132], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
363225
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363226
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363227
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
363228
+ 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]]
363229
+ 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", 132], ["version", "HIVER"], ["LIMIT", 1]]
363230
+ 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", 132], ["LIMIT", 1]]
363231
+ 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", 132], ["version", "HIVER"], ["LIMIT", 1]]
363232
+ 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", 132], ["version", "HIVER"], ["LIMIT", 1]]
363233
+ 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", 132], ["version", "HIVER"], ["LIMIT", 1]]
363234
+  (0.1ms) ROLLBACK
363235
+  (0.1ms) BEGIN
363236
+ --------------------------------------------------------
363237
+ Apidae::FileImportTest: test_existing_selection_deletion
363238
+ --------------------------------------------------------
363239
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363240
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363241
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
363242
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
363243
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
363244
+  (0.1ms) SAVEPOINT active_record_1
363245
+ 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]]
363246
+ 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-03-13 08:44:35.300300"], ["updated_at", "2020-03-13 08:44:35.300300"]]
363247
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363248
+  (0.1ms) SAVEPOINT active_record_1
363249
+ Apidae::Selection Create (0.4ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2020-03-13 08:44:35.301871"], ["updated_at", "2020-03-13 08:44:35.301871"], ["apidae_project_id", 27]]
363250
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363251
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
363252
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 27]]
363253
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 [["apidae_id", 49063]]
363254
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 27]]
363255
+  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
363256
+  (0.1ms) ROLLBACK
363257
+  (0.1ms) BEGIN
363258
+ -----------------------------------------------------
363259
+ Apidae::FileImportTest: test_existing_object_deletion
363260
+ -----------------------------------------------------
363261
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363262
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363263
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
363264
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
363265
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
363266
+  (0.1ms) SAVEPOINT active_record_1
363267
+ 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-03-13 08:44:35.310605"], ["updated_at", "2020-03-13 08:44:35.310605"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
363268
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363269
+ 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]]
363270
+  (0.1ms) SAVEPOINT active_record_1
363271
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 [["id", 134]]
363272
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363273
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363274
+  (0.1ms) ROLLBACK
363275
+  (0.1ms) BEGIN
363276
+ ---------------------------------------------------
363277
+ Apidae::FileImportTest: test_existing_object_update
363278
+ ---------------------------------------------------
363279
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363280
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363281
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
363282
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
363283
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
363284
+  (0.1ms) SAVEPOINT active_record_1
363285
+ 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-03-13 08:44:35.319287"], ["updated_at", "2020-03-13 08:44:35.319287"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
363286
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363287
+ 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]]
363288
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 30248], ["LIMIT", 1]]
363289
+  (0.1ms) SAVEPOINT active_record_1
363290
+ Apidae::Obj Update (0.4ms) 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-03-13 08:44:35.324614"], ["id", 135]]
363291
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363292
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363293
+ 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]]
363294
+  (0.1ms) ROLLBACK
363295
+  (0.1ms) BEGIN
363296
+ ----------------------------------------------------
363297
+ Apidae::FileImportTest: test_new_selection_insertion
363298
+ ----------------------------------------------------
363299
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363300
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363301
+ Apidae::Selection Destroy (0.2ms) DELETE FROM "apidae_selections"
363302
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
363303
+ Apidae::Reference Destroy (0.2ms) DELETE FROM "apidae_references"
363304
+  (0.1ms) SAVEPOINT active_record_1
363305
+ 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-03-13 08:44:35.333043"], ["updated_at", "2020-03-13 08:44:35.333043"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
363306
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363307
+  (0.1ms) SAVEPOINT active_record_1
363308
+ 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]]
363309
+ 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-03-13 08:44:35.336101"], ["updated_at", "2020-03-13 08:44:35.336101"]]
363310
+  (0.3ms) RELEASE SAVEPOINT active_record_1
363311
+ Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 28]]
363312
+ Apidae::Selection Destroy (0.3ms) DELETE FROM "apidae_selections" WHERE 1=0
363313
+ Updating selection 49063
363314
+ 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]]
363315
+  (0.1ms) SAVEPOINT active_record_1
363316
+ Apidae::Selection Create (0.2ms) INSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2020-03-13 08:44:35.341845"], ["updated_at", "2020-03-13 08:44:35.341845"], ["apidae_project_id", 28]]
363317
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363318
+ 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", 35]]
363319
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 504], ["LIMIT", 1]]
363320
+  (0.1ms) SAVEPOINT active_record_1
363321
+ 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", 35], ["apidae_object_id", 136], ["created_at", "2020-03-13 08:44:35.345743"], ["updated_at", "2020-03-13 08:44:35.345743"]]
363322
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363323
+ Apidae::Obj Load (0.2ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0
363324
+ Apidae::SelectionObject Destroy (0.2ms) DELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0 [["apidae_selection_id", 35]]
363325
+ Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1 [["apidae_project_id", 28]]
363326
+  (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", 35]]
363327
+  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
363328
+ Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1 [["LIMIT", 1]]
363329
+  (0.1ms) ROLLBACK
363330
+  (0.1ms) BEGIN
363331
+ ------------------------------------------------------------------------------
363332
+ Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
363333
+ ------------------------------------------------------------------------------
363334
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363335
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363336
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
363337
+ Apidae::Town Destroy (0.2ms) DELETE FROM "apidae_towns"
363338
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
363339
+ 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]]
363340
+ Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 14939], ["LIMIT", 1]]
363341
+  (0.1ms) SAVEPOINT active_record_1
363342
+ Apidae::Obj Create (7.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-03-13 08:44:35.358765"], ["updated_at", "2020-03-13 08:44:35.358765"], ["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\"},{\"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\"},{\"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\"}]}}"], ["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,\"from\":\"2020-05-01\",\"to\":\"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}"]]
363343
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363344
+ 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", 137], ["version", "GROUPES"], ["LIMIT", 1]]
363345
+  (0.2ms) SAVEPOINT active_record_1
363346
+ 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-03-13 08:44:35.385077"], ["updated_at", "2020-03-13 08:44:35.385077"], ["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\"},{\"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\"},{\"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\"}]}}"], ["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,\"from\":\"2020-05-01\",\"to\":\"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", 137], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"openings_desc_mode\",\"short_desc\"]}"]]
363347
+  (0.1ms) RELEASE SAVEPOINT active_record_1
363348
+  (0.3ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363349
+  (0.2ms) SELECT COUNT(*) FROM "apidae_objs"
363350
+ 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]]
363351
+ 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", 137], ["version", "GROUPES"], ["LIMIT", 1]]
363352
+  (0.1ms) ROLLBACK
363353
+  (0.1ms) BEGIN
363354
+ --------------------------------------------------------------
363355
+ Apidae::FileImportTest: test_new_object_insertion_with_locales
363356
+ --------------------------------------------------------------
363357
+ Apidae::Obj Destroy (0.2ms) DELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363358
+ Apidae::Project Destroy (0.1ms) DELETE FROM "apidae_projects"
363359
+ Apidae::Selection Destroy (0.1ms) DELETE FROM "apidae_selections"
363360
+ Apidae::Town Destroy (0.1ms) DELETE FROM "apidae_towns"
363361
+ Apidae::Reference Destroy (0.1ms) DELETE FROM "apidae_references"
363362
+ Apidae::Obj Load (0.1ms) SELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2 [["apidae_id", 898922], ["LIMIT", 1]]
363363
+ Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2 [["apidae_id", 5430], ["LIMIT", 1]]
363364
+  (0.1ms) SAVEPOINT active_record_1
363365
+ Apidae::Obj Create (1.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", 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-03-13 08:44:35.398815"], ["updated_at", "2020-03-13 08:44:35.398815"], ["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\"},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":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,\"from\":\"2018-04-01\",\"to\":\"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}"]]
363366
+  (0.2ms) RELEASE SAVEPOINT active_record_1
363367
+  (0.5ms) SELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL
363368
+ 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]]
363369
+  (0.2ms) ROLLBACK
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apidae
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.23
4
+ version: 0.9.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-12 00:00:00.000000000 Z
11
+ date: 2020-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails