apidae 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +4 -0
- data/app/assets/images/apidae/logo-apidae-grey.svg +84 -0
- data/app/controllers/apidae/dashboard_controller.rb +11 -0
- data/app/controllers/apidae/import_controller.rb +50 -0
- data/app/helpers/apidae/dashboard_helper.rb +4 -0
- data/app/helpers/apidae/import_helper.rb +4 -0
- data/app/models/apidae/export.rb +12 -0
- data/app/models/apidae/file_import.rb +66 -40
- data/app/models/apidae/selection.rb +7 -0
- data/app/views/apidae/dashboard/index.html.erb +39 -0
- data/app/views/apidae/import/callback.html.erb +2 -0
- data/app/views/apidae/objects/index.html.erb +29 -52
- data/app/views/apidae/selections/index.html.erb +29 -30
- data/config/routes.rb +8 -2
- data/db/migrate/20171025075304_create_apidae_exports.rb +15 -0
- data/lib/apidae/version.rb +1 -1
- data/test/controllers/apidae/dashboard_controller_test.rb +15 -0
- data/test/controllers/apidae/import_controller_test.rb +15 -0
- data/test/data/delete_selections.json +1 -0
- data/test/data/deletion.json +1 -0
- data/test/data/json_export.zip +0 -0
- data/test/data/selections.json +15 -0
- data/test/data/structure.json +65 -0
- data/test/data/update_selections.json +19 -0
- data/test/dummy/db/schema.rb +39 -2
- data/test/dummy/log/development.log +69 -0
- data/test/dummy/log/test.log +1808 -0
- data/test/fixtures/apidae/exports.yml +15 -0
- data/test/models/apidae/export_test.rb +9 -0
- data/test/models/apidae/file_import_test.rb +83 -4
- data/test/test_helper.rb +2 -1
- metadata +45 -2
@@ -1,31 +1,30 @@
|
|
1
|
-
|
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
|
-
<
|
4
|
-
|
5
|
-
<
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|
-
|
3
|
-
resources :
|
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
|
data/lib/apidae/version.rb
CHANGED
@@ -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,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
|
+
}]
|
data/test/dummy/db/schema.rb
CHANGED
@@ -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:
|
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 "
|
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
|
+
[1m[36mApidae::Object Load (23.9ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
123
|
+
[1m[35mApidae::Town Load (17.9ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
124
|
+
[1m[36mActiveRecord::SchemaMigration Load (2.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
125
|
+
Migrating to AddPicturesDataToObjects (20170513115401)
|
126
|
+
[1m[35m (0.1ms)[0m BEGIN
|
127
|
+
[1m[36m (29.9ms)[0m [1mALTER TABLE "apidae_objects" ADD "pictures_data" text[0m
|
128
|
+
[1m[35mSQL (7.8ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513115401"]]
|
129
|
+
[1m[36m (13.6ms)[0m [1mCOMMIT[0m
|
130
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
131
|
+
[1m[35m (0.2ms)[0m BEGIN
|
132
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
133
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
134
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
135
|
+
[1m[35m (0.2ms)[0m BEGIN
|
136
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
137
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
138
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
139
|
+
[1m[35m (0.1ms)[0m BEGIN
|
140
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
141
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
142
|
+
[1m[35m (2.4ms)[0m 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
|
+
[1m[36m (1.4ms)[0m [1mSELECT 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
|
+
[0m
|
166
|
+
[1m[35m (1.3ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mSELECT 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
|
+
[0m
|
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)
|
data/test/dummy/log/test.log
CHANGED
@@ -5,3 +5,1811 @@
|
|
5
5
|
ApidaeTest: test_truth
|
6
6
|
----------------------
|
7
7
|
[1m[35m (0.1ms)[0m ROLLBACK
|
8
|
+
[1m[36m (193.4ms)[0m [1mDROP DATABASE IF EXISTS "apidae_engine_test"[0m
|
9
|
+
[1m[35m (507.5ms)[0m CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
|
10
|
+
[1m[36mSQL (0.2ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
11
|
+
[1m[35m (13.4ms)[0m 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
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "apidae_objects_apidae_selections" ("id" serial primary key, "object_id" integer, "selection_id" integer) [0m
|
13
|
+
[1m[35m (3.7ms)[0m 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
|
+
[1m[36m (3.2ms)[0m [1mCREATE 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) [0m
|
15
|
+
[1m[35m (1.2ms)[0m CREATE UNIQUE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" USING btree ("insee_code")
|
16
|
+
[1m[36m (1.6ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
17
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
18
|
+
[1m[36m (0.2ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
19
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170513115401')
|
20
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
22
|
+
Migrating to CreateApidaeSelections (20170512212941)
|
23
|
+
[1m[35m (0.2ms)[0m BEGIN
|
24
|
+
[1m[36m (3.5ms)[0m [1mCREATE 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) [0m
|
25
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
26
|
+
[1m[36mActiveRecord::SchemaMigration Load (12.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
27
|
+
Migrating to CreateApidaeSelections (20170512212941)
|
28
|
+
[1m[35m (6.3ms)[0m BEGIN
|
29
|
+
[1m[36m (28.5ms)[0m [1mCREATE 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) [0m
|
30
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
31
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
32
|
+
Migrating to CreateApidaeSelections (20170512212941)
|
33
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
34
|
+
Migrating to CreateApidaeSelections (20170512212941)
|
35
|
+
[1m[35m (0.1ms)[0m BEGIN
|
36
|
+
[1m[36mSQL (6.6ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512212941"]]
|
37
|
+
[1m[35m (13.2ms)[0m COMMIT
|
38
|
+
Migrating to CreateApidaeObjects (20170512214641)
|
39
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
40
|
+
[1m[35m (8.8ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
42
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
43
|
+
Migrating to CreateApidaeObjects (20170512214641)
|
44
|
+
[1m[35m (0.1ms)[0m BEGIN
|
45
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512214641"]]
|
46
|
+
[1m[35m (2.0ms)[0m COMMIT
|
47
|
+
Migrating to CreateApidaeObjectsApidaeSelections (20170512221525)
|
48
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
49
|
+
[1m[35m (8.1ms)[0m CREATE TABLE "apidae_objects_apidae_selections" ("id" serial primary key, "object_id" integer, "selection_id" integer)
|
50
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
51
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
52
|
+
Migrating to CreateApidaeObjectsApidaeSelections (20170512221525)
|
53
|
+
[1m[35m (0.1ms)[0m BEGIN
|
54
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512221525"]]
|
55
|
+
[1m[35m (2.1ms)[0m COMMIT
|
56
|
+
Migrating to CreateApidaeTowns (20170513114002)
|
57
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
58
|
+
[1m[35m (8.0ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
60
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
61
|
+
Migrating to CreateApidaeTowns (20170513114002)
|
62
|
+
[1m[35m (0.1ms)[0m BEGIN
|
63
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170513114002"]]
|
64
|
+
[1m[35m (2.2ms)[0m COMMIT
|
65
|
+
Migrating to AddTownInseeCodeToObjects (20170513114409)
|
66
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
67
|
+
[1m[35m (19.6ms)[0m ALTER TABLE "apidae_objects" ADD "town_insee_code" character varying
|
68
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
69
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
70
|
+
Migrating to AddTownInseeCodeToObjects (20170513114409)
|
71
|
+
[1m[35m (0.1ms)[0m BEGIN
|
72
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170513114409"]]
|
73
|
+
[1m[35m (2.1ms)[0m COMMIT
|
74
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
75
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
76
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
77
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
78
|
+
[1m[36m (195.3ms)[0m [1mDROP DATABASE IF EXISTS "apidae_engine_test"[0m
|
79
|
+
[1m[35m (470.4ms)[0m CREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'
|
80
|
+
[1m[36mSQL (0.4ms)[0m [1mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
81
|
+
[1m[35m (7.3ms)[0m 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
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "apidae_objects_apidae_selections" ("id" serial primary key, "object_id" integer, "selection_id" integer) [0m
|
83
|
+
[1m[35m (2.6ms)[0m 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
|
+
[1m[36m (2.3ms)[0m [1mCREATE 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) [0m
|
85
|
+
[1m[35m (0.9ms)[0m CREATE UNIQUE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" USING btree ("insee_code")
|
86
|
+
[1m[36m (1.4ms)[0m [1mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL) [0m
|
87
|
+
[1m[35m (0.7ms)[0m CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
|
88
|
+
[1m[36m (0.3ms)[0m [1mSELECT version FROM "schema_migrations"[0m
|
89
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20170513115401')
|
90
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
91
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
92
|
+
Migrating to CreateApidaeSelections (20170512212941)
|
93
|
+
[1m[35m (0.2ms)[0m BEGIN
|
94
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512212941"]]
|
95
|
+
[1m[35m (2.0ms)[0m COMMIT
|
96
|
+
Migrating to CreateApidaeObjects (20170512214641)
|
97
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
98
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170512214641"]]
|
99
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
100
|
+
Migrating to CreateApidaeObjectsApidaeSelections (20170512221525)
|
101
|
+
[1m[35m (0.1ms)[0m BEGIN
|
102
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170512221525"]]
|
103
|
+
[1m[35m (0.2ms)[0m COMMIT
|
104
|
+
Migrating to CreateApidaeTowns (20170513114002)
|
105
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
106
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513114002"]]
|
107
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
108
|
+
Migrating to AddTownInseeCodeToObjects (20170513114409)
|
109
|
+
[1m[35m (0.1ms)[0m BEGIN
|
110
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "schema_migrations" ("version") VALUES ($1)[0m [["version", "20170513114409"]]
|
111
|
+
[1m[35m (0.2ms)[0m COMMIT
|
112
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
113
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
114
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
115
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
116
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
117
|
+
[1m[35m (0.1ms)[0m BEGIN
|
118
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
119
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
120
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
121
|
+
[1m[35m (0.1ms)[0m BEGIN
|
122
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
123
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
124
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
125
|
+
[1m[35m (0.1ms)[0m BEGIN
|
126
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
127
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
128
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
129
|
+
[1m[35m (0.1ms)[0m BEGIN
|
130
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
131
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
132
|
+
Migrating to CreateApidaeAttachedFiles (20170513121215)
|
133
|
+
[1m[35m (0.1ms)[0m BEGIN
|
134
|
+
[1m[36m (5.4ms)[0m [1mCREATE 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) [0m
|
135
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513121215"]]
|
136
|
+
[1m[36m (0.3ms)[0m [1mCOMMIT[0m
|
137
|
+
Migrating to RenameObjectsSelectionsTable (20170513205932)
|
138
|
+
[1m[35m (5.9ms)[0m BEGIN
|
139
|
+
[1m[36m (6.2ms)[0m [1mALTER TABLE "apidae_objects_apidae_selections" RENAME TO "apidae_objects_selections"[0m
|
140
|
+
[1m[35m (0.3ms)[0m ALTER TABLE "public"."apidae_objects_apidae_selections_id_seq" RENAME TO "apidae_objects_selections_id_seq"
|
141
|
+
[1m[36m (0.2ms)[0m [1mALTER INDEX "apidae_objects_apidae_selections_pkey" RENAME TO "apidae_objects_selections_pkey"[0m
|
142
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170513205932"]]
|
143
|
+
[1m[36m (0.2ms)[0m [1mCOMMIT[0m
|
144
|
+
Migrating to AddEntityDataToObjects (20170720161134)
|
145
|
+
[1m[35m (0.1ms)[0m BEGIN
|
146
|
+
[1m[36m (0.3ms)[0m [1mALTER TABLE "apidae_objects" ADD "entity_data" text[0m
|
147
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170720161134"]]
|
148
|
+
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
|
149
|
+
Migrating to CreateApidaeFileImports (20170730102424)
|
150
|
+
[1m[35m (0.1ms)[0m BEGIN
|
151
|
+
[1m[36m (14.1ms)[0m [1mCREATE 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) [0m
|
152
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20170730102424"]]
|
153
|
+
[1m[36m (5.6ms)[0m [1mCOMMIT[0m
|
154
|
+
Migrating to CreateApidaeExports (20171025075304)
|
155
|
+
[1m[35m (5.8ms)[0m BEGIN
|
156
|
+
[1m[36m (13.7ms)[0m [1mCREATE 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) [0m
|
157
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "schema_migrations" ("version") VALUES ($1) [["version", "20171025075304"]]
|
158
|
+
[1m[36m (5.1ms)[0m [1mCOMMIT[0m
|
159
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.3ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
160
|
+
[1m[36m (1.9ms)[0m [1mSELECT 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
|
+
[0m
|
172
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (1.3ms)[0m [1mSELECT 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
|
+
[0m
|
196
|
+
[1m[35m (1.5ms)[0m 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
|
+
[1m[36m (1.5ms)[0m [1mSELECT 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
|
+
[0m
|
220
|
+
[1m[35m (1.4ms)[0m 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
|
+
[1m[36m (1.9ms)[0m [1mSELECT 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
|
+
[0m
|
244
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
245
|
+
[1m[35m (0.2ms)[0m BEGIN
|
246
|
+
----------------------------------------------------
|
247
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
248
|
+
----------------------------------------------------
|
249
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
250
|
+
[1m[35m (0.1ms)[0m BEGIN
|
251
|
+
-------------------------------------------------
|
252
|
+
Apidae::FileImportTest: test_new_object_insertion
|
253
|
+
-------------------------------------------------
|
254
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
255
|
+
[1m[35m (0.1ms)[0m BEGIN
|
256
|
+
-----------------------------------------------------
|
257
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
258
|
+
-----------------------------------------------------
|
259
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
260
|
+
[1m[35m (0.1ms)[0m BEGIN
|
261
|
+
--------------------------------------------------------
|
262
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
263
|
+
--------------------------------------------------------
|
264
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
265
|
+
[1m[35m (0.1ms)[0m BEGIN
|
266
|
+
------------------------------------------------------
|
267
|
+
Apidae::FileImportTest: test_existing_selection_update
|
268
|
+
------------------------------------------------------
|
269
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
270
|
+
[1m[35m (0.1ms)[0m BEGIN
|
271
|
+
---------------------------------------------------
|
272
|
+
Apidae::FileImportTest: test_existing_object_update
|
273
|
+
---------------------------------------------------
|
274
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
275
|
+
[1m[35m (0.1ms)[0m BEGIN
|
276
|
+
------------------------------------------------------
|
277
|
+
Apidae::FileImportTest: test_import_process_end_to_end
|
278
|
+
------------------------------------------------------
|
279
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
280
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
281
|
+
[1m[35m (0.1ms)[0m BEGIN
|
282
|
+
-------------------------------------------------
|
283
|
+
Apidae::FileImportTest: test_new_object_insertion
|
284
|
+
-------------------------------------------------
|
285
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
286
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
287
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
288
|
+
[1m[35m (0.2ms)[0m BEGIN
|
289
|
+
-------------------------------------------------
|
290
|
+
Apidae::FileImportTest: test_new_object_insertion
|
291
|
+
-------------------------------------------------
|
292
|
+
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
293
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
294
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
295
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
296
|
+
[1m[35m (0.2ms)[0m BEGIN
|
297
|
+
-------------------------------------------------
|
298
|
+
Apidae::FileImportTest: test_new_object_insertion
|
299
|
+
-------------------------------------------------
|
300
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
301
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
302
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
303
|
+
[1m[35m (0.2ms)[0m BEGIN
|
304
|
+
-------------------------------------------------
|
305
|
+
Apidae::FileImportTest: test_new_object_insertion
|
306
|
+
-------------------------------------------------
|
307
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
308
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
309
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
310
|
+
[1m[35m (0.2ms)[0m BEGIN
|
311
|
+
-------------------------------------------------
|
312
|
+
Apidae::FileImportTest: test_new_object_insertion
|
313
|
+
-------------------------------------------------
|
314
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
315
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
316
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
317
|
+
[1m[35m (0.2ms)[0m BEGIN
|
318
|
+
-------------------------------------------------
|
319
|
+
Apidae::FileImportTest: test_new_object_insertion
|
320
|
+
-------------------------------------------------
|
321
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
322
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
323
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
324
|
+
[1m[35m (0.1ms)[0m BEGIN
|
325
|
+
-------------------------------------------------
|
326
|
+
Apidae::FileImportTest: test_new_object_insertion
|
327
|
+
-------------------------------------------------
|
328
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
329
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
330
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
331
|
+
[1m[35m (0.3ms)[0m BEGIN
|
332
|
+
-------------------------------------------------
|
333
|
+
Apidae::FileImportTest: test_new_object_insertion
|
334
|
+
-------------------------------------------------
|
335
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
336
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
337
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
338
|
+
[1m[35m (0.2ms)[0m BEGIN
|
339
|
+
-------------------------------------------------
|
340
|
+
Apidae::FileImportTest: test_new_object_insertion
|
341
|
+
-------------------------------------------------
|
342
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
343
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
344
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
345
|
+
[1m[35m (0.2ms)[0m BEGIN
|
346
|
+
-------------------------------------------------
|
347
|
+
Apidae::FileImportTest: test_new_object_insertion
|
348
|
+
-------------------------------------------------
|
349
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
350
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
351
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
352
|
+
[1m[35m (0.2ms)[0m BEGIN
|
353
|
+
-------------------------------------------------
|
354
|
+
Apidae::FileImportTest: test_new_object_insertion
|
355
|
+
-------------------------------------------------
|
356
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
357
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
358
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
359
|
+
[1m[35m (0.2ms)[0m BEGIN
|
360
|
+
-------------------------------------------------
|
361
|
+
Apidae::FileImportTest: test_new_object_insertion
|
362
|
+
-------------------------------------------------
|
363
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
364
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
365
|
+
[1m[36mApidae::Town Load (7.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
366
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
367
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
369
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
370
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
371
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
372
|
+
[1m[35m (0.2ms)[0m BEGIN
|
373
|
+
-------------------------------------------------
|
374
|
+
Apidae::FileImportTest: test_new_object_insertion
|
375
|
+
-------------------------------------------------
|
376
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
377
|
+
[1m[35mApidae::Object Load (0.3ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
378
|
+
[1m[36mApidae::Town Load (0.3ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
379
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
380
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
382
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
383
|
+
[1m[35mApidae::Object Load (0.4ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
384
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
385
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
386
|
+
[1m[35m (0.1ms)[0m BEGIN
|
387
|
+
---------------------------------------------------
|
388
|
+
Apidae::FileImportTest: test_existing_object_update
|
389
|
+
---------------------------------------------------
|
390
|
+
[1m[36mSQL (0.8ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
391
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
392
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
394
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
395
|
+
[1m[35mApidae::Town Load (0.3ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
396
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
397
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
399
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
400
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
401
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
402
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
403
|
+
[1m[35m (0.1ms)[0m BEGIN
|
404
|
+
-------------------------------------------------
|
405
|
+
Apidae::FileImportTest: test_new_object_insertion
|
406
|
+
-------------------------------------------------
|
407
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
408
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
409
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
410
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
411
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
413
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
414
|
+
[1m[35mApidae::Object Load (0.3ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
415
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
416
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
417
|
+
[1m[35m (0.2ms)[0m BEGIN
|
418
|
+
-------------------------------------------------
|
419
|
+
Apidae::FileImportTest: test_new_object_insertion
|
420
|
+
-------------------------------------------------
|
421
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
422
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
423
|
+
[1m[36mApidae::Town Load (0.3ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
424
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
425
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
427
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
428
|
+
[1m[35mApidae::Object Load (0.7ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
429
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
430
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
431
|
+
[1m[35m (0.2ms)[0m BEGIN
|
432
|
+
---------------------------------------------------
|
433
|
+
Apidae::FileImportTest: test_existing_object_update
|
434
|
+
---------------------------------------------------
|
435
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
436
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
437
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
439
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
440
|
+
[1m[35mApidae::Town Load (0.2ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
441
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
442
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
444
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
445
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
446
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
447
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
448
|
+
[1m[35m (0.2ms)[0m BEGIN
|
449
|
+
-----------------------------------------------------
|
450
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
451
|
+
-----------------------------------------------------
|
452
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
453
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
454
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
456
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
457
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
458
|
+
[1m[36mSQL (2.0ms)[0m [1mDELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1[0m [["object_id", 7]]
|
459
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 7]]
|
460
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
461
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
462
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
463
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
464
|
+
[1m[35m (0.2ms)[0m BEGIN
|
465
|
+
------------------------------------------------------
|
466
|
+
Apidae::FileImportTest: test_existing_selection_update
|
467
|
+
------------------------------------------------------
|
468
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
469
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
470
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
471
|
+
---------------------------------------------------
|
472
|
+
Apidae::FileImportTest: test_existing_object_update
|
473
|
+
---------------------------------------------------
|
474
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
475
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
476
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
478
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
479
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
480
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
481
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
483
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
484
|
+
[1m[35mApidae::Object Load (0.4ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
485
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
486
|
+
[1m[35m (0.1ms)[0m BEGIN
|
487
|
+
-----------------------------------------------------
|
488
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
489
|
+
-----------------------------------------------------
|
490
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
491
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
492
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
494
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
495
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
496
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1[0m [["object_id", 9]]
|
497
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 9]]
|
498
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
499
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
500
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
501
|
+
[1m[35m (0.1ms)[0m BEGIN
|
502
|
+
------------------------------------------------------
|
503
|
+
Apidae::FileImportTest: test_import_process_end_to_end
|
504
|
+
------------------------------------------------------
|
505
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
506
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
507
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
508
|
+
--------------------------------------------------------
|
509
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
510
|
+
--------------------------------------------------------
|
511
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
512
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
513
|
+
[1m[35m (0.1ms)[0m BEGIN
|
514
|
+
-------------------------------------------------
|
515
|
+
Apidae::FileImportTest: test_new_object_insertion
|
516
|
+
-------------------------------------------------
|
517
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
518
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
519
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
520
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
521
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
523
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
524
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
525
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
526
|
+
[1m[35m (0.1ms)[0m BEGIN
|
527
|
+
----------------------------------------------------
|
528
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
529
|
+
----------------------------------------------------
|
530
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
531
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
532
|
+
[1m[36mActiveRecord::SchemaMigration Load (26.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
533
|
+
[1m[35m (0.4ms)[0m BEGIN
|
534
|
+
---------------------------------------------------
|
535
|
+
Apidae::FileImportTest: test_existing_object_update
|
536
|
+
---------------------------------------------------
|
537
|
+
[1m[36mSQL (25.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
538
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
539
|
+
[1m[36mSQL (18.4ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
541
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
542
|
+
[1m[35mApidae::Town Load (13.2ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
543
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
544
|
+
[1m[35mSQL (6.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
546
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
547
|
+
[1m[36mApidae::Object Load (6.5ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
548
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
549
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
550
|
+
------------------------------------------------------
|
551
|
+
Apidae::FileImportTest: test_import_process_end_to_end
|
552
|
+
------------------------------------------------------
|
553
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects"
|
554
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
555
|
+
[1m[35m (0.1ms)[0m BEGIN
|
556
|
+
-------------------------------------------------
|
557
|
+
Apidae::FileImportTest: test_new_object_insertion
|
558
|
+
-------------------------------------------------
|
559
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
560
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
561
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
562
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
563
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
565
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
566
|
+
[1m[35mApidae::Object Load (0.3ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
567
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
568
|
+
[1m[35m (0.1ms)[0m BEGIN
|
569
|
+
------------------------------------------------------
|
570
|
+
Apidae::FileImportTest: test_existing_selection_update
|
571
|
+
------------------------------------------------------
|
572
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
573
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
574
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
575
|
+
----------------------------------------------------
|
576
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
577
|
+
----------------------------------------------------
|
578
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects"
|
579
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
580
|
+
[1m[35m (0.1ms)[0m BEGIN
|
581
|
+
-----------------------------------------------------
|
582
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
583
|
+
-----------------------------------------------------
|
584
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
585
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
586
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
588
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
589
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
590
|
+
[1m[36mSQL (6.2ms)[0m [1mDELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1[0m [["object_id", 13]]
|
591
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 13]]
|
592
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
593
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
594
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
595
|
+
[1m[35m (0.1ms)[0m BEGIN
|
596
|
+
--------------------------------------------------------
|
597
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
598
|
+
--------------------------------------------------------
|
599
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
600
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
601
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
602
|
+
[1m[35m (0.2ms)[0m BEGIN
|
603
|
+
----------------------------------------------------
|
604
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
605
|
+
----------------------------------------------------
|
606
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
607
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
608
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
610
|
+
[1m[36mApidae::Selection Load (2.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
611
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
612
|
+
[1m[36mSQL (2.1ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
614
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "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[0m [["selection_id", 1]]
|
615
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
616
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
617
|
+
[1m[35mSQL (2.6ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 1], ["object_id", 14]]
|
618
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
619
|
+
[1m[35mApidae::Selection Load (0.4ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
620
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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[0m [["selection_id", 1]]
|
621
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
622
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m
|
623
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
624
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
625
|
+
[1m[35m (0.2ms)[0m BEGIN
|
626
|
+
----------------------------------------------------
|
627
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
628
|
+
----------------------------------------------------
|
629
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
630
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
631
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
633
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
634
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
635
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
637
|
+
[1m[36mApidae::Object Load (0.4ms)[0m [1mSELECT "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[0m [["selection_id", 2]]
|
638
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
639
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
640
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 2], ["object_id", 15]]
|
641
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
642
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
643
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 2]]
|
644
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
645
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m
|
646
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
647
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
648
|
+
[1m[35m (0.1ms)[0m BEGIN
|
649
|
+
------------------------------------------------------
|
650
|
+
Apidae::FileImportTest: test_existing_selection_update
|
651
|
+
------------------------------------------------------
|
652
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
653
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
654
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
656
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
657
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
659
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
660
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 3], ["object_id", 16]]
|
661
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
662
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
663
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
664
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
665
|
+
[1m[35mApidae::Object Load (0.3ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
667
|
+
[1m[35mApidae::Selection Load (0.1ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
668
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 3]]
|
669
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
670
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
671
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
672
|
+
[1m[35m (0.1ms)[0m BEGIN
|
673
|
+
------------------------------------------------------
|
674
|
+
Apidae::FileImportTest: test_existing_selection_update
|
675
|
+
------------------------------------------------------
|
676
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
677
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
678
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
680
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
681
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
683
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
684
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 4], ["object_id", 17]]
|
685
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
686
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
687
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
688
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
689
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
690
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
691
|
+
[1m[35mApidae::Object Load (0.3ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
693
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
694
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 4]]
|
695
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
696
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
697
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
698
|
+
[1m[35m (0.1ms)[0m BEGIN
|
699
|
+
------------------------------------------------------
|
700
|
+
Apidae::FileImportTest: test_existing_selection_update
|
701
|
+
------------------------------------------------------
|
702
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
703
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
704
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
706
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
707
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
709
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
710
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
712
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
713
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 5], ["object_id", 18]]
|
714
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
715
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
716
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
717
|
+
[1m[35mApidae::Selection Load (0.3ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
718
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
719
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
720
|
+
[1m[36mApidae::Object Load (0.5ms)[0m [1mSELECT "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[0m [["selection_id", 5]]
|
721
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
722
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
723
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 5], ["object_id", 19]]
|
724
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
725
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
726
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 5]]
|
727
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
728
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
729
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
730
|
+
[1m[35m (0.2ms)[0m BEGIN
|
731
|
+
------------------------------------------------------
|
732
|
+
Apidae::FileImportTest: test_existing_selection_update
|
733
|
+
------------------------------------------------------
|
734
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
735
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
736
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
738
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
739
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
741
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
742
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
744
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
745
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 6], ["object_id", 20]]
|
746
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
747
|
+
[1m[35mApidae::Selection Load (0.3ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
748
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
749
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
750
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "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[0m [["selection_id", 6]]
|
751
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
752
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
753
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 6], ["object_id", 21]]
|
754
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
755
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
756
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 6]]
|
757
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
758
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
759
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
760
|
+
[1m[35m (0.1ms)[0m BEGIN
|
761
|
+
------------------------------------------------------
|
762
|
+
Apidae::FileImportTest: test_existing_selection_update
|
763
|
+
------------------------------------------------------
|
764
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
765
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
766
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
768
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
769
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
771
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
772
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
774
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
775
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
776
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
777
|
+
[1m[35mApidae::Object Load (0.4ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 503]]
|
779
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
780
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 7], ["object_id", 22]]
|
781
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
782
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
783
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
784
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 7], ["object_id", 23]]
|
785
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
786
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
787
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
789
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
790
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
791
|
+
[1m[35m (0.1ms)[0m BEGIN
|
792
|
+
------------------------------------------------------
|
793
|
+
Apidae::FileImportTest: test_existing_selection_update
|
794
|
+
------------------------------------------------------
|
795
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
796
|
+
[1m[35m (0.6ms)[0m SAVEPOINT active_record_1
|
797
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
799
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
800
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
802
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
803
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
805
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
806
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 8], ["object_id", 24]]
|
807
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
808
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mApidae::Selection Load (0.5ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
810
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
811
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
812
|
+
[1m[35mApidae::Object Load (0.3ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
814
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
815
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 8], ["object_id", 25]]
|
816
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
817
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
818
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
820
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
821
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
822
|
+
[1m[35m (0.2ms)[0m BEGIN
|
823
|
+
------------------------------------------------------
|
824
|
+
Apidae::FileImportTest: test_existing_selection_update
|
825
|
+
------------------------------------------------------
|
826
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
827
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
828
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
830
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
831
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
833
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
834
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
836
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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[0m [["selection_id", 9]]
|
837
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
838
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
839
|
+
[1m[35m (0.2ms)[0m BEGIN
|
840
|
+
--------------------------------------------------------
|
841
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
842
|
+
--------------------------------------------------------
|
843
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
844
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
845
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
846
|
+
-------------------------------------------------
|
847
|
+
Apidae::FileImportTest: test_new_object_insertion
|
848
|
+
-------------------------------------------------
|
849
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
850
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
851
|
+
[1m[35mApidae::Town Load (0.2ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
852
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
853
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
855
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
856
|
+
[1m[36mApidae::Object Load (0.5ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
857
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
858
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
859
|
+
----------------------------------------------------
|
860
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
861
|
+
----------------------------------------------------
|
862
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects"
|
863
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
864
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
866
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
867
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
868
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
870
|
+
[1m[35mApidae::Object Load (0.5ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
872
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
873
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 10], ["object_id", 29]]
|
874
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
875
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
876
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
878
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
|
879
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
880
|
+
[1m[35m (0.1ms)[0m BEGIN
|
881
|
+
------------------------------------------------------
|
882
|
+
Apidae::FileImportTest: test_existing_selection_update
|
883
|
+
------------------------------------------------------
|
884
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
885
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
886
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
888
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
889
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
891
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
892
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
894
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
895
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 11], ["object_id", 30]]
|
896
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
897
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
899
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
900
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
901
|
+
[1m[35mApidae::Object Load (0.2ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
903
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
904
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 11], ["object_id", 31]]
|
905
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
906
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
907
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
909
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
910
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
911
|
+
------------------------------------------------------
|
912
|
+
Apidae::FileImportTest: test_import_process_end_to_end
|
913
|
+
------------------------------------------------------
|
914
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_objects"
|
915
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
916
|
+
[1m[35m (0.1ms)[0m BEGIN
|
917
|
+
---------------------------------------------------
|
918
|
+
Apidae::FileImportTest: test_existing_object_update
|
919
|
+
---------------------------------------------------
|
920
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
921
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
922
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
924
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
925
|
+
[1m[35mApidae::Town Load (0.3ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
926
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
927
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
929
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
930
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
931
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
932
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
933
|
+
-----------------------------------------------------
|
934
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
935
|
+
-----------------------------------------------------
|
936
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
937
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
938
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
940
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
941
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
942
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 33]]
|
943
|
+
[1m[36mSQL (1.0ms)[0m [1mDELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1[0m [["id", 33]]
|
944
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
945
|
+
[1m[36m (0.6ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
946
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
947
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
948
|
+
[1m[35m (0.1ms)[0m BEGIN
|
949
|
+
------------------------------------------------------
|
950
|
+
Apidae::FileImportTest: test_existing_selection_update
|
951
|
+
------------------------------------------------------
|
952
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
953
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
954
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
956
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
957
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
959
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
960
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
962
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
963
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 12], ["object_id", 34]]
|
964
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
965
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
967
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
968
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
969
|
+
[1m[35mApidae::Object Load (0.3ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
971
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
972
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 12], ["object_id", 35]]
|
973
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
974
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
975
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
977
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
978
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
979
|
+
--------------------------------------------------------
|
980
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
981
|
+
--------------------------------------------------------
|
982
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
983
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
984
|
+
[1m[35m (0.1ms)[0m BEGIN
|
985
|
+
------------------------------------------------------
|
986
|
+
Apidae::FileImportTest: test_import_process_end_to_end
|
987
|
+
------------------------------------------------------
|
988
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
989
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
990
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
991
|
+
-------------------------------------------------
|
992
|
+
Apidae::FileImportTest: test_new_object_insertion
|
993
|
+
-------------------------------------------------
|
994
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects"
|
995
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
996
|
+
[1m[35mApidae::Town Load (0.3ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
997
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
998
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1000
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
1001
|
+
[1m[36mApidae::Object Load (0.4ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
1002
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1003
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1004
|
+
-----------------------------------------------------
|
1005
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
1006
|
+
-----------------------------------------------------
|
1007
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects"
|
1008
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1009
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1011
|
+
[1m[35mApidae::Object Load (0.3ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1012
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1013
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 37]]
|
1014
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1[0m [["id", 37]]
|
1015
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1016
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1017
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1018
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1019
|
+
---------------------------------------------------
|
1020
|
+
Apidae::FileImportTest: test_existing_object_update
|
1021
|
+
---------------------------------------------------
|
1022
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects"
|
1023
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1024
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1026
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1027
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1028
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1029
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "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[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1031
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1032
|
+
[1m[35mApidae::Object Load (0.4ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
1033
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1034
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1035
|
+
----------------------------------------------------
|
1036
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
1037
|
+
----------------------------------------------------
|
1038
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1039
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1040
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1042
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
1043
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1044
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1046
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "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[0m [["selection_id", 13]]
|
1047
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1048
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1049
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 13], ["object_id", 39]]
|
1050
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1051
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1052
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 13]]
|
1053
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1054
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m
|
1055
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1056
|
+
[1m[36mActiveRecord::SchemaMigration Load (18.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1057
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1058
|
+
--------------------------------------------------------
|
1059
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1060
|
+
--------------------------------------------------------
|
1061
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1063
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1065
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1066
|
+
[1m[35mApidae::Selection Load (0.3ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49064]]
|
1067
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1068
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1070
|
+
[1m[35mApidae::Object Load (0.6ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1072
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1073
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 14]]
|
1074
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1076
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1077
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1078
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1079
|
+
--------------------------------------------------------
|
1080
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1081
|
+
--------------------------------------------------------
|
1082
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1083
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1084
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1085
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1086
|
+
--------------------------------------------------------
|
1087
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1088
|
+
--------------------------------------------------------
|
1089
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1090
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "apidae_selections"
|
1091
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1092
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1094
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1095
|
+
[1m[36mApidae::Selection Load (0.7ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1096
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1098
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1099
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1100
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1101
|
+
--------------------------------------------------------
|
1102
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1103
|
+
--------------------------------------------------------
|
1104
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1105
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "apidae_selections"
|
1106
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1107
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1109
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1110
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1111
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections" WHERE "apidae_selections"."id" = 49063
|
1112
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1113
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1115
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1116
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1117
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1118
|
+
--------------------------------------------------------
|
1119
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1120
|
+
--------------------------------------------------------
|
1121
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1122
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_selections"
|
1123
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1124
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1126
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1127
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1128
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "apidae_selections" WHERE "apidae_selections"."id" = 49063
|
1129
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1130
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1132
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
1133
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1134
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1135
|
+
--------------------------------------------------------
|
1136
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1137
|
+
--------------------------------------------------------
|
1138
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1139
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_selections"
|
1140
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1141
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1143
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1144
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1145
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
|
1146
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1147
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1148
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1149
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1150
|
+
[1m[35m (0.3ms)[0m BEGIN
|
1151
|
+
------------------------------------------------
|
1152
|
+
Apidae::FileImportTest: test_full_import_process
|
1153
|
+
------------------------------------------------
|
1154
|
+
[1m[36mSQL (0.7ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1155
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_selections"
|
1156
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1157
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1158
|
+
---------------------------------------------------
|
1159
|
+
Apidae::FileImportTest: test_existing_object_update
|
1160
|
+
---------------------------------------------------
|
1161
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1162
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1163
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1164
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1166
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1167
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1168
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1169
|
+
[1m[36mSQL (0.3ms)[0m [1mUPDATE "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[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1171
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1172
|
+
[1m[35mApidae::Object Load (0.4ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
1173
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1174
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1175
|
+
----------------------------------------------------
|
1176
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
1177
|
+
----------------------------------------------------
|
1178
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1179
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1180
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1181
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1183
|
+
[1m[35mApidae::Selection Load (0.1ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1184
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
1185
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
1186
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1187
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1189
|
+
[1m[35mApidae::Object Load (0.4ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1191
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1192
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 20], ["object_id", 41]]
|
1193
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1194
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1195
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1197
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
|
1198
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1199
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1200
|
+
--------------------------------------------------------
|
1201
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1202
|
+
--------------------------------------------------------
|
1203
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1204
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1205
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1206
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1208
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1209
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1210
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
|
1211
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1212
|
+
[1m[35m (0.4ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1213
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1214
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1215
|
+
------------------------------------------------------
|
1216
|
+
Apidae::FileImportTest: test_existing_selection_update
|
1217
|
+
------------------------------------------------------
|
1218
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1219
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1220
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1221
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1223
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1224
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1226
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1227
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1229
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1230
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 22], ["object_id", 42]]
|
1231
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1232
|
+
[1m[36m (0.3ms)[0m [1mSELECT 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[0m [["selection_id", 22]]
|
1233
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1234
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
1235
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
1236
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1237
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1238
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "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[0m [["selection_id", 22]]
|
1239
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1240
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1241
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 22], ["object_id", 43]]
|
1242
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1243
|
+
[1m[35mApidae::Selection Load (0.1ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1244
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 22]]
|
1245
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1246
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1247
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1248
|
+
-----------------------------------------------------
|
1249
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
1250
|
+
-----------------------------------------------------
|
1251
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1252
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1253
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1254
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1256
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1257
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1258
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 44]]
|
1259
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1[0m [["id", 44]]
|
1260
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
1261
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1262
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1263
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1264
|
+
-------------------------------------------------
|
1265
|
+
Apidae::FileImportTest: test_new_object_insertion
|
1266
|
+
-------------------------------------------------
|
1267
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
1268
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1269
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1270
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1271
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1272
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1274
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1275
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
1276
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1277
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1278
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1279
|
+
------------------------------------------------
|
1280
|
+
Apidae::FileImportTest: test_full_import_process
|
1281
|
+
------------------------------------------------
|
1282
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1283
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1284
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1285
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1287
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1288
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1290
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1291
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1292
|
+
[1m[35m (0.4ms)[0m BEGIN
|
1293
|
+
------------------------------------------------
|
1294
|
+
Apidae::FileImportTest: test_full_import_process
|
1295
|
+
------------------------------------------------
|
1296
|
+
[1m[36mSQL (1.3ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1297
|
+
[1m[35mSQL (0.4ms)[0m DELETE FROM "apidae_selections"
|
1298
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1299
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1301
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1302
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1304
|
+
[1m[36m (0.4ms)[0m [1mROLLBACK[0m
|
1305
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1306
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1307
|
+
------------------------------------------------
|
1308
|
+
Apidae::FileImportTest: test_full_import_process
|
1309
|
+
------------------------------------------------
|
1310
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1311
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_selections"
|
1312
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1313
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1315
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1316
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1318
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1319
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1320
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1321
|
+
------------------------------------------------
|
1322
|
+
Apidae::FileImportTest: test_full_import_process
|
1323
|
+
------------------------------------------------
|
1324
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1325
|
+
[1m[35mSQL (0.6ms)[0m DELETE FROM "apidae_selections"
|
1326
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1327
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1329
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1330
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
1332
|
+
[1m[36m (0.6ms)[0m [1mROLLBACK[0m
|
1333
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1334
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1335
|
+
------------------------------------------------
|
1336
|
+
Apidae::FileImportTest: test_full_import_process
|
1337
|
+
------------------------------------------------
|
1338
|
+
[1m[36mSQL (0.5ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1339
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1340
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1341
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1343
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1344
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1346
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826137]]
|
1347
|
+
[1m[35mApidae::Town Load (0.2ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1348
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1349
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1351
|
+
[1m[35mApidae::Object Load (0.3ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
|
1352
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1353
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1354
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1356
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826282]]
|
1357
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1358
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1359
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1361
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
|
1362
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30287]]
|
1363
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1364
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1366
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4833997]]
|
1367
|
+
[1m[35mApidae::Town Load (0.4ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
|
1368
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1369
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1371
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
|
1372
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1373
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 54]]
|
1374
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1[0m [["id", 54]]
|
1375
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1376
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1377
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections" WHERE 1=0
|
1378
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
1379
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1380
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1382
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "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[0m [["selection_id", 23]]
|
1383
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
|
1384
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1385
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 23], ["object_id", 56]]
|
1386
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1387
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
|
1388
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1389
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 23], ["object_id", 57]]
|
1390
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1391
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
|
1392
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
1393
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1395
|
+
[1m[35mApidae::Object Load (0.3ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826186]]
|
1397
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1398
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 24], ["object_id", 55]]
|
1399
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1400
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4828422]]
|
1401
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1402
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 24], ["object_id", 58]]
|
1403
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1404
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4833997]]
|
1405
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1406
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 24], ["object_id", 59]]
|
1407
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1408
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1409
|
+
[1m[35m (0.4ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 24]]
|
1411
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1412
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1413
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1414
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.3ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1415
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1416
|
+
----------------------------------------------------
|
1417
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
1418
|
+
----------------------------------------------------
|
1419
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1420
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1421
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1422
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1424
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1425
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
1426
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
1427
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1428
|
+
[1m[35mSQL (0.4ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1430
|
+
[1m[35mApidae::Object Load (0.3ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1432
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1433
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 25], ["object_id", 60]]
|
1434
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1435
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1436
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1438
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
|
1439
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1440
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1441
|
+
--------------------------------------------------------
|
1442
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1443
|
+
--------------------------------------------------------
|
1444
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1445
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1446
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1447
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1449
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1450
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1451
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
|
1452
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1453
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1454
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1455
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1456
|
+
-------------------------------------------------
|
1457
|
+
Apidae::FileImportTest: test_new_object_insertion
|
1458
|
+
-------------------------------------------------
|
1459
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1460
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1461
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1462
|
+
[1m[35mApidae::Town Load (0.2ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1463
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
1464
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1466
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
1467
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
1468
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1469
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1470
|
+
---------------------------------------------------
|
1471
|
+
Apidae::FileImportTest: test_existing_object_update
|
1472
|
+
---------------------------------------------------
|
1473
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
1474
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1475
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1476
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1478
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1479
|
+
[1m[35mApidae::Town Load (0.2ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1480
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1481
|
+
[1m[35mSQL (0.6ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1483
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
1484
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
1485
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1486
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1487
|
+
------------------------------------------------------
|
1488
|
+
Apidae::FileImportTest: test_existing_selection_update
|
1489
|
+
------------------------------------------------------
|
1490
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
1491
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1492
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1493
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1495
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1496
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1498
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1499
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1501
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1502
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 27], ["object_id", 63]]
|
1503
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1504
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1506
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections" WHERE 1=0
|
1507
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
1508
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1509
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1510
|
+
[1m[35mApidae::Object Load (0.2ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1512
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1513
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 27], ["object_id", 64]]
|
1514
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1515
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1516
|
+
[1m[35m (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1518
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1519
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1520
|
+
-----------------------------------------------------
|
1521
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
1522
|
+
-----------------------------------------------------
|
1523
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects"
|
1524
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1525
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1526
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1528
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1529
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1530
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1[0m [["object_id", 65]]
|
1531
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 65]]
|
1532
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1533
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
1534
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1535
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1536
|
+
------------------------------------------------
|
1537
|
+
Apidae::FileImportTest: test_full_import_process
|
1538
|
+
------------------------------------------------
|
1539
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1540
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1541
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1542
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1544
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1545
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1547
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826137]]
|
1548
|
+
[1m[35mApidae::Town Load (0.2ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1549
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1550
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1552
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
|
1553
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1554
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1555
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1557
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826282]]
|
1558
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1559
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1560
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1562
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
|
1563
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30287]]
|
1564
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1565
|
+
[1m[36mSQL (0.6ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1567
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4833997]]
|
1568
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
|
1569
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1570
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1572
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 123]]
|
1573
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1574
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 66]]
|
1575
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1[0m [["id", 66]]
|
1576
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1577
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1578
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections" WHERE 1=0
|
1579
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49063]]
|
1580
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
1581
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1583
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "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[0m [["selection_id", 28]]
|
1584
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
|
1585
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1586
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 28], ["object_id", 68]]
|
1587
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1588
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
|
1589
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1590
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 28], ["object_id", 69]]
|
1591
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1592
|
+
[1m[35mApidae::Selection Load (0.1ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49073]]
|
1593
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1594
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1596
|
+
[1m[35mApidae::Object Load (0.2ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826186]]
|
1598
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1599
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 29], ["object_id", 67]]
|
1600
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1601
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4828422]]
|
1602
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1603
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 29], ["object_id", 70]]
|
1604
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1605
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4833997]]
|
1606
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1607
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 29], ["object_id", 71]]
|
1608
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1609
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1610
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 29]]
|
1612
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1613
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1614
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1615
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
1616
|
+
[1m[35m (0.2ms)[0m BEGIN
|
1617
|
+
-----------------------------------------------------
|
1618
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
1619
|
+
-----------------------------------------------------
|
1620
|
+
[1m[36mSQL (0.4ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1621
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_selections"
|
1622
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1623
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1625
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1626
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1627
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1 [["object_id", 72]]
|
1628
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1[0m [["id", 72]]
|
1629
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1630
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1631
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|
1632
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
1633
|
+
------------------------------------------------
|
1634
|
+
Apidae::FileImportTest: test_full_import_process
|
1635
|
+
------------------------------------------------
|
1636
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_objects"
|
1637
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections"[0m
|
1638
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1639
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1641
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1642
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1644
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826137]]
|
1645
|
+
[1m[36mApidae::Town Load (0.3ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1646
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1647
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1649
|
+
[1m[36mApidae::Object Load (0.3ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826186]]
|
1650
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1651
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1652
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1654
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826282]]
|
1655
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1656
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1657
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1659
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4828422]]
|
1660
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30287]]
|
1661
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1662
|
+
[1m[35mSQL (0.5ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1664
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
|
1665
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30287]]
|
1666
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1667
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT 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"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1669
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 123]]
|
1670
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1671
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects_selections" WHERE "apidae_objects_selections"."object_id" = $1[0m [["object_id", 73]]
|
1672
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_objects" WHERE "apidae_objects"."id" = $1 [["id", 73]]
|
1673
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1674
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1675
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
1676
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
1677
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1678
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1680
|
+
[1m[35mApidae::Object Load (0.3ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826137]]
|
1682
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1683
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 30], ["object_id", 75]]
|
1684
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1685
|
+
[1m[36mApidae::Object Load (0.1ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 4826282]]
|
1686
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
1687
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 30], ["object_id", 76]]
|
1688
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1689
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1[0m [["apidae_id", 49073]]
|
1690
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1691
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "apidae_selections" ("apidae_id", "label", "reference", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1693
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "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[0m [["selection_id", 31]]
|
1694
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4826186]]
|
1695
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1696
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 31], ["object_id", 74]]
|
1697
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1698
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4828422]]
|
1699
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1700
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 31], ["object_id", 77]]
|
1701
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1702
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 4833997]]
|
1703
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1704
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 31], ["object_id", 78]]
|
1705
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1706
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1707
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 30]]
|
1708
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1710
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
1711
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1712
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1713
|
+
------------------------------------------------------
|
1714
|
+
Apidae::FileImportTest: test_existing_selection_update
|
1715
|
+
------------------------------------------------------
|
1716
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1717
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1718
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1719
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1721
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1722
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects" ("apidae_id", "title", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1724
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1725
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1727
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1728
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 32], ["object_id", 79]]
|
1729
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1730
|
+
[1m[36m (0.5ms)[0m [1mSELECT 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[0m [["selection_id", 32]]
|
1731
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1732
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
1733
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
1734
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1735
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1736
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "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[0m [["selection_id", 32]]
|
1737
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1738
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1739
|
+
[1m[35mSQL (0.1ms)[0m INSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id" [["selection_id", 32], ["object_id", 80]]
|
1740
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1741
|
+
[1m[35mApidae::Selection Load (0.1ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1742
|
+
[1m[36m (0.2ms)[0m [1mSELECT 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[0m [["selection_id", 32]]
|
1743
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1744
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1745
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1746
|
+
----------------------------------------------------
|
1747
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
1748
|
+
----------------------------------------------------
|
1749
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1750
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1751
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1752
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1754
|
+
[1m[35mApidae::Selection Load (0.3ms)[0m SELECT "apidae_selections".* FROM "apidae_selections"
|
1755
|
+
[1m[36mSQL (0.6ms)[0m [1mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
1756
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT 1 [["apidae_id", 49063]]
|
1757
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1758
|
+
[1m[35mSQL (0.3ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1760
|
+
[1m[35mApidae::Object Load (0.2ms)[0m 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
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1762
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1763
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "apidae_objects_selections" ("selection_id", "object_id") VALUES ($1, $2) RETURNING "id"[0m [["selection_id", 33], ["object_id", 81]]
|
1764
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1765
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1766
|
+
[1m[35m (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_selections"[0m
|
1768
|
+
[1m[35mApidae::Selection Load (0.2ms)[0m SELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT 1
|
1769
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
1770
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1771
|
+
--------------------------------------------------------
|
1772
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
1773
|
+
--------------------------------------------------------
|
1774
|
+
[1m[36mSQL (0.1ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1775
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1776
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1777
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1779
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1780
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1781
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = 49063
|
1782
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1mSELECT "apidae_selections".* FROM "apidae_selections"[0m
|
1783
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_selections"
|
1784
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1785
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1786
|
+
---------------------------------------------------
|
1787
|
+
Apidae::FileImportTest: test_existing_object_update
|
1788
|
+
---------------------------------------------------
|
1789
|
+
[1m[36mSQL (0.2ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1790
|
+
[1m[35mSQL (0.1ms)[0m DELETE FROM "apidae_selections"
|
1791
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1792
|
+
[1m[35mSQL (0.1ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1794
|
+
[1m[35mApidae::Object Load (0.1ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1 [["apidae_id", 504]]
|
1795
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 30248]]
|
1796
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
1797
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "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[0m [["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
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
1799
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "apidae_objects"[0m
|
1800
|
+
[1m[35mApidae::Object Load (0.2ms)[0m SELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1
|
1801
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
1802
|
+
[1m[35m (0.1ms)[0m BEGIN
|
1803
|
+
-------------------------------------------------
|
1804
|
+
Apidae::FileImportTest: test_new_object_insertion
|
1805
|
+
-------------------------------------------------
|
1806
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "apidae_objects"[0m
|
1807
|
+
[1m[35mSQL (0.2ms)[0m DELETE FROM "apidae_selections"
|
1808
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" WHERE "apidae_objects"."apidae_id" = $1 LIMIT 1[0m [["apidae_id", 504]]
|
1809
|
+
[1m[35mApidae::Town Load (0.1ms)[0m SELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT 1 [["apidae_id", 30248]]
|
1810
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
1811
|
+
[1m[35mSQL (0.2ms)[0m 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
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
1813
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(*) FROM "apidae_objects"
|
1814
|
+
[1m[36mApidae::Object Load (0.2ms)[0m [1mSELECT "apidae_objects".* FROM "apidae_objects" ORDER BY "apidae_objects"."id" ASC LIMIT 1[0m
|
1815
|
+
[1m[35m (0.1ms)[0m ROLLBACK
|