apidae 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,31 +1,30 @@
1
- <p id="notice"><%= notice %></p>
1
+ <%= render layout: "/layouts/#{Rails.application.config.apidae_layout}" do |styles| %>
2
+ <div id="apidae_header" class="<%= styles[:header] %>">
3
+ <h1 class="<%= styles[:h1] %>">Apidae - Sélections</h1>
4
+ </div>
5
+ <div id="apidae_dashboard" class="<%= styles[:wrapper] %>">
6
+ <div id="apidae_imports_panel" class="<%= styles[:body] %>">
7
+ <table id="apidae_selections" class="<%= styles[:table] %>">
8
+ <thead>
9
+ <tr>
10
+ <th>Label</th>
11
+ <th>Reference</th>
12
+ <th>Identifiant</th>
13
+ <th>Nombre d'objets</th>
14
+ </tr>
15
+ </thead>
2
16
 
3
- <h1>Listing Selections</h1>
4
-
5
- <table>
6
- <thead>
7
- <tr>
8
- <th>Label</th>
9
- <th>Reference</th>
10
- <th>Apidae</th>
11
- <th colspan="3"></th>
12
- </tr>
13
- </thead>
14
-
15
- <tbody>
16
- <% @selections.each do |selection| %>
17
- <tr>
18
- <td><%= selection.label %></td>
19
- <td><%= selection.reference %></td>
20
- <td><%= selection.apidae_id %></td>
21
- <td><%= link_to 'Show', selection %></td>
22
- <td><%= link_to 'Edit', edit_selection_path(selection) %></td>
23
- <td><%= link_to 'Destroy', selection, method: :delete, data: { confirm: 'Are you sure?' } %></td>
24
- </tr>
25
- <% end %>
26
- </tbody>
27
- </table>
28
-
29
- <br>
30
-
31
- <%= link_to 'New Selection', new_selection_path %>
17
+ <tbody>
18
+ <% @selections.each do |selection| %>
19
+ <tr>
20
+ <td><%= selection.label %></td>
21
+ <td><%= selection.reference %></td>
22
+ <td><%= selection.apidae_id %></td>
23
+ <td><%= selection.objects.count %></td>
24
+ </tr>
25
+ <% end %>
26
+ </tbody>
27
+ </table>
28
+ </div>
29
+ </div>
30
+ <% end %>
data/config/routes.rb CHANGED
@@ -1,4 +1,10 @@
1
1
  Apidae::Engine.routes.draw do
2
- resources :objects
3
- resources :selections
2
+
3
+ resources :objects, only: [:index], path: 'objets'
4
+ resources :selections, only: [:index]
5
+
6
+ match 'import/callback', via: :post, to: 'import#callback'
7
+ match 'import/run', via: :post, to: 'import#run'
8
+
9
+ root to: 'dashboard#index'
4
10
  end
