apidae 1.3.7 → 1.3.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/apidae/apidae_data_parser.rb +1 -1
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/log/development.log +24 -0
- data/test/dummy/log/test.log +754 -0
- data/test/models/apidae/obj_test.rb +10 -3
- metadata +4 -2
@@ -0,0 +1,754 @@
|
|
1
|
+
[1m[35m (21.4ms)[0m [1m[35mDROP DATABASE IF EXISTS "apidae_engine_test"[0m
|
2
|
+
[1m[35m (109.4ms)[0m [1m[35mCREATE DATABASE "apidae_engine_test" ENCODING = 'unicode'[0m
|
3
|
+
[1m[35mSQL (0.6ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
4
|
+
[1m[35m (2.6ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_exports" CASCADE[0m
|
5
|
+
[1m[35m (7.8ms)[0m [1m[35mCREATE TABLE "apidae_exports" ("id" serial NOT NULL 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
|
6
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_file_imports" CASCADE[0m
|
7
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "apidae_file_imports" ("id" serial NOT NULL 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, "apidae_id" integer)[0m
|
8
|
+
[1m[35m (0.2ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_objects_selections" CASCADE[0m
|
9
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)[0m
|
10
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_objs" CASCADE[0m
|
11
|
+
[1m[35m (2.3ms)[0m [1m[35mCREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)[0m
|
12
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")[0m
|
13
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")[0m
|
14
|
+
[1m[35m (0.6ms)[0m [1m[35mCREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")[0m
|
15
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")[0m
|
16
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_projects" CASCADE[0m
|
17
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locales_data" character varying, "versions_data" character varying)[0m
|
18
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_references" CASCADE[0m
|
19
|
+
[1m[35m (1.8ms)[0m [1m[35mCREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "meta_data" jsonb, "is_active" boolean)[0m
|
20
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")[0m
|
21
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")[0m
|
22
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")[0m
|
23
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_selection_objects" CASCADE[0m
|
24
|
+
[1m[35m (1.1ms)[0m [1m[35mCREATE TABLE "apidae_selection_objects" ("id" bigserial primary key, "apidae_selection_id" integer, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
25
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_selections" CASCADE[0m
|
26
|
+
[1m[35m (1.7ms)[0m [1m[35mCREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_project_id" integer)[0m
|
27
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_territories" CASCADE[0m
|
28
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "apidae_territories" ("id" bigserial primary key, "apidae_id" integer, "name" character varying, "apidae_type" integer)[0m
|
29
|
+
[1m[35m (0.7ms)[0m [1m[35mCREATE INDEX "index_apidae_territories_on_apidae_id" ON "apidae_territories" ("apidae_id")[0m
|
30
|
+
[1m[35m (0.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_towns" CASCADE[0m
|
31
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "apidae_towns" ("id" serial NOT NULL 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, "description" character varying)[0m
|
32
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")[0m
|
33
|
+
[1m[35m (1.6ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" character varying NOT NULL PRIMARY KEY)[0m
|
34
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
35
|
+
[1m[35m (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES (20210607214647)[0m
|
36
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" character varying NOT NULL PRIMARY KEY, "value" character varying, "created_at" timestamp(6) NOT NULL, "updated_at" timestamp(6) NOT NULL)[0m
|
37
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
38
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
39
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "environment"], ["value", "test"], ["created_at", "2022-03-29 13:30:42.605893"], ["updated_at", "2022-03-29 13:30:42.605893"]]
|
40
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
41
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
42
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
43
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
44
|
+
[1m[36mActiveRecord::InternalMetadata Create (0.1ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "key"[0m [["key", "schema_sha1"], ["value", "34f1098ed601674379a2c7ee3f36fdbdd6d59fbf"], ["created_at", "2022-03-29 13:30:42.609318"], ["updated_at", "2022-03-29 13:30:42.609318"]]
|
45
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mCOMMIT[0m
|
46
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
47
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
48
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT pg_try_advisory_lock(6146893715189925390)[0m
|
49
|
+
[1m[35m (0.9ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
50
|
+
Migrating to CreateApidaeSelections (20170512212941)
|
51
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
52
|
+
[1m[35m (6.4ms)[0m [1m[35mCREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
53
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
54
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT pg_advisory_unlock(6146893715189925390)[0m
|
55
|
+
[1m[35m (1.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
56
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
57
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
58
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
59
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
60
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "environment"]]
|
61
|
+
[1m[35mSQL (0.1ms)[0m [1m[35mCREATE EXTENSION IF NOT EXISTS "plpgsql"[0m
|
62
|
+
[1m[35m (2.3ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_exports" CASCADE[0m
|
63
|
+
[1m[35m (2.2ms)[0m [1m[35mCREATE TABLE "apidae_exports" ("id" serial NOT NULL 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
|
64
|
+
[1m[35m (1.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_file_imports" CASCADE[0m
|
65
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "apidae_file_imports" ("id" serial NOT NULL 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, "apidae_id" integer)[0m
|
66
|
+
[1m[35m (0.6ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_objects_selections" CASCADE[0m
|
67
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "apidae_objects_selections" ("id" serial NOT NULL PRIMARY KEY, "object_id" integer, "selection_id" integer)[0m
|
68
|
+
[1m[35m (1.4ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_objs" CASCADE[0m
|
69
|
+
[1m[35m (2.0ms)[0m [1m[35mCREATE TABLE "apidae_objs" ("id" serial NOT NULL PRIMARY KEY, "apidae_id" integer, "apidae_type" character varying, "apidae_subtype" character varying, "contact_data" jsonb, "type_data" jsonb, "openings_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "town_insee_code" character varying, "pictures_data" jsonb, "entity_data" jsonb, "service_data" jsonb, "rates_data" jsonb, "attachments_data" jsonb, "tags_data" jsonb, "meta_data" jsonb, "location_data" jsonb, "description_data" jsonb, "title_data" jsonb, "booking_data" jsonb, "version" character varying, "root_obj_id" integer, "last_update" timestamp, "owner_data" jsonb, "version_data" jsonb)[0m
|
70
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "apidae_objs_apidae_id" ON "apidae_objs" ("apidae_id")[0m
|
71
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE UNIQUE INDEX "index_apidae_objs_on_root_obj_id_and_version" ON "apidae_objs" ("root_obj_id", "version")[0m
|
72
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "apidae_objs_root_obj_id" ON "apidae_objs" ("root_obj_id")[0m
|
73
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_apidae_objs_on_town_insee_code" ON "apidae_objs" ("town_insee_code")[0m
|
74
|
+
[1m[35m (1.1ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_projects" CASCADE[0m
|
75
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "apidae_projects" ("id" bigserial primary key, "name" character varying, "apidae_id" integer, "api_key" character varying, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "locales_data" character varying, "versions_data" character varying)[0m
|
76
|
+
[1m[35m (1.5ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_references" CASCADE[0m
|
77
|
+
[1m[35m (1.5ms)[0m [1m[35mCREATE TABLE "apidae_references" ("id" bigserial primary key, "apidae_id" integer, "apidae_type" character varying, "label_data" jsonb, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "meta_data" jsonb, "is_active" boolean)[0m
|
78
|
+
[1m[35m (0.5ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_apidae_id" ON "apidae_references" ("apidae_id")[0m
|
79
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_apidae_type" ON "apidae_references" ("apidae_type")[0m
|
80
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_apidae_references_on_is_active" ON "apidae_references" ("is_active")[0m
|
81
|
+
[1m[35m (0.8ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_selection_objects" CASCADE[0m
|
82
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "apidae_selection_objects" ("id" bigserial primary key, "apidae_selection_id" integer, "apidae_object_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)[0m
|
83
|
+
[1m[35m (0.9ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_selections" CASCADE[0m
|
84
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "apidae_selections" ("id" serial NOT NULL PRIMARY KEY, "label" character varying, "reference" character varying, "apidae_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "apidae_project_id" integer)[0m
|
85
|
+
[1m[35m (1.2ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_territories" CASCADE[0m
|
86
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "apidae_territories" ("id" bigserial primary key, "apidae_id" integer, "name" character varying, "apidae_type" integer)[0m
|
87
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_apidae_territories_on_apidae_id" ON "apidae_territories" ("apidae_id")[0m
|
88
|
+
[1m[35m (1.2ms)[0m [1m[35mDROP TABLE IF EXISTS "apidae_towns" CASCADE[0m
|
89
|
+
[1m[35m (1.4ms)[0m [1m[35mCREATE TABLE "apidae_towns" ("id" serial NOT NULL 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, "description" character varying)[0m
|
90
|
+
[1m[35m (0.4ms)[0m [1m[35mCREATE INDEX "index_apidae_towns_on_insee_code" ON "apidae_towns" ("insee_code")[0m
|
91
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
92
|
+
[1m[35m (0.6ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES
|
93
|
+
(20170512212941),
|
94
|
+
(20170512214641),
|
95
|
+
(20170512221525),
|
96
|
+
(20170513114002),
|
97
|
+
(20170513114409),
|
98
|
+
(20170513115401),
|
99
|
+
(20170513121215),
|
100
|
+
(20170513205932),
|
101
|
+
(20170720161134),
|
102
|
+
(20170730102424),
|
103
|
+
(20171025075304),
|
104
|
+
(20180217222410),
|
105
|
+
(20180218172704),
|
106
|
+
(20180218231319),
|
107
|
+
(20180222104915),
|
108
|
+
(20180222105302),
|
109
|
+
(20180307164936),
|
110
|
+
(20180307170349),
|
111
|
+
(20180314093512),
|
112
|
+
(20180314132631),
|
113
|
+
(20180319143954),
|
114
|
+
(20180417164604),
|
115
|
+
(20180417165744),
|
116
|
+
(20180417171344),
|
117
|
+
(20180418141248),
|
118
|
+
(20180418141305),
|
119
|
+
(20180424141656),
|
120
|
+
(20180519170210),
|
121
|
+
(20180521211735),
|
122
|
+
(20180625050400),
|
123
|
+
(20181024072424),
|
124
|
+
(20181024072843),
|
125
|
+
(20190111162443),
|
126
|
+
(20190123142628),
|
127
|
+
(20190123160046),
|
128
|
+
(20190123214635),
|
129
|
+
(20190124162543),
|
130
|
+
(20190127210921),
|
131
|
+
(20190127213602),
|
132
|
+
(20190304142446),
|
133
|
+
(20190418133435),
|
134
|
+
(20190517153215),
|
135
|
+
(20200111214145),
|
136
|
+
(20200111214631),
|
137
|
+
(20200224130804),
|
138
|
+
(20200224145802),
|
139
|
+
(20200312150008),
|
140
|
+
(20200312150904),
|
141
|
+
(20200522124205),
|
142
|
+
(20200528101957),
|
143
|
+
(20201112080847);
|
144
|
+
|
145
|
+
[0m
|
146
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
147
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
148
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "schema_sha1"], ["LIMIT", 1]]
|
149
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
150
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
151
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
152
|
+
------------------------------------------------------
|
153
|
+
Apidae::FileImportTest: test_existing_selection_update
|
154
|
+
------------------------------------------------------
|
155
|
+
[1m[36mApidae::Obj Destroy (1.4ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
156
|
+
[1m[36mApidae::Project Destroy (0.6ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
157
|
+
[1m[36mApidae::Selection Destroy (0.8ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
158
|
+
[1m[36mApidae::Town Destroy (0.9ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
159
|
+
[1m[36mApidae::Reference Destroy (1.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
160
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
161
|
+
[1m[36mApidae::Obj Create (2.3ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 503], ["created_at", "2022-03-29 13:31:25.614619"], ["updated_at", "2022-03-29 13:31:25.614619"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
|
162
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
163
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
164
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 504], ["created_at", "2022-03-29 13:31:25.618423"], ["updated_at", "2022-03-29 13:31:25.618423"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
|
165
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
166
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
167
|
+
[1m[36mApidae::Project Exists? (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
168
|
+
[1m[36mApidae::Project Create (0.8ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2022-03-29 13:31:25.626688"], ["updated_at", "2022-03-29 13:31:25.626688"]]
|
169
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
170
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
171
|
+
[1m[36mApidae::Selection Create (0.8ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2022-03-29 13:31:25.633068"], ["updated_at", "2022-03-29 13:31:25.633068"], ["apidae_project_id", 1]]
|
172
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
173
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
174
|
+
[1m[36mApidae::SelectionObject Create (1.1ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 1], ["apidae_object_id", 1], ["created_at", "2022-03-29 13:31:25.654900"], ["updated_at", "2022-03-29 13:31:25.654900"]]
|
175
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
176
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 1]]
|
177
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 1]]
|
178
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE 1=0[0m
|
179
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
180
|
+
Updating selection 49063
|
181
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49063], ["LIMIT", 1]]
|
182
|
+
[1m[36mApidae::Obj Load (0.6ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 1]]
|
183
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
184
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
185
|
+
[1m[36mApidae::SelectionObject Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 1], ["apidae_object_id", 2], ["created_at", "2022-03-29 13:31:25.687432"], ["updated_at", "2022-03-29 13:31:25.687432"]]
|
186
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
187
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 1]]
|
188
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 1]]
|
189
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 1]]
|
190
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
191
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|
192
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
193
|
+
----------------------------------------------------
|
194
|
+
Apidae::FileImportTest: test_new_selection_insertion
|
195
|
+
----------------------------------------------------
|
196
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
197
|
+
[1m[36mApidae::Project Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
198
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
199
|
+
[1m[36mApidae::Town Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
200
|
+
[1m[36mApidae::Reference Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
201
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
202
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 504], ["created_at", "2022-03-29 13:31:25.693741"], ["updated_at", "2022-03-29 13:31:25.693741"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
|
203
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
204
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
205
|
+
[1m[36mApidae::Project Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
206
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2022-03-29 13:31:25.695851"], ["updated_at", "2022-03-29 13:31:25.695851"]]
|
207
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
208
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 2]]
|
209
|
+
[1m[36mApidae::SelectionObject Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE 1=0[0m
|
210
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
211
|
+
Updating selection 49063
|
212
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49063], ["LIMIT", 1]]
|
213
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
214
|
+
[1m[36mApidae::Selection Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2022-03-29 13:31:25.714883"], ["updated_at", "2022-03-29 13:31:25.714883"], ["apidae_project_id", 2]]
|
215
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
216
|
+
[1m[36mApidae::Obj Load (0.7ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 2]]
|
217
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
218
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
219
|
+
[1m[36mApidae::SelectionObject Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 2], ["apidae_object_id", 3], ["created_at", "2022-03-29 13:31:25.718270"], ["updated_at", "2022-03-29 13:31:25.718270"]]
|
220
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
221
|
+
[1m[36mApidae::SelectionObject Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 2]]
|
222
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 2]]
|
223
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 2]]
|
224
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
225
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" ORDER BY "apidae_selections"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
226
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|
227
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
228
|
+
------------------------------------------------
|
229
|
+
Apidae::FileImportTest: test_full_import_process
|
230
|
+
------------------------------------------------
|
231
|
+
[1m[36mApidae::Obj Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
232
|
+
[1m[36mApidae::Project Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
233
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
234
|
+
[1m[36mApidae::Town Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
235
|
+
[1m[36mApidae::Reference Destroy (0.6ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
236
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
237
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2022-03-29 13:31:25.725551"], ["updated_at", "2022-03-29 13:31:25.725551"], ["title_data", "{\"title\":{\"\":\"Objet à supprimer\"}}"]]
|
238
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
239
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
240
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 4826186], ["created_at", "2022-03-29 13:31:25.727153"], ["updated_at", "2022-03-29 13:31:25.727153"], ["title_data", "{\"title\":{\"\":\"Objet à mettre à jour\"}}"]]
|
241
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
242
|
+
[1m[36mApidae::Project Load (0.2ms)[0m [1m[34mSELECT "apidae_projects".* FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
243
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
244
|
+
[1m[36mApidae::Project Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
245
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2022-03-29 13:31:25.730039"], ["updated_at", "2022-03-29 13:31:25.730039"]]
|
246
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
247
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND (apidae_type != 'internal')[0m [["is_active", true]]
|
248
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
249
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
250
|
+
[1m[36mApidae::Reference Create (1.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["apidae_id", 1], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Famille de références sitra\"}"], ["created_at", "2022-03-29 13:31:25.736650"], ["updated_at", "2022-03-29 13:31:25.736650"], ["meta_data", "{}"], ["is_active", true]]
|
251
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
252
|
+
[1m[36mApidae::Reference Load (0.4ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
253
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
254
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["apidae_id", 2], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Offres adaptées à des clientèles spécifiques\"}"], ["created_at", "2022-03-29 13:31:25.739380"], ["updated_at", "2022-03-29 13:31:25.739380"], ["meta_data", "{}"], ["is_active", true]]
|
255
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
256
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
257
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
258
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["apidae_id", 3], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèles pratiquant une activité spécifique\"}"], ["created_at", "2022-03-29 13:31:25.740911"], ["updated_at", "2022-03-29 13:31:25.740911"], ["meta_data", "{}"], ["is_active", true]]
|
259
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
260
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["LIMIT", 1]]
|
261
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
262
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "meta_data", "is_active") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["apidae_id", 4], ["apidae_type", "FamilleCritere"], ["label_data", "{\"fr\":\"Clientèle handicapée\"}"], ["created_at", "2022-03-29 13:31:25.742446"], ["updated_at", "2022-03-29 13:31:25.742446"], ["meta_data", "{}"], ["is_active", false]]
|
263
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
264
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2[0m [["is_active", true], ["apidae_type", "internal"]]
|
265
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 5382], ["apidae_type", "internal"], ["LIMIT", 1]]
|
266
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
267
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 5382], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"10 - Membre en Test ou stand by\"}"], ["created_at", "2022-03-29 13:31:25.744705"], ["updated_at", "2022-03-29 13:31:25.744705"], ["is_active", true]]
|
268
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
269
|
+
[1m[36mApidae::Reference Load (0.5ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 7579], ["apidae_type", "internal"], ["LIMIT", 1]]
|
270
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
271
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 7579], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"82_2016 - Dossier d'adhésion contributeur envoyé\"}"], ["created_at", "2022-03-29 13:31:25.746812"], ["updated_at", "2022-03-29 13:31:25.746812"], ["is_active", true]]
|
272
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
273
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8875], ["apidae_type", "internal"], ["LIMIT", 1]]
|
274
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
275
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8875], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - À la ferme\"}"], ["created_at", "2022-03-29 13:31:25.748334"], ["updated_at", "2022-03-29 13:31:25.748334"], ["is_active", true]]
|
276
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
277
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8876], ["apidae_type", "internal"], ["LIMIT", 1]]
|
278
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
279
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8876], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Bien-être\"}"], ["created_at", "2022-03-29 13:31:25.749714"], ["updated_at", "2022-03-29 13:31:25.749714"], ["is_active", true]]
|
280
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
281
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8877], ["apidae_type", "internal"], ["LIMIT", 1]]
|
282
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
283
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8877], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Famille\"}"], ["created_at", "2022-03-29 13:31:25.751071"], ["updated_at", "2022-03-29 13:31:25.751071"], ["is_active", true]]
|
284
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
285
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8879], ["apidae_type", "internal"], ["LIMIT", 1]]
|
286
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
287
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8879], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Moto\"}"], ["created_at", "2022-03-29 13:31:25.752373"], ["updated_at", "2022-03-29 13:31:25.752373"], ["is_active", true]]
|
288
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
289
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8880], ["apidae_type", "internal"], ["LIMIT", 1]]
|
290
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
291
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8880], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Nattitude\"}"], ["created_at", "2022-03-29 13:31:25.753669"], ["updated_at", "2022-03-29 13:31:25.753669"], ["is_active", true]]
|
292
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
293
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8881], ["apidae_type", "internal"], ["LIMIT", 1]]
|
294
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
295
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8881], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine nature\"}"], ["created_at", "2022-03-29 13:31:25.755089"], ["updated_at", "2022-03-29 13:31:25.755089"], ["is_active", true]]
|
296
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
297
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8882], ["apidae_type", "internal"], ["LIMIT", 1]]
|
298
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
299
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8882], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Équestre\"}"], ["created_at", "2022-03-29 13:31:25.756402"], ["updated_at", "2022-03-29 13:31:25.756402"], ["is_active", true]]
|
300
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
301
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8883], ["apidae_type", "internal"], ["LIMIT", 1]]
|
302
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
303
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8883], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Neige\"}"], ["created_at", "2022-03-29 13:31:25.757890"], ["updated_at", "2022-03-29 13:31:25.757890"], ["is_active", true]]
|
304
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
305
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8884], ["apidae_type", "internal"], ["LIMIT", 1]]
|
306
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
307
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8884], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Pêche\"}"], ["created_at", "2022-03-29 13:31:25.759232"], ["updated_at", "2022-03-29 13:31:25.759232"], ["is_active", true]]
|
308
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
309
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8885], ["apidae_type", "internal"], ["LIMIT", 1]]
|
310
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
311
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8885], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Randonnée\"}"], ["created_at", "2022-03-29 13:31:25.760548"], ["updated_at", "2022-03-29 13:31:25.760548"], ["is_active", true]]
|
312
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
313
|
+
[1m[36mApidae::Reference Load (0.1ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8886], ["apidae_type", "internal"], ["LIMIT", 1]]
|
314
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
315
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8886], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Sport d'eau vive\"}"], ["created_at", "2022-03-29 13:31:25.761850"], ["updated_at", "2022-03-29 13:31:25.761850"], ["is_active", true]]
|
316
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
317
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8887], ["apidae_type", "internal"], ["LIMIT", 1]]
|
318
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
319
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8887], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Pleine Nature - Vélo\"}"], ["created_at", "2022-03-29 13:31:25.763196"], ["updated_at", "2022-03-29 13:31:25.763196"], ["is_active", true]]
|
320
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
321
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 8888], ["apidae_type", "internal"], ["LIMIT", 1]]
|
322
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
323
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 8888], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Filière - Scolaires\"}"], ["created_at", "2022-03-29 13:31:25.764738"], ["updated_at", "2022-03-29 13:31:25.764738"], ["is_active", true]]
|
324
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
325
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 9590], ["apidae_type", "internal"], ["LIMIT", 1]]
|
326
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
327
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 9590], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"GM - Génération Montagne\"}"], ["created_at", "2022-03-29 13:31:25.766158"], ["updated_at", "2022-03-29 13:31:25.766158"], ["is_active", true]]
|
328
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
329
|
+
[1m[36mApidae::Reference Load (0.2ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_id" = $2 AND "apidae_references"."apidae_type" = $3 LIMIT $4[0m [["is_active", true], ["apidae_id", 10051], ["apidae_type", "internal"], ["LIMIT", 1]]
|
330
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
331
|
+
[1m[36mApidae::Reference Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_references" ("apidae_id", "apidae_type", "label_data", "created_at", "updated_at", "is_active") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 10051], ["apidae_type", "internal"], ["label_data", "{\"libelleFr\":\"Partenaire\"}"], ["created_at", "2022-03-29 13:31:25.767495"], ["updated_at", "2022-03-29 13:31:25.767495"], ["is_active", true]]
|
332
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
333
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
334
|
+
Completed 20 references update
|
335
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_towns"[0m
|
336
|
+
[1m[36mApidae::Reference Load (0.3ms)[0m [1m[34mSELECT "apidae_references".* FROM "apidae_references" WHERE "apidae_references"."is_active" = $1 AND "apidae_references"."apidae_type" = $2[0m [["is_active", true], ["apidae_type", "Pays"]]
|
337
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 1], ["LIMIT", 1]]
|
338
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
339
|
+
[1m[36mApidae::Town Create (1.0ms)[0m [1m[32mINSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 1], ["insee_code", "01001"], ["name", "L'Abergement-Clémenciat"], ["postal_code", "01400"], ["created_at", "2022-03-29 13:31:25.777515"], ["updated_at", "2022-03-29 13:31:25.777515"]]
|
340
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
341
|
+
[1m[36mApidae::Town Load (0.3ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 2], ["LIMIT", 1]]
|
342
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
343
|
+
[1m[36mApidae::Town Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 2], ["insee_code", "01002"], ["name", "L'Abergement-de-Varey"], ["postal_code", "01640"], ["created_at", "2022-03-29 13:31:25.779914"], ["updated_at", "2022-03-29 13:31:25.779914"]]
|
344
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
345
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 3], ["LIMIT", 1]]
|
346
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
347
|
+
[1m[36mApidae::Town Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_towns" ("apidae_id", "insee_code", "name", "postal_code", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["apidae_id", 3], ["insee_code", "01004"], ["name", "Ambérieu-en-Bugey"], ["postal_code", "01500"], ["created_at", "2022-03-29 13:31:25.785355"], ["updated_at", "2022-03-29 13:31:25.785355"]]
|
348
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
349
|
+
[1m[36mApidae::Town Load (0.3ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" ORDER BY "apidae_towns"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
350
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
351
|
+
[1m[36mApidae::Town Update (0.4ms)[0m [1m[33mUPDATE "apidae_towns" SET "updated_at" = $1 WHERE "apidae_towns"."id" = $2[0m [["updated_at", "2022-03-29 13:31:25.787021"], ["id", 1]]
|
352
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
353
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_towns"[0m
|
354
|
+
Completed 3 towns update
|
355
|
+
Processing file : objets_modifies/objets_modifies-2.json
|
356
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4833997], ["LIMIT", 1]]
|
357
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30287], ["LIMIT", 1]]
|
358
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
359
|
+
[1m[36mApidae::Obj Create (1.9ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id"[0m [["apidae_id", 4833997], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 4 novembre à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13969038,\"external_id\":null,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.793665"], ["updated_at", "2022-03-29 13:31:25.793665"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":80314,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Tarif unique : 5 €.\"},\"rates\":[{\"id\":8307032,\"start_date\":\"2017-11-04\",\"end_date\":\"2017-11-04\",\"values\":[{\"min\":5.0,\"max\":null,\"type\":4123,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1284,1286],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[542,2060,9580]}"], ["location_data", "{\"address\":[\"Avenue du Lac de Constance\",\"Savoie Technolac\"],\"place\":\"La Traverse\",\"latitude\":45.645852,\"longitude\":5.865084,\"map_reference\":null,\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Les Spécimens ce sont quatre personnages d'un cirque à la dérive qui essayent de trouver tous les stratagèmes possibles pour renflouer la caisse.\\r\\nTout au long du spectacle, ils mêlent portés acrobatiques, diabolo, jonglage et dressage à un jeu clownesque.\"},\"long_desc\":{\"fr\":\"Accompagnés de leurs animaux de compagnie, devenus animaux de cirque, ils se battent pour continuer à jouer leurs numéros.\\r\\n\\r\\nUn spectacle qui ravira petits et grands.\\r\\n\\r\\nCompagnie du Fil à retordre\\r\\nAvec Hugo Varret, Héloïse Rodot, Guillaume Lamour, Anouck Wroblewski\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Les Spécimens - Spectacle familial\"}}"], ["booking_data", "{\"booking_entities\":[],\"booking_desc\":[{},[]]}"], ["version", "STANDARD"], ["last_update", "2017-09-21 09:51:57.288000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
|
360
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
361
|
+
Processing file : objets_modifies/objets_modifies-1.json
|
362
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826137], ["LIMIT", 1]]
|
363
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
364
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
365
|
+
[1m[36mApidae::Obj Create (1.0ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id"[0m [["apidae_id", 4826137], ["apidae_type", "FETE_ET_MANIFESTATION"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[570],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Mardi 7 novembre 2017 de 7h à 19h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13924098,\"external_id\":null,\"start_date\":\"2017-11-07\",\"end_date\":\"2017-11-07\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"07:00:00\",\"end_time\":\"19:00:00\",\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.800025"], ["updated_at", "2022-03-29 13:31:25.800025"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685888,\"longitude\":5.915215,\"map_reference\":null,\"altitude\":null,\"access\":{},\"environments\":[173]}"], ["description_data", "{\"short_desc\":{\"fr\":\"Réunion de médecins, infirmières, personnel médical. Les centres de coordination en Cancérologie sont des cellules qualités opérationnelles mises en place pour assurer la pluridisciplinarité de la prise en charge du patient. Congres privé.\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"3C-Centre de Coordination en Cancerologie\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:27:36.711000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
|
366
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
367
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826186], ["LIMIT", 1]]
|
368
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
369
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
370
|
+
[1m[36mApidae::Obj Update (0.9ms)[0m [1m[33mUPDATE "apidae_objs" SET "apidae_type" = $1, "apidae_subtype" = $2, "contact_data" = $3, "type_data" = $4, "openings_data" = $5, "updated_at" = $6, "pictures_data" = $7, "entity_data" = $8, "service_data" = $9, "rates_data" = $10, "attachments_data" = $11, "tags_data" = $12, "location_data" = $13, "description_data" = $14, "title_data" = $15, "booking_data" = $16, "last_update" = $17, "owner_data" = $18 WHERE "apidae_objs"."id" = $19[0m [["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1966"], ["contact_data", "{\"contacts\":null,\"website\":{\"53824257\":{\"value\":\"https://www.acielouvert.org\",\"description\":null}}}"], ["type_data", "{\"categories\":[2084],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du samedi 11 au lundi 13 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13924478,\"external_id\":null,\"start_date\":\"2017-11-11\",\"end_date\":\"2017-11-13\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["updated_at", "2022-03-29 13:31:25.804349"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"place\":\"Centre culturel et des congrès André Grosjean\",\"latitude\":45.685775,\"longitude\":5.915461,\"map_reference\":\"J5\",\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Objet du forum : L’étude et la transmission des cultures et sagesses du monde pour un développement de la sagesse dans notre société moderne occidentale. Ouvert sur inscription\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"A ciel ouvert -Vivre relié à l'essentiel\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["last_update", "2017-09-14 09:17:06.836000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["id", 5]]
|
371
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
372
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826282], ["LIMIT", 1]]
|
373
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
374
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
375
|
+
[1m[36mApidae::Obj Create (1.1ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id"[0m [["apidae_id", 4826282], ["apidae_type", "FETE_ET_MANIFESTATION"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[570],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Samedi 18 novembre 2017.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13925007,\"external_id\":null,\"start_date\":\"2017-11-18\",\"end_date\":\"2017-11-18\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.808670"], ["updated_at", "2022-03-29 13:31:25.808670"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"entity_id\":544515,\"service_provider_id\":null}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{},\"rates\":[],\"payment_methods\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{\"address\":[\"Rue Jean Monard\"],\"latitude\":45.685775,\"longitude\":5.915461,\"map_reference\":\"J5\",\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"La remise des diplomes de l'ecole d'ingenieurs de l'université Savoie Mont Blanc, Polytech Annecy-Chambery, Manifestation privée\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Remise des diplômes POLYTECH Annecy-Chambery\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-09-14 08:29:13.914000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
|
376
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
377
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4828422], ["LIMIT", 1]]
|
378
|
+
[1m[36mApidae::Town Load (0.3ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30287], ["LIMIT", 1]]
|
379
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
380
|
+
[1m[36mApidae::Obj Create (2.9ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id"[0m [["apidae_id", 4828422], ["apidae_type", "FETE_ET_MANIFESTATION"], ["apidae_subtype", "1958"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[2091,2147],\"themes\":[2064,2257],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Jeudi 19 avril 2018 à 20h30.\\n\\nVendredi 20 avril 2018 à 20h30.\\n\\nSamedi 21 avril 2018 à 20h30.\\n\\nDimanche 22 avril 2018 à 17h.\\n\\nMardi 24 avril 2018 à 20h30.\\n\\nMercredi 25 avril 2018 à 20h30.\\n\\nVendredi 27 avril 2018 à 20h30.\\n\\nSamedi 28 avril 2018 à 20h30.\\n\\nDimanche 29 avril 2018 à 17h.\\n\\nLundi 30 avril 2018 à 20h30.\\n\\nMercredi 2 mai 2018 à 20h30.\\n\\nJeudi 3 mai 2018 à 20h30.\\n\\nSamedi 5 mai 2018 à 20h30.\\n\\nDimanche 6 mai 2018 à 17h.\\n\\nLundi 7 mai 2018 à 20h30.\\n\\nMardi 8 mai 2018 à 19h.\\n\\nJeudi 10 mai 2018 à 19h.\\n\\nVendredi 11 mai 2018 à 20h30.\\n\\nSamedi 12 mai 2018 à 20h30.\\n\\nDimanche 13 mai 2018 à 17h.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":13951267,\"external_id\":null,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-04-19\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951269,\"external_id\":null,\"start_date\":\"2018-04-20\",\"end_date\":\"2018-04-20\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951275,\"external_id\":null,\"start_date\":\"2018-04-21\",\"end_date\":\"2018-04-21\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951278,\"external_id\":null,\"start_date\":\"2018-04-22\",\"end_date\":\"2018-04-22\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951279,\"external_id\":null,\"start_date\":\"2018-04-24\",\"end_date\":\"2018-04-24\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951282,\"external_id\":null,\"start_date\":\"2018-04-25\",\"end_date\":\"2018-04-25\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951286,\"external_id\":null,\"start_date\":\"2018-04-27\",\"end_date\":\"2018-04-27\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951289,\"external_id\":null,\"start_date\":\"2018-04-28\",\"end_date\":\"2018-04-28\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951291,\"external_id\":null,\"start_date\":\"2018-04-29\",\"end_date\":\"2018-04-29\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951292,\"external_id\":null,\"start_date\":\"2018-04-30\",\"end_date\":\"2018-04-30\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951297,\"external_id\":null,\"start_date\":\"2018-05-02\",\"end_date\":\"2018-05-02\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951298,\"external_id\":null,\"start_date\":\"2018-05-03\",\"end_date\":\"2018-05-03\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951300,\"external_id\":null,\"start_date\":\"2018-05-05\",\"end_date\":\"2018-05-05\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951303,\"external_id\":null,\"start_date\":\"2018-05-06\",\"end_date\":\"2018-05-06\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951307,\"external_id\":null,\"start_date\":\"2018-05-07\",\"end_date\":\"2018-05-07\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951309,\"external_id\":null,\"start_date\":\"2018-05-08\",\"end_date\":\"2018-05-08\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"19:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13951311,\"external_id\":null,\"start_date\":\"2018-05-10\",\"end_date\":\"2018-05-10\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"19:00:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968615,\"external_id\":null,\"start_date\":\"2018-05-11\",\"end_date\":\"2018-05-11\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968617,\"external_id\":null,\"start_date\":\"2018-05-12\",\"end_date\":\"2018-05-12\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"20:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":13968619,\"external_id\":null,\"start_date\":\"2018-05-13\",\"end_date\":\"2018-05-13\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[{\"start_time\":\"17:00:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.813102"], ["updated_at", "2022-03-29 13:31:25.813102"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Plein tarif : 39 €, Tarif réduit : de 15 à 32 € (abonnés Espace Malraux, Bonlieu, La Traverse).\"},\"rates\":[{\"id\":8306899,\"start_date\":\"2018-04-19\",\"end_date\":\"2018-05-13\",\"values\":[{\"min\":15.0,\"max\":32.0,\"type\":5240,\"details\":{\"fr\":\"abonnés Espace Malraux, Bonlieu, La Traverse\"}},{\"min\":39.0,\"max\":null,\"type\":5239,\"details\":{}}]}],\"payment_methods\":[1268,1271,1274,1277,1286],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[],\"internal\":[2060,6588,6769,542,9580]}"], ["location_data", "{\"address\":[],\"place\":\"La Croix verte\",\"latitude\":45.644668,\"longitude\":5.867981,\"map_reference\":null,\"altitude\":null,\"access\":{}}"], ["description_data", "{\"short_desc\":{\"fr\":\"Conception et mise en scène de Bartabas.\\r\\nLe cheval sera l’acteur principal et central du spectacle, il le sera dans toute sa liberté animale, sa beauté et son lien ancestral à notre culture.\"},\"long_desc\":{\"fr\":\"On retrouvera bien sûr ses chevaux fétiches mais aussi quelque quarante chevaux magnifiques en quasi-liberté sur la piste. Une nouvelle prouesse pour Bartabas qui s’éclipse avec ses cavaliers pour laisser toute la place au cheval. Chaque spectacle de Zingaro est un événement unique, celui-ci promet déjà de marquer les mémoires !\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Ex Anima - Théâtre équestre Zingaro\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2017-10-06 09:50:00.352000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
|
381
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
382
|
+
Processing file : selections.json
|
383
|
+
[1m[36mApidae::Selection Load (0.4ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 3]]
|
384
|
+
[1m[36mApidae::SelectionObject Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE 1=0[0m
|
385
|
+
[1m[36mApidae::Selection Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
386
|
+
Updating selection 49063
|
387
|
+
[1m[36mApidae::Selection Load (0.7ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49063], ["LIMIT", 1]]
|
388
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
389
|
+
[1m[36mApidae::Selection Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["label", "Sélection 1"], ["reference", "selection-1"], ["apidae_id", 49063], ["created_at", "2022-03-29 13:31:25.825534"], ["updated_at", "2022-03-29 13:31:25.825534"], ["apidae_project_id", 3]]
|
390
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
391
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 3]]
|
392
|
+
[1m[36mApidae::Obj Load (0.6ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826137], ["LIMIT", 1]]
|
393
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
394
|
+
[1m[36mApidae::SelectionObject Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 3], ["apidae_object_id", 7], ["created_at", "2022-03-29 13:31:25.829991"], ["updated_at", "2022-03-29 13:31:25.829991"]]
|
395
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
396
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826282], ["LIMIT", 1]]
|
397
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
398
|
+
[1m[36mApidae::SelectionObject Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 3], ["apidae_object_id", 8], ["created_at", "2022-03-29 13:31:25.832118"], ["updated_at", "2022-03-29 13:31:25.832118"]]
|
399
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
400
|
+
[1m[36mApidae::SelectionObject Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 3]]
|
401
|
+
Updating selection 49073
|
402
|
+
[1m[36mApidae::Selection Load (0.3ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49073], ["LIMIT", 1]]
|
403
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
404
|
+
[1m[36mApidae::Selection Create (0.5ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49073], ["created_at", "2022-03-29 13:31:25.834746"], ["updated_at", "2022-03-29 13:31:25.834746"], ["apidae_project_id", 3]]
|
405
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
406
|
+
[1m[36mApidae::Obj Load (1.0ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 4]]
|
407
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4826186], ["LIMIT", 1]]
|
408
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
409
|
+
[1m[36mApidae::SelectionObject Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 4], ["apidae_object_id", 5], ["created_at", "2022-03-29 13:31:25.839279"], ["updated_at", "2022-03-29 13:31:25.839279"]]
|
410
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
411
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4828422], ["LIMIT", 1]]
|
412
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
413
|
+
[1m[36mApidae::SelectionObject Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 4], ["apidae_object_id", 9], ["created_at", "2022-03-29 13:31:25.842273"], ["updated_at", "2022-03-29 13:31:25.842273"]]
|
414
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
415
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4833997], ["LIMIT", 1]]
|
416
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
417
|
+
[1m[36mApidae::SelectionObject Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 4], ["apidae_object_id", 6], ["created_at", "2022-03-29 13:31:25.844137"], ["updated_at", "2022-03-29 13:31:25.844137"]]
|
418
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
419
|
+
[1m[36mApidae::SelectionObject Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 4]]
|
420
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 3]]
|
421
|
+
[1m[35m (0.8ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 3]]
|
422
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 4]]
|
423
|
+
Processing file : objets_supprimes.json
|
424
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
425
|
+
[1m[36mApidae::Selection Exists? (0.5ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2[0m [["apidae_object_id", 4], ["LIMIT", 1]]
|
426
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
427
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1[0m [["id", 4]]
|
428
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
429
|
+
Processing file : elements_reference.json
|
430
|
+
Processing file : criteres_internes.json
|
431
|
+
Processing file : communes.json
|
432
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 3]]
|
433
|
+
[1m[36mApidae::SelectionObject Destroy (2.1ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."id" IN (SELECT "apidae_selection_objects"."id" FROM "apidae_selection_objects" LEFT JOIN apidae_objs ON apidae_objs.id = apidae_selection_objects.apidae_object_id WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND (apidae_objs.id IS NULL))[0m [["apidae_selection_id", 3]]
|
434
|
+
Cleaned up 0 obsolete selection-objects associations for selection 49063
|
435
|
+
[1m[36mApidae::SelectionObject Load (0.2ms)[0m [1m[34mSELECT "apidae_selection_objects".* FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 3]]
|
436
|
+
[1m[36mApidae::SelectionObject Load (0.6ms)[0m [1m[34mSELECT COUNT(id), apidae_object_id, ARRAY_AGG(id) AS so_ids FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 GROUP BY "apidae_selection_objects"."apidae_object_id" HAVING (COUNT(id) > 1)[0m [["apidae_selection_id", 3]]
|
437
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 3]]
|
438
|
+
Cleaned up 0 duplicate selection-objects associations for selection 49063
|
439
|
+
[1m[36mApidae::SelectionObject Destroy (0.5ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."id" IN (SELECT "apidae_selection_objects"."id" FROM "apidae_selection_objects" LEFT JOIN apidae_objs ON apidae_objs.id = apidae_selection_objects.apidae_object_id WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND (apidae_objs.id IS NULL))[0m [["apidae_selection_id", 4]]
|
440
|
+
Cleaned up 0 obsolete selection-objects associations for selection 49073
|
441
|
+
[1m[36mApidae::SelectionObject Load (0.1ms)[0m [1m[34mSELECT "apidae_selection_objects".* FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 4]]
|
442
|
+
[1m[36mApidae::SelectionObject Load (0.2ms)[0m [1m[34mSELECT COUNT(id), apidae_object_id, ARRAY_AGG(id) AS so_ids FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 GROUP BY "apidae_selection_objects"."apidae_object_id" HAVING (COUNT(id) > 1)[0m [["apidae_selection_id", 4]]
|
443
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND 1=0[0m [["apidae_selection_id", 4]]
|
444
|
+
Cleaned up 0 duplicate selection-objects associations for selection 49073
|
445
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
446
|
+
[1m[36mApidae::FileImport Create (0.9ms)[0m [1m[32mINSERT INTO "apidae_file_imports" ("status", "remote_file", "created", "updated", "deleted", "created_at", "updated_at", "apidae_id") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"[0m [["status", "complete"], ["remote_file", "test/data/json_export.zip"], ["created", 4], ["updated", 1], ["deleted", 1], ["created_at", "2022-03-29 13:31:25.868118"], ["updated_at", "2022-03-29 13:31:25.868118"], ["apidae_id", 123]]
|
447
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
448
|
+
Import results : {:created=>4, :updated=>1, :deleted=>1, :selections=>[{:apidae_id=>49063, :reference=>"selection-1", :objects=>2}, {:apidae_id=>49073, :reference=>"selection-2", :objects=>3}]}
|
449
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_projects"[0m
|
450
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
451
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
452
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|
453
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
454
|
+
-----------------------------------------------------
|
455
|
+
Apidae::FileImportTest: test_existing_object_deletion
|
456
|
+
-----------------------------------------------------
|
457
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
458
|
+
[1m[36mApidae::Project Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
459
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
460
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
461
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
462
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
463
|
+
[1m[36mApidae::Obj Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 504], ["created_at", "2022-03-29 13:31:25.873874"], ["updated_at", "2022-03-29 13:31:25.873874"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
|
464
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
465
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
466
|
+
[1m[36mApidae::Selection Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2[0m [["apidae_object_id", 10], ["LIMIT", 1]]
|
467
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
468
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."id" = $1[0m [["id", 10]]
|
469
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
470
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
471
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
472
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
473
|
+
------------------------------------------------------------------------------
|
474
|
+
Apidae::FileImportTest: test_blank_versioned_desc_field_overrides_standard_one
|
475
|
+
------------------------------------------------------------------------------
|
476
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
477
|
+
[1m[36mApidae::Project Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
478
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
479
|
+
[1m[36mApidae::Town Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
480
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
481
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 185789], ["LIMIT", 1]]
|
482
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 14939], ["LIMIT", 1]]
|
483
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
484
|
+
[1m[36mApidae::Obj Create (1.7ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id"[0m [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["apidae_subtype", "2993"], ["contact_data", "{\"contacts\":[{\"identifiant\":1441007,\"referent\":false,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":442,\"libelleFr\":\"Madame\",\"ordre\":4},\"nom\":\"THOOS\",\"prenom\":\"Josette\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":470,\"libelleFr\":\"Gérance\",\"ordre\":9}},{\"identifiant\":1441008,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443,\"libelleFr\":\"Monsieur\",\"ordre\":9},\"nom\":\"THOOS\",\"prenom\":\"Jean Claude\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":460,\"libelleFr\":\"Présidence\",\"ordre\":15}}],\"telephone\":{\"5673157\":{\"value\":\"04 78 81 84 30\",\"description\":\"Jean Claude THOOS\"},\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":{\"allowed\":true,\"desc\":{\"fr\":\"Tenus en laisse uniquement\"},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":17994901,\"external_id\":18183551,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-06-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577872,\"external_id\":18183552,\"start_date\":\"2019-07-01\",\"end_date\":\"2019-08-31\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"16:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577873,\"external_id\":18183553,\"start_date\":\"2019-09-01\",\"end_date\":\"2019-09-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[4188]}"], ["created_at", "2022-03-29 13:31:25.882810"], ["updated_at", "2022-03-29 13:31:25.882810"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null,\"legal\":{},\"is_service_provider\":true}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Tarifs groupes et scolaires en téléchargement (fichiers ci-dessous)\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"map_reference\":null,\"altitude\":null,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]],\"visits_allowed\":false,\"visits_desc\":{},\"visits_duration\":50,\"visits_services\":[491]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
|
485
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
486
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 11], ["version", "GROUPES"], ["LIMIT", 1]]
|
487
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
488
|
+
[1m[36mApidae::Obj Create (0.8ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id"[0m [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":{\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":18024471,\"external_id\":18183554,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"à partir de 10h30, uniquement sur réservation\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.892039"], ["updated_at", "2022-03-29 13:31:25.892039"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Groupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{\"fr\":\"Arrhes demandés pour les groupes\"},null]}"], ["version", "GROUPES"], ["root_obj_id", 11], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
|
489
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
490
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
491
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
492
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 185789], ["LIMIT", 1]]
|
493
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 11], ["version", "GROUPES"], ["LIMIT", 1]]
|
494
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
495
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
496
|
+
--------------------------------------------------------------
|
497
|
+
Apidae::FileImportTest: test_new_object_insertion_with_locales
|
498
|
+
--------------------------------------------------------------
|
499
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
500
|
+
[1m[36mApidae::Project Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
501
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
502
|
+
[1m[36mApidae::Town Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
503
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
504
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 898922], ["LIMIT", 1]]
|
505
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5430], ["LIMIT", 1]]
|
506
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
507
|
+
[1m[36mApidae::Obj Create (1.5ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id"[0m [["apidae_id", 898922], ["apidae_type", "HOTELLERIE"], ["apidae_subtype", "2734"], ["contact_data", "{\"contacts\":[{\"identifiant\":12954222,\"referent\":true,\"nom\":\"HORGAN\",\"prenom\":\"Carrie\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":36504396,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"chatelleraie@wanadoo.fr\"}},{\"identifiant\":36504397,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"04 71 49 09 09\"}}]}],\"telephone\":{\"36504392\":{\"value\":\"04 71 49 09 09\",\"description\":null}},\"fax\":{\"36504393\":{\"value\":\"04 71 49 07 07\",\"description\":null}},\"email\":{\"36504394\":{\"value\":\"chatelleraie@wanadoo.fr\",\"description\":null}},\"website\":{\"36504395\":{\"value\":\"http://chatelleraie.co.uk/fr/\",\"description\":null}}}"], ["type_data", "{\"categories\":[1610,1619],\"themes\":[],\"capacity\":{\"nombreChambresDeclareesHotelier\":26,\"nombreTotalPersonnes\":70,\"nombreTotalPersonnesReel\":70,\"nombreChambresFamiliales\":1,\"nombreSuites\":1,\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[2756],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":true,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{\"tourismeAffairesEnabled\":true,\"nombreSallesModulables\":1},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/04 au 14/10/2018.\",\"en\":\"From 01/04 to 14/10/2018.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14375379,\"external_id\":15927193,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"each_year\":false,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.902694"], ["updated_at", "2022-03-29 13:31:25.902694"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":1890696,\"name\":\"La Chatelleraie st etienne de Maurs 2\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":\"otchataigneraie\",\"expiration_date\":\"\"},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"en\":[{\"id\":1890696,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/56/163/1811256.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890697,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/57/163/1811257.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890698,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/58/163/1811258.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890699,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/59/163/1811259.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890700,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/60/163/1811260.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890701,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/61/163/1811261.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890702,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/62/163/1811262.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890703,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/63/163/1811263.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890704,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/64/163/1811264.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890705,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/65/163/1811265.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":1890706,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/66/163/1811266.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[687,1115,1172],\"equipments\":[655,723,821,972,1058,1064,1089,1093,1106,1323],\"comfort\":[838,842,963,1014,1015],\"activities\":[680,3927],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Chambre double : de 55 à 80 €\\nChambre quadruple : de 80 à 125 € (chambre familiale)\\nDemi-pension (/ pers.) : à partir de 50 € (A partir de 50€)\\nPetit déjeuner : à partir de 7,50 €\\nAnimaux : à partir de 5 €.\\n\",\"en\":\"Double room: 55 to 80 €\\nRoom sleeping 4: 80 to 125 €\\nHalf-board: from 50 €\\nBreakfast: from 7.50 €\\nSupplementary payment for pets: from 5 €.\\n\"},\"rates\":[{\"id\":8605788,\"start_date\":\"2018-04-01\",\"end_date\":\"2018-10-14\",\"values\":[{\"min\":55.0,\"max\":80.0,\"type\":1466,\"details\":{}},{\"min\":80.0,\"max\":125.0,\"type\":3877,\"details\":{\"fr\":\"chambre familiale\"}},{\"min\":50.0,\"max\":null,\"type\":1465,\"details\":{\"fr\":\"A partir de 50€\"}},{\"min\":7.5,\"max\":null,\"type\":1461,\"details\":{}},{\"min\":5.0,\"max\":null,\"type\":4080,\"details\":{}}]}],\"payment_methods\":[1268,1271],\"tax_included\":false,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"HOTAUV015V5022D5\"}}]}]"], ["location_data", "{\"address\":[\"Château de La Devèze\"],\"place\":null,\"latitude\":44.715026,\"longitude\":2.207737,\"map_reference\":null,\"altitude\":null,\"access\":{},\"environments\":[135],\"territories\":[711392,742848,896166,908439]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc fr\",\"en\":\"short desc en\"},\"long_desc\":{\"fr\":\"long desc fr\",\"en\":\"long desc en\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Châtelleraie\",\"en\":\"La Châtelleraie\"}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{},null]}"], ["version", "STANDARD"], ["last_update", "2018-11-06 11:03:21.304000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme de la Châtaigneraie Cantalienne\",\"owner_id\":1333}"]]
|
508
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
509
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
510
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
511
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
512
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
513
|
+
-------------------------------------------------
|
514
|
+
Apidae::FileImportTest: test_new_object_insertion
|
515
|
+
-------------------------------------------------
|
516
|
+
[1m[36mApidae::Obj Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
517
|
+
[1m[36mApidae::Project Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
518
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
519
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
520
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
521
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
522
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
523
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
524
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16) RETURNING "id"[0m [["apidae_id", 504], ["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.914082"], ["updated_at", "2022-03-29 13:31:25.914082"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"legal\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["booking_data", "{}"], ["version", "STANDARD"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"]]
|
525
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
526
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
527
|
+
[1m[36mApidae::Obj Load (0.9ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
528
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
529
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
530
|
+
---------------------------------------------------------------------------
|
531
|
+
Apidae::FileImportTest: test_new_object_insertion_with_versions_and_locales
|
532
|
+
---------------------------------------------------------------------------
|
533
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
534
|
+
[1m[36mApidae::Project Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
535
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
536
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
537
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
538
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
539
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5388], ["LIMIT", 1]]
|
540
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
541
|
+
[1m[36mApidae::Obj Create (2.1ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id"[0m [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\",\"en\":\"All year round.\",\"de\":\"Ganzjährig.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.922114"], ["updated_at", "2022-03-29 13:31:25.922114"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"en\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}],\"de\":[{\"id\":3937236,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"tax_included\":null,\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}],\"en\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}],\"de\":[{\"id\":3577735,\"name\":null,\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\",\"en\":\"La Grange des Huskies\",\"de\":\"Huskytouren Grange des Huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
|
542
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
543
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 15], ["version", "HIVER"], ["LIMIT", 1]]
|
544
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
545
|
+
[1m[36mApidae::Obj Create (0.8ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id"[0m [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.932524"], ["updated_at", "2022-03-29 13:31:25.932524"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}],\"en\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"}],\"de\":[{\"id\":3512712,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":null,\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":null,\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\",\"en\":\"short desc standard en\",\"de\":\"short desc standard de\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 15], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
|
546
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
547
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
548
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
549
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
550
|
+
[1m[36mApidae::Obj Load (0.6ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 15], ["version", "HIVER"], ["LIMIT", 1]]
|
551
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2[0m [["id", 15], ["LIMIT", 1]]
|
552
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|
553
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
554
|
+
---------------------------------------------------------------
|
555
|
+
Apidae::FileImportTest: test_new_object_insertion_with_versions
|
556
|
+
---------------------------------------------------------------
|
557
|
+
[1m[36mApidae::Obj Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
558
|
+
[1m[36mApidae::Project Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
559
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
560
|
+
[1m[36mApidae::Town Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
561
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
562
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
563
|
+
[1m[36mApidae::Town Load (0.2ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5388], ["LIMIT", 1]]
|
564
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
565
|
+
[1m[36mApidae::Obj Create (1.1ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id"[0m [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.944454"], ["updated_at", "2022-03-29 13:31:25.944454"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"tax_included\":null,\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
|
566
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
567
|
+
[1m[36mApidae::Obj Load (0.8ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 17], ["version", "HIVER"], ["LIMIT", 1]]
|
568
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
569
|
+
[1m[36mApidae::Obj Create (1.8ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id"[0m [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.949957"], ["updated_at", "2022-03-29 13:31:25.949957"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 17], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
|
570
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
571
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
572
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
573
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
574
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 17], ["version", "HIVER"], ["LIMIT", 1]]
|
575
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."id" = $1 ORDER BY "apidae_objs"."id" ASC LIMIT $2[0m [["id", 17], ["LIMIT", 1]]
|
576
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
577
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
578
|
+
-----------------------------------------------------------------------------------
|
579
|
+
Apidae::FileImportTest: test_nil_versioned_attachments_field_overrides_standard_one
|
580
|
+
-----------------------------------------------------------------------------------
|
581
|
+
[1m[36mApidae::Obj Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
582
|
+
[1m[36mApidae::Project Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
583
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
584
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
585
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
586
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
587
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5388], ["LIMIT", 1]]
|
588
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
589
|
+
[1m[36mApidae::Obj Create (7.0ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "meta_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22) RETURNING "id"[0m [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["apidae_subtype", "4015"], ["contact_data", "{\"contacts\":[{\"identifiant\":14069540,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443},\"nom\":\"Belletier\",\"prenom\":\"Stéphane\",\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":464},\"moyensCommunication\":[{\"identifiant\":54331825,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204},\"coordonnees\":{\"fr\":\"traineauxetchiens@orange.fr\"}}]}],\"telephone\":{\"56883572\":{\"value\":\"06 16 51 83 85\",\"description\":null}},\"email\":{\"54331824\":{\"value\":\"traineauxetchiens@orange.fr\",\"description\":null}}}"], ["type_data", "{\"categories\":[4039,4041],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":null,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Toute l'année.\\nSur réservation.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":14321586,\"external_id\":14800708,\"start_date\":\"2017-01-01\",\"end_date\":\"2017-12-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"Sur réservation.\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"true\",\"time_periods\":[416,418,435,436],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.960786"], ["updated_at", "2022-03-29 13:31:25.960786"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3937236,\"name\":\"Grange des huskies_ete (3)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/45/17/3805485.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"},{\"id\":3937239,\"name\":\"Grange des huskies_ete (2)\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/3805491.jpg\",\"description\":\"\",\"credits\":null,\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"is_service_provider\":true}"], ["service_data", "{\"services\":[],\"equipments\":[972],\"comfort\":[],\"activities\":[1832,1834,1872,1911,2001,2027],\"challenged\":[],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : de 25 à 80€. Enfants 5-10 ans : de 25 à 50€.\\r\\nGroupe : 1/2 journée : 350€. Journée : 650€.\"},\"rates\":[],\"payment_methods\":[1271,1277],\"tax_included\":null,\"rates_desc_mode\":\"manual\",\"includes\":{},\"excludes\":{},\"rates_extra\":{}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":3577735,\"name\":\"vidéo test\",\"url\":\"https://youtu.be/jqDeMNe9zIs\",\"type\":\"VIDEO\",\"link\":true,\"description\":\"\"},{\"id\":3584290,\"name\":\"Vidéo fichier test\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/videos/37/7/3475237.mov\",\"type\":\"VIDEO\",\"link\":false,\"description\":\"\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["meta_data", "[{\"noeudId\":\"tourinsoft\",\"contenus\":[{\"cible\":\"general\",\"metadonnee\":{\"id\":\"ASCAUV0150000226\"}}]}]"], ["location_data", "{\"address\":[\"Le bourg de Chavagnac\"],\"place\":null,\"latitude\":45.154246,\"longitude\":2.881851,\"map_reference\":null,\"altitude\":1100,\"access\":{},\"environments\":[153],\"territories\":[711392,742848,908439,4648712,4924241,4924678]}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc standard fr\"},\"long_desc\":{\"fr\":\"long desc standard fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"La Grange des huskies\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":3282862,\"nom\":\"Stéphane Belletier\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475},\"moyensCommunication\":[{\"identifiant\":56883572,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201},\"coordonnees\":{\"fr\":\"06 16 51 83 85\"}}],\"locked\":false}]]}"], ["version", "STANDARD"], ["last_update", "2018-03-13 08:47:27.168000"], ["owner_data", "{\"owner_name\":\"Hautes Terres Tourisme\",\"owner_id\":1480}"]]
|
590
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
591
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 19], ["version", "HIVER"], ["LIMIT", 1]]
|
592
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
593
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "created_at", "updated_at", "pictures_data", "entity_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17) RETURNING "id"[0m [["apidae_id", 4838849], ["apidae_type", "COMMERCE_ET_SERVICE"], ["contact_data", "{\"contacts\":null}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["created_at", "2022-03-29 13:31:25.971593"], ["updated_at", "2022-03-29 13:31:25.971593"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":3512712,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/70/252/3406918.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512713,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/71/252/3406919.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"},{\"id\":3512714,\"name\":\"Grange des huskies\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/72/252/3406920.jpg\",\"description\":\"Grange des huskies\",\"credits\":\"\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"short desc winter fr\"},\"long_desc\":{\"fr\":\"long desc winter fr\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{}"], ["version", "HIVER"], ["root_obj_id", 19], ["version_data", "{\"versioned_fields\":[\"pictures\",\"attachments\",\"short_desc\",\"long_desc\"]}"]]
|
594
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
595
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
596
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
597
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 4838849], ["LIMIT", 1]]
|
598
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 19], ["version", "HIVER"], ["LIMIT", 1]]
|
599
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|
600
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
601
|
+
--------------------------------------------------------------------------------
|
602
|
+
Apidae::FileImportTest: test_non-localized_versioned_prestations_fields_override
|
603
|
+
--------------------------------------------------------------------------------
|
604
|
+
[1m[36mApidae::Obj Destroy (0.5ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
605
|
+
[1m[36mApidae::Project Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
606
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
607
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
608
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
609
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 185789], ["LIMIT", 1]]
|
610
|
+
[1m[36mApidae::Town Load (0.3ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 14939], ["LIMIT", 1]]
|
611
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
612
|
+
[1m[36mApidae::Obj Create (1.3ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "apidae_subtype", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "last_update", "owner_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21) RETURNING "id"[0m [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["apidae_subtype", "2993"], ["contact_data", "{\"contacts\":[{\"identifiant\":1441007,\"referent\":false,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":442,\"libelleFr\":\"Madame\",\"ordre\":4},\"nom\":\"THOOS\",\"prenom\":\"Josette\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":470,\"libelleFr\":\"Gérance\",\"ordre\":9}},{\"identifiant\":1441008,\"referent\":true,\"civilite\":{\"elementReferenceType\":\"ContactCivilite\",\"id\":443,\"libelleFr\":\"Monsieur\",\"ordre\":9},\"nom\":\"THOOS\",\"prenom\":\"Jean Claude\",\"titre\":{\"libelleFr\":\"04 78 81 84 30\"},\"fonction\":{\"elementReferenceType\":\"ContactFonction\",\"id\":460,\"libelleFr\":\"Présidence\",\"ordre\":15}}],\"telephone\":{\"5673157\":{\"value\":\"04 78 81 84 30\",\"description\":\"Jean Claude THOOS\"},\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":64,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[513,593,596,597,4547],\"animals\":{\"allowed\":true,\"desc\":{\"fr\":\"Tenus en laisse uniquement\"},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 30/06, tous les dimanches à 15h30.\\nOuvertures exceptionnelles les 01/05, 08/05, 21/05 et 01/06.\\n\\nDu 01/07 au 31/08, tous les dimanches à 16h30.\\nOuvertures exceptionnelles les 14/07 et 15/08.\\n\\nDu 01/09 au 30/09, tous les dimanches à 15h30.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":17994901,\"external_id\":18183551,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-06-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577872,\"external_id\":18183552,\"start_date\":\"2019-07-01\",\"end_date\":\"2019-08-31\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"16:30:00\",\"end_time\":null,\"recurrence\":null}]}]},{\"id\":9577873,\"external_id\":18183553,\"start_date\":\"2019-09-01\",\"end_date\":\"2019-09-30\",\"each_year\":true,\"closing_days\":[],\"details\":{},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"SUN\"],\"time_frames\":[{\"start_time\":\"15:30:00\",\"end_time\":null,\"recurrence\":null}]}]}],\"all_year_long\":\"false\",\"time_periods\":[416,418,436],\"openings_extra\":[4188]}"], ["created_at", "2022-03-29 13:31:25.980713"], ["updated_at", "2022-03-29 13:31:25.980713"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7443871,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/153/143/7245721.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7443850,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/132/143/7245700.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7443849,\"name\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/131/143/7245699.jpg\",\"description\":\"Train à vapeur du Haut Rhône - Vallée Bleue\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{\"entity_id\":67303,\"service_provider_id\":null,\"legal\":{},\"is_service_provider\":true}"], ["service_data", "{\"services\":[687,781,785,1130],\"equipments\":[613,741,972,1321,1322,5592],\"comfort\":[],\"activities\":[3232,3415],\"challenged\":[3652,4219],\"languages\":[1192,1197]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Adulte : 10 € (à partir de 12 ans)\\nEnfant (4-12 ans) : 6 €.\\n\\n Gratuit pour les moins de 4 ans.\\n\\nTarifs groupes et scolaires en téléchargement (fichiers ci-dessous).\"},\"rates\":[{\"id\":5287221,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-09-30\",\"values\":[{\"min\":10.0,\"max\":10.0,\"type\":1717,\"details\":{\"fr\":\"à partir de 12 ans\"}},{\"min\":6.0,\"max\":6.0,\"type\":1718,\"details\":{}}]}],\"payment_methods\":[1268,1271,1277,1281],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Tarifs groupes et scolaires en téléchargement (fichiers ci-dessous)\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7441611,\"name\":\"Tarifs groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/227/134/7243491.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes 2020\"},{\"id\":7441612,\"name\":\"Tarifs groupes scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/228/134/7243492.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Petit train Haut Rhône - Tarifs groupes scolaires 2020\"}]}}"], ["tags_data", "{\"promo\":[1595,1603],\"linked\":[{\"apidae_id\":185796,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":5270038,\"apidae_type\":\"FETE_ET_MANIFESTATION\",\"category\":\"SUR_PLACE\"},{\"apidae_id\":76030,\"apidae_type\":\"EQUIPEMENT\",\"category\":\"DEFAUT\"}]}"], ["location_data", "{\"address\":[\"Base de loisirs de la Vallée Bleue\",\"Rue des carrières\"],\"place\":null,\"latitude\":45.82592,\"longitude\":5.417759,\"map_reference\":null,\"altitude\":null,\"access\":{\"fr\":\"Au rond point dit de la Locomotive, faites les 3/4 et à gauche. La gare se trouve en bord de route.\"},\"environments\":[135,141,147,191,195],\"territories\":[326,3028,3119,3897,60439,67816,75691,78546,324298,658199,718400,745569,908439,921669,5173666]}"], ["description_data", "{\"short_desc\":{\"fr\":\"A bord d'une véritable locomotive à vapeur, voyagez dans le temps et dans un paysage le long du Rhône, des falaises du Bugey, et à travers le bois de Corniolay.\"},\"long_desc\":{\"fr\":\"Cette ligne de 4km\"},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Train à vapeur du Haut Rhône\"}}"], ["booking_data", "{\"booking_entities\":[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}],\"booking_desc\":[{},[{\"identifiant\":1154312,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":5673160,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":204,\"libelleFr\":\"Mél\",\"ordre\":2},\"coordonnees\":{\"fr\":\"haut.rhone@aol.fr\"}},{\"identifiant\":5673161,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":205,\"libelleFr\":\"Site web (URL)\",\"ordre\":3},\"coordonnees\":{\"fr\":\"http://www.cft-hr.com\"}}],\"locked\":false},{\"identifiant\":4457490,\"structureReference\":{\"type\":\"STRUCTURE\",\"id\":67303,\"nom\":{\"libelleFr\":\"Chemin de Fer Touristique du Haut Rhône\"},\"identifier\":\"38AASOR100337_struct\",\"state\":\"PUBLISHED\",\"adresse\":{\"adresse1\":\"Rue des carrières\",\"codePostal\":\"38390\",\"commune\":{\"id\":14939,\"code\":\"38247\",\"nom\":\"Montalieu-Vercieu\",\"pays\":{\"elementReferenceType\":\"Pays\",\"id\":532,\"libelleFr\":\"France\",\"ordre\":78},\"codePostal\":\"38390\"}},\"geolocalisation\":{\"altitude\":245,\"valide\":true,\"geoJson\":{\"type\":\"Point\",\"coordinates\":[5.417759,45.82592]}}},\"nom\":\"Chemin de Fer Touristique du Haut Rhône\",\"type\":{\"elementReferenceType\":\"ReservationType\",\"id\":475,\"libelleFr\":\"Directe\",\"ordre\":2},\"moyensCommunication\":[{\"identifiant\":72276483,\"type\":{\"elementReferenceType\":\"MoyenCommunicationType\",\"id\":201,\"libelleFr\":\"Téléphone\",\"ordre\":1},\"coordonnees\":{\"fr\":\"07 83 78 46 70\"},\"observation\":{\"libelleFr\":\"Service réservations\"}}],\"locked\":false}]],\"visits_allowed\":false,\"visits_desc\":{},\"visits_duration\":50,\"visits_services\":[491]}"], ["version", "STANDARD"], ["last_update", "2020-02-21 13:26:38.013000"], ["owner_data", "{\"owner_name\":\"Office du Tourisme Les Balcons du Dauphiné\",\"owner_id\":276}"]]
|
613
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
614
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 21], ["version", "GROUPES"], ["LIMIT", 1]]
|
615
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
616
|
+
[1m[36mApidae::Obj Create (0.7ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "apidae_type", "contact_data", "type_data", "openings_data", "created_at", "updated_at", "pictures_data", "entity_data", "service_data", "rates_data", "attachments_data", "tags_data", "location_data", "description_data", "title_data", "booking_data", "version", "root_obj_id", "version_data") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20) RETURNING "id"[0m [["apidae_id", 185789], ["apidae_type", "EQUIPEMENT"], ["contact_data", "{\"contacts\":null,\"telephone\":{\"72276483\":{\"value\":\"07 83 78 46 70\",\"description\":\"Service réservations\"}},\"email\":{\"5673160\":{\"value\":\"haut.rhone@aol.fr\",\"description\":null}},\"website\":{\"5673161\":{\"value\":\"http://www.cft-hr.com\",\"description\":null}}}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{\"group_min\":null,\"group_max\":72,\"age_min\":null,\"age_max\":null},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":{},\"tricky_sections\":{},\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["openings_data", "{\"openings_desc\":{\"fr\":\"Du 01/05 au 31/10.\\nÀ partir de 10h30, uniquement sur réservation.\\n\\nSous réserve de conditions météo favorables.\"},\"openings_desc_mode\":\"auto\",\"openings\":[{\"id\":18024471,\"external_id\":18183554,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"each_year\":true,\"closing_days\":[],\"details\":{\"fr\":\"à partir de 10h30, uniquement sur réservation\"},\"time_periods\":[{\"type\":\"opening\",\"weekdays\":[\"MON\",\"TUE\",\"WED\",\"THU\",\"FRI\",\"SAT\",\"SUN\"],\"time_frames\":[]}]}],\"all_year_long\":\"false\",\"time_periods\":[],\"openings_extra\":[]}"], ["created_at", "2022-03-29 13:31:25.988734"], ["updated_at", "2022-03-29 13:31:25.988734"], ["pictures_data", "{\"pictures\":{\"fr\":[{\"id\":7558355,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/248/59/7355384.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"},{\"id\":7558383,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/20/60/7355412.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"Régie Vallée Bleue\",\"expiration_date\":\"\"},{\"id\":7558354,\"name\":\"Train à vapeur du Haut Rhône\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/images/247/59/7355383.jpg\",\"description\":\"Train à vapeur du Haut Rhône\",\"credits\":\"CFHR - M. THOOS\",\"expiration_date\":\"\"}]}}"], ["entity_data", "{}"], ["service_data", "{\"services\":[],\"equipments\":[613],\"comfort\":[],\"activities\":[],\"challenged\":[],\"languages\":[]}"], ["rates_data", "{\"rates_desc\":{\"fr\":\"Forfait groupe adultes : 450 € (Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur)\\nForfait groupe enfants (4-12 ans) : 380 € (Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur).\\n\\n\\nGroupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants.\"},\"rates\":[{\"id\":10815968,\"start_date\":\"2020-05-01\",\"end_date\":\"2020-10-31\",\"values\":[{\"min\":450.0,\"max\":450.0,\"type\":1719,\"details\":{\"fr\":\"Groupe de 40 participants ou moins supplément de 10 € par participant supplémentaire à partir du 41ème voyageur\"}},{\"min\":380.0,\"max\":380.0,\"type\":1720,\"details\":{\"fr\":\"Groupe de 40 enfants ou moins supplément de 6 € par participant supplémentaire à partir du 41ème voyageur\"}}]}],\"payment_methods\":[],\"tax_included\":null,\"rates_desc_mode\":\"auto\",\"includes\":{},\"excludes\":{},\"rates_extra\":{\"fr\":\"Groupes : Gratuité pour le chauffeur du car et 1 accompagnateur\\r\\nScolaires : Gratuité pour le chauffeur du car et pour 1 accompagnateur pour 10 enfants\"}}"], ["attachments_data", "{\"attachments\":{\"fr\":[{\"id\":7440828,\"name\":\"Tarifs Groupes 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/213/131/7242709.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"},{\"id\":7440829,\"name\":\"Tarifs Groupes Scolaires 2020\",\"url\":\"https://static.apidae-tourisme.com/filestore/objets-touristiques/documents/214/131/7242710.pdf\",\"type\":\"DOCUMENT\",\"link\":false,\"description\":\"Train à vapeur du Haut Rhône\"}]}}"], ["tags_data", "{\"promo\":[]}"], ["location_data", "{}"], ["description_data", "{\"short_desc\":{\"fr\":\"Voyagez dans le temps depuis la Vallée Bleue, à bord d'une véritable locomotive à vapeur pour une promenade le long du Rhône, des falaises du Bugey, à travers le bois de Corniolay. En fin de balade, visite privative du dépôt\\r\\nDurée de visite : 1h30 à 1h45\"},\"long_desc\":{},\"theme_desc\":{},\"private_desc\":{}}"], ["title_data", "{\"title\":{}}"], ["booking_data", "{\"booking_entities\":null,\"booking_desc\":[{\"fr\":\"Arrhes demandés pour les groupes\"},null]}"], ["version", "GROUPES"], ["root_obj_id", 21], ["version_data", "{\"versioned_fields\":[\"pictures\",\"rates_desc\",\"rates\",\"rates_desc_mode\",\"openings_desc\",\"openings\",\"attachments\",\"long_desc\",\"contact\",\"equipments\",\"openings_desc_mode\",\"short_desc\"]}"]]
|
617
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
618
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
619
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs"[0m
|
620
|
+
[1m[36mApidae::Obj Load (0.7ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 185789], ["LIMIT", 1]]
|
621
|
+
[1m[36mApidae::Obj Load (0.4ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" = $1 AND "apidae_objs"."version" = $2 ORDER BY "apidae_objs"."id" ASC LIMIT $3[0m [["root_obj_id", 21], ["version", "GROUPES"], ["LIMIT", 1]]
|
622
|
+
[1m[36mTRANSACTION (0.6ms)[0m [1m[31mROLLBACK[0m
|
623
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
624
|
+
--------------------------------------------------------
|
625
|
+
Apidae::FileImportTest: test_existing_selection_deletion
|
626
|
+
--------------------------------------------------------
|
627
|
+
[1m[36mApidae::Obj Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
628
|
+
[1m[36mApidae::Project Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
629
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
630
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
631
|
+
[1m[36mApidae::Reference Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
632
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
633
|
+
[1m[36mApidae::Project Exists? (0.3ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
634
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2022-03-29 13:31:25.999489"], ["updated_at", "2022-03-29 13:31:25.999489"]]
|
635
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
636
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
637
|
+
[1m[36mApidae::Selection Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["label", "Sélection 3"], ["reference", "selection-3"], ["apidae_id", 49063], ["created_at", "2022-03-29 13:31:26.000643"], ["updated_at", "2022-03-29 13:31:26.000643"], ["apidae_project_id", 4]]
|
638
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
639
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
640
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 4]]
|
641
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1[0m [["apidae_id", 49063]]
|
642
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 5]]
|
643
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE "apidae_selections"."id" = $1[0m [["id", 5]]
|
644
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 4]]
|
645
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_selections"[0m
|
646
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
647
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
648
|
+
---------------------------------------------------------------------------------
|
649
|
+
Apidae::FileImportTest: test_object_deletion_cancelled_if_used_by_another_project
|
650
|
+
---------------------------------------------------------------------------------
|
651
|
+
[1m[36mApidae::Obj Destroy (0.3ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
652
|
+
[1m[36mApidae::Project Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
653
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
654
|
+
[1m[36mApidae::Town Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
655
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
656
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
657
|
+
[1m[36mApidae::Project Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 123], ["LIMIT", 1]]
|
658
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 123], ["created_at", "2022-03-29 13:31:26.009122"], ["updated_at", "2022-03-29 13:31:26.009122"]]
|
659
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
660
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
661
|
+
[1m[36mApidae::Project Exists? (0.2ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_projects" WHERE "apidae_projects"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 456], ["LIMIT", 1]]
|
662
|
+
[1m[36mApidae::Project Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_projects" ("apidae_id", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["apidae_id", 456], ["created_at", "2022-03-29 13:31:26.010711"], ["updated_at", "2022-03-29 13:31:26.010711"]]
|
663
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
664
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
665
|
+
[1m[36mApidae::Selection Create (0.3ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["label", "Sélection 2"], ["reference", "selection-2"], ["apidae_id", 49063], ["created_at", "2022-03-29 13:31:26.011740"], ["updated_at", "2022-03-29 13:31:26.011740"], ["apidae_project_id", 5]]
|
666
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
667
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
668
|
+
[1m[36mApidae::Selection Create (0.2ms)[0m [1m[32mINSERT INTO "apidae_selections" ("label", "reference", "apidae_id", "created_at", "updated_at", "apidae_project_id") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"[0m [["label", "Sélection 99"], ["reference", "selection-99"], ["apidae_id", 49999], ["created_at", "2022-03-29 13:31:26.012950"], ["updated_at", "2022-03-29 13:31:26.012950"], ["apidae_project_id", 6]]
|
669
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
670
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
671
|
+
[1m[36mApidae::Obj Create (1.0ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 503], ["created_at", "2022-03-29 13:31:26.014411"], ["updated_at", "2022-03-29 13:31:26.014411"], ["title_data", "{\"title\":{\"\":\"Société des violoncellistes aixois\"}}"]]
|
672
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
673
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
674
|
+
[1m[36mApidae::SelectionObject Create (0.5ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 6], ["apidae_object_id", 23], ["created_at", "2022-03-29 13:31:26.017332"], ["updated_at", "2022-03-29 13:31:26.017332"]]
|
675
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
676
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
677
|
+
[1m[36mApidae::Obj Create (0.5ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 504], ["created_at", "2022-03-29 13:31:26.019420"], ["updated_at", "2022-03-29 13:31:26.019420"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
|
678
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
679
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
680
|
+
[1m[36mApidae::SelectionObject Create (0.6ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 6], ["apidae_object_id", 24], ["created_at", "2022-03-29 13:31:26.021523"], ["updated_at", "2022-03-29 13:31:26.021523"]]
|
681
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
682
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
683
|
+
[1m[36mTRANSACTION (6.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
684
|
+
[1m[36mApidae::SelectionObject Create (0.7ms)[0m [1m[32mINSERT INTO "apidae_selection_objects" ("apidae_selection_id", "apidae_object_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_selection_id", 7], ["apidae_object_id", 24], ["created_at", "2022-03-29 13:31:26.024411"], ["updated_at", "2022-03-29 13:31:26.024411"]]
|
685
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
686
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 6]]
|
687
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 7]]
|
688
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 5]]
|
689
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE 1=0[0m
|
690
|
+
[1m[36mApidae::Selection Destroy (0.1ms)[0m [1m[31mDELETE FROM "apidae_selections" WHERE 1=0[0m
|
691
|
+
Updating selection 49063
|
692
|
+
[1m[36mApidae::Selection Load (0.2ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_id" = $1 ORDER BY "apidae_selections"."id" ASC LIMIT $2[0m [["apidae_id", 49063], ["LIMIT", 1]]
|
693
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 6]]
|
694
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1[0m [["apidae_id", 504]]
|
695
|
+
[1m[36mApidae::SelectionObject Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selection_objects" WHERE "apidae_selection_objects"."apidae_selection_id" = $1 AND "apidae_selection_objects"."apidae_object_id" = $2[0m [["apidae_selection_id", 6], ["apidae_object_id", 24]]
|
696
|
+
[1m[36mApidae::Selection Load (0.1ms)[0m [1m[34mSELECT "apidae_selections".* FROM "apidae_selections" WHERE "apidae_selections"."apidae_project_id" = $1[0m [["apidae_project_id", 5]]
|
697
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 6]]
|
698
|
+
[1m[36mApidae::Obj Load (0.2ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
699
|
+
[1m[36mApidae::Selection Exists? (0.6ms)[0m [1m[34mSELECT 1 AS one FROM "apidae_selections" INNER JOIN "apidae_selection_objects" ON "apidae_selections"."id" = "apidae_selection_objects"."apidae_selection_id" WHERE "apidae_selection_objects"."apidae_object_id" = $1 LIMIT $2[0m [["apidae_object_id", 24], ["LIMIT", 1]]
|
700
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
701
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" INNER JOIN "apidae_selection_objects" ON "apidae_objs"."id" = "apidae_selection_objects"."apidae_object_id" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_selection_objects"."apidae_selection_id" = $1[0m [["apidae_selection_id", 7]]
|
702
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|
703
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
704
|
+
---------------------------------------------------
|
705
|
+
Apidae::FileImportTest: test_existing_object_update
|
706
|
+
---------------------------------------------------
|
707
|
+
[1m[36mApidae::Obj Destroy (0.9ms)[0m [1m[31mDELETE FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
708
|
+
[1m[36mApidae::Project Destroy (0.4ms)[0m [1m[31mDELETE FROM "apidae_projects"[0m
|
709
|
+
[1m[36mApidae::Selection Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_selections"[0m
|
710
|
+
[1m[36mApidae::Town Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_towns"[0m
|
711
|
+
[1m[36mApidae::Reference Destroy (0.2ms)[0m [1m[31mDELETE FROM "apidae_references" WHERE "apidae_references"."is_active" = $1[0m [["is_active", true]]
|
712
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
713
|
+
[1m[36mApidae::Obj Create (0.4ms)[0m [1m[32mINSERT INTO "apidae_objs" ("apidae_id", "created_at", "updated_at", "title_data") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["apidae_id", 504], ["created_at", "2022-03-29 13:31:26.047735"], ["updated_at", "2022-03-29 13:31:26.047735"], ["title_data", "{\"title\":{\"\":\"Société des contrebassistes aixois\"}}"]]
|
714
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
715
|
+
[1m[36mApidae::Obj Load (0.1ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL AND "apidae_objs"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 504], ["LIMIT", 1]]
|
716
|
+
[1m[36mApidae::Town Load (0.1ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 30248], ["LIMIT", 1]]
|
717
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
718
|
+
[1m[36mApidae::Obj Update (0.4ms)[0m [1m[33mUPDATE "apidae_objs" SET "apidae_type" = $1, "contact_data" = $2, "type_data" = $3, "updated_at" = $4, "pictures_data" = $5, "entity_data" = $6, "attachments_data" = $7, "tags_data" = $8, "location_data" = $9, "title_data" = $10, "booking_data" = $11, "last_update" = $12, "owner_data" = $13 WHERE "apidae_objs"."id" = $14[0m [["apidae_type", "STRUCTURE"], ["contact_data", "{\"contacts\":[]}"], ["type_data", "{\"categories\":[],\"themes\":[],\"capacity\":{},\"classification\":[],\"classification_date\":null,\"classification_ref\":null,\"labels\":[],\"chains\":[],\"area\":{},\"track\":null,\"tricky_sections\":null,\"products\":[],\"audience\":[],\"animals\":{\"allowed\":false,\"desc\":{},\"fee\":false},\"extra\":{},\"duration\":null,\"certifications\":[],\"business\":{},\"business_equipments\":[],\"business_rooms\":null}"], ["updated_at", "2022-03-29 13:31:26.050491"], ["pictures_data", "{\"pictures\":{}}"], ["entity_data", "{\"legal\":{}}"], ["attachments_data", "{\"attachments\":{}}"], ["tags_data", "{}"], ["location_data", "{\"address\":[\"Théâtre de Verdure\",\"Rue Jean Monard\"],\"place\":null,\"latitude\":45.686578,\"longitude\":5.916386,\"map_reference\":null,\"altitude\":417,\"access\":{}}"], ["title_data", "{\"title\":{\"fr\":\"Société des accordéonistes aixois\"}}"], ["booking_data", "{}"], ["last_update", "2013-10-04 09:37:10.803000"], ["owner_data", "{\"owner_name\":\"Office de Tourisme intercommunal Aix-les-Bains Riviera des Alpes\",\"owner_id\":80}"], ["id", 25]]
|
719
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
720
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT COUNT(*) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL[0m
|
721
|
+
[1m[36mApidae::Obj Load (0.3ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
722
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
723
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
724
|
+
[1m[35m (0.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
725
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[35mBEGIN[0m
|
726
|
+
-------------------------------------------------
|
727
|
+
Apidae::ObjTest: test_populate_empty_booking_desc
|
728
|
+
-------------------------------------------------
|
729
|
+
[1m[36mApidae::Town Load (0.5ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5430], ["LIMIT", 1]]
|
730
|
+
[1m[36mTRANSACTION (0.1ms)[0m [1m[31mROLLBACK[0m
|
731
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
732
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
733
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[35mBEGIN[0m
|
734
|
+
-------------------------------------------------
|
735
|
+
Apidae::ObjTest: test_populate_empty_booking_desc
|
736
|
+
-------------------------------------------------
|
737
|
+
[1m[36mApidae::Town Load (0.7ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5430], ["LIMIT", 1]]
|
738
|
+
[1m[36mTRANSACTION (2.0ms)[0m [1m[31mROLLBACK[0m
|
739
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
740
|
+
[1m[35m (0.4ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
741
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
742
|
+
-------------------------------------------------
|
743
|
+
Apidae::ObjTest: test_populate_empty_booking_desc
|
744
|
+
-------------------------------------------------
|
745
|
+
[1m[36mApidae::Town Load (0.7ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5430], ["LIMIT", 1]]
|
746
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|
747
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "ar_internal_metadata"."value" FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1[0m [["key", "schema_sha1"]]
|
748
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
749
|
+
[1m[36mTRANSACTION (0.3ms)[0m [1m[35mBEGIN[0m
|
750
|
+
-------------------------------------------------
|
751
|
+
Apidae::ObjTest: test_populate_empty_booking_desc
|
752
|
+
-------------------------------------------------
|
753
|
+
[1m[36mApidae::Town Load (0.6ms)[0m [1m[34mSELECT "apidae_towns".* FROM "apidae_towns" WHERE "apidae_towns"."apidae_id" = $1 LIMIT $2[0m [["apidae_id", 5430], ["LIMIT", 1]]
|
754
|
+
[1m[36mTRANSACTION (0.2ms)[0m [1m[31mROLLBACK[0m
|