apidae 0.7.3 → 0.7.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (150) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +20 -20
  3. data/README.rdoc +2 -2
  4. data/Rakefile +38 -38
  5. data/app/assets/images/apidae/logo-apidae-grey.svg +84 -84
  6. data/app/assets/javascripts/apidae/application.js +13 -13
  7. data/app/assets/stylesheets/apidae/application.css +15 -15
  8. data/app/controllers/apidae/api_controller.rb +25 -25
  9. data/app/controllers/apidae/application_controller.rb +6 -6
  10. data/app/controllers/apidae/dashboard_controller.rb +13 -13
  11. data/app/controllers/apidae/import_controller.rb +68 -68
  12. data/app/controllers/apidae/objects_controller.rb +59 -59
  13. data/app/controllers/apidae/projects_controller.rb +35 -35
  14. data/app/controllers/apidae/references_controller.rb +9 -9
  15. data/app/controllers/apidae/selections_controller.rb +53 -53
  16. data/app/helpers/apidae/api_helper.rb +4 -4
  17. data/app/helpers/apidae/application_helper.rb +4 -4
  18. data/app/helpers/apidae/dashboard_helper.rb +4 -4
  19. data/app/helpers/apidae/import_helper.rb +4 -4
  20. data/app/helpers/apidae/objects_helper.rb +4 -4
  21. data/app/helpers/apidae/references_helper.rb +4 -4
  22. data/app/helpers/apidae/selections_helper.rb +4 -4
  23. data/app/models/apidae/application_record.rb +5 -5
  24. data/app/models/apidae/export.rb +13 -13
  25. data/app/models/apidae/file_import.rb +161 -161
  26. data/app/models/apidae/obj.rb +351 -351
  27. data/app/models/apidae/project.rb +4 -4
  28. data/app/models/apidae/reference.rb +45 -45
  29. data/app/models/apidae/selection.rb +160 -160
  30. data/app/models/apidae/selection_object.rb +6 -6
  31. data/app/models/apidae/town.rb +28 -27
  32. data/app/views/apidae/dashboard/index.html.erb +41 -41
  33. data/app/views/apidae/import/callback.html.erb +2 -2
  34. data/app/views/apidae/objects/_form.html.erb +73 -73
  35. data/app/views/apidae/objects/edit.html.erb +6 -6
  36. data/app/views/apidae/objects/index.html.erb +34 -34
  37. data/app/views/apidae/objects/index.json.jbuilder +6 -6
  38. data/app/views/apidae/objects/new.html.erb +5 -5
  39. data/app/views/apidae/objects/show.html.erb +74 -74
  40. data/app/views/apidae/projects/edit.html.erb +32 -32
  41. data/app/views/apidae/projects/index.html.erb +34 -34
  42. data/app/views/apidae/references/index.html.erb +34 -34
  43. data/app/views/apidae/selections/_form.html.erb +29 -29
  44. data/app/views/apidae/selections/edit.html.erb +6 -6
  45. data/app/views/apidae/selections/index.html.erb +34 -34
  46. data/app/views/apidae/selections/new.html.erb +5 -5
  47. data/app/views/apidae/selections/show.html.erb +19 -19
  48. data/app/views/layouts/apidae/application.html.erb +14 -14
  49. data/config/locales/apidae.fr.yml +6 -6
  50. data/config/routes.rb +14 -14
  51. data/db/migrate/20170512212941_create_apidae_selections.rb +11 -11
  52. data/db/migrate/20170512214641_create_apidae_objects.rb +22 -22
  53. data/db/migrate/20170512221525_create_apidae_objects_apidae_selections.rb +8 -8
  54. data/db/migrate/20170513114002_create_apidae_towns.rb +15 -15
  55. data/db/migrate/20170513114409_add_town_insee_code_to_objects.rb +5 -5
  56. data/db/migrate/20170513115401_add_pictures_data_to_objects.rb +5 -5
  57. data/db/migrate/20170513121215_create_apidae_attached_files.rb +13 -13
  58. data/db/migrate/20170513205932_rename_objects_selections_table.rb +5 -5
  59. data/db/migrate/20170720161134_add_entity_data_to_objects.rb +5 -5
  60. data/db/migrate/20170730102424_create_apidae_file_imports.rb +13 -13
  61. data/db/migrate/20171025075304_create_apidae_exports.rb +15 -15
  62. data/db/migrate/20180217222410_create_apidae_selection_objects.rb +10 -10
  63. data/db/migrate/20180218172704_change_text_columns_to_json.rb +10 -10
  64. data/db/migrate/20180218231319_add_service_data_to_apidae_objects.rb +5 -5
  65. data/db/migrate/20180222104915_add_rates_data_to_apidae_objects.rb +6 -6
  66. data/db/migrate/20180222105302_rename_openings_to_openings_data.rb +5 -5
  67. data/db/migrate/20180307164936_add_attachments_data_to_apidae_objects.rb +5 -5
  68. data/db/migrate/20180307170349_create_apidae_references.rb +12 -12
  69. data/db/migrate/20180314093512_add_tags_data_to_apidae_objects.rb +5 -5
  70. data/db/migrate/20180314132631_add_meta_data_to_apidae_objects.rb +5 -5
  71. data/db/migrate/20180319143954_remove_apidae_id_unicity.rb +6 -6
  72. data/db/migrate/20180417164604_add_location_data_to_apidae_objects.rb +5 -5
  73. data/db/migrate/20180417165744_remove_address_from_apidae_objects.rb +5 -5
  74. data/db/migrate/20180417171344_remove_lat_lng_from_apidae_objects.rb +6 -6
  75. data/db/migrate/20180418141248_add_description_data_to_apidae_objects.rb +5 -5
  76. data/db/migrate/20180418141305_remove_desc_columns_from_apidae_objects.rb +6 -6
  77. data/db/migrate/20180424141656_add_meta_data_to_apidae_references.rb +5 -5
  78. data/db/migrate/20180519170210_remove_insee_code_unicity.rb +7 -7
  79. data/db/migrate/20180521211735_destroy_attached_files.rb +5 -5
  80. data/db/migrate/20180625050400_rename_objects_to_obj.rb +5 -5
  81. data/db/migrate/20181024072424_add_project_id_to_selections.rb +5 -5
  82. data/db/migrate/20181024072843_create_apidae_projects.rb +10 -10
  83. data/db/migrate/20190328122424_add_description_to_apidae_towns.rb +5 -0
  84. data/lib/apidae.rb +4 -4
  85. data/lib/apidae/engine.rb +10 -10
  86. data/lib/apidae/version.rb +3 -3
  87. data/lib/tasks/apidae_tasks.rake +4 -4
  88. data/test/apidae_test.rb +7 -7
  89. data/test/controllers/apidae/api_controller_test.rb +23 -23
  90. data/test/controllers/apidae/dashboard_controller_test.rb +15 -15
  91. data/test/controllers/apidae/import_controller_test.rb +15 -15
  92. data/test/controllers/apidae/objects_controller_test.rb +52 -52
  93. data/test/controllers/apidae/references_controller_test.rb +13 -13
  94. data/test/controllers/apidae/selections_controller_test.rb +52 -52
  95. data/test/data/selections.json +14 -14
  96. data/test/data/structure.json +64 -64
  97. data/test/data/update_selections.json +18 -18
  98. data/test/dummy/README.rdoc +28 -28
  99. data/test/dummy/Rakefile +6 -6
  100. data/test/dummy/app/assets/javascripts/application.js +13 -13
  101. data/test/dummy/app/assets/stylesheets/application.css +15 -15
  102. data/test/dummy/app/controllers/application_controller.rb +5 -5
  103. data/test/dummy/app/helpers/application_helper.rb +2 -2
  104. data/test/dummy/app/views/layouts/application.html.erb +14 -14
  105. data/test/dummy/bin/bundle +3 -3
  106. data/test/dummy/bin/rails +4 -4
  107. data/test/dummy/bin/rake +4 -4
  108. data/test/dummy/bin/setup +29 -29
  109. data/test/dummy/config.ru +4 -4
  110. data/test/dummy/config/application.rb +24 -24
  111. data/test/dummy/config/boot.rb +5 -5
  112. data/test/dummy/config/database.yml +20 -20
  113. data/test/dummy/config/environment.rb +5 -5
  114. data/test/dummy/config/environments/development.rb +41 -41
  115. data/test/dummy/config/environments/production.rb +79 -79
  116. data/test/dummy/config/environments/test.rb +42 -42
  117. data/test/dummy/config/initializers/apidae.rb +18 -18
  118. data/test/dummy/config/initializers/assets.rb +11 -11
  119. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -7
  120. data/test/dummy/config/initializers/cookies_serializer.rb +3 -3
  121. data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -4
  122. data/test/dummy/config/initializers/inflections.rb +16 -16
  123. data/test/dummy/config/initializers/mime_types.rb +4 -4
  124. data/test/dummy/config/initializers/session_store.rb +3 -3
  125. data/test/dummy/config/initializers/to_time_preserves_timezone.rb +10 -10
  126. data/test/dummy/config/initializers/wrap_parameters.rb +14 -14
  127. data/test/dummy/config/locales/en.yml +23 -23
  128. data/test/dummy/config/routes.rb +4 -4
  129. data/test/dummy/config/secrets.yml +22 -22
  130. data/test/dummy/db/schema.rb +104 -104
  131. data/test/dummy/public/404.html +67 -67
  132. data/test/dummy/public/422.html +67 -67
  133. data/test/dummy/public/500.html +66 -66
  134. data/test/fixtures/apidae/exports.yml +15 -15
  135. data/test/fixtures/apidae/objects.yml +33 -33
  136. data/test/fixtures/apidae/references.yml +11 -11
  137. data/test/fixtures/apidae/selection_objects.yml +9 -9
  138. data/test/fixtures/apidae/selections.yml +11 -11
  139. data/test/fixtures/apidae/towns.yml +15 -15
  140. data/test/integration/navigation_test.rb +8 -8
  141. data/test/models/apidae/export_test.rb +9 -9
  142. data/test/models/apidae/file_import_test.rb +88 -88
  143. data/test/models/apidae/object_test.rb +9 -9
  144. data/test/models/apidae/reference_test.rb +9 -9
  145. data/test/models/apidae/selection_object_test.rb +9 -9
  146. data/test/models/apidae/selection_test.rb +9 -9
  147. data/test/models/apidae/town_test.rb +9 -9
  148. data/test/test_helper.rb +22 -22
  149. metadata +49 -50
  150. data/test/dummy/log/test.log +0 -2109
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.7.3
4
+ version: 0.7.4
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: 2019-01-16 00:00:00.000000000 Z
11
+ date: 2019-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -156,6 +156,7 @@ files:
156
156
  - db/migrate/20180625050400_rename_objects_to_obj.rb
157
157
  - db/migrate/20181024072424_add_project_id_to_selections.rb
158
158
  - db/migrate/20181024072843_create_apidae_projects.rb
159
+ - db/migrate/20190328122424_add_description_to_apidae_towns.rb
159
160
  - lib/apidae.rb
160
161
  - lib/apidae/engine.rb
161
162
  - lib/apidae/version.rb
@@ -207,7 +208,6 @@ files:
207
208
  - test/dummy/config/secrets.yml
208
209
  - test/dummy/db/schema.rb
209
210
  - test/dummy/log/development.log
210
- - test/dummy/log/test.log
211
211
  - test/dummy/public/404.html
212
212
  - test/dummy/public/422.html
213
213
  - test/dummy/public/500.html
@@ -247,75 +247,74 @@ required_rubygems_version: !ruby/object:Gem::Requirement
247
247
  version: '0'
248
248
  requirements: []
249
249
  rubyforge_project:
250
- rubygems_version: 2.5.1
250
+ rubygems_version: 2.6.14.3
251
251
  signing_key:
252
252
  specification_version: 4
253
253
  summary: A Ruby on Rails engine for projects that involve Apidae data
254
254
  test_files:
255
- - test/dummy/app/controllers/application_controller.rb
256
- - test/dummy/app/views/layouts/application.html.erb
255
+ - test/apidae_test.rb
256
+ - test/controllers/apidae/api_controller_test.rb
257
+ - test/controllers/apidae/dashboard_controller_test.rb
258
+ - test/controllers/apidae/import_controller_test.rb
259
+ - test/controllers/apidae/objects_controller_test.rb
260
+ - test/controllers/apidae/references_controller_test.rb
261
+ - test/controllers/apidae/selections_controller_test.rb
262
+ - test/data/delete_selections.json
263
+ - test/data/deletion.json
264
+ - test/data/json_export.zip
265
+ - test/data/selections.json
266
+ - test/data/structure.json
267
+ - test/data/update_selections.json
257
268
  - test/dummy/app/assets/javascripts/application.js
258
269
  - test/dummy/app/assets/stylesheets/application.css
270
+ - test/dummy/app/controllers/application_controller.rb
259
271
  - test/dummy/app/helpers/application_helper.rb
260
- - test/dummy/bin/rake
261
- - test/dummy/bin/setup
272
+ - test/dummy/app/views/layouts/application.html.erb
262
273
  - test/dummy/bin/bundle
263
274
  - test/dummy/bin/rails
264
- - test/dummy/config/secrets.yml
265
- - test/dummy/config/routes.rb
266
- - test/dummy/config/locales/en.yml
267
- - test/dummy/config/environments/production.rb
268
- - test/dummy/config/environments/development.rb
269
- - test/dummy/config/environments/test.rb
270
- - test/dummy/config/environment.rb
275
+ - test/dummy/bin/rake
276
+ - test/dummy/bin/setup
271
277
  - test/dummy/config/application.rb
272
- - test/dummy/config/database.yml
273
278
  - test/dummy/config/boot.rb
279
+ - test/dummy/config/database.yml
280
+ - test/dummy/config/environment.rb
281
+ - test/dummy/config/environments/development.rb
282
+ - test/dummy/config/environments/production.rb
283
+ - test/dummy/config/environments/test.rb
284
+ - test/dummy/config/initializers/apidae.rb
285
+ - test/dummy/config/initializers/assets.rb
274
286
  - test/dummy/config/initializers/backtrace_silencers.rb
275
- - test/dummy/config/initializers/mime_types.rb
287
+ - test/dummy/config/initializers/cookies_serializer.rb
276
288
  - test/dummy/config/initializers/filter_parameter_logging.rb
289
+ - test/dummy/config/initializers/inflections.rb
290
+ - test/dummy/config/initializers/mime_types.rb
277
291
  - test/dummy/config/initializers/session_store.rb
278
- - test/dummy/config/initializers/wrap_parameters.rb
279
- - test/dummy/config/initializers/assets.rb
280
- - test/dummy/config/initializers/cookies_serializer.rb
281
292
  - test/dummy/config/initializers/to_time_preserves_timezone.rb
282
- - test/dummy/config/initializers/apidae.rb
283
- - test/dummy/config/initializers/inflections.rb
293
+ - test/dummy/config/initializers/wrap_parameters.rb
294
+ - test/dummy/config/locales/en.yml
295
+ - test/dummy/config/routes.rb
296
+ - test/dummy/config/secrets.yml
284
297
  - test/dummy/config.ru
285
- - test/dummy/Rakefile
286
- - test/dummy/public/favicon.ico
287
- - test/dummy/public/422.html
288
- - test/dummy/public/500.html
289
- - test/dummy/public/404.html
290
298
  - test/dummy/db/schema.rb
291
- - test/dummy/log/test.log
292
299
  - test/dummy/log/development.log
300
+ - test/dummy/public/404.html
301
+ - test/dummy/public/422.html
302
+ - test/dummy/public/500.html
303
+ - test/dummy/public/favicon.ico
304
+ - test/dummy/Rakefile
293
305
  - test/dummy/README.rdoc
306
+ - test/fixtures/apidae/exports.yml
307
+ - test/fixtures/apidae/objects.yml
308
+ - test/fixtures/apidae/references.yml
309
+ - test/fixtures/apidae/selections.yml
310
+ - test/fixtures/apidae/selection_objects.yml
311
+ - test/fixtures/apidae/towns.yml
294
312
  - test/integration/navigation_test.rb