@@ -0,0 +1,15 @@
1
+ class CreateApidaeExports < ActiveRecord::Migration
2
+ def change
3
+ create_table :apidae_exports do |t|
4
+ t.string :status
5
+ t.string :remote_status
6
+ t.boolean :oneshot
7
+ t.boolean :reset
8
+ t.string :file_url
9
+ t.string :confirm_url
10
+ t.integer :project_id
11
+
12
+ t.timestamps null: false
13
+ end
14
+ end
15
+ end
@@ -1,3 +1,3 @@
1
1
  module Apidae
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+
3
+ module Apidae
4
+ class DashboardControllerTest < ActionController::TestCase
5
+ setup do
6
+ @routes = Engine.routes
7
+ end
8
+
9
+ test "should get index" do
10
+ get :index
11
+ assert_response :success
12
+ end
13
+
14
+ end
15
+ end
@@ -0,0 +1,15 @@
1
+ require 'test_helper'
2
+
3
+ module Apidae
4
+ class Apidae::ImportControllerTest < ActionController::TestCase
5
+ setup do
6
+ @routes = Engine.routes
7
+ end
8
+
9
+ test "should get callback" do
10
+ get :callback
11
+ assert_response :success
12
+ end
13
+
14
+ end
15
+ end
@@ -0,0 +1 @@
1
+ []
@@ -0,0 +1 @@
1
+ [ 504 ]
Binary file
@@ -0,0 +1,15 @@
1
+ [
2
+ {
3
+ "id": 49063,
4
+ "libelle": {
5
+ "libelleFr": "Sélection 1"
6
+ },
7
+ "nom": "Sélection 1",
8
+ "objetsTouristiques": [
9
+ {
10
+ "type": "STRUCTURE",
11
+ "id": 504
12
+ }
13
+ ]
14
+ }
15
+ ]
@@ -0,0 +1,65 @@
1
+ [{
2
+ "type": "STRUCTURE",
3
+ "id": 504,
4
+ "nom": {
5
+ "libelleFr": "Société des accordéonistes aixois"
6
+ },
7
+ "identifier": "73AXEVE100160_struct",
8
+ "state": "PUBLISHED",
9
+ "gestion": {
10
+ "dateCreation": "2005-05-03T22:00:00.000+0000",
11
+ "dateModification": "2013-10-04T09:37:10.803+0000",
12
+ "membreProprietaire": {
13
+ "type": {
14
+ "elementReferenceType": "MembreSitraType",
15
+ "id": 233
16
+ },
17
+ "nom": "Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes",
18
+ "dateCreation": "2005-06-30T13:03:53.903+0000",
19
+ "dateModification": "2017-10-03T15:26:47.009+0000",
20
+ "departement": "73",
21
+ "id": 80,
22
+ "siteWeb": "http://www.aixlesbains.com"
23
+ },
24
+ "signalerUnProblemeMails": []
25
+ },
26
+ "informations": {
27
+ "moyensCommunication": [],
28
+ "informationsLegales": {}
29
+ },
30
+ "localisation": {
31
+ "adresse": {
32
+ "adresse1": "Théâtre de Verdure",
33
+ "adresse2": "Rue Jean Monard",
34
+ "codePostal": "73100",
35
+ "commune": {
36
+ "id": 30248
37
+ }
38
+ },
39
+ "geolocalisation": {
40
+ "altitude": 417,
41
+ "valide": true,
42
+ "geoJson": {
43
+ "type": "Point",
44
+ "coordinates": [
45
+ 5.916386,
46
+ 45.686578
47
+ ]
48
+ }
49
+ },
50
+ "perimetreGeographique": [
51
+ {
52
+ "id": 30248
53
+ }
54
+ ]
55
+ },
56
+ "contacts": [],
57
+ "territoires": [],
58
+ "informationsStructure": {
59
+ "entiteType": {
60
+ "elementReferenceType": "StructureType",
61
+ "id": 4008
62
+ }
63
+ },
64
+ "formatVersion": "v002"
65
+ }]
@@ -0,0 +1,19 @@
1
+ [
2
+ {
3
+ "id": 49063,
4
+ "libelle": {
5
+ "libelleFr": "Sélection 2"
6
+ },
7
+ "nom": "Sélection 2",
8
+ "objetsTouristiques": [
9
+ {
10
+ "type": "STRUCTURE",
11
+ "id": 503
12
+ },
13
+ {
14
+ "type": "STRUCTURE",
15
+ "id": 504
16
+ }
17
+ ]
18
+ }
19
+ ]
@@ -11,11 +11,46 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20170513114409) do
14
+ ActiveRecord::Schema.define(version: 20171025075304) do
15
15
 
16
16
  # These are extensions that must be enabled in order to support this database
17
17
  enable_extension "plpgsql"
18
18
 
19
+ create_table "apidae_attached_files", force: :cascade do |t|
20
+ t.string "name"
21
+ t.string "credits"
22
+ t.text "description"
23
+ t.integer "apidae_object_id"
24
+ t.string "picture_file_name"
25
+ t.string "picture_content_type"
26
+ t.integer "picture_file_size"
27
+ t.datetime "picture_updated_at"
28
+ t.datetime "created_at", null: false
29
+ t.datetime "updated_at", null: false
30
+ end
31
+
32
+ create_table "apidae_exports", force: :cascade do |t|
33
+ t.string "status"
34
+ t.string "remote_status"
35
+ t.boolean "oneshot"
36
+ t.boolean "reset"
37
+ t.string "file_url"
38
+ t.string "confirm_url"
39
+ t.integer "project_id"
40
+ t.datetime "created_at", null: false
41
+ t.datetime "updated_at", null: false
42
+ end
43
+
44
+ create_table "apidae_file_imports", force: :cascade do |t|
45
+ t.string "status"
46
+ t.string "remote_file"
47
+ t.integer "created"
48
+ t.integer "updated"
49
+ t.integer "deleted"
50
+ t.datetime "created_at", null: false
51
+ t.datetime "updated_at", null: false
52
+ end
53
+
19
54
  create_table "apidae_objects", force: :cascade do |t|
20
55
  t.string "address"
21
56
  t.integer "apidae_id"
