apidae 1.2.32 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/controllers/apidae/import_controller.rb +2 -40
- data/app/helpers/apidae/application_helper.rb +1 -1
- data/app/models/apidae/apidae_data_parser.rb +20 -54
- data/app/models/apidae/export.rb +41 -0
- data/app/models/apidae/file_import.rb +6 -15
- data/app/models/apidae/obj.rb +15 -23
- data/app/models/apidae/project.rb +0 -6
- data/app/models/apidae/reference.rb +1 -1
- data/app/models/apidae/selection.rb +1 -17
- data/config/initializers/constants.rb +5 -9
- data/config/locales/apidae.fr.yml +0 -1
- data/lib/apidae/version.rb +1 -1
- data/test/dummy/db/schema.rb +1 -3
- data/test/dummy/log/development.log +67 -216
- data/test/dummy/log/test.log +3299 -655
- data/test/models/apidae/file_import_test.rb +0 -23
- metadata +14 -9
- data/test/data/shared_selections.json +0 -15
@@ -1,216 +1,67 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
to
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
(
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
For historical reasons, it may run twice, so it has to be idempotent.
|
69
|
-
|
70
|
-
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
71
|
-
Rails autoloads and reloads.
|
72
|
-
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
73
|
-
DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
|
74
|
-
|
75
|
-
Being able to do this is deprecated. Autoloading during initialization is going
|
76
|
-
to be an error condition in future versions of Rails.
|
77
|
-
|
78
|
-
Reloading does not reboot the application, and therefore code executed during
|
79
|
-
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
80
|
-
the expected changes won't be reflected in that stale Module object.
|
81
|
-
|
82
|
-
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
83
|
-
|
84
|
-
In order to autoload safely at boot time, please wrap your code in a reloader
|
85
|
-
callback this way:
|
86
|
-
|
87
|
-
Rails.application.reloader.to_prepare do
|
88
|
-
# Autoload classes and modules needed at boot time here.
|
89
|
-
end
|
90
|
-
|
91
|
-
That block runs when the application boots, and every time there is a reload.
|
92
|
-
For historical reasons, it may run twice, so it has to be idempotent.
|
93
|
-
|
94
|
-
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
95
|
-
Rails autoloads and reloads.
|
96
|
-
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
97
|
-
DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
|
98
|
-
|
99
|
-
Being able to do this is deprecated. Autoloading during initialization is going
|
100
|
-
to be an error condition in future versions of Rails.
|
101
|
-
|
102
|
-
Reloading does not reboot the application, and therefore code executed during
|
103
|
-
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
104
|
-
the expected changes won't be reflected in that stale Module object.
|
105
|
-
|
106
|
-
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
107
|
-
|
108
|
-
In order to autoload safely at boot time, please wrap your code in a reloader
|
109
|
-
callback this way:
|
110
|
-
|
111
|
-
Rails.application.reloader.to_prepare do
|
112
|
-
# Autoload classes and modules needed at boot time here.
|
113
|
-
end
|
114
|
-
|
115
|
-
That block runs when the application boots, and every time there is a reload.
|
116
|
-
For historical reasons, it may run twice, so it has to be idempotent.
|
117
|
-
|
118
|
-
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
119
|
-
Rails autoloads and reloads.
|
120
|
-
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
121
|
-
DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
|
122
|
-
|
123
|
-
Being able to do this is deprecated. Autoloading during initialization is going
|
124
|
-
to be an error condition in future versions of Rails.
|
125
|
-
|
126
|
-
Reloading does not reboot the application, and therefore code executed during
|
127
|
-
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
128
|
-
the expected changes won't be reflected in that stale Module object.
|
129
|
-
|
130
|
-
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
131
|
-
|
132
|
-
In order to autoload safely at boot time, please wrap your code in a reloader
|
133
|
-
callback this way:
|
134
|
-
|
135
|
-
Rails.application.reloader.to_prepare do
|
136
|
-
# Autoload classes and modules needed at boot time here.
|
137
|
-
end
|
138
|
-
|
139
|
-
That block runs when the application boots, and every time there is a reload.
|
140
|
-
For historical reasons, it may run twice, so it has to be idempotent.
|
141
|
-
|
142
|
-
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
143
|
-
Rails autoloads and reloads.
|
144
|
-
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
145
|
-
DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
|
146
|
-
|
147
|
-
Being able to do this is deprecated. Autoloading during initialization is going
|
148
|
-
to be an error condition in future versions of Rails.
|
149
|
-
|
150
|
-
Reloading does not reboot the application, and therefore code executed during
|
151
|
-
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
152
|
-
the expected changes won't be reflected in that stale Module object.
|
153
|
-
|
154
|
-
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
155
|
-
|
156
|
-
In order to autoload safely at boot time, please wrap your code in a reloader
|
157
|
-
callback this way:
|
158
|
-
|
159
|
-
Rails.application.reloader.to_prepare do
|
160
|
-
# Autoload classes and modules needed at boot time here.
|
161
|
-
end
|
162
|
-
|
163
|
-
That block runs when the application boots, and every time there is a reload.
|
164
|
-
For historical reasons, it may run twice, so it has to be idempotent.
|
165
|
-
|
166
|
-
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
167
|
-
Rails autoloads and reloads.
|
168
|
-
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
169
|
-
DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
|
170
|
-
|
171
|
-
Being able to do this is deprecated. Autoloading during initialization is going
|
172
|
-
to be an error condition in future versions of Rails.
|
173
|
-
|
174
|
-
Reloading does not reboot the application, and therefore code executed during
|
175
|
-
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
176
|
-
the expected changes won't be reflected in that stale Module object.
|
177
|
-
|
178
|
-
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
179
|
-
|
180
|
-
In order to autoload safely at boot time, please wrap your code in a reloader
|
181
|
-
callback this way:
|
182
|
-
|
183
|
-
Rails.application.reloader.to_prepare do
|
184
|
-
# Autoload classes and modules needed at boot time here.
|
185
|
-
end
|
186
|
-
|
187
|
-
That block runs when the application boots, and every time there is a reload.
|
188
|
-
For historical reasons, it may run twice, so it has to be idempotent.
|
189
|
-
|
190
|
-
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
191
|
-
Rails autoloads and reloads.
|
192
|
-
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
193
|
-
DEPRECATION WARNING: Initialization autoloaded the constants Apidae::ApidaeHelper, Apidae::ApplicationHelper, Apidae::ApiHelper, Apidae::DashboardHelper, Apidae::ExtendableHelper, Apidae::ImportHelper, Apidae::ObjectsHelper, Apidae::ReferencesHelper, Apidae::SelectionsHelper, and Apidae::ApplicationController.
|
194
|
-
|
195
|
-
Being able to do this is deprecated. Autoloading during initialization is going
|
196
|
-
to be an error condition in future versions of Rails.
|
197
|
-
|
198
|
-
Reloading does not reboot the application, and therefore code executed during
|
199
|
-
initialization does not run again. So, if you reload Apidae::ApidaeHelper, for example,
|
200
|
-
the expected changes won't be reflected in that stale Module object.
|
201
|
-
|
202
|
-
`config.autoloader` is set to `classic`. These autoloaded constants would have been unloaded if `config.autoloader` had been set to `:zeitwerk`.
|
203
|
-
|
204
|
-
In order to autoload safely at boot time, please wrap your code in a reloader
|
205
|
-
callback this way:
|
206
|
-
|
207
|
-
Rails.application.reloader.to_prepare do
|
208
|
-
# Autoload classes and modules needed at boot time here.
|
209
|
-
end
|
210
|
-
|
211
|
-
That block runs when the application boots, and every time there is a reload.
|
212
|
-
For historical reasons, it may run twice, so it has to be idempotent.
|
213
|
-
|
214
|
-
Check the "Autoloading and Reloading Constants" guide to learn more about how
|
215
|
-
Rails autoloads and reloads.
|
216
|
-
(called from <top (required)> at /Users/jbvilain/workspace/code/apidae-engine-rails/test/dummy/config/environment.rb:5)
|
1
|
+
[1m[36mApidae::Obj Load (1.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs" ORDER BY "apidae_objs"."id" ASC LIMIT $1[0m [["LIMIT", 1]]
|
2
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(6140174353533887940)[0m
|
3
|
+
[1m[35m (1.7ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
4
|
+
Migrating to AddProjectIdToSelections (20181024072424)
|
5
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
6
|
+
[1m[35m (39.2ms)[0m [1m[35mALTER TABLE "apidae_selections" ADD "apidae_project_id" integer[0m
|
7
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20181024072424"]]
|
8
|
+
[1m[35m (0.8ms)[0m [1m[35mCOMMIT[0m
|
9
|
+
Migrating to CreateApidaeProjects (20181024072843)
|
10
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
11
|
+
[1m[35m (56.9ms)[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)[0m
|
12
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20181024072843"]]
|
13
|
+
[1m[35m (2.1ms)[0m [1m[35mCOMMIT[0m
|
14
|
+
Migrating to AddApidaeIdToApidaeFileImports (20190111162443)
|
15
|
+
[1m[35m (40.0ms)[0m [1m[35mBEGIN[0m
|
16
|
+
[1m[35m (0.6ms)[0m [1m[35mALTER TABLE "apidae_file_imports" ADD "apidae_id" integer[0m
|
17
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.4ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190111162443"]]
|
18
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
19
|
+
Migrating to UpgradeApidaeObjsTitleDataType (20190123142628)
|
20
|
+
[1m[35m (0.1ms)[0m [1m[35mBEGIN[0m
|
21
|
+
[1m[35m (0.4ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "title_data" jsonb[0m
|
22
|
+
[1m[36mApidae::Obj Load (0.5ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs"[0m
|
23
|
+
[1m[35m (1.4ms)[0m [1m[35mALTER TABLE "apidae_objs" DROP COLUMN "title"[0m
|
24
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.2ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190123142628"]]
|
25
|
+
[1m[35m (0.4ms)[0m [1m[35mCOMMIT[0m
|
26
|
+
[1m[36mActiveRecord::InternalMetadata Load (1.9ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
27
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
28
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
29
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(6140174353533887940)[0m
|
30
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
31
|
+
[1m[35m (0.3ms)[0m [1m[34mSELECT pg_try_advisory_lock(6140174353533887940)[0m
|
32
|
+
[1m[35m (3.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
33
|
+
Migrating to AddBookingDataToApidaeObjs (20190123160046)
|
34
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
35
|
+
[1m[35m (0.7ms)[0m [1m[35mALTER TABLE "apidae_objs" ADD "booking_data" jsonb[0m
|
36
|
+
[1m[36mApidae::Obj Load (1.0ms)[0m [1m[34mSELECT "apidae_objs".* FROM "apidae_objs"[0m
|
37
|
+
[1m[35m (0.5ms)[0m [1m[35mALTER TABLE "apidae_objs" DROP COLUMN "reservation"[0m
|
38
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190123160046"]]
|
39
|
+
[1m[35m (0.6ms)[0m [1m[35mCOMMIT[0m
|
40
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.7ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
41
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
42
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
43
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(6140174353533887940)[0m
|
44
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
45
|
+
[1m[35m (4.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
46
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(6140174353533887940)[0m
|
47
|
+
[1m[35m (0.6ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
48
|
+
Migrating to AddLocalesDataToApidaeProjects (20190123214635)
|
49
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
50
|
+
[1m[35m (3.2ms)[0m [1m[35mALTER TABLE "apidae_projects" ADD "locales_data" character varying[0m
|
51
|
+
[1m[36mActiveRecord::SchemaMigration Create (0.3ms)[0m [1m[32mINSERT INTO "schema_migrations" ("version") VALUES ($1) RETURNING "version"[0m [["version", "20190123214635"]]
|
52
|
+
[1m[35m (0.5ms)[0m [1m[35mCOMMIT[0m
|
53
|
+
[1m[36mActiveRecord::InternalMetadata Load (42.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
54
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
55
|
+
[1m[35m (0.1ms)[0m [1m[35mCOMMIT[0m
|
56
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(6140174353533887940)[0m
|
57
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
58
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
59
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_try_advisory_lock(6140174353533887940)[0m
|
60
|
+
[1m[35m (0.5ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
61
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.4ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = $1 LIMIT $2[0m [["key", "environment"], ["LIMIT", 1]]
|
62
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
63
|
+
[1m[35m (0.2ms)[0m [1m[35mCOMMIT[0m
|
64
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT pg_advisory_unlock(6140174353533887940)[0m
|
65
|
+
[1m[35m (0.2ms)[0m [1m[34mSELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC[0m
|
66
|
+
[1m[36mApidae::Obj Load (26.8ms)[0m [1m[34mSELECT apidae_id, COUNT(id) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL GROUP BY "apidae_objs"."apidae_id" HAVING (COUNT(id) > 1)[0m
|
67
|
+
[1m[36mApidae::Obj Load (2.4ms)[0m [1m[34mSELECT apidae_id, COUNT(id) FROM "apidae_objs" WHERE "apidae_objs"."root_obj_id" IS NULL GROUP BY "apidae_objs"."apidae_id" HAVING (COUNT(id) > 1)[0m
|