313
+ - test/models/apidae/export_test.rb
314
+ - test/models/apidae/file_import_test.rb
295
315
  - test/models/apidae/object_test.rb
316
+ - test/models/apidae/reference_test.rb
296
317
  - test/models/apidae/selection_object_test.rb
297
318
  - test/models/apidae/selection_test.rb
298
- - test/models/apidae/file_import_test.rb
299
- - test/models/apidae/export_test.rb
300
- - test/models/apidae/reference_test.rb
301
319
  - test/models/apidae/town_test.rb
302
- - test/fixtures/apidae/selection_objects.yml
303
- - test/fixtures/apidae/towns.yml
304
- - test/fixtures/apidae/references.yml
305
- - test/fixtures/apidae/objects.yml
306
- - test/fixtures/apidae/selections.yml
307
- - test/fixtures/apidae/exports.yml
308
320
  - test/test_helper.rb
309
- - test/apidae_test.rb
310
- - test/controllers/apidae/selections_controller_test.rb
311
- - test/controllers/apidae/api_controller_test.rb
312
- - test/controllers/apidae/objects_controller_test.rb
313
- - test/controllers/apidae/dashboard_controller_test.rb
314
- - test/controllers/apidae/references_controller_test.rb
315
- - test/controllers/apidae/import_controller_test.rb
316
- - test/data/update_selections.json
317
- - test/data/json_export.zip
318
- - test/data/delete_selections.json
319
- - test/data/structure.json
320
- - test/data/deletion.json
321
- - test/data/selections.json
@@ -1,2109 +0,0 @@
1
-  (196.0ms) DROP DATABASE IF EXISTS "apidae_engine_test"
2
-  (387.2ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
3
-  (0.1ms) BEGIN
4
- ----------------------
5
- ApidaeTest: test_truth
6
- ----------------------
7
-  (0.1ms) ROLLBACK
8
-  (193.4ms) DROP DATABASE IF EXISTS "apidae_engine_test"
9
-  (507.5ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
10
- SQL (0.2ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
11
-  (13.4ms) CREATE TABLE "apidae_objects" ("id" serial primary key, "address" character varying, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "title" character varying, "short_desc" text, "contact" text, "long_desc" text, "type_data" text, "latitude" float, "longitude" float, "openings" text, "rates" text, "reservation" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" text)
12
-  (2.4ms) CREATE TABLE "apidae_objects_apidae_selections" ("id" serial primary key, "object_id" integer, "selection_id" integer) 
13
-  (3.7ms) CREATE TABLE "apidae_selections" ("id" serial primary key, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
14
-  (3.2ms) CREATE TABLE "apidae_towns" ("id" serial primary key, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
15
-  (1.2ms) CREATE UNIQUE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" USING btree ("insee_code")
16
-  (1.6ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
17
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
18
-  (0.2ms) SELECT version FROM "schema_migrations"
19
-  (0.3ms) INSERT INTO "schema_migrations" (version) VALUES ('20170513115401')
20
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
21
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
22
- Migrating to CreateApidaeSelections (20170512212941)
23
-  (0.2ms) BEGIN
24
-  (3.5ms) CREATE TABLE "apidae_selections" ("id" serial primary key, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
25
-  (0.1ms) ROLLBACK
26
- ActiveRecord::SchemaMigration Load (12.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
27
- Migrating to CreateApidaeSelections (20170512212941)
28
-  (6.3ms) BEGIN
29
-  (28.5ms) CREATE TABLE "apidae_selections" ("id" serial primary key, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
30
-  (0.3ms) ROLLBACK
31
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
32
- Migrating to CreateApidaeSelections (20170512212941)
33
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
34
- Migrating to CreateApidaeSelections (20170512212941)
35
-  (0.1ms) BEGIN
36
- SQL (6.6ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512212941"]]
37
-  (13.2ms) COMMIT
38
- Migrating to CreateApidaeObjects (20170512214641)
39
-  (0.1ms) BEGIN
40
-  (8.8ms) CREATE TABLE "apidae_objects" ("id" serial primary key, "address" character varying, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "title" character varying, "short_desc" text, "contact" text, "long_desc" text, "type_data" text, "latitude" float, "longitude" float, "openings" text, "rates" text, "reservation" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
41
-  (0.2ms) ROLLBACK
42
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
43
- Migrating to CreateApidaeObjects (20170512214641)
44
-  (0.1ms) BEGIN
45
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512214641"]]
46
-  (2.0ms) COMMIT
47
- Migrating to CreateApidaeObjectsApidaeSelections (20170512221525)
48
-  (0.1ms) BEGIN
49
-  (8.1ms) CREATE TABLE "apidae_objects_apidae_selections" ("id" serial primary key, "object_id" integer, "selection_id" integer)
50
-  (0.1ms) ROLLBACK
51
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
52
- Migrating to CreateApidaeObjectsApidaeSelections (20170512221525)
53
-  (0.1ms) BEGIN
54
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512221525"]]
55
-  (2.1ms) COMMIT
56
- Migrating to CreateApidaeTowns (20170513114002)
57
-  (0.2ms) BEGIN
58
-  (8.0ms) CREATE TABLE "apidae_towns" ("id" serial primary key, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
59
-  (0.1ms) ROLLBACK
60
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
61
- Migrating to CreateApidaeTowns (20170513114002)
62
-  (0.1ms) BEGIN
63
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513114002"]]
64
-  (2.2ms) COMMIT
65
- Migrating to AddTownInseeCodeToObjects (20170513114409)
66
-  (0.1ms) BEGIN
67
-  (19.6ms) ALTER TABLE "apidae_objects" ADD "town_insee_code" character varying
68
-  (0.1ms) ROLLBACK
69
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
70
- Migrating to AddTownInseeCodeToObjects (20170513114409)
71
-  (0.1ms) BEGIN
72
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513114409"]]
73
-  (2.1ms) COMMIT
74
- Migrating to CreateApidaeAttachedFiles (20170513121215)
75
-  (0.2ms) BEGIN
76
-  (0.1ms) ROLLBACK
77
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
78
-  (195.3ms) DROP DATABASE IF EXISTS "apidae_engine_test"
79
-  (470.4ms) CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
80
- SQL (0.4ms) CREATE EXTENSION IF NOT EXISTS "plpgsql"
81
-  (7.3ms) CREATE TABLE "apidae_objects" ("id" serial primary key, "address" character varying, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "title" character varying, "short_desc" text, "contact" text, "long_desc" text, "type_data" text, "latitude" float, "longitude" float, "openings" text, "rates" text, "reservation" text, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" text)
82
-  (2.6ms) CREATE TABLE "apidae_objects_apidae_selections" ("id" serial primary key, "object_id" integer, "selection_id" integer) 
83
-  (2.6ms) CREATE TABLE "apidae_selections" ("id" serial primary key, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
84
-  (2.3ms) CREATE TABLE "apidae_towns" ("id" serial primary key, "country" character varying, "apidae_id" integer, "insee_code" character varying, "name" character varying, "postal_code" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
85
-  (0.9ms) CREATE UNIQUE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" USING btree ("insee_code")
86
-  (1.4ms) CREATE TABLE "schema_migrations" ("version" character varying NOT NULL) 
87
-  (0.7ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
88
-  (0.3ms) SELECT version FROM "schema_migrations"
89
-  (0.4ms) INSERT INTO "schema_migrations" (version) VALUES ('20170513115401')
90
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
91
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
92
- Migrating to CreateApidaeSelections (20170512212941)
93
-  (0.2ms) BEGIN
94
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512212941"]]
95
-  (2.0ms) COMMIT
96
- Migrating to CreateApidaeObjects (20170512214641)
97
-  (0.1ms) BEGIN
98
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512214641"]]
99
-  (0.2ms) COMMIT
100
- Migrating to CreateApidaeObjectsApidaeSelections (20170512221525)
101
-  (0.1ms) BEGIN
102
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512221525"]]
103
-  (0.2ms) COMMIT
104
- Migrating to CreateApidaeTowns (20170513114002)
105
-  (0.1ms) BEGIN
106
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513114002"]]
107
-  (0.2ms) COMMIT
108
- Migrating to AddTownInseeCodeToObjects (20170513114409)
109
-  (0.1ms) BEGIN
110
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513114409"]]
111
-  (0.2ms) COMMIT
112
- Migrating to CreateApidaeAttachedFiles (20170513121215)
113
-  (0.1ms) BEGIN
114
-  (0.1ms) ROLLBACK
115
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
116
- Migrating to CreateApidaeAttachedFiles (20170513121215)
117
-  (0.1ms) BEGIN
118
-  (0.1ms) ROLLBACK
119
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
120
- Migrating to CreateApidaeAttachedFiles (20170513121215)
121
-  (0.1ms) BEGIN
122
-  (0.1ms) ROLLBACK
123
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
124
- Migrating to CreateApidaeAttachedFiles (20170513121215)
125
-  (0.1ms) BEGIN
126
-  (0.1ms) ROLLBACK
127
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
128
- Migrating to CreateApidaeAttachedFiles (20170513121215)
129
-  (0.1ms) BEGIN
130
-  (0.2ms) ROLLBACK
131
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
132
- Migrating to CreateApidaeAttachedFiles (20170513121215)
133
-  (0.1ms) BEGIN
134
-  (5.4ms) CREATE TABLE "apidae_attached_files" ("id" serial primary key, "name" character varying, "credits" character varying, "description" text, "apidae_object_id" integer, "picture_file_name" character varying, "picture_content_type" character varying, "picture_file_size" integer, "picture_updated_at" timestamp, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
135
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513121215"]]
136
-  (0.3ms) COMMIT
137
- Migrating to RenameObjectsSelectionsTable (20170513205932)
138
-  (5.9ms) BEGIN
139
-  (6.2ms) ALTER TABLE "apidae_objects_apidae_selections" RENAME TO "apidae_objects_selections"
140
-  (0.3ms) ALTER TABLE "public"."apidae_objects_apidae_selections_id_seq" RENAME TO "apidae_objects_selections_id_seq"
141
-  (0.2ms) ALTER INDEX "apidae_objects_apidae_selections_pkey" RENAME TO "apidae_objects_selections_pkey"
142
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513205932"]]
143
-  (0.2ms) COMMIT
144
- Migrating to AddEntityDataToObjects (20170720161134)
145
-  (0.1ms) BEGIN
146
-  (0.3ms) ALTER TABLE "apidae_objects" ADD "entity_data" text
147
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170720161134"]]
148
-  (5.6ms) COMMIT
149
- Migrating to CreateApidaeFileImports (20170730102424)
150
-  (0.1ms) BEGIN
151
-  (14.1ms) CREATE TABLE "apidae_file_imports" ("id" serial primary key, "status" character varying, "remote_file" character varying, "created" integer, "updated" integer, "deleted" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
152
- SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170730102424"]]
153
-  (5.6ms) COMMIT
154
- Migrating to CreateApidaeExports (20171025075304)
155
-  (5.8ms) BEGIN
156
-  (13.7ms) CREATE TABLE "apidae_exports" ("id" serial primary key, "status" character varying, "remote_status" character varying, "oneshot" boolean, "reset" boolean, "file_url" character varying, "confirm_url" character varying, "project_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL) 
157
- SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20171025075304"]]
158
-  (5.1ms) COMMIT
159
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
160
-  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
161
- FROM pg_constraint c
162
- JOIN pg_class t1 ON c.conrelid = t1.oid
163
- JOIN pg_class t2 ON c.confrelid = t2.oid
164
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
165
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
166
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
167
- WHERE c.contype = 'f'
168
- AND t1.relname = 'apidae_attached_files'
169
- AND t3.nspname = ANY (current_schemas(false))
170
- ORDER BY c.conname
171
- 
172
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
173
- FROM pg_constraint c
174
- JOIN pg_class t1 ON c.conrelid = t1.oid
175
- JOIN pg_class t2 ON c.confrelid = t2.oid
176
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
177
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
178
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
179
- WHERE c.contype = 'f'
180
- AND t1.relname = 'apidae_exports'
181
- AND t3.nspname = ANY (current_schemas(false))
182
- ORDER BY c.conname
183
-
184
-  (1.3ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
185
- FROM pg_constraint c
186
- JOIN pg_class t1 ON c.conrelid = t1.oid
187
- JOIN pg_class t2 ON c.confrelid = t2.oid
188
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
189
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
190
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
191
- WHERE c.contype = 'f'
192
- AND t1.relname = 'apidae_file_imports'
193
- AND t3.nspname = ANY (current_schemas(false))
194
- ORDER BY c.conname
195
- 
196
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
197
- FROM pg_constraint c
198
- JOIN pg_class t1 ON c.conrelid = t1.oid
199
- JOIN pg_class t2 ON c.confrelid = t2.oid
200
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
201
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
202
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
203
- WHERE c.contype = 'f'
204
- AND t1.relname = 'apidae_objects'
205
- AND t3.nspname = ANY (current_schemas(false))
206
- ORDER BY c.conname
207
-
208
-  (1.5ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
209
- FROM pg_constraint c
210
- JOIN pg_class t1 ON c.conrelid = t1.oid
211
- JOIN pg_class t2 ON c.confrelid = t2.oid
212
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
213
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
214
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
215
- WHERE c.contype = 'f'
216
- AND t1.relname = 'apidae_objects_selections'
217
- AND t3.nspname = ANY (current_schemas(false))
218
- ORDER BY c.conname
219
- 
220
-  (1.4ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
221
- FROM pg_constraint c
222
- JOIN pg_class t1 ON c.conrelid = t1.oid
223
- JOIN pg_class t2 ON c.confrelid = t2.oid
224
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
225
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
226
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
227
- WHERE c.contype = 'f'
228
- AND t1.relname = 'apidae_selections'
229
- AND t3.nspname = ANY (current_schemas(false))
230
- ORDER BY c.conname
231
-
232
-  (1.9ms) SELECT t2.oid::regclass::text AS to_table, a1.attname AS column, a2.attname AS primary_key, c.conname AS name, c.confupdtype AS on_update, c.confdeltype AS on_delete
233
- FROM pg_constraint c
234
- JOIN pg_class t1 ON c.conrelid = t1.oid
235
- JOIN pg_class t2 ON c.confrelid = t2.oid
236
- JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
237
- JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
238
- JOIN pg_namespace t3 ON c.connamespace = t3.oid
239
- WHERE c.contype = 'f'
240
- AND t1.relname = 'apidae_towns'
241
- AND t3.nspname = ANY (current_schemas(false))
242
- ORDER BY c.conname
243
- 
244
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
245
-  (0.2ms) BEGIN
246
- ----------------------------------------------------
247
- Apidae::FileImportTest: test_new_selection_insertion
248
- ----------------------------------------------------
249
-  (0.1ms) ROLLBACK
250
-  (0.1ms) BEGIN
251
- -------------------------------------------------
252
- Apidae::FileImportTest: test_new_object_insertion
253
- -------------------------------------------------
254
-  (0.1ms) ROLLBACK
255
-  (0.1ms) BEGIN
256
- -----------------------------------------------------
257
- Apidae::FileImportTest: test_existing_object_deletion
258
- -----------------------------------------------------
259
-  (0.3ms) ROLLBACK
260
-  (0.1ms) BEGIN
261
- --------------------------------------------------------
262
- Apidae::FileImportTest: test_existing_selection_deletion
263
- --------------------------------------------------------
264
-  (0.1ms) ROLLBACK
265
-  (0.1ms) BEGIN
266
- ------------------------------------------------------
267
- Apidae::FileImportTest: test_existing_selection_update
268
- ------------------------------------------------------
269
-  (0.1ms) ROLLBACK
270
-  (0.1ms) BEGIN
271
- ---------------------------------------------------
272
- Apidae::FileImportTest: test_existing_object_update
273
- ---------------------------------------------------
274
-  (0.1ms) ROLLBACK
275
-  (0.1ms) BEGIN
276
- ------------------------------------------------------
277
- Apidae::FileImportTest: test_import_process_end_to_end
278
- ------------------------------------------------------
279
-  (0.1ms) ROLLBACK
280
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
281
-  (0.1ms) BEGIN
282
- -------------------------------------------------
283
- Apidae::FileImportTest: test_new_object_insertion
284
- -------------------------------------------------
285
- SQL (2.0ms) DELETE FROM "apidae_objects"
286
-  (0.1ms) ROLLBACK
287
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
288
-  (0.2ms) BEGIN
289
- -------------------------------------------------
290
- Apidae::FileImportTest: test_new_object_insertion
291
- -------------------------------------------------
292
- SQL (1.0ms) DELETE FROM "apidae_objects"
293
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
294
-  (0.1ms) ROLLBACK
295
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
296
-  (0.2ms) BEGIN
297
- -------------------------------------------------
298
- Apidae::FileImportTest: test_new_object_insertion
299
- -------------------------------------------------
300
- SQL (0.4ms) DELETE FROM "apidae_objects"
301
-  (0.1ms) ROLLBACK
302
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
303
-  (0.2ms) BEGIN
304
- -------------------------------------------------
305
- Apidae::FileImportTest: test_new_object_insertion
306
- -------------------------------------------------
307
- SQL (0.4ms) DELETE FROM "apidae_objects"
308
-  (0.1ms) ROLLBACK
309
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
310
-  (0.2ms) BEGIN
311
- -------------------------------------------------
312
- Apidae::FileImportTest: test_new_object_insertion
313
- -------------------------------------------------
314
- SQL (0.4ms) DELETE FROM "apidae_objects"
315
-  (0.2ms) ROLLBACK
316
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
317
-  (0.2ms) BEGIN
318
- -------------------------------------------------
319
- Apidae::FileImportTest: test_new_object_insertion
320
- -------------------------------------------------
321
- SQL (0.6ms) DELETE FROM "apidae_objects"
322
-  (0.1ms) ROLLBACK
323
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
324
-  (0.1ms) BEGIN
325
- -------------------------------------------------
326
- Apidae::FileImportTest: test_new_object_insertion
327
- -------------------------------------------------
328
- SQL (0.5ms) DELETE FROM "apidae_objects"
329
-  (0.1ms) ROLLBACK
330
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
331
-  (0.3ms) BEGIN
332
- -------------------------------------------------
333
- Apidae::FileImportTest: test_new_object_insertion
334
- -------------------------------------------------
335
- SQL (0.4ms) DELETE FROM "apidae_objects"
336
-  (0.2ms) ROLLBACK
337
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
338
-  (0.2ms) BEGIN
339
- -------------------------------------------------
340
- Apidae::FileImportTest: test_new_object_insertion
341
- -------------------------------------------------
342
- SQL (0.6ms) DELETE FROM "apidae_objects"
343
-  (0.1ms) ROLLBACK
344
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
345
-  (0.2ms) BEGIN
346
- -------------------------------------------------
347
- Apidae::FileImportTest: test_new_object_insertion
348
- -------------------------------------------------
349
- SQL (0.5ms) DELETE FROM "apidae_objects"
350
-  (0.1ms) ROLLBACK
351
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
352
-  (0.2ms) BEGIN
353
- -------------------------------------------------
354
- Apidae::FileImportTest: test_new_object_insertion
355
- -------------------------------------------------
356
- SQL (0.6ms) DELETE FROM "apidae_objects"
357
-  (0.2ms) ROLLBACK
358
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
359
-  (0.2ms) BEGIN
360
- -------------------------------------------------
361
- Apidae::FileImportTest: test_new_object_insertion
362
- -------------------------------------------------
363
- SQL (0.5ms) DELETE FROM "apidae_objects"
364
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
365
- Apidae::Town Load (7.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
366
-  (0.1ms) SAVEPOINT active_record_1
367
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-10-30 14:11:37.109080"], ["updated_at", "2017-10-30 14:11:37.109080"]]
368
-  (0.1ms) RELEASE SAVEPOINT active_record_1
369
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
370
-  (0.1ms) ROLLBACK
371
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
372
-  (0.2ms) BEGIN
373
- -------------------------------------------------
374
- Apidae::FileImportTest: test_new_object_insertion
375
- -------------------------------------------------
376
- SQL (0.4ms) DELETE FROM "apidae_objects"
377
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
378
- Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
379
-  (0.1ms) SAVEPOINT active_record_1
380
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-10-30 14:15:49.861403"], ["updated_at", "2017-10-30 14:15:49.861403"]]
381
-  (0.1ms) RELEASE SAVEPOINT active_record_1
382
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
383
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
384
-  (0.1ms) ROLLBACK
385
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
386
-  (0.1ms) BEGIN
387
- ---------------------------------------------------
388
- Apidae::FileImportTest: test_existing_object_update
389
- ---------------------------------------------------
390
- SQL (0.8ms) DELETE FROM "apidae_objects"
391
-  (0.1ms) SAVEPOINT active_record_1
392
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-10-30 14:20:47.844918"], ["updated_at", "2017-10-30 14:20:47.844918"]]
393
-  (0.1ms) RELEASE SAVEPOINT active_record_1
394
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
395
- Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
396
-  (0.1ms) SAVEPOINT active_record_1
397
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "type_data" = $10, "pictures_data" = $11, "updated_at" = $12 WHERE "apidae_objects"."id" = $13 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-10-30 14:20:47.875855"], ["id", 3]]
398
-  (0.1ms) RELEASE SAVEPOINT active_record_1
399
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
400
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
401
-  (0.1ms) ROLLBACK
402
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
403
-  (0.1ms) BEGIN
404
- -------------------------------------------------
405
- Apidae::FileImportTest: test_new_object_insertion
406
- -------------------------------------------------
407
- SQL (0.5ms) DELETE FROM "apidae_objects"
408
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
409
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
410
-  (0.1ms) SAVEPOINT active_record_1
411
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-10-30 14:24:51.329800"], ["updated_at", "2017-10-30 14:24:51.329800"]]
412
-  (0.1ms) RELEASE SAVEPOINT active_record_1
413
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
414
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
415
-  (0.2ms) ROLLBACK
416
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
417
-  (0.2ms) BEGIN
418
- -------------------------------------------------
419
- Apidae::FileImportTest: test_new_object_insertion
420
- -------------------------------------------------
421
- SQL (0.4ms) DELETE FROM "apidae_objects"
422
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
423
- Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
424
-  (0.1ms) SAVEPOINT active_record_1
425
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-10-30 14:26:33.667765"], ["updated_at", "2017-10-30 14:26:33.667765"]]
426
-  (0.1ms) RELEASE SAVEPOINT active_record_1
427
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
428
- Apidae::Object Load (0.7ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
429
-  (0.2ms) ROLLBACK
430
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
431
-  (0.2ms) BEGIN
432
- ---------------------------------------------------
433
- Apidae::FileImportTest: test_existing_object_update
434
- ---------------------------------------------------
435
- SQL (0.5ms) DELETE FROM "apidae_objects"
436
-  (0.1ms) SAVEPOINT active_record_1
437
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-10-30 14:27:02.792909"], ["updated_at", "2017-10-30 14:27:02.792909"]]
438
-  (0.1ms) RELEASE SAVEPOINT active_record_1
439
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
440
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
441
-  (0.1ms) SAVEPOINT active_record_1
442
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "type_data" = $10, "pictures_data" = $11, "updated_at" = $12 WHERE "apidae_objects"."id" = $13 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-10-30 14:27:02.821024"], ["id", 6]]
443
-  (0.1ms) RELEASE SAVEPOINT active_record_1
444
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
445
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
446
-  (0.1ms) ROLLBACK
447
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
448
-  (0.2ms) BEGIN
449
- -----------------------------------------------------
450
- Apidae::FileImportTest: test_existing_object_deletion
451
- -----------------------------------------------------
452
- SQL (0.6ms) DELETE FROM "apidae_objects"
453
-  (0.1ms) SAVEPOINT active_record_1
454
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-10-30 14:37:00.770451"], ["updated_at", "2017-10-30 14:37:00.770451"]]
455
-  (0.1ms) RELEASE SAVEPOINT active_record_1
456
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
457
-  (0.1ms) SAVEPOINT active_record_1
458
- SQL (2.0ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 7]]
459
- SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 7]]
460
-  (0.1ms) RELEASE SAVEPOINT active_record_1
461
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
462
-  (0.1ms) ROLLBACK
463
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
464
-  (0.2ms) BEGIN
465
- ------------------------------------------------------
466
- Apidae::FileImportTest: test_existing_selection_update
467
- ------------------------------------------------------
468
- SQL (0.5ms) DELETE FROM "apidae_objects"
469
-  (0.1ms) ROLLBACK
470
-  (0.1ms) BEGIN
471
- ---------------------------------------------------
472
- Apidae::FileImportTest: test_existing_object_update
473
- ---------------------------------------------------
474
- SQL (0.1ms) DELETE FROM "apidae_objects"
475
-  (0.1ms) SAVEPOINT active_record_1
476
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-10-30 14:37:07.434732"], ["updated_at", "2017-10-30 14:37:07.434732"]]
477
-  (0.1ms) RELEASE SAVEPOINT active_record_1
478
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
479
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
480
-  (0.1ms) SAVEPOINT active_record_1
481
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "type_data" = $10, "pictures_data" = $11, "updated_at" = $12 WHERE "apidae_objects"."id" = $13 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-10-30 14:37:07.465154"], ["id", 8]]
482
-  (0.1ms) RELEASE SAVEPOINT active_record_1
483
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
484
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
485
-  (0.1ms) ROLLBACK
486
-  (0.1ms) BEGIN
487
- -----------------------------------------------------
488
- Apidae::FileImportTest: test_existing_object_deletion
489
- -----------------------------------------------------
490
- SQL (0.1ms) DELETE FROM "apidae_objects"
491
-  (0.1ms) SAVEPOINT active_record_1
492
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-10-30 14:37:07.470489"], ["updated_at", "2017-10-30 14:37:07.470489"]]
493
-  (0.1ms) RELEASE SAVEPOINT active_record_1
494
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
495
-  (0.1ms) SAVEPOINT active_record_1
496
- SQL (0.2ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 9]]
497
- SQL (0.1ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 9]]
498
-  (0.1ms) RELEASE SAVEPOINT active_record_1
499
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
500
-  (0.1ms) ROLLBACK
501
-  (0.1ms) BEGIN
502
- ------------------------------------------------------
503
- Apidae::FileImportTest: test_import_process_end_to_end
504
- ------------------------------------------------------
505
- SQL (0.1ms) DELETE FROM "apidae_objects"
506
-  (0.1ms) ROLLBACK
507
-  (0.1ms) BEGIN
508
- --------------------------------------------------------
509
- Apidae::FileImportTest: test_existing_selection_deletion
510
- --------------------------------------------------------
511
- SQL (0.1ms) DELETE FROM "apidae_objects"
512
-  (0.1ms) ROLLBACK
513
-  (0.1ms) BEGIN
514
- -------------------------------------------------
515
- Apidae::FileImportTest: test_new_object_insertion
516
- -------------------------------------------------
517
- SQL (0.1ms) DELETE FROM "apidae_objects"
518
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
519
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
520
-  (0.1ms) SAVEPOINT active_record_1
521
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-10-30 14:37:07.495793"], ["updated_at", "2017-10-30 14:37:07.495793"]]
522
-  (0.1ms) RELEASE SAVEPOINT active_record_1
523
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
524
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
525
-  (0.1ms) ROLLBACK
526
-  (0.1ms) BEGIN
527
- ----------------------------------------------------
528
- Apidae::FileImportTest: test_new_selection_insertion
529
- ----------------------------------------------------
530
- SQL (0.1ms) DELETE FROM "apidae_objects"
531
-  (0.1ms) ROLLBACK
532
- ActiveRecord::SchemaMigration Load (26.6ms) SELECT "schema_migrations".* FROM "schema_migrations"
533
-  (0.4ms) BEGIN
534
- ---------------------------------------------------
535
- Apidae::FileImportTest: test_existing_object_update
536
- ---------------------------------------------------
537
- SQL (25.4ms) DELETE FROM "apidae_objects"
538
-  (0.1ms) SAVEPOINT active_record_1
539
- SQL (18.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 07:31:18.929010"], ["updated_at", "2017-11-01 07:31:18.929010"]]
540
-  (0.1ms) RELEASE SAVEPOINT active_record_1
541
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
542
- Apidae::Town Load (13.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
543
-  (0.1ms) SAVEPOINT active_record_1
544
- SQL (6.5ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "type_data" = $10, "pictures_data" = $11, "updated_at" = $12 WHERE "apidae_objects"."id" = $13 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-01 07:31:19.013040"], ["id", 11]]
545
-  (0.2ms) RELEASE SAVEPOINT active_record_1
546
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects"
547
- Apidae::Object Load (6.5ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
548
-  (0.2ms) ROLLBACK
549
-  (0.1ms) BEGIN
550
- ------------------------------------------------------
551
- Apidae::FileImportTest: test_import_process_end_to_end
552
- ------------------------------------------------------
553
- SQL (0.2ms) DELETE FROM "apidae_objects"
554
-  (0.1ms) ROLLBACK
555
-  (0.1ms) BEGIN
556
- -------------------------------------------------
557
- Apidae::FileImportTest: test_new_object_insertion
558
- -------------------------------------------------
559
- SQL (0.1ms) DELETE FROM "apidae_objects"
560
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
561
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
562
-  (0.1ms) SAVEPOINT active_record_1
563
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 07:31:19.038096"], ["updated_at", "2017-11-01 07:31:19.038096"]]
564
-  (0.1ms) RELEASE SAVEPOINT active_record_1
565
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
566
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
567
-  (0.1ms) ROLLBACK
568
-  (0.1ms) BEGIN
569
- ------------------------------------------------------
570
- Apidae::FileImportTest: test_existing_selection_update
571
- ------------------------------------------------------
572
- SQL (0.4ms) DELETE FROM "apidae_objects"
573
-  (0.1ms) ROLLBACK
574
-  (0.1ms) BEGIN
575
- ----------------------------------------------------
576
- Apidae::FileImportTest: test_new_selection_insertion
577
- ----------------------------------------------------
578
- SQL (0.2ms) DELETE FROM "apidae_objects"
579
-  (0.1ms) ROLLBACK
580
-  (0.1ms) BEGIN
581
- -----------------------------------------------------
582
- Apidae::FileImportTest: test_existing_object_deletion
583
- -----------------------------------------------------
584
- SQL (0.1ms) DELETE FROM "apidae_objects"
585
-  (0.1ms) SAVEPOINT active_record_1
586
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 07:31:19.046550"], ["updated_at", "2017-11-01 07:31:19.046550"]]
587
-  (0.1ms) RELEASE SAVEPOINT active_record_1
588
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
589
-  (0.1ms) SAVEPOINT active_record_1
590
- SQL (6.2ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 13]]
591
- SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 13]]
592
-  (0.1ms) RELEASE SAVEPOINT active_record_1
593
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
594
-  (0.1ms) ROLLBACK
595
-  (0.1ms) BEGIN
596
- --------------------------------------------------------
597
- Apidae::FileImportTest: test_existing_selection_deletion
598
- --------------------------------------------------------
599
- SQL (0.2ms) DELETE FROM "apidae_objects"
600
-  (0.1ms) ROLLBACK
601
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
602
-  (0.2ms) BEGIN
603
- ----------------------------------------------------
604
- Apidae::FileImportTest: test_new_selection_insertion
605
- ----------------------------------------------------
606
- SQL (0.9ms) DELETE FROM "apidae_objects"
607
-  (0.1ms) SAVEPOINT active_record_1
608
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 07:57:53.409929"], ["updated_at", "2017-11-01 07:57:53.409929"]]
609
-  (0.1ms) RELEASE SAVEPOINT active_record_1
610
- Apidae::Selection Load (2.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
611
-  (0.1ms) SAVEPOINT active_record_1
612
- SQL (2.1ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 07:57:53.530840"], ["updated_at", "2017-11-01 07:57:53.530840"]]
613
-  (0.1ms) RELEASE SAVEPOINT active_record_1
614
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 1]]
615
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
616
-  (0.1ms) SAVEPOINT active_record_1
617
- SQL (2.6ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 1], ["object_id", 14]]
618
-  (0.2ms) RELEASE SAVEPOINT active_record_1
619
- Apidae::Selection Load (0.4ms) SELECT "apidae_selections".* FROM "apidae_selections"
620
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 1]]
621
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
622
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
623
-  (0.2ms) ROLLBACK
624
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
625
-  (0.2ms) BEGIN
626
- ----------------------------------------------------
627
- Apidae::FileImportTest: test_new_selection_insertion
628
- ----------------------------------------------------
629
- SQL (0.4ms) DELETE FROM "apidae_objects"
630
-  (0.1ms) SAVEPOINT active_record_1
631
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 07:58:13.427309"], ["updated_at", "2017-11-01 07:58:13.427309"]]
632
-  (0.1ms) RELEASE SAVEPOINT active_record_1
633
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
634
-  (0.1ms) SAVEPOINT active_record_1
635
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 07:58:13.542200"], ["updated_at", "2017-11-01 07:58:13.542200"]]
636
-  (0.1ms) RELEASE SAVEPOINT active_record_1
637
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 2]]
638
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
639
-  (0.2ms) SAVEPOINT active_record_1
640
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 2], ["object_id", 15]]
641
-  (0.1ms) RELEASE SAVEPOINT active_record_1
642
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
643
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 2]]
644
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
645
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
646
-  (0.3ms) ROLLBACK
647
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
648
-  (0.1ms) BEGIN
649
- ------------------------------------------------------
650
- Apidae::FileImportTest: test_existing_selection_update
651
- ------------------------------------------------------
652
- SQL (0.4ms) DELETE FROM "apidae_objects"
653
-  (0.1ms) SAVEPOINT active_record_1
654
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:11:27.719539"], ["updated_at", "2017-11-01 08:11:27.719539"]]
655
-  (0.1ms) RELEASE SAVEPOINT active_record_1
656
-  (0.1ms) SAVEPOINT active_record_1
657
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:11:27.728626"], ["updated_at", "2017-11-01 08:11:27.728626"]]
658
-  (0.1ms) RELEASE SAVEPOINT active_record_1
659
-  (0.1ms) SAVEPOINT active_record_1
660
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 3], ["object_id", 16]]
661
-  (0.1ms) RELEASE SAVEPOINT active_record_1
662
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
663
-  (0.1ms) SAVEPOINT active_record_1
664
-  (0.2ms) RELEASE SAVEPOINT active_record_1
665
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 3]]
666
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
667
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
668
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 3]]
669
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
670
-  (0.2ms) ROLLBACK
671
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
672
-  (0.1ms) BEGIN
673
- ------------------------------------------------------
674
- Apidae::FileImportTest: test_existing_selection_update
675
- ------------------------------------------------------
676
- SQL (0.4ms) DELETE FROM "apidae_objects"
677
-  (0.1ms) SAVEPOINT active_record_1
678
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:15:04.250840"], ["updated_at", "2017-11-01 08:15:04.250840"]]
679
-  (0.1ms) RELEASE SAVEPOINT active_record_1
680
-  (0.2ms) SAVEPOINT active_record_1
681
- SQL (0.3ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:15:04.264127"], ["updated_at", "2017-11-01 08:15:04.264127"]]
682
-  (0.1ms) RELEASE SAVEPOINT active_record_1
683
-  (0.1ms) SAVEPOINT active_record_1
684
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 4], ["object_id", 17]]
685
-  (0.1ms) RELEASE SAVEPOINT active_record_1
686
-  (0.1ms) SAVEPOINT active_record_1
687
-  (0.1ms) RELEASE SAVEPOINT active_record_1
688
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
689
-  (0.1ms) SAVEPOINT active_record_1
690
-  (0.1ms) RELEASE SAVEPOINT active_record_1
691
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 4]]
692
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
693
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
694
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 4]]
695
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
696
-  (0.2ms) ROLLBACK
697
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
698
-  (0.1ms) BEGIN
699
- ------------------------------------------------------
700
- Apidae::FileImportTest: test_existing_selection_update
701
- ------------------------------------------------------
702
- SQL (0.4ms) DELETE FROM "apidae_objects"
703
-  (0.1ms) SAVEPOINT active_record_1
704
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:17:56.446495"], ["updated_at", "2017-11-01 08:17:56.446495"]]
705
-  (0.1ms) RELEASE SAVEPOINT active_record_1
706
-  (0.1ms) SAVEPOINT active_record_1
707
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:17:56.448814"], ["updated_at", "2017-11-01 08:17:56.448814"]]
708
-  (0.1ms) RELEASE SAVEPOINT active_record_1
709
-  (0.1ms) SAVEPOINT active_record_1
710
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:17:56.456732"], ["updated_at", "2017-11-01 08:17:56.456732"]]
711
-  (0.1ms) RELEASE SAVEPOINT active_record_1
712
-  (0.1ms) SAVEPOINT active_record_1
713
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 5], ["object_id", 18]]
714
-  (0.2ms) RELEASE SAVEPOINT active_record_1
715
-  (0.1ms) SAVEPOINT active_record_1
716
-  (0.1ms) RELEASE SAVEPOINT active_record_1
717
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
718
-  (0.1ms) SAVEPOINT active_record_1
719
-  (0.1ms) RELEASE SAVEPOINT active_record_1
720
- Apidae::Object Load (0.5ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 5]]
721
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
722
-  (0.1ms) SAVEPOINT active_record_1
723
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 5], ["object_id", 19]]
724
-  (0.1ms) RELEASE SAVEPOINT active_record_1
725
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
726
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 5]]
727
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
728
-  (0.2ms) ROLLBACK
729
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
730
-  (0.2ms) BEGIN
731
- ------------------------------------------------------
732
- Apidae::FileImportTest: test_existing_selection_update
733
- ------------------------------------------------------
734
- SQL (0.4ms) DELETE FROM "apidae_objects"
735
-  (0.1ms) SAVEPOINT active_record_1
736
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:18:20.072765"], ["updated_at", "2017-11-01 08:18:20.072765"]]
737
-  (0.1ms) RELEASE SAVEPOINT active_record_1
738
-  (0.1ms) SAVEPOINT active_record_1
739
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:18:20.074900"], ["updated_at", "2017-11-01 08:18:20.074900"]]
740
-  (0.1ms) RELEASE SAVEPOINT active_record_1
741
-  (0.1ms) SAVEPOINT active_record_1
742
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:18:20.083100"], ["updated_at", "2017-11-01 08:18:20.083100"]]
743
-  (0.1ms) RELEASE SAVEPOINT active_record_1
744
-  (0.1ms) SAVEPOINT active_record_1
745
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 6], ["object_id", 20]]
746
-  (0.1ms) RELEASE SAVEPOINT active_record_1
747
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
748
-  (0.1ms) SAVEPOINT active_record_1
749
-  (0.1ms) RELEASE SAVEPOINT active_record_1
750
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 6]]
751
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
752
-  (0.1ms) SAVEPOINT active_record_1
753
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 6], ["object_id", 21]]
754
-  (0.1ms) RELEASE SAVEPOINT active_record_1
755
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
756
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 6]]
757
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
758
-  (0.1ms) ROLLBACK
759
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
760
-  (0.1ms) BEGIN
761
- ------------------------------------------------------
762
- Apidae::FileImportTest: test_existing_selection_update
763
- ------------------------------------------------------
764
- SQL (0.5ms) DELETE FROM "apidae_objects"
765
-  (0.1ms) SAVEPOINT active_record_1
766
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:18:30.539811"], ["updated_at", "2017-11-01 08:18:30.539811"]]
767
-  (0.1ms) RELEASE SAVEPOINT active_record_1
768
-  (0.1ms) SAVEPOINT active_record_1
769
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:18:30.542014"], ["updated_at", "2017-11-01 08:18:30.542014"]]
770
-  (0.1ms) RELEASE SAVEPOINT active_record_1
771
-  (0.1ms) SAVEPOINT active_record_1
772
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:18:30.549636"], ["updated_at", "2017-11-01 08:18:30.549636"]]
773
-  (0.1ms) RELEASE SAVEPOINT active_record_1
774
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
775
-  (0.1ms) SAVEPOINT active_record_1
776
-  (0.1ms) RELEASE SAVEPOINT active_record_1
777
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 7]]
778
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 503]]
779
-  (0.1ms) SAVEPOINT active_record_1
780
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 7], ["object_id", 22]]
781
-  (0.1ms) RELEASE SAVEPOINT active_record_1
782
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
783
-  (0.1ms) SAVEPOINT active_record_1
784
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 7], ["object_id", 23]]
785
-  (0.1ms) RELEASE SAVEPOINT active_record_1
786
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
787
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 7]]
788
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
789
-  (0.1ms) ROLLBACK
790
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
791
-  (0.1ms) BEGIN
792
- ------------------------------------------------------
793
- Apidae::FileImportTest: test_existing_selection_update
794
- ------------------------------------------------------
795
- SQL (0.4ms) DELETE FROM "apidae_objects"
796
-  (0.6ms) SAVEPOINT active_record_1
797
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:28.947453"], ["updated_at", "2017-11-01 08:26:28.947453"]]
798
-  (0.1ms) RELEASE SAVEPOINT active_record_1
799
-  (0.1ms) SAVEPOINT active_record_1
800
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:28.951016"], ["updated_at", "2017-11-01 08:26:28.951016"]]
801
-  (0.1ms) RELEASE SAVEPOINT active_record_1
802
-  (0.1ms) SAVEPOINT active_record_1
803
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:26:28.960315"], ["updated_at", "2017-11-01 08:26:28.960315"]]
804
-  (0.1ms) RELEASE SAVEPOINT active_record_1
805
-  (0.1ms) SAVEPOINT active_record_1
806
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 8], ["object_id", 24]]
807
-  (0.1ms) RELEASE SAVEPOINT active_record_1
808
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 8]]
809
- Apidae::Selection Load (0.5ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
810
-  (0.1ms) SAVEPOINT active_record_1
811
-  (0.1ms) RELEASE SAVEPOINT active_record_1
812
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 8]]
813
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
814
-  (0.1ms) SAVEPOINT active_record_1
815
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 8], ["object_id", 25]]
816
-  (0.1ms) RELEASE SAVEPOINT active_record_1
817
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
818
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 8]]
819
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
820
-  (0.1ms) ROLLBACK
821
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
822
-  (0.2ms) BEGIN
823
- ------------------------------------------------------
824
- Apidae::FileImportTest: test_existing_selection_update
825
- ------------------------------------------------------
826
- SQL (0.4ms) DELETE FROM "apidae_objects"
827
-  (0.3ms) SAVEPOINT active_record_1
828
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:35.417547"], ["updated_at", "2017-11-01 08:26:35.417547"]]
829
-  (0.1ms) RELEASE SAVEPOINT active_record_1
830
-  (0.1ms) SAVEPOINT active_record_1
831
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:35.419983"], ["updated_at", "2017-11-01 08:26:35.419983"]]
832
-  (0.1ms) RELEASE SAVEPOINT active_record_1
833
-  (0.1ms) SAVEPOINT active_record_1
834
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:26:35.428219"], ["updated_at", "2017-11-01 08:26:35.428219"]]
835
-  (0.1ms) RELEASE SAVEPOINT active_record_1
836
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 9]]
837
-  (0.1ms) ROLLBACK
838
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
839
-  (0.2ms) BEGIN
840
- --------------------------------------------------------
841
- Apidae::FileImportTest: test_existing_selection_deletion
842
- --------------------------------------------------------
843
- SQL (0.4ms) DELETE FROM "apidae_objects"
844
-  (0.1ms) ROLLBACK
845
-  (0.1ms) BEGIN
846
- -------------------------------------------------
847
- Apidae::FileImportTest: test_new_object_insertion
848
- -------------------------------------------------
849
- SQL (0.1ms) DELETE FROM "apidae_objects"
850
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
851
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
852
-  (0.1ms) SAVEPOINT active_record_1
853
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 08:26:44.098699"], ["updated_at", "2017-11-01 08:26:44.098699"]]
854
-  (0.1ms) RELEASE SAVEPOINT active_record_1
855
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects"
856
- Apidae::Object Load (0.5ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
857
-  (0.1ms) ROLLBACK
858
-  (0.1ms) BEGIN
859
- ----------------------------------------------------
860
- Apidae::FileImportTest: test_new_selection_insertion
861
- ----------------------------------------------------
862
- SQL (0.2ms) DELETE FROM "apidae_objects"
863
-  (0.1ms) SAVEPOINT active_record_1
864
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:44.106342"], ["updated_at", "2017-11-01 08:26:44.106342"]]
865
-  (0.1ms) RELEASE SAVEPOINT active_record_1
866
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
867
-  (0.1ms) SAVEPOINT active_record_1
868
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 08:26:44.205891"], ["updated_at", "2017-11-01 08:26:44.205891"]]
869
-  (0.1ms) RELEASE SAVEPOINT active_record_1
870
- Apidae::Object Load (0.5ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 10]]
871
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
872
-  (0.1ms) SAVEPOINT active_record_1
873
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 10], ["object_id", 29]]
874
-  (0.1ms) RELEASE SAVEPOINT active_record_1
875
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
876
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 10]]
877
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
878
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
879
-  (0.1ms) ROLLBACK
880
-  (0.1ms) BEGIN
881
- ------------------------------------------------------
882
- Apidae::FileImportTest: test_existing_selection_update
883
- ------------------------------------------------------
884
- SQL (0.1ms) DELETE FROM "apidae_objects"
885
-  (0.1ms) SAVEPOINT active_record_1
886
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:44.243612"], ["updated_at", "2017-11-01 08:26:44.243612"]]
887
-  (0.1ms) RELEASE SAVEPOINT active_record_1
888
-  (0.1ms) SAVEPOINT active_record_1
889
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:44.245738"], ["updated_at", "2017-11-01 08:26:44.245738"]]
890
-  (0.1ms) RELEASE SAVEPOINT active_record_1
891
-  (0.1ms) SAVEPOINT active_record_1
892
- SQL (0.3ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:26:44.248303"], ["updated_at", "2017-11-01 08:26:44.248303"]]
893
-  (0.1ms) RELEASE SAVEPOINT active_record_1
894
-  (0.1ms) SAVEPOINT active_record_1
895
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 11], ["object_id", 30]]
896
-  (0.1ms) RELEASE SAVEPOINT active_record_1
897
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 11]]
898
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
899
-  (0.1ms) SAVEPOINT active_record_1
900
-  (0.1ms) RELEASE SAVEPOINT active_record_1
901
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 11]]
902
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
903
-  (0.1ms) SAVEPOINT active_record_1
904
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 11], ["object_id", 31]]
905
-  (0.1ms) RELEASE SAVEPOINT active_record_1
906
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
907
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 11]]
908
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
909
-  (0.1ms) ROLLBACK
910
-  (0.1ms) BEGIN
911
- ------------------------------------------------------
912
- Apidae::FileImportTest: test_import_process_end_to_end
913
- ------------------------------------------------------
914
- SQL (0.3ms) DELETE FROM "apidae_objects"
915
-  (0.1ms) ROLLBACK
916
-  (0.1ms) BEGIN
917
- ---------------------------------------------------
918
- Apidae::FileImportTest: test_existing_object_update
919
- ---------------------------------------------------
920
- SQL (0.2ms) DELETE FROM "apidae_objects"
921
-  (0.1ms) SAVEPOINT active_record_1
922
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:44.266337"], ["updated_at", "2017-11-01 08:26:44.266337"]]
923
-  (0.1ms) RELEASE SAVEPOINT active_record_1
924
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
925
- Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
926
-  (0.2ms) SAVEPOINT active_record_1
927
- SQL (0.3ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "type_data" = $10, "pictures_data" = $11, "updated_at" = $12 WHERE "apidae_objects"."id" = $13 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-01 08:26:44.272178"], ["id", 32]]
928
-  (0.1ms) RELEASE SAVEPOINT active_record_1
929
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
930
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
931
-  (0.2ms) ROLLBACK
932
-  (0.1ms) BEGIN
933
- -----------------------------------------------------
934
- Apidae::FileImportTest: test_existing_object_deletion
935
- -----------------------------------------------------
936
- SQL (0.1ms) DELETE FROM "apidae_objects"
937
-  (0.1ms) SAVEPOINT active_record_1
938
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:26:44.281813"], ["updated_at", "2017-11-01 08:26:44.281813"]]
939
-  (0.1ms) RELEASE SAVEPOINT active_record_1
940
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
941
-  (0.1ms) SAVEPOINT active_record_1
942
- SQL (0.5ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 33]]
943
- SQL (1.0ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 33]]
944
-  (0.2ms) RELEASE SAVEPOINT active_record_1
945
-  (0.6ms) SELECT COUNT(*) FROM "apidae_objects"
946
-  (0.1ms) ROLLBACK
947
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
948
-  (0.1ms) BEGIN
949
- ------------------------------------------------------
950
- Apidae::FileImportTest: test_existing_selection_update
951
- ------------------------------------------------------
952
- SQL (0.4ms) DELETE FROM "apidae_objects"
953
-  (0.2ms) SAVEPOINT active_record_1
954
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:32:34.911459"], ["updated_at", "2017-11-01 08:32:34.911459"]]
955
-  (0.1ms) RELEASE SAVEPOINT active_record_1
956
-  (0.1ms) SAVEPOINT active_record_1
957
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:32:34.914021"], ["updated_at", "2017-11-01 08:32:34.914021"]]
958
-  (0.1ms) RELEASE SAVEPOINT active_record_1
959
-  (0.1ms) SAVEPOINT active_record_1
960
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 08:32:34.922418"], ["updated_at", "2017-11-01 08:32:34.922418"]]
961
-  (0.1ms) RELEASE SAVEPOINT active_record_1
962
-  (0.1ms) SAVEPOINT active_record_1
963
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 12], ["object_id", 34]]
964
-  (0.1ms) RELEASE SAVEPOINT active_record_1
965
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 12]]
966
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
967
-  (0.1ms) SAVEPOINT active_record_1
968
-  (0.1ms) RELEASE SAVEPOINT active_record_1
969
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 12]]
970
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
971
-  (0.1ms) SAVEPOINT active_record_1
972
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 12], ["object_id", 35]]
973
-  (0.1ms) RELEASE SAVEPOINT active_record_1
974
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
975
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 12]]
976
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
977
-  (0.1ms) ROLLBACK
978
-  (0.1ms) BEGIN
979
- --------------------------------------------------------
980
- Apidae::FileImportTest: test_existing_selection_deletion
981
- --------------------------------------------------------
982
- SQL (0.1ms) DELETE FROM "apidae_objects"
983
-  (0.1ms) ROLLBACK
984
-  (0.1ms) BEGIN
985
- ------------------------------------------------------
986
- Apidae::FileImportTest: test_import_process_end_to_end
987
- ------------------------------------------------------
988
- SQL (0.2ms) DELETE FROM "apidae_objects"
989
-  (0.1ms) ROLLBACK
990
-  (0.1ms) BEGIN
991
- -------------------------------------------------
992
- Apidae::FileImportTest: test_new_object_insertion
993
- -------------------------------------------------
994
- SQL (0.2ms) DELETE FROM "apidae_objects"
995
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
996
- Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
997
-  (0.1ms) SAVEPOINT active_record_1
998
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 08:32:34.993067"], ["updated_at", "2017-11-01 08:32:34.993067"]]
999
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1000
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects"
1001
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1002
-  (0.1ms) ROLLBACK
1003
-  (0.1ms) BEGIN
1004
- -----------------------------------------------------
1005
- Apidae::FileImportTest: test_existing_object_deletion
1006
- -----------------------------------------------------
1007
- SQL (0.2ms) DELETE FROM "apidae_objects"
1008
-  (0.1ms) SAVEPOINT active_record_1
1009
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:32:35.000091"], ["updated_at", "2017-11-01 08:32:35.000091"]]
1010
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1011
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1012
-  (0.1ms) SAVEPOINT active_record_1
1013
- SQL (0.2ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 37]]
1014
- SQL (0.3ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 37]]
1015
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1016
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects"
1017
-  (0.1ms) ROLLBACK
1018
-  (0.1ms) BEGIN
1019
- ---------------------------------------------------
1020
- Apidae::FileImportTest: test_existing_object_update
1021
- ---------------------------------------------------
1022
- SQL (0.2ms) DELETE FROM "apidae_objects"
1023
-  (0.1ms) SAVEPOINT active_record_1
1024
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:32:35.011465"], ["updated_at", "2017-11-01 08:32:35.011465"]]
1025
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1026
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1027
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1028
-  (0.1ms) SAVEPOINT active_record_1
1029
- SQL (0.4ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "type_data" = $10, "pictures_data" = $11, "updated_at" = $12 WHERE "apidae_objects"."id" = $13 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-01 08:32:35.015500"], ["id", 38]]
1030
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1031
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects"
1032
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1033
-  (0.2ms) ROLLBACK
1034
-  (0.1ms) BEGIN
1035
- ----------------------------------------------------
1036
- Apidae::FileImportTest: test_new_selection_insertion
1037
- ----------------------------------------------------
1038
- SQL (0.1ms) DELETE FROM "apidae_objects"
1039
-  (0.1ms) SAVEPOINT active_record_1
1040
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 08:32:35.022756"], ["updated_at", "2017-11-01 08:32:35.022756"]]
1041
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1042
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1043
-  (0.1ms) SAVEPOINT active_record_1
1044
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 08:32:35.108544"], ["updated_at", "2017-11-01 08:32:35.108544"]]
1045
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1046
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 13]]
1047
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1048
-  (0.1ms) SAVEPOINT active_record_1
1049
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 13], ["object_id", 39]]
1050
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1051
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1052
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 13]]
1053
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1054
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
1055
-  (0.1ms) ROLLBACK
1056
- ActiveRecord::SchemaMigration Load (18.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1057
-  (0.2ms) BEGIN
1058
- --------------------------------------------------------
1059
- Apidae::FileImportTest: test_existing_selection_deletion
1060
- --------------------------------------------------------
1061
- SQL (0.4ms) DELETE FROM "apidae_objects"
1062
-  (0.1ms) SAVEPOINT active_record_1
1063
- SQL (0.6ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 13:04:31.857137"], ["updated_at", "2017-11-01 13:04:31.857137"]]
1064
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1065
-  (0.4ms) SELECT COUNT(*) FROM "apidae_selections"
1066
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49064]]
1067
-  (0.1ms) SAVEPOINT active_record_1
1068
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49064], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 13:04:31.995204"], ["updated_at", "2017-11-01 13:04:31.995204"]]
1069
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1070
- Apidae::Object Load (0.6ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 15]]
1071
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1072
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1073
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 14]]
1074
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 15]]
1075
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1076
-  (0.1ms) ROLLBACK
1077
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1078
-  (0.2ms) BEGIN
1079
- --------------------------------------------------------
1080
- Apidae::FileImportTest: test_existing_selection_deletion
1081
- --------------------------------------------------------
1082
- SQL (0.3ms) DELETE FROM "apidae_objects"
1083
-  (0.1ms) ROLLBACK
1084
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1085
-  (0.3ms) BEGIN
1086
- --------------------------------------------------------
1087
- Apidae::FileImportTest: test_existing_selection_deletion
1088
- --------------------------------------------------------
1089
- SQL (0.5ms) DELETE FROM "apidae_objects"
1090
- SQL (0.6ms) DELETE FROM "apidae_selections"
1091
-  (0.1ms) SAVEPOINT active_record_1
1092
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 13:05:31.080207"], ["updated_at", "2017-11-01 13:05:31.080207"]]
1093
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1094
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1095
- Apidae::Selection Load (0.7ms) SELECT "apidae_selections".* FROM "apidae_selections"
1096
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 16]]
1097
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1098
-  (0.1ms) ROLLBACK
1099
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1100
-  (0.3ms) BEGIN
1101
- --------------------------------------------------------
1102
- Apidae::FileImportTest: test_existing_selection_deletion
1103
- --------------------------------------------------------
1104
- SQL (0.7ms) DELETE FROM "apidae_objects"
1105
- SQL (0.4ms) DELETE FROM "apidae_selections"
1106
-  (0.1ms) SAVEPOINT active_record_1
1107
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 13:11:54.250253"], ["updated_at", "2017-11-01 13:11:54.250253"]]
1108
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1109
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1110
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1111
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."id" = 49063
1112
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1113
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 17]]
1114
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1115
-  (0.1ms) ROLLBACK
1116
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1117
-  (0.2ms) BEGIN
1118
- --------------------------------------------------------
1119
- Apidae::FileImportTest: test_existing_selection_deletion
1120
- --------------------------------------------------------
1121
- SQL (0.5ms) DELETE FROM "apidae_objects"
1122
- SQL (0.3ms) DELETE FROM "apidae_selections"
1123
-  (0.2ms) SAVEPOINT active_record_1
1124
- SQL (0.3ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 13:12:34.375667"], ["updated_at", "2017-11-01 13:12:34.375667"]]
1125
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1126
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1127
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections"
1128
- SQL (0.4ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."id" = 49063
1129
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1130
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 18]]
1131
-  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
1132
-  (0.3ms) ROLLBACK
1133
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1134
-  (0.1ms) BEGIN
1135
- --------------------------------------------------------
1136
- Apidae::FileImportTest: test_existing_selection_deletion
1137
- --------------------------------------------------------
1138
- SQL (0.7ms) DELETE FROM "apidae_objects"
1139
- SQL (0.3ms) DELETE FROM "apidae_selections"
1140
-  (0.1ms) SAVEPOINT active_record_1
1141
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 13:15:07.708174"], ["updated_at", "2017-11-01 13:15:07.708174"]]
1142
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1143
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1144
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1145
- SQL (0.3ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
1146
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1147
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1148
-  (0.1ms) ROLLBACK
1149
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1150
-  (0.3ms) BEGIN
1151
- ------------------------------------------------
1152
- Apidae::FileImportTest: test_full_import_process
1153
- ------------------------------------------------
1154
- SQL (0.7ms) DELETE FROM "apidae_objects"
1155
- SQL (0.3ms) DELETE FROM "apidae_selections"
1156
-  (0.1ms) ROLLBACK
1157
-  (0.1ms) BEGIN
1158
- ---------------------------------------------------
1159
- Apidae::FileImportTest: test_existing_object_update
1160
- ---------------------------------------------------
1161
- SQL (0.2ms) DELETE FROM "apidae_objects"
1162
- SQL (0.2ms) DELETE FROM "apidae_selections"
1163
-  (0.3ms) SAVEPOINT active_record_1
1164
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 13:15:13.773829"], ["updated_at", "2017-11-01 13:15:13.773829"]]
1165
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1166
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1167
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1168
-  (0.2ms) SAVEPOINT active_record_1
1169
- SQL (0.3ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "type_data" = $10, "pictures_data" = $11, "updated_at" = $12 WHERE "apidae_objects"."id" = $13 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-01 13:15:13.814685"], ["id", 40]]
1170
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1171
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1172
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1173
-  (0.1ms) ROLLBACK
1174
-  (0.1ms) BEGIN
1175
- ----------------------------------------------------
1176
- Apidae::FileImportTest: test_new_selection_insertion
1177
- ----------------------------------------------------
1178
- SQL (0.1ms) DELETE FROM "apidae_objects"
1179
- SQL (0.1ms) DELETE FROM "apidae_selections"
1180
-  (0.1ms) SAVEPOINT active_record_1
1181
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 13:15:13.821869"], ["updated_at", "2017-11-01 13:15:13.821869"]]
1182
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1183
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1184
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1185
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1186
-  (0.1ms) SAVEPOINT active_record_1
1187
- SQL (0.4ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 13:15:13.927266"], ["updated_at", "2017-11-01 13:15:13.927266"]]
1188
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1189
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 20]]
1190
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1191
-  (0.1ms) SAVEPOINT active_record_1
1192
- SQL (0.4ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 20], ["object_id", 41]]
1193
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1194
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1195
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 20]]
1196
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1197
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
1198
-  (0.1ms) ROLLBACK
1199
-  (0.1ms) BEGIN
1200
- --------------------------------------------------------
1201
- Apidae::FileImportTest: test_existing_selection_deletion
1202
- --------------------------------------------------------
1203
- SQL (0.1ms) DELETE FROM "apidae_objects"
1204
- SQL (0.2ms) DELETE FROM "apidae_selections"
1205
-  (0.1ms) SAVEPOINT active_record_1
1206
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 13:15:13.962354"], ["updated_at", "2017-11-01 13:15:13.962354"]]
1207
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1208
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1209
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1210
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
1211
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1212
-  (0.4ms) SELECT COUNT(*) FROM "apidae_selections"
1213
-  (0.2ms) ROLLBACK
1214
-  (0.2ms) BEGIN
1215
- ------------------------------------------------------
1216
- Apidae::FileImportTest: test_existing_selection_update
1217
- ------------------------------------------------------
1218
- SQL (0.5ms) DELETE FROM "apidae_objects"
1219
- SQL (0.2ms) DELETE FROM "apidae_selections"
1220
-  (0.1ms) SAVEPOINT active_record_1
1221
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 13:15:13.971683"], ["updated_at", "2017-11-01 13:15:13.971683"]]
1222
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1223
-  (0.1ms) SAVEPOINT active_record_1
1224
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 13:15:13.975254"], ["updated_at", "2017-11-01 13:15:13.975254"]]
1225
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1226
-  (0.1ms) SAVEPOINT active_record_1
1227
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 13:15:13.979033"], ["updated_at", "2017-11-01 13:15:13.979033"]]
1228
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1229
-  (0.1ms) SAVEPOINT active_record_1
1230
- SQL (0.3ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 22], ["object_id", 42]]
1231
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1232
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 22]]
1233
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1234
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1235
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1236
-  (0.1ms) SAVEPOINT active_record_1
1237
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1238
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 22]]
1239
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1240
-  (0.1ms) SAVEPOINT active_record_1
1241
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 22], ["object_id", 43]]
1242
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1243
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1244
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 22]]
1245
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1246
-  (0.1ms) ROLLBACK
1247
-  (0.1ms) BEGIN
1248
- -----------------------------------------------------
1249
- Apidae::FileImportTest: test_existing_object_deletion
1250
- -----------------------------------------------------
1251
- SQL (0.1ms) DELETE FROM "apidae_objects"
1252
- SQL (0.1ms) DELETE FROM "apidae_selections"
1253
-  (0.1ms) SAVEPOINT active_record_1
1254
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 13:15:13.999897"], ["updated_at", "2017-11-01 13:15:13.999897"]]
1255
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1256
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1257
-  (0.1ms) SAVEPOINT active_record_1
1258
- SQL (0.2ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 44]]
1259
- SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 44]]
1260
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1261
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
1262
-  (0.1ms) ROLLBACK
1263
-  (0.1ms) BEGIN
1264
- -------------------------------------------------
1265
- Apidae::FileImportTest: test_new_object_insertion
1266
- -------------------------------------------------
1267
- SQL (0.1ms) DELETE FROM "apidae_objects"
1268
- SQL (0.1ms) DELETE FROM "apidae_selections"
1269
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1270
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1271
-  (0.1ms) SAVEPOINT active_record_1
1272
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "contact", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["contact", "{\"telephone\":\"04 79 61 47 02\",\"email\":\"petitjeanjacques@yahoo.fr\",\"website\":\"http://accordeonistesaixois@yahoo.fr\"}"], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 13:15:14.012371"], ["updated_at", "2017-11-01 13:15:14.012371"]]
1273
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1274
-  (0.4ms) SELECT COUNT(*) FROM "apidae_objects"
1275
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1276
-  (0.1ms) ROLLBACK
1277
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1278
-  (0.1ms) BEGIN
1279
- ------------------------------------------------
1280
- Apidae::FileImportTest: test_full_import_process
1281
- ------------------------------------------------
1282
- SQL (0.5ms) DELETE FROM "apidae_objects"
1283
- SQL (0.2ms) DELETE FROM "apidae_selections"
1284
-  (0.1ms) SAVEPOINT active_record_1
1285
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-01 14:00:04.747204"], ["updated_at", "2017-11-01 14:00:04.747204"]]
1286
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1287
-  (0.1ms) SAVEPOINT active_record_1
1288
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-01 14:00:04.750304"], ["updated_at", "2017-11-01 14:00:04.750304"]]
1289
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1290
-  (0.2ms) ROLLBACK
1291
- ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1292
-  (0.4ms) BEGIN
1293
- ------------------------------------------------
1294
- Apidae::FileImportTest: test_full_import_process
1295
- ------------------------------------------------
1296
- SQL (1.3ms) DELETE FROM "apidae_objects"
1297
- SQL (0.4ms) DELETE FROM "apidae_selections"
1298
-  (0.3ms) SAVEPOINT active_record_1
1299
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-01 14:03:39.676974"], ["updated_at", "2017-11-01 14:03:39.676974"]]
1300
-  (0.3ms) RELEASE SAVEPOINT active_record_1
1301
-  (0.2ms) SAVEPOINT active_record_1
1302
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-01 14:03:39.686444"], ["updated_at", "2017-11-01 14:03:39.686444"]]
1303
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1304
-  (0.4ms) ROLLBACK
1305
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1306
-  (0.2ms) BEGIN
1307
- ------------------------------------------------
1308
- Apidae::FileImportTest: test_full_import_process
1309
- ------------------------------------------------
1310
- SQL (0.4ms) DELETE FROM "apidae_objects"
1311
- SQL (0.3ms) DELETE FROM "apidae_selections"
1312
-  (0.1ms) SAVEPOINT active_record_1
1313
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-01 14:05:57.832773"], ["updated_at", "2017-11-01 14:05:57.832773"]]
1314
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1315
-  (0.1ms) SAVEPOINT active_record_1
1316
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-01 14:05:57.836083"], ["updated_at", "2017-11-01 14:05:57.836083"]]
1317
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1318
-  (0.2ms) ROLLBACK
1319
- ActiveRecord::SchemaMigration Load (0.4ms) SELECT "schema_migrations".* FROM "schema_migrations"
1320
-  (0.2ms) BEGIN
1321
- ------------------------------------------------
1322
- Apidae::FileImportTest: test_full_import_process
1323
- ------------------------------------------------
1324
- SQL (0.5ms) DELETE FROM "apidae_objects"
1325
- SQL (0.6ms) DELETE FROM "apidae_selections"
1326
-  (0.3ms) SAVEPOINT active_record_1
1327
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-01 14:07:56.237483"], ["updated_at", "2017-11-01 14:07:56.237483"]]
1328
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1329
-  (0.1ms) SAVEPOINT active_record_1
1330
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-01 14:07:56.245432"], ["updated_at", "2017-11-01 14:07:56.245432"]]
1331
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1332
-  (0.6ms) ROLLBACK
1333
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1334
-  (0.1ms) BEGIN
1335
- ------------------------------------------------
1336
- Apidae::FileImportTest: test_full_import_process
1337
- ------------------------------------------------
1338
- SQL (0.5ms) DELETE FROM "apidae_objects"
1339
- SQL (0.2ms) DELETE FROM "apidae_selections"
1340
-  (0.1ms) SAVEPOINT active_record_1
1341
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-01 14:08:57.527577"], ["updated_at", "2017-11-01 14:08:57.527577"]]
1342
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1343
-  (0.1ms) SAVEPOINT active_record_1
1344
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-01 14:08:57.530487"], ["updated_at", "2017-11-01 14:08:57.530487"]]
1345
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1346
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1347
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1348
-  (0.2ms) SAVEPOINT active_record_1
1349
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "3C-Centre de Coordination en Cancerologie"], ["short_desc", "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", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685888], ["longitude", 5.915215], ["openings", "{\"description\":\"Mardi 7 novembre 2017 de 7h à 19h.\",\"opening_periods\":[{\"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}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-01 14:08:57.570048"], ["updated_at", "2017-11-01 14:08:57.570048"]]
1350
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1351
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
1352
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1353
-  (0.1ms) SAVEPOINT active_record_1
1354
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "openings" = $10, "type_data" = $11, "pictures_data" = $12, "entity_data" = $13, "updated_at" = $14 WHERE "apidae_objects"."id" = $15 [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "A ciel ouvert -Vivre relié à l'essentiel"], ["short_desc", "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", ""], ["contact", "{\"website\":\"https://www.acielouvert.org\"}"], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Du samedi 11 au lundi 13 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["type_data", "{\"nomLieu\":\"Centre culturel et des congrès André Grosjean\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1966}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2084}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2350},\"nbVisiteursAttendu\":1000}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["updated_at", "2017-11-01 14:08:57.577371"], ["id", 55]]
1355
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1356
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
1357
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1358
-  (0.1ms) SAVEPOINT active_record_1
1359
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Remise des diplômes POLYTECH Annecy-Chambery"], ["short_desc", "La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée"], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Samedi 18 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-01 14:08:57.582510"], ["updated_at", "2017-11-01 14:08:57.582510"]]
1360
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1361
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
1362
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
1363
-  (0.1ms) SAVEPOINT active_record_1
1364
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Ex Anima - Théâtre équestre Zingaro"], ["short_desc", "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", "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 !"], ["address", "{\"address_fields\":[]}"], ["latitude", 45.644668], ["longitude", 5.867981], ["openings", "{\"description\":\"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.\",\"opening_periods\":[{\"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}]}"], ["rates", "Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse)."], ["type_data", "{\"nomLieu\":\"La Croix verte\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"themes\":[{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2064},{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2257}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 14:08:57.593938"], ["updated_at", "2017-11-01 14:08:57.593938"]]
1365
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1366
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
1367
- Apidae::Town Load (0.4ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
1368
-  (0.1ms) SAVEPOINT active_record_1
1369
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "reservation", "type_data", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Les Spécimens - Spectacle familial"], ["short_desc", "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", "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"], ["address", "{\"address_fields\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"]}"], ["latitude", 45.645852], ["longitude", 5.865084], ["openings", "{\"description\":\"Samedi 4 novembre à 17h.\",\"opening_periods\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}]}"], ["rates", "Tarif unique : 5 €."], ["reservation", "[]"], ["type_data", "{\"nomLieu\":\"La Traverse\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 80314\n"], ["created_at", "2017-11-01 14:08:57.600641"], ["updated_at", "2017-11-01 14:08:57.600641"]]
1370
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1371
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
1372
-  (0.1ms) SAVEPOINT active_record_1
1373
- SQL (0.2ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 54]]
1374
- SQL (0.1ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 54]]
1375
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1376
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1377
- SQL (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
1378
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1379
-  (0.1ms) SAVEPOINT active_record_1
1380
- SQL (0.3ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 14:08:57.717686"], ["updated_at", "2017-11-01 14:08:57.717686"]]
1381
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1382
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 23]]
1383
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1384
-  (0.1ms) SAVEPOINT active_record_1
1385
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 23], ["object_id", 56]]
1386
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1387
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
1388
-  (0.1ms) SAVEPOINT active_record_1
1389
- SQL (0.4ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 23], ["object_id", 57]]
1390
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1391
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
1392
-  (0.3ms) SAVEPOINT active_record_1
1393
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49073], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 14:08:57.740641"], ["updated_at", "2017-11-01 14:08:57.740641"]]
1394
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1395
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 24]]
1396
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
1397
-  (0.1ms) SAVEPOINT active_record_1
1398
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 24], ["object_id", 55]]
1399
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1400
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
1401
-  (0.1ms) SAVEPOINT active_record_1
1402
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 24], ["object_id", 58]]
1403
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1404
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
1405
-  (0.1ms) SAVEPOINT active_record_1
1406
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 24], ["object_id", 59]]
1407
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1408
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1409
-  (0.4ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 23]]
1410
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 24]]
1411
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1412
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
1413
-  (0.1ms) ROLLBACK
1414
- ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1415
-  (0.2ms) BEGIN
1416
- ----------------------------------------------------
1417
- Apidae::FileImportTest: test_new_selection_insertion
1418
- ----------------------------------------------------
1419
- SQL (0.6ms) DELETE FROM "apidae_objects"
1420
- SQL (0.2ms) DELETE FROM "apidae_selections"
1421
-  (0.1ms) SAVEPOINT active_record_1
1422
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:09:10.414664"], ["updated_at", "2017-11-01 14:09:10.414664"]]
1423
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1424
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1425
- SQL (0.3ms) DELETE FROM "apidae_selections" WHERE 1=0
1426
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1427
-  (0.1ms) SAVEPOINT active_record_1
1428
- SQL (0.4ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 14:09:10.543343"], ["updated_at", "2017-11-01 14:09:10.543343"]]
1429
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1430
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 25]]
1431
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1432
-  (0.1ms) SAVEPOINT active_record_1
1433
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 25], ["object_id", 60]]
1434
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1435
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1436
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 25]]
1437
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1438
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
1439
-  (0.1ms) ROLLBACK
1440
-  (0.1ms) BEGIN
1441
- --------------------------------------------------------
1442
- Apidae::FileImportTest: test_existing_selection_deletion
1443
- --------------------------------------------------------
1444
- SQL (0.1ms) DELETE FROM "apidae_objects"
1445
- SQL (0.1ms) DELETE FROM "apidae_selections"
1446
-  (0.1ms) SAVEPOINT active_record_1
1447
- SQL (0.3ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 14:09:10.583756"], ["updated_at", "2017-11-01 14:09:10.583756"]]
1448
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1449
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1450
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1451
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
1452
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1453
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1454
-  (0.1ms) ROLLBACK
1455
-  (0.1ms) BEGIN
1456
- -------------------------------------------------
1457
- Apidae::FileImportTest: test_new_object_insertion
1458
- -------------------------------------------------
1459
- SQL (0.2ms) DELETE FROM "apidae_objects"
1460
- SQL (0.2ms) DELETE FROM "apidae_selections"
1461
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1462
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1463
-  (0.2ms) SAVEPOINT active_record_1
1464
- SQL (0.6ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 14:09:10.597866"], ["updated_at", "2017-11-01 14:09:10.597866"]]
1465
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1466
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects"
1467
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1468
-  (0.1ms) ROLLBACK
1469
-  (0.1ms) BEGIN
1470
- ---------------------------------------------------
1471
- Apidae::FileImportTest: test_existing_object_update
1472
- ---------------------------------------------------
1473
- SQL (0.1ms) DELETE FROM "apidae_objects"
1474
- SQL (0.1ms) DELETE FROM "apidae_selections"
1475
-  (0.1ms) SAVEPOINT active_record_1
1476
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:09:10.605430"], ["updated_at", "2017-11-01 14:09:10.605430"]]
1477
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1478
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1479
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1480
-  (0.1ms) SAVEPOINT active_record_1
1481
- SQL (0.6ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "address" = $6, "latitude" = $7, "longitude" = $8, "type_data" = $9, "pictures_data" = $10, "updated_at" = $11 WHERE "apidae_objects"."id" = $12 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-01 14:09:10.610163"], ["id", 62]]
1482
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1483
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1484
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1485
-  (0.1ms) ROLLBACK
1486
-  (0.1ms) BEGIN
1487
- ------------------------------------------------------
1488
- Apidae::FileImportTest: test_existing_selection_update
1489
- ------------------------------------------------------
1490
- SQL (0.1ms) DELETE FROM "apidae_objects"
1491
- SQL (0.1ms) DELETE FROM "apidae_selections"
1492
-  (0.1ms) SAVEPOINT active_record_1
1493
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:09:10.622776"], ["updated_at", "2017-11-01 14:09:10.622776"]]
1494
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1495
-  (0.1ms) SAVEPOINT active_record_1
1496
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:09:10.626505"], ["updated_at", "2017-11-01 14:09:10.626505"]]
1497
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1498
-  (0.1ms) SAVEPOINT active_record_1
1499
- SQL (0.3ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 14:09:10.628927"], ["updated_at", "2017-11-01 14:09:10.628927"]]
1500
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1501
-  (0.1ms) SAVEPOINT active_record_1
1502
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 27], ["object_id", 63]]
1503
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1504
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 27]]
1505
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1506
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1507
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1508
-  (0.1ms) SAVEPOINT active_record_1
1509
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1510
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 27]]
1511
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1512
-  (0.1ms) SAVEPOINT active_record_1
1513
- SQL (0.4ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 27], ["object_id", 64]]
1514
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1515
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1516
-  (0.3ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 27]]
1517
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1518
-  (0.1ms) ROLLBACK
1519
-  (0.1ms) BEGIN
1520
- -----------------------------------------------------
1521
- Apidae::FileImportTest: test_existing_object_deletion
1522
- -----------------------------------------------------
1523
- SQL (0.2ms) DELETE FROM "apidae_objects"
1524
- SQL (0.1ms) DELETE FROM "apidae_selections"
1525
-  (0.1ms) SAVEPOINT active_record_1
1526
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:09:10.650300"], ["updated_at", "2017-11-01 14:09:10.650300"]]
1527
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1528
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1529
-  (0.1ms) SAVEPOINT active_record_1
1530
- SQL (0.1ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 65]]
1531
- SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 65]]
1532
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1533
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1534
-  (0.1ms) ROLLBACK
1535
-  (0.2ms) BEGIN
1536
- ------------------------------------------------
1537
- Apidae::FileImportTest: test_full_import_process
1538
- ------------------------------------------------
1539
- SQL (0.2ms) DELETE FROM "apidae_objects"
1540
- SQL (0.2ms) DELETE FROM "apidae_selections"
1541
-  (0.1ms) SAVEPOINT active_record_1
1542
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-01 14:09:10.661121"], ["updated_at", "2017-11-01 14:09:10.661121"]]
1543
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1544
-  (0.1ms) SAVEPOINT active_record_1
1545
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-01 14:09:10.666466"], ["updated_at", "2017-11-01 14:09:10.666466"]]
1546
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1547
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1548
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1549
-  (0.1ms) SAVEPOINT active_record_1
1550
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "3C-Centre de Coordination en Cancerologie"], ["short_desc", "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", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685888], ["longitude", 5.915215], ["openings", "{\"description\":\"Mardi 7 novembre 2017 de 7h à 19h.\",\"opening_periods\":[{\"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}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-01 14:09:10.676157"], ["updated_at", "2017-11-01 14:09:10.676157"]]
1551
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1552
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
1553
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1554
-  (0.1ms) SAVEPOINT active_record_1
1555
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "openings" = $10, "type_data" = $11, "pictures_data" = $12, "entity_data" = $13, "updated_at" = $14 WHERE "apidae_objects"."id" = $15 [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "A ciel ouvert -Vivre relié à l'essentiel"], ["short_desc", "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", ""], ["contact", "{\"website\":\"https://www.acielouvert.org\"}"], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Du samedi 11 au lundi 13 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["type_data", "{\"nomLieu\":\"Centre culturel et des congrès André Grosjean\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1966}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2084}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2350},\"nbVisiteursAttendu\":1000}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["updated_at", "2017-11-01 14:09:10.683856"], ["id", 67]]
1556
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1557
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
1558
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1559
-  (0.1ms) SAVEPOINT active_record_1
1560
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Remise des diplômes POLYTECH Annecy-Chambery"], ["short_desc", "La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée"], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Samedi 18 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-01 14:09:10.689334"], ["updated_at", "2017-11-01 14:09:10.689334"]]
1561
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1562
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
1563
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
1564
-  (0.1ms) SAVEPOINT active_record_1
1565
- SQL (0.6ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Ex Anima - Théâtre équestre Zingaro"], ["short_desc", "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", "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 !"], ["address", "{\"address_fields\":[]}"], ["latitude", 45.644668], ["longitude", 5.867981], ["openings", "{\"description\":\"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.\",\"opening_periods\":[{\"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}]}"], ["rates", "Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse)."], ["type_data", "{\"nomLieu\":\"La Croix verte\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"themes\":[{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2064},{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2257}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 14:09:10.698021"], ["updated_at", "2017-11-01 14:09:10.698021"]]
1566
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1567
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
1568
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
1569
-  (0.1ms) SAVEPOINT active_record_1
1570
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "reservation", "type_data", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Les Spécimens - Spectacle familial"], ["short_desc", "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", "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"], ["address", "{\"address_fields\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"]}"], ["latitude", 45.645852], ["longitude", 5.865084], ["openings", "{\"description\":\"Samedi 4 novembre à 17h.\",\"opening_periods\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}]}"], ["rates", "Tarif unique : 5 €."], ["reservation", "[]"], ["type_data", "{\"nomLieu\":\"La Traverse\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 80314\n"], ["created_at", "2017-11-01 14:09:10.705757"], ["updated_at", "2017-11-01 14:09:10.705757"]]
1571
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1572
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
1573
-  (0.1ms) SAVEPOINT active_record_1
1574
- SQL (0.3ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 66]]
1575
- SQL (0.3ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 66]]
1576
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1577
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections"
1578
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1579
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1580
-  (0.2ms) SAVEPOINT active_record_1
1581
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 14:09:10.717249"], ["updated_at", "2017-11-01 14:09:10.717249"]]
1582
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1583
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 28]]
1584
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1585
-  (0.1ms) SAVEPOINT active_record_1
1586
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 28], ["object_id", 68]]
1587
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1588
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
1589
-  (0.1ms) SAVEPOINT active_record_1
1590
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 28], ["object_id", 69]]
1591
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1592
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
1593
-  (0.1ms) SAVEPOINT active_record_1
1594
- SQL (0.1ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49073], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 14:09:10.725076"], ["updated_at", "2017-11-01 14:09:10.725076"]]
1595
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1596
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 29]]
1597
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
1598
-  (0.1ms) SAVEPOINT active_record_1
1599
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 29], ["object_id", 67]]
1600
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1601
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
1602
-  (0.1ms) SAVEPOINT active_record_1
1603
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 29], ["object_id", 70]]
1604
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1605
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
1606
-  (0.1ms) SAVEPOINT active_record_1
1607
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 29], ["object_id", 71]]
1608
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1609
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1610
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 28]]
1611
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 29]]
1612
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1613
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
1614
-  (0.1ms) ROLLBACK
1615
- ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
1616
-  (0.2ms) BEGIN
1617
- -----------------------------------------------------
1618
- Apidae::FileImportTest: test_existing_object_deletion
1619
- -----------------------------------------------------
1620
- SQL (0.4ms) DELETE FROM "apidae_objects"
1621
- SQL (0.3ms) DELETE FROM "apidae_selections"
1622
-  (0.1ms) SAVEPOINT active_record_1
1623
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:11:08.257347"], ["updated_at", "2017-11-01 14:11:08.257347"]]
1624
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1625
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1626
-  (0.1ms) SAVEPOINT active_record_1
1627
- SQL (0.2ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 72]]
1628
- SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 72]]
1629
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1630
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
1631
-  (0.1ms) ROLLBACK
1632
-  (0.1ms) BEGIN
1633
- ------------------------------------------------
1634
- Apidae::FileImportTest: test_full_import_process
1635
- ------------------------------------------------
1636
- SQL (0.1ms) DELETE FROM "apidae_objects"
1637
- SQL (0.1ms) DELETE FROM "apidae_selections"
1638
-  (0.1ms) SAVEPOINT active_record_1
1639
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-01 14:11:08.301269"], ["updated_at", "2017-11-01 14:11:08.301269"]]
1640
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1641
-  (0.1ms) SAVEPOINT active_record_1
1642
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-01 14:11:08.302945"], ["updated_at", "2017-11-01 14:11:08.302945"]]
1643
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1644
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1645
- Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1646
-  (0.1ms) SAVEPOINT active_record_1
1647
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "3C-Centre de Coordination en Cancerologie"], ["short_desc", "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", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685888], ["longitude", 5.915215], ["openings", "{\"description\":\"Mardi 7 novembre 2017 de 7h à 19h.\",\"opening_periods\":[{\"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}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-01 14:11:08.323104"], ["updated_at", "2017-11-01 14:11:08.323104"]]
1648
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1649
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
1650
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1651
-  (0.1ms) SAVEPOINT active_record_1
1652
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "openings" = $10, "type_data" = $11, "pictures_data" = $12, "entity_data" = $13, "updated_at" = $14 WHERE "apidae_objects"."id" = $15 [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "A ciel ouvert -Vivre relié à l'essentiel"], ["short_desc", "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", ""], ["contact", "{\"website\":\"https://www.acielouvert.org\"}"], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Du samedi 11 au lundi 13 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["type_data", "{\"nomLieu\":\"Centre culturel et des congrès André Grosjean\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1966}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2084}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2350},\"nbVisiteursAttendu\":1000}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["updated_at", "2017-11-01 14:11:08.329136"], ["id", 74]]
1653
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1654
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
1655
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1656
-  (0.1ms) SAVEPOINT active_record_1
1657
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Remise des diplômes POLYTECH Annecy-Chambery"], ["short_desc", "La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée"], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Samedi 18 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-01 14:11:08.334523"], ["updated_at", "2017-11-01 14:11:08.334523"]]
1658
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1659
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
1660
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
1661
-  (0.1ms) SAVEPOINT active_record_1
1662
- SQL (0.5ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Ex Anima - Théâtre équestre Zingaro"], ["short_desc", "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", "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 !"], ["address", "{\"address_fields\":[]}"], ["latitude", 45.644668], ["longitude", 5.867981], ["openings", "{\"description\":\"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.\",\"opening_periods\":[{\"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}]}"], ["rates", "Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse)."], ["type_data", "{\"nomLieu\":\"La Croix verte\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"themes\":[{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2064},{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2257}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 14:11:08.338837"], ["updated_at", "2017-11-01 14:11:08.338837"]]
1663
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1664
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
1665
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
1666
-  (0.1ms) SAVEPOINT active_record_1
1667
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "reservation", "type_data", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Les Spécimens - Spectacle familial"], ["short_desc", "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", "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"], ["address", "{\"address_fields\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"]}"], ["latitude", 45.645852], ["longitude", 5.865084], ["openings", "{\"description\":\"Samedi 4 novembre à 17h.\",\"opening_periods\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}]}"], ["rates", "Tarif unique : 5 €."], ["reservation", "[]"], ["type_data", "{\"nomLieu\":\"La Traverse\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 80314\n"], ["created_at", "2017-11-01 14:11:08.345457"], ["updated_at", "2017-11-01 14:11:08.345457"]]
1668
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1669
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
1670
-  (0.1ms) SAVEPOINT active_record_1
1671
- SQL (0.2ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 73]]
1672
- SQL (0.3ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 73]]
1673
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1674
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1675
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1676
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1677
-  (0.1ms) SAVEPOINT active_record_1
1678
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 14:11:08.446775"], ["updated_at", "2017-11-01 14:11:08.446775"]]
1679
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1680
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 30]]
1681
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1682
-  (0.1ms) SAVEPOINT active_record_1
1683
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 30], ["object_id", 75]]
1684
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1685
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
1686
-  (0.3ms) SAVEPOINT active_record_1
1687
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 30], ["object_id", 76]]
1688
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1689
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
1690
-  (0.1ms) SAVEPOINT active_record_1
1691
- SQL (0.1ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49073], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 14:11:08.469672"], ["updated_at", "2017-11-01 14:11:08.469672"]]
1692
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1693
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 31]]
1694
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
1695
-  (0.1ms) SAVEPOINT active_record_1
1696
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 31], ["object_id", 74]]
1697
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1698
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
1699
-  (0.1ms) SAVEPOINT active_record_1
1700
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 31], ["object_id", 77]]
1701
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1702
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
1703
-  (0.1ms) SAVEPOINT active_record_1
1704
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 31], ["object_id", 78]]
1705
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1706
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1707
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 30]]
1708
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 31]]
1709
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1710
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
1711
-  (0.1ms) ROLLBACK
1712
-  (0.1ms) BEGIN
1713
- ------------------------------------------------------
1714
- Apidae::FileImportTest: test_existing_selection_update
1715
- ------------------------------------------------------
1716
- SQL (0.1ms) DELETE FROM "apidae_objects"
1717
- SQL (0.1ms) DELETE FROM "apidae_selections"
1718
-  (0.1ms) SAVEPOINT active_record_1
1719
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:11:08.484958"], ["updated_at", "2017-11-01 14:11:08.484958"]]
1720
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1721
-  (0.1ms) SAVEPOINT active_record_1
1722
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:11:08.487388"], ["updated_at", "2017-11-01 14:11:08.487388"]]
1723
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1724
-  (0.1ms) SAVEPOINT active_record_1
1725
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-01 14:11:08.489799"], ["updated_at", "2017-11-01 14:11:08.489799"]]
1726
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1727
-  (0.1ms) SAVEPOINT active_record_1
1728
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 32], ["object_id", 79]]
1729
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1730
-  (0.5ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 32]]
1731
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1732
- SQL (0.1ms) DELETE FROM "apidae_selections" WHERE 1=0
1733
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1734
-  (0.1ms) SAVEPOINT active_record_1
1735
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1736
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 32]]
1737
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1738
-  (0.1ms) SAVEPOINT active_record_1
1739
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 32], ["object_id", 80]]
1740
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1741
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
1742
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 32]]
1743
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1744
-  (0.1ms) ROLLBACK
1745
-  (0.1ms) BEGIN
1746
- ----------------------------------------------------
1747
- Apidae::FileImportTest: test_new_selection_insertion
1748
- ----------------------------------------------------
1749
- SQL (0.2ms) DELETE FROM "apidae_objects"
1750
- SQL (0.1ms) DELETE FROM "apidae_selections"
1751
-  (0.1ms) SAVEPOINT active_record_1
1752
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:11:08.504929"], ["updated_at", "2017-11-01 14:11:08.504929"]]
1753
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1754
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections"
1755
- SQL (0.6ms) DELETE FROM "apidae_selections" WHERE 1=0
1756
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1757
-  (0.1ms) SAVEPOINT active_record_1
1758
- SQL (0.3ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-01 14:11:08.511467"], ["updated_at", "2017-11-01 14:11:08.511467"]]
1759
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1760
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 33]]
1761
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1762
-  (0.1ms) SAVEPOINT active_record_1
1763
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 33], ["object_id", 81]]
1764
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1765
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1766
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 33]]
1767
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1768
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
1769
-  (0.2ms) ROLLBACK
1770
-  (0.1ms) BEGIN
1771
- --------------------------------------------------------
1772
- Apidae::FileImportTest: test_existing_selection_deletion
1773
- --------------------------------------------------------
1774
- SQL (0.1ms) DELETE FROM "apidae_objects"
1775
- SQL (0.1ms) DELETE FROM "apidae_selections"
1776
-  (0.1ms) SAVEPOINT active_record_1
1777
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-01 14:11:08.525930"], ["updated_at", "2017-11-01 14:11:08.525930"]]
1778
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1779
-  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
1780
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1781
- SQL (0.3ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
1782
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1783
-  (0.2ms) SELECT COUNT(*) FROM "apidae_selections"
1784
-  (0.1ms) ROLLBACK
1785
-  (0.1ms) BEGIN
1786
- ---------------------------------------------------
1787
- Apidae::FileImportTest: test_existing_object_update
1788
- ---------------------------------------------------
1789
- SQL (0.2ms) DELETE FROM "apidae_objects"
1790
- SQL (0.1ms) DELETE FROM "apidae_selections"
1791
-  (0.1ms) SAVEPOINT active_record_1
1792
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-01 14:11:08.534688"], ["updated_at", "2017-11-01 14:11:08.534688"]]
1793
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1794
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1795
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1796
-  (0.1ms) SAVEPOINT active_record_1
1797
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "address" = $6, "latitude" = $7, "longitude" = $8, "type_data" = $9, "pictures_data" = $10, "updated_at" = $11 WHERE "apidae_objects"."id" = $12 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-01 14:11:08.539091"], ["id", 82]]
1798
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1799
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1800
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1801
-  (0.1ms) ROLLBACK
1802
-  (0.1ms) BEGIN
1803
- -------------------------------------------------
1804
- Apidae::FileImportTest: test_new_object_insertion
1805
- -------------------------------------------------
1806
- SQL (0.3ms) DELETE FROM "apidae_objects"
1807
- SQL (0.2ms) DELETE FROM "apidae_selections"
1808
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1809
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1810
-  (0.1ms) SAVEPOINT active_record_1
1811
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-01 14:11:08.550047"], ["updated_at", "2017-11-01 14:11:08.550047"]]
1812
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1813
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1814
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1815
-  (0.1ms) ROLLBACK
1816
- ActiveRecord::SchemaMigration Load (13.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
1817
-  (6.0ms) BEGIN
1818
- ------------------------------------------------------------
1819
- Apidae::SelectionsControllerTest: test_should_show_selection
1820
- ------------------------------------------------------------
1821
-  (12.7ms) ROLLBACK
1822
-  (0.1ms) BEGIN
1823
- --------------------------------------------------------------
1824
- Apidae::SelectionsControllerTest: test_should_create_selection
1825
- --------------------------------------------------------------
1826
-  (0.1ms) ROLLBACK
1827
-  (0.1ms) BEGIN
1828
- ---------------------------------------------------------------
1829
- Apidae::SelectionsControllerTest: test_should_destroy_selection
1830
- ---------------------------------------------------------------
1831
-  (0.1ms) ROLLBACK
1832
-  (0.1ms) BEGIN
1833
- -------------------------------------------------------
1834
- Apidae::SelectionsControllerTest: test_should_get_index
1835
- -------------------------------------------------------
1836
-  (0.2ms) ROLLBACK
1837
-  (0.1ms) BEGIN
1838
- -----------------------------------------------------
1839
- Apidae::SelectionsControllerTest: test_should_get_new
1840
- -----------------------------------------------------
1841
-  (0.1ms) ROLLBACK
1842
-  (0.1ms) BEGIN
1843
- --------------------------------------------------------------
1844
- Apidae::SelectionsControllerTest: test_should_update_selection
1845
- --------------------------------------------------------------
1846
-  (0.1ms) ROLLBACK
1847
-  (0.1ms) BEGIN
1848
- ------------------------------------------------------
1849
- Apidae::SelectionsControllerTest: test_should_get_edit
1850
- ------------------------------------------------------
1851
-  (0.1ms) ROLLBACK
1852
-  (0.1ms) BEGIN
1853
- ------------------------------------------------------
1854
- Apidae::DashboardControllerTest: test_should_get_index
1855
- ------------------------------------------------------
1856
- Processing by Apidae::DashboardController#index as HTML
1857
-  (11.4ms) SELECT COUNT(*) FROM "apidae_objects"
1858
-  (0.5ms) SELECT COUNT(*) FROM "apidae_selections"
1859
- Apidae::FileImport Load (7.2ms) SELECT "apidae_file_imports".* FROM "apidae_file_imports" ORDER BY "apidae_file_imports"."id" DESC LIMIT 5
1860
- Rendered /Users/jbvilain/workspace/code/apidae-engine-rails/app/views/apidae/dashboard/index.html.erb within layouts/apidae/application (9.3ms)
1861
- Completed 500 Internal Server Error in 118ms (ActiveRecord: 32.2ms)
1862
-  (0.2ms) ROLLBACK
1863
-  (0.1ms) BEGIN
1864
- ----------------------
1865
- ApidaeTest: test_truth
1866
- ----------------------
1867
-  (0.2ms) ROLLBACK
1868
-  (0.1ms) BEGIN
1869
- --------------------------------------------------------
1870
- Apidae::ObjectsControllerTest: test_should_create_object
1871
- --------------------------------------------------------
1872
-  (0.3ms) ROLLBACK
1873
-  (0.1ms) BEGIN
1874
- --------------------------------------------------------
1875
- Apidae::ObjectsControllerTest: test_should_update_object
1876
- --------------------------------------------------------
1877
-  (0.2ms) ROLLBACK
1878
-  (0.1ms) BEGIN
1879
- ------------------------------------------------------
1880
- Apidae::ObjectsControllerTest: test_should_show_object
1881
- ------------------------------------------------------
1882
-  (0.1ms) ROLLBACK
1883
-  (0.1ms) BEGIN
1884
- ----------------------------------------------------
1885
- Apidae::ObjectsControllerTest: test_should_get_index
1886
- ----------------------------------------------------
1887
-  (0.1ms) ROLLBACK
1888
-  (0.1ms) BEGIN
1889
- ---------------------------------------------------
1890
- Apidae::ObjectsControllerTest: test_should_get_edit
1891
- ---------------------------------------------------
1892
-  (0.1ms) ROLLBACK
1893
-  (0.1ms) BEGIN
1894
- --------------------------------------------------
1895
- Apidae::ObjectsControllerTest: test_should_get_new
1896
- --------------------------------------------------
1897
-  (0.1ms) ROLLBACK
1898
-  (0.1ms) BEGIN
1899
- ---------------------------------------------------------
1900
- Apidae::ObjectsControllerTest: test_should_destroy_object
1901
- ---------------------------------------------------------
1902
-  (0.3ms) ROLLBACK
1903
-  (0.2ms) BEGIN
1904
- --------------------------------------------------------
1905
- Apidae::FileImportTest: test_existing_selection_deletion
1906
- --------------------------------------------------------
1907
- SQL (2.2ms) DELETE FROM "apidae_objects"
1908
- SQL (0.5ms) DELETE FROM "apidae_selections"
1909
-  (0.1ms) SAVEPOINT active_record_1
1910
- SQL (12.6ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 3"], ["reference", "selection-3"], ["created_at", "2017-11-02 21:50:11.413007"], ["updated_at", "2017-11-02 21:50:11.413007"]]
1911
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1912
-  (0.6ms) SELECT COUNT(*) FROM "apidae_selections"
1913
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections"
1914
- SQL (6.7ms) DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
1915
- Apidae::Selection Load (0.4ms) SELECT "apidae_selections".* FROM "apidae_selections"
1916
-  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
1917
-  (0.2ms) ROLLBACK
1918
-  (0.1ms) BEGIN
1919
- ------------------------------------------------------
1920
- Apidae::FileImportTest: test_existing_selection_update
1921
- ------------------------------------------------------
1922
- SQL (0.4ms) DELETE FROM "apidae_objects"
1923
- SQL (0.3ms) DELETE FROM "apidae_selections"
1924
-  (0.2ms) SAVEPOINT active_record_1
1925
- SQL (0.6ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 503], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.476373"], ["updated_at", "2017-11-02 21:50:11.476373"]]
1926
-  (0.2ms) RELEASE SAVEPOINT active_record_1
1927
-  (0.2ms) SAVEPOINT active_record_1
1928
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.480109"], ["updated_at", "2017-11-02 21:50:11.480109"]]
1929
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1930
-  (0.1ms) SAVEPOINT active_record_1
1931
- SQL (0.1ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-02 21:50:11.483195"], ["updated_at", "2017-11-02 21:50:11.483195"]]
1932
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1933
-  (0.1ms) SAVEPOINT active_record_1
1934
- SQL (0.4ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 36], ["object_id", 84]]
1935
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1936
-  (0.4ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
1937
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
1938
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
1939
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
1940
-  (0.1ms) SAVEPOINT active_record_1
1941
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1942
- Apidae::Object Load (0.4ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
1943
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1944
-  (0.1ms) SAVEPOINT active_record_1
1945
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 36], ["object_id", 85]]
1946
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1947
- Apidae::Selection Load (0.4ms) SELECT "apidae_selections".* FROM "apidae_selections"
1948
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 36]]
1949
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
1950
-  (0.1ms) ROLLBACK
1951
-  (0.1ms) BEGIN
1952
- -------------------------------------------------
1953
- Apidae::FileImportTest: test_new_object_insertion
1954
- -------------------------------------------------
1955
- SQL (0.1ms) DELETE FROM "apidae_objects"
1956
- SQL (0.1ms) DELETE FROM "apidae_selections"
1957
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1958
- Apidae::Town Load (0.5ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1959
-  (0.1ms) SAVEPOINT active_record_1
1960
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13) RETURNING "id" [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-02 21:50:11.548209"], ["updated_at", "2017-11-02 21:50:11.548209"]]
1961
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1962
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1963
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1964
-  (0.1ms) ROLLBACK
1965
-  (0.1ms) BEGIN
1966
- ---------------------------------------------------
1967
- Apidae::FileImportTest: test_existing_object_update
1968
- ---------------------------------------------------
1969
- SQL (0.1ms) DELETE FROM "apidae_objects"
1970
- SQL (0.1ms) DELETE FROM "apidae_selections"
1971
-  (0.1ms) SAVEPOINT active_record_1
1972
- SQL (0.3ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.553511"], ["updated_at", "2017-11-02 21:50:11.553511"]]
1973
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1974
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
1975
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1976
-  (0.1ms) SAVEPOINT active_record_1
1977
- SQL (0.4ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "address" = $6, "latitude" = $7, "longitude" = $8, "type_data" = $9, "pictures_data" = $10, "updated_at" = $11 WHERE "apidae_objects"."id" = $12 [["apidae_type", "STRUCTURE"], ["apidae_subtype", ""], ["title", "Société des accordéonistes aixois"], ["short_desc", ""], ["long_desc", ""], ["address", "{\"address_fields\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"]}"], ["latitude", 45.686578], ["longitude", 5.916386], ["type_data", "{\"entiteType\":{\"elementReferenceType\":\"StructureType\",\"id\":4008}}"], ["pictures_data", "{\"pictures\":[]}"], ["updated_at", "2017-11-02 21:50:11.558542"], ["id", 87]]
1978
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1979
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
1980
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
1981
-  (0.1ms) ROLLBACK
1982
-  (0.1ms) BEGIN
1983
- ------------------------------------------------
1984
- Apidae::FileImportTest: test_full_import_process
1985
- ------------------------------------------------
1986
- SQL (0.1ms) DELETE FROM "apidae_objects"
1987
- SQL (0.1ms) DELETE FROM "apidae_selections"
1988
-  (0.1ms) SAVEPOINT active_record_1
1989
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 123], ["title", "Objet à supprimer"], ["created_at", "2017-11-02 21:50:11.564630"], ["updated_at", "2017-11-02 21:50:11.564630"]]
1990
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1991
-  (0.1ms) SAVEPOINT active_record_1
1992
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 4826186], ["title", "Objet à mettre à jour"], ["created_at", "2017-11-02 21:50:11.566072"], ["updated_at", "2017-11-02 21:50:11.566072"]]
1993
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1994
- Apidae::Object Load (0.7ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
1995
- Apidae::Town Load (0.3ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
1996
-  (0.1ms) SAVEPOINT active_record_1
1997
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "3C-Centre de Coordination en Cancerologie"], ["short_desc", "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", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685888], ["longitude", 5.915215], ["openings", "{\"description\":\"Mardi 7 novembre 2017 de 7h à 19h.\",\"opening_periods\":[{\"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}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-02 21:50:11.580285"], ["updated_at", "2017-11-02 21:50:11.580285"]]
1998
-  (0.1ms) RELEASE SAVEPOINT active_record_1
1999
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
2000
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
2001
-  (0.2ms) SAVEPOINT active_record_1
2002
- SQL (0.2ms) UPDATE "apidae_objects" SET "apidae_type" = $1, "apidae_subtype" = $2, "title" = $3, "short_desc" = $4, "long_desc" = $5, "contact" = $6, "address" = $7, "latitude" = $8, "longitude" = $9, "openings" = $10, "type_data" = $11, "pictures_data" = $12, "entity_data" = $13, "updated_at" = $14 WHERE "apidae_objects"."id" = $15 [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "A ciel ouvert -Vivre relié à l'essentiel"], ["short_desc", "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", ""], ["contact", "{\"website\":\"https://www.acielouvert.org\"}"], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Du samedi 11 au lundi 13 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13924478,\"dateDebut\":\"2017-11-11\",\"dateFin\":\"2017-11-13\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["type_data", "{\"nomLieu\":\"Centre culturel et des congrès André Grosjean\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1966}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2084}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2350},\"nbVisiteursAttendu\":1000}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["updated_at", "2017-11-02 21:50:11.587161"], ["id", 89]]
2003
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2004
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
2005
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
2006
-  (0.1ms) SAVEPOINT active_record_1
2007
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14) RETURNING "id" [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Remise des diplômes POLYTECH Annecy-Chambery"], ["short_desc", "La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée"], ["long_desc", ""], ["address", "{\"address_fields\":[\"Rue Jean Monard\"]}"], ["latitude", 45.685775], ["longitude", 5.915461], ["openings", "{\"description\":\"Samedi 18 novembre 2017.\",\"opening_periods\":[{\"identifiant\":13925007,\"dateDebut\":\"2017-11-18\",\"dateFin\":\"2017-11-18\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":false}]}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 544515\n"], ["created_at", "2017-11-02 21:50:11.594261"], ["updated_at", "2017-11-02 21:50:11.594261"]]
2008
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2009
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
2010
- Apidae::Town Load (0.2ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
2011
-  (0.1ms) SAVEPOINT active_record_1
2012
- SQL (0.4ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "type_data", "pictures_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15) RETURNING "id" [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Ex Anima - Théâtre équestre Zingaro"], ["short_desc", "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", "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 !"], ["address", "{\"address_fields\":[]}"], ["latitude", 45.644668], ["longitude", 5.867981], ["openings", "{\"description\":\"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.\",\"opening_periods\":[{\"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}]}"], ["rates", "Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse)."], ["type_data", "{\"nomLieu\":\"La Croix verte\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"themes\":[{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2064},{\"elementReferenceType\":\"FeteEtManifestationTheme\",\"id\":2257}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["created_at", "2017-11-02 21:50:11.600916"], ["updated_at", "2017-11-02 21:50:11.600916"]]
2013
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2014
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
2015
- Apidae::Town Load (0.1ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
2016
-  (0.1ms) SAVEPOINT active_record_1
2017
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "apidae_type", "apidae_subtype", "title", "short_desc", "long_desc", "address", "latitude", "longitude", "openings", "rates", "reservation", "type_data", "pictures_data", "entity_data", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id" [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", ""], ["title", "Les Spécimens - Spectacle familial"], ["short_desc", "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", "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"], ["address", "{\"address_fields\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"]}"], ["latitude", 45.645852], ["longitude", 5.865084], ["openings", "{\"description\":\"Samedi 4 novembre à 17h.\",\"opening_periods\":[{\"identifiant\":13969038,\"dateDebut\":\"2017-11-04\",\"dateFin\":\"2017-11-04\",\"horaireOuverture\":\"17:00:00\",\"type\":\"OUVERTURE_TOUS_LES_JOURS\",\"tousLesAns\":true}]}"], ["rates", "Tarif unique : 5 €."], ["reservation", "[]"], ["type_data", "{\"nomLieu\":\"La Traverse\",\"typesManifestation\":[{\"elementReferenceType\":\"FeteEtManifestationType\",\"id\":1958}],\"categories\":[{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2091},{\"elementReferenceType\":\"FeteEtManifestationCategorie\",\"id\":2147}],\"portee\":{\"elementReferenceType\":\"FeteEtManifestationPortee\",\"id\":2351}}"], ["pictures_data", "{\"pictures\":[]}"], ["entity_data", "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nentity_id: 80314\n"], ["created_at", "2017-11-02 21:50:11.608465"], ["updated_at", "2017-11-02 21:50:11.608465"]]
2018
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2019
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
2020
-  (0.2ms) SAVEPOINT active_record_1
2021
- SQL (0.1ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 88]]
2022
- SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 88]]
2023
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2024
- Apidae::Selection Load (0.1ms) SELECT "apidae_selections".* FROM "apidae_selections"
2025
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
2026
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
2027
-  (0.1ms) SAVEPOINT active_record_1
2028
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-02 21:50:11.715515"], ["updated_at", "2017-11-02 21:50:11.715515"]]
2029
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2030
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 37]]
2031
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
2032
-  (0.1ms) SAVEPOINT active_record_1
2033
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 37], ["object_id", 90]]
2034
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2035
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
2036
-  (0.1ms) SAVEPOINT active_record_1
2037
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 37], ["object_id", 91]]
2038
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2039
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
2040
-  (0.1ms) SAVEPOINT active_record_1
2041
- SQL (0.1ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49073], ["label", "Sélection 2"], ["reference", "selection-2"], ["created_at", "2017-11-02 21:50:11.723659"], ["updated_at", "2017-11-02 21:50:11.723659"]]
2042
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2043
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 38]]
2044
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
2045
-  (0.1ms) SAVEPOINT active_record_1
2046
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 38], ["object_id", 89]]
2047
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2048
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
2049
-  (0.1ms) SAVEPOINT active_record_1
2050
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 38], ["object_id", 92]]
2051
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2052
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
2053
-  (0.1ms) SAVEPOINT active_record_1
2054
- SQL (0.1ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 38], ["object_id", 93]]
2055
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2056
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
2057
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 37]]
2058
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 38]]
2059
-  (0.1ms) SELECT COUNT(*) FROM "apidae_selections"
2060
-  (0.1ms) SELECT COUNT(*) FROM "apidae_objects"
2061
-  (0.1ms) ROLLBACK
2062
-  (0.1ms) BEGIN
2063
- -----------------------------------------------------
2064
- Apidae::FileImportTest: test_existing_object_deletion
2065
- -----------------------------------------------------
2066
- SQL (0.1ms) DELETE FROM "apidae_objects"
2067
- SQL (0.1ms) DELETE FROM "apidae_selections"
2068
-  (0.1ms) SAVEPOINT active_record_1
2069
- SQL (0.2ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.736299"], ["updated_at", "2017-11-02 21:50:11.736299"]]
2070
-  (0.4ms) RELEASE SAVEPOINT active_record_1
2071
- Apidae::Object Load (0.2ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
2072
-  (0.1ms) SAVEPOINT active_record_1
2073
- SQL (0.1ms) DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 94]]
2074
- SQL (0.2ms) DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 94]]
2075
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2076
-  (0.2ms) SELECT COUNT(*) FROM "apidae_objects"
2077
-  (0.1ms) ROLLBACK
2078
-  (0.1ms) BEGIN
2079
- ----------------------------------------------------
2080
- Apidae::FileImportTest: test_new_selection_insertion
2081
- ----------------------------------------------------
2082
- SQL (0.2ms) DELETE FROM "apidae_objects"
2083
- SQL (0.1ms) DELETE FROM "apidae_selections"
2084
-  (0.1ms) SAVEPOINT active_record_1
2085
- SQL (0.1ms) INSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["apidae_id", 504], ["title", "Société des contrebassistes aixois"], ["created_at", "2017-11-02 21:50:11.743548"], ["updated_at", "2017-11-02 21:50:11.743548"]]
2086
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2087
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
2088
- SQL (0.2ms) DELETE FROM "apidae_selections" WHERE 1=0
2089
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
2090
-  (0.1ms) SAVEPOINT active_record_1
2091
- SQL (0.2ms) INSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["apidae_id", 49063], ["label", "Sélection 1"], ["reference", "selection-1"], ["created_at", "2017-11-02 21:50:11.747897"], ["updated_at", "2017-11-02 21:50:11.747897"]]
2092
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2093
- Apidae::Object Load (0.3ms) SELECT "apidae_objects".* FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 39]]
2094
- Apidae::Object Load (0.1ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
2095
-  (0.1ms) SAVEPOINT active_record_1
2096
- SQL (0.2ms) INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 39], ["object_id", 95]]
2097
-  (0.1ms) RELEASE SAVEPOINT active_record_1
2098
- Apidae::Selection Load (0.2ms) SELECT "apidae_selections".* FROM "apidae_selections"
2099
-  (0.5ms) SELECT COUNT(*) FROM "apidae_objects" INNER JOIN "apidae_objects_selections" ON "apidae_objects"."id" = "apidae_objects_selections"."object_id" WHERE "apidae_objects_selections"."selection_id" = $1 [["selection_id", 39]]
2100
-  (0.3ms) SELECT COUNT(*) FROM "apidae_selections"
2101
- Apidae::Selection Load (0.3ms) SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
2102
-  (0.1ms) ROLLBACK
2103
-  (0.1ms) BEGIN
2104
- ------------------------------------------------------
2105
- Apidae::ImportControllerTest: test_should_get_callback
2106
- ------------------------------------------------------
2107
- Processing by Apidae::ImportController#callback as HTML
2108
- Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.0ms)
2109
-  (0.3ms) ROLLBACK