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 +4 -4
- data/app/models/apidae/obj.rb +7 -5
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/test.log +484 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d98e31c208ca7e2278f0935d90244af260530c85
|
4
|
+
data.tar.gz: 58863aba8887f50cce542c583e2a16ac528e34aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a654464adc2fa6f764c67f2d8f4e2d27b4ce3b5057e410d6c3834258ffca4e4f7843b90a395da213a77372796f9067afa6b67abbdb4854809cde3a658352215f
|
7
|
+
data.tar.gz: a8d36d009139a90d5b13ecdec5f3a3b7b31a36d18de74984c02398c40d664321c912faa5bb021d7e3c9c44105bbd76c980a489c8f1b67bbafc4e1ad5e2a7d732
|
data/app/models/apidae/obj.rb
CHANGED
@@ -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
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
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]
|
data/lib/apidae/version.rb
CHANGED
data/test/dummy/log/test.log
CHANGED
@@ -362883,3 +362883,487 @@ Apidae::FileImportTest: test_new_object_insertion_with_locales
|
|
362883
362883
|
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
362884
362884
|
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
362885
362885
|
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
362886
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
362887
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
362888
|
+
-----------------------------------------------------------------------------------
|
362889
|
+
Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
|
362890
|
+
-----------------------------------------------------------------------------------
|
362891
|
+
[1m[36mApidae::Obj Destroy (25.9ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
362892
|
+
[1m[36mApidae::Project Destroy (0.5ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
362893
|
+
[1m[36mApidae::Selection Destroy (7.4ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
362894
|
+
[1m[36mApidae::Town Destroy (11.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
362895
|
+
[1m[36mApidae::Reference Destroy (1.0ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
362896
|
+
[1m[36mApidae::Obj Load (6.9ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
362897
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5388], ["LIMIT", 1]]
|
362898
|
+
[1m[35m (6.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362899
|
+
[1m[36mApidae::Obj Create (20.6ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.5ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362901
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 119], ["version", "HIVER"], ["LIMIT", 1]]
|
362902
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362903
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362905
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
362906
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
362907
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
362908
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 119], ["version", "HIVER"], ["LIMIT", 1]]
|
362909
|
+
[1m[35m (5.4ms)[0m [1m[31mROLLBACK[0m
|
362910
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
362911
|
+
---------------------------------------------------------------
|
362912
|
+
Apidae::FileImportTest: test_new_object_insertion_with_versions
|
362913
|
+
---------------------------------------------------------------
|
362914
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
362915
|
+
[1m[36mApidae::Project Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
362916
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
362917
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
362918
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
362919
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
362920
|
+
[1m[36mApidae::Town Load (0.4ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5388], ["LIMIT", 1]]
|
362921
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362922
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362924
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 121], ["version", "HIVER"], ["LIMIT", 1]]
|
362925
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362926
|
+
[1m[36mApidae::Obj Create (0.3ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362928
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
362929
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
362930
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
362931
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 121], ["version", "HIVER"], ["LIMIT", 1]]
|
362932
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2[0m [["id", 121], ["LIMIT", 1]]
|
362933
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 121], ["version", "HIVER"], ["LIMIT", 1]]
|
362934
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
362935
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
362936
|
+
------------------------------------------------
|
362937
|
+
Apidae::FileImportTest: test_full_import_process
|
362938
|
+
------------------------------------------------
|
362939
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
362940
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
362941
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
362942
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
362943
|
+
[1m[36mApidae::Reference Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
362944
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362945
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362947
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362948
|
+
[1m[36mApidae::Obj Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362950
|
+
[1m[36mApidae::Project Load (0.3ms)[0m [1m[34mSELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
362951
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362952
|
+
[1m[36mApidae::Project Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
362953
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2020-03-13 08:44:34.947357"], ["updated_at", "2020-03-13 08:44:34.947357"]]
|
362954
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362955
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_references" WHERE (apidae_type != 'internal')[0m
|
362956
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
362957
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362958
|
+
[1m[36mApidae::Reference Create (0.6ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362960
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
362961
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362962
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362964
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
362965
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362966
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362968
|
+
[1m[36mApidae::Reference Load (0.4ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
362969
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362970
|
+
[1m[36mApidae::Reference Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362972
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1[0m [["apidae_type", "internal"]]
|
362973
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
|
362974
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362975
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362977
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
|
362978
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362979
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362981
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
|
362982
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362983
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362985
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
|
362986
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362987
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362989
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
|
362990
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362991
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362993
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
|
362994
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362995
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
362997
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
|
362998
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
362999
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363001
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363002
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363003
|
+
[1m[36mApidae::Reference Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363005
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363006
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363007
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363009
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363010
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363011
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363013
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363014
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363015
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363017
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363018
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363019
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363021
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363022
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363023
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363025
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363026
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363027
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363029
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363030
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363031
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363033
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363034
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363035
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363037
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_id" = $1 AND "apidae_references"."apidae_type" = $2 LIMIT $3[0m [["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
|
363038
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363039
|
+
[1m[36mApidae::Reference Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363041
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_references"[0m
|
363042
|
+
Completed 21 references update
|
363043
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_towns"[0m
|
363044
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."apidae_type" = $1[0m [["apidae_type", "Pays"]]
|
363045
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 1], ["LIMIT", 1]]
|
363046
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363047
|
+
[1m[36mApidae::Town Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363049
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 2], ["LIMIT", 1]]
|
363050
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363051
|
+
[1m[36mApidae::Town Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363053
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 3], ["LIMIT", 1]]
|
363054
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363055
|
+
[1m[36mApidae::Town Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363057
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
363058
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363059
|
+
[1m[36mApidae::Town Update (0.2ms)[0m [1m[33mUPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2[0m [["updated_at", "2020-03-13 08:44:35.047822"], ["id", 19]]
|
363060
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363061
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_towns"[0m
|
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
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4833997], ["LIMIT", 1]]
|
363067
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30287], ["LIMIT", 1]]
|
363068
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363069
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363071
|
+
Processing file : objets_modifies/objets_modifies-1.json
|
363072
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826137], ["LIMIT", 1]]
|
363073
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
363074
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363075
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363077
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826186], ["LIMIT", 1]]
|
363078
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
363079
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363080
|
+
[1m[36mApidae::Obj Update (0.4ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363082
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826282], ["LIMIT", 1]]
|
363083
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
363084
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363085
|
+
[1m[36mApidae::Obj Create (0.3ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363087
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4828422], ["LIMIT", 1]]
|
363088
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30287], ["LIMIT", 1]]
|
363089
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363090
|
+
[1m[36mApidae::Obj Create (0.7ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363092
|
+
Processing file : criteres_internes.json
|
363093
|
+
Processing file : selections.json
|
363094
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 25]]
|
363095
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
363096
|
+
Updating selection 49063
|
363097
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49063], ["LIMIT", 1]]
|
363098
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363099
|
+
[1m[36mApidae::Selection Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363101
|
+
[1m[36mApidae::Obj Load (0.6ms)[0m [1m[34mSELECT "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[0m [["apidae_selection_id", 31]]
|
363102
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826137], ["LIMIT", 1]]
|
363103
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363104
|
+
[1m[36mApidae::SelectionObject Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363106
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826282], ["LIMIT", 1]]
|
363107
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363108
|
+
[1m[36mApidae::SelectionObject Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363110
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0[0m
|
363111
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 31]]
|
363112
|
+
Updating selection 49073
|
363113
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49073], ["LIMIT", 1]]
|
363114
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363115
|
+
[1m[36mApidae::Selection Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363117
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "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[0m [["apidae_selection_id", 32]]
|
363118
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826186], ["LIMIT", 1]]
|
363119
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363120
|
+
[1m[36mApidae::SelectionObject Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363122
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4828422], ["LIMIT", 1]]
|
363123
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363124
|
+
[1m[36mApidae::SelectionObject Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363126
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4833997], ["LIMIT", 1]]
|
363127
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363128
|
+
[1m[36mApidae::SelectionObject Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363130
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0[0m
|
363131
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 32]]
|
363132
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 25]]
|
363133
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT 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[0m [["apidae_selection_id", 31]]
|
363134
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT 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[0m [["apidae_selection_id", 32]]
|
363135
|
+
Processing file : objets_supprimes.json
|
363136
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
363137
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363138
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1[0m [["id", 123]]
|
363139
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363140
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363141
|
+
[1m[36mApidae::FileImport Create (0.9ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
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
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_projects"[0m
|
363145
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
363146
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363147
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
363148
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363149
|
+
------------------------------------------------------
|
363150
|
+
Apidae::FileImportTest: test_existing_selection_update
|
363151
|
+
------------------------------------------------------
|
363152
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363153
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363154
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363155
|
+
[1m[36mApidae::Town Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363156
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363157
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363158
|
+
[1m[36mApidae::Obj Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363160
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363161
|
+
[1m[36mApidae::Obj Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363163
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363164
|
+
[1m[36mApidae::Project Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
363165
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2020-03-13 08:44:35.236304"], ["updated_at", "2020-03-13 08:44:35.236304"]]
|
363166
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363167
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363168
|
+
[1m[36mApidae::Selection Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363170
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363171
|
+
[1m[36mApidae::SelectionObject Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363173
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT 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[0m [["apidae_selection_id", 33]]
|
363174
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 26]]
|
363175
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
363176
|
+
Updating selection 49063
|
363177
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49063], ["LIMIT", 1]]
|
363178
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363179
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363180
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "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[0m [["apidae_selection_id", 33]]
|
363181
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
363182
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363183
|
+
[1m[36mApidae::SelectionObject Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363185
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0[0m
|
363186
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 33]]
|
363187
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 26]]
|
363188
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT 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[0m [["apidae_selection_id", 33]]
|
363189
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
363190
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363191
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363192
|
+
-------------------------------------------------
|
363193
|
+
Apidae::FileImportTest: test_new_object_insertion
|
363194
|
+
-------------------------------------------------
|
363195
|
+
[1m[36mApidae::Obj Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363196
|
+
[1m[36mApidae::Project Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363197
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363198
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363199
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363200
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
363201
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
363202
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363203
|
+
[1m[36mApidae::Obj Create (0.3ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363205
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363206
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
363207
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363208
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363209
|
+
---------------------------------------------------------------------------
|
363210
|
+
Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
|
363211
|
+
---------------------------------------------------------------------------
|
363212
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363213
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363214
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363215
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363216
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363217
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
363218
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5388], ["LIMIT", 1]]
|
363219
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363220
|
+
[1m[36mApidae::Obj Create (6.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363222
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 132], ["version", "HIVER"], ["LIMIT", 1]]
|
363223
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363224
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363226
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363227
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
363228
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
363229
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 132], ["version", "HIVER"], ["LIMIT", 1]]
|
363230
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2[0m [["id", 132], ["LIMIT", 1]]
|
363231
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 132], ["version", "HIVER"], ["LIMIT", 1]]
|
363232
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 132], ["version", "HIVER"], ["LIMIT", 1]]
|
363233
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 132], ["version", "HIVER"], ["LIMIT", 1]]
|
363234
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363235
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363236
|
+
--------------------------------------------------------
|
363237
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
363238
|
+
--------------------------------------------------------
|
363239
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363240
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363241
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363242
|
+
[1m[36mApidae::Town Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363243
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363244
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363245
|
+
[1m[36mApidae::Project Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
363246
|
+
[1m[36mApidae::Project Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2020-03-13 08:44:35.300300"], ["updated_at", "2020-03-13 08:44:35.300300"]]
|
363247
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363248
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363249
|
+
[1m[36mApidae::Selection Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363251
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
363252
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 27]]
|
363253
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1[0m [["apidae_id", 49063]]
|
363254
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 27]]
|
363255
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
363256
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363257
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363258
|
+
-----------------------------------------------------
|
363259
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
363260
|
+
-----------------------------------------------------
|
363261
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363262
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363263
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363264
|
+
[1m[36mApidae::Town Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363265
|
+
[1m[36mApidae::Reference Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363266
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363267
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363269
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
363270
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363271
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1[0m [["id", 134]]
|
363272
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363273
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363274
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363275
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363276
|
+
---------------------------------------------------
|
363277
|
+
Apidae::FileImportTest: test_existing_object_update
|
363278
|
+
---------------------------------------------------
|
363279
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363280
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363281
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363282
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363283
|
+
[1m[36mApidae::Reference Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363284
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363285
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363287
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
363288
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
363289
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363290
|
+
[1m[36mApidae::Obj Update (0.4ms)[0m [1m[33mUPDATE "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[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363292
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363293
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
363294
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363295
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363296
|
+
----------------------------------------------------
|
363297
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
363298
|
+
----------------------------------------------------
|
363299
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363300
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363301
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363302
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363303
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363304
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363305
|
+
[1m[36mApidae::Obj Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363307
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363308
|
+
[1m[36mApidae::Project Exists (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
363309
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2020-03-13 08:44:35.336101"], ["updated_at", "2020-03-13 08:44:35.336101"]]
|
363310
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363311
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 28]]
|
363312
|
+
[1m[36mApidae::Selection Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
363313
|
+
Updating selection 49063
|
363314
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49063], ["LIMIT", 1]]
|
363315
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363316
|
+
[1m[36mApidae::Selection Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363318
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "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[0m [["apidae_selection_id", 35]]
|
363319
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
363320
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363321
|
+
[1m[36mApidae::SelectionObject Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363323
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND 1=0[0m
|
363324
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 35]]
|
363325
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 28]]
|
363326
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT 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[0m [["apidae_selection_id", 35]]
|
363327
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
363328
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
363329
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363330
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363331
|
+
------------------------------------------------------------------------------
|
363332
|
+
Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
|
363333
|
+
------------------------------------------------------------------------------
|
363334
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363335
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363336
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363337
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363338
|
+
[1m[36mApidae::Reference Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363339
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 185789], ["LIMIT", 1]]
|
363340
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 14939], ["LIMIT", 1]]
|
363341
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363342
|
+
[1m[36mApidae::Obj Create (7.0ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363344
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 137], ["version", "GROUPES"], ["LIMIT", 1]]
|
363345
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363346
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363348
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363349
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
363350
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 185789], ["LIMIT", 1]]
|
363351
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "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[0m [["root_obj_id", 137], ["version", "GROUPES"], ["LIMIT", 1]]
|
363352
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK[0m
|
363353
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
363354
|
+
--------------------------------------------------------------
|
363355
|
+
Apidae::FileImportTest: test_new_object_insertion_with_locales
|
363356
|
+
--------------------------------------------------------------
|
363357
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363358
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
363359
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
363360
|
+
[1m[36mApidae::Town Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
363361
|
+
[1m[36mApidae::Reference Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_references"[0m
|
363362
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 898922], ["LIMIT", 1]]
|
363363
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5430], ["LIMIT", 1]]
|
363364
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
363365
|
+
[1m[36mApidae::Obj Create (1.6ms)[0m [1m[32mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
363367
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
363368
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
363369
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
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.
|
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-
|
11
|
+
date: 2020-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|