@@ -34,9 +69,11 @@ ActiveRecord::Schema.define(version: 20170513114409) do
34
69
  t.datetime "created_at", null: false
35
70
  t.datetime "updated_at", null: false
36
71
  t.string "town_insee_code"
72
+ t.text "pictures_data"
73
+ t.text "entity_data"
37
74
  end
38
75
 
39
- create_table "apidae_objects_apidae_selections", force: :cascade do |t|
76
+ create_table "apidae_objects_selections", force: :cascade do |t|
40
77
  t.integer "object_id"
41
78
  t.integer "selection_id"
42
79
  end
@@ -119,3 +119,72 @@ WHERE c.contype = 'f'
119
119
  AND t3.nspname = ANY (current_schemas(false))
120
120
  ORDER BY c.conname
121
121
 
122
+ Apidae::Object Load (23.9ms) SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
123
+ Apidae::Town Load (17.9ms) SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
124
+ ActiveRecord::SchemaMigration Load (2.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
125
+ Migrating to AddPicturesDataToObjects (20170513115401)
126
+  (0.1ms) BEGIN
127
+  (29.9ms) ALTER TABLE "apidae_objects" ADD "pictures_data" text
128
+ SQL (7.8ms) INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513115401"]]
129
+  (13.6ms) COMMIT
130
+ Migrating to CreateApidaeAttachedFiles (20170513121215)
131
+  (0.2ms) BEGIN
132
+  (0.1ms) ROLLBACK
133
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
134
+ Migrating to CreateApidaeAttachedFiles (20170513121215)
135
+  (0.2ms) BEGIN
136
+  (0.1ms) ROLLBACK
137
+ ActiveRecord::SchemaMigration Load (0.2ms) SELECT "schema_migrations".* FROM "schema_migrations"
138
+ Migrating to CreateApidaeAttachedFiles (20170513121215)
139
+  (0.1ms) BEGIN
140
+  (0.1ms) ROLLBACK
141
+ ActiveRecord::SchemaMigration Load (0.3ms) SELECT "schema_migrations".* FROM "schema_migrations"
142
+  (2.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
143
+ FROM pg_constraint c
144
+ JOIN pg_class t1 ON c.conrelid = t1.oid
145
+ JOIN pg_class t2 ON c.confrelid = t2.oid
146
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
147
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
148
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
149
+ WHERE c.contype = 'f'
150
+ AND t1.relname = 'apidae_objects'
151
+ AND t3.nspname = ANY (current_schemas(false))
152
+ ORDER BY c.conname
153
+
154
+  (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
155
+ FROM pg_constraint c
156
+ JOIN pg_class t1 ON c.conrelid = t1.oid
157
+ JOIN pg_class t2 ON c.confrelid = t2.oid
158
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
159
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
160
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
161
+ WHERE c.contype = 'f'
162
+ AND t1.relname = 'apidae_objects_apidae_selections'
163
+ AND t3.nspname = ANY (current_schemas(false))
164
+ ORDER BY c.conname
165
+ 
166
+  (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
167
+ FROM pg_constraint c
168
+ JOIN pg_class t1 ON c.conrelid = t1.oid
169
+ JOIN pg_class t2 ON c.confrelid = t2.oid
170
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
171
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
172
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
173
+ WHERE c.contype = 'f'
174
+ AND t1.relname = 'apidae_selections'
175
+ AND t3.nspname = ANY (current_schemas(false))
176
+ ORDER BY c.conname
177
+
178
+  (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
179
+ FROM pg_constraint c
180
+ JOIN pg_class t1 ON c.conrelid = t1.oid
181
+ JOIN pg_class t2 ON c.confrelid = t2.oid
182
+ JOIN pg_attribute a1 ON a1.attnum = c.conkey[1] AND a1.attrelid = t1.oid
183
+ JOIN pg_attribute a2 ON a2.attnum = c.confkey[1] AND a2.attrelid = t2.oid
184
+ JOIN pg_namespace t3 ON c.connamespace = t3.oid
185
+ WHERE c.contype = 'f'
186
+ AND t1.relname = 'apidae_towns'
187
+ AND t3.nspname = ANY (current_schemas(false))
188
+ ORDER BY c.conname
189
+ 
190
+ DEPRECATION WARNING: Defining a route where `to` is a controller without an action is deprecated. Please change `to: 'dashboard/index'` to `controller: 'dashboard/index'`. (called from block in <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/config/routes.rb:9)
@@ -5,3 +5,1811 @@
5
5
  ApidaeTest: test_truth
6
6
  ----------------------
7
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