forest_liana 2.6.0 → 2.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/associations_controller.rb +4 -3
- data/app/controllers/forest_liana/resources_controller.rb +1 -1
- data/app/models/forest_liana/model/collection.rb +4 -0
- data/app/services/forest_liana/base_getter.rb +6 -0
- data/app/services/forest_liana/resource_getter.rb +2 -0
- data/lib/forest_liana/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +445 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7825474a2be0935a5146b4773dacf86a3bc235d5
|
4
|
+
data.tar.gz: b49d46a5c6437577217acb96fc7153bd6734283e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7401a19cbf53f08812bd083432f47e463bf49ad2dc6932220606f336bbe177a509e8a60aad2a09008de68f9ffb7f42ac33a6f2619fa7224892ed83a44a6f8bb
|
7
|
+
data.tar.gz: 730f2b898f93860a23ec7bd95209bf65b471299ded19f79643409401ae2139102b243ea3008fcc75556ccc750151f59b3935534d4990e59fc6f44c0e89d73e82
|
@@ -104,14 +104,15 @@ module ForestLiana
|
|
104
104
|
fields_to_serialize = fields_per_model(params[:fields], @association.klass)
|
105
105
|
records = getter.records.map { |record| get_record(record) }
|
106
106
|
|
107
|
-
|
107
|
+
includes = getter.includes_for_serialization
|
108
|
+
if includes.length > 0
|
108
109
|
association_name = ForestLiana.name_for(@association.klass)
|
109
|
-
fields_to_serialize[association_name] += ",#{
|
110
|
+
fields_to_serialize[association_name] += ",#{includes.join(',')}"
|
110
111
|
end
|
111
112
|
|
112
113
|
json = serialize_models(
|
113
114
|
records,
|
114
|
-
include:
|
115
|
+
include: includes,
|
115
116
|
fields: fields_to_serialize,
|
116
117
|
count: getter.count,
|
117
118
|
params: params
|
@@ -12,5 +12,11 @@ module ForestLiana
|
|
12
12
|
# of deleted records.
|
13
13
|
use_act_as_paranoid ? @resource : @resource.unscoped
|
14
14
|
end
|
15
|
+
|
16
|
+
def includes_for_serialization
|
17
|
+
includes_initial = includes
|
18
|
+
includes_for_smart_belongs_to = @collection.fields_belongs_to.map { |field| field[:field] }
|
19
|
+
includes_initial.concat(includes_for_smart_belongs_to).map(&:to_s)
|
20
|
+
end
|
15
21
|
end
|
16
22
|
end
|
data/lib/forest_liana/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -21306,3 +21306,448 @@ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belo
|
|
21306
21306
|
----------------------------------------------------------------------------------------------------
|
21307
21307
|
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')[0m
|
21308
21308
|
[1m[35m (0.0ms)[0m rollback transaction
|
21309
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21310
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
21311
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
21312
|
+
FROM sqlite_master
|
21313
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
21314
|
+
UNION ALL
|
21315
|
+
SELECT sql
|
21316
|
+
FROM sqlite_temp_master
|
21317
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
21318
|
+
[0m
|
21319
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
21320
|
+
FROM sqlite_master
|
21321
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
21322
|
+
UNION ALL
|
21323
|
+
SELECT sql
|
21324
|
+
FROM sqlite_temp_master
|
21325
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
21326
|
+
|
21327
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
21328
|
+
FROM sqlite_master
|
21329
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
21330
|
+
UNION ALL
|
21331
|
+
SELECT sql
|
21332
|
+
FROM sqlite_temp_master
|
21333
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
21334
|
+
[0m
|
21335
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
21336
|
+
FROM sqlite_master
|
21337
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
21338
|
+
UNION ALL
|
21339
|
+
SELECT sql
|
21340
|
+
FROM sqlite_temp_master
|
21341
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
21342
|
+
|
21343
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
21344
|
+
FROM sqlite_master
|
21345
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
21346
|
+
UNION ALL
|
21347
|
+
SELECT sql
|
21348
|
+
FROM sqlite_temp_master
|
21349
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
21350
|
+
[0m
|
21351
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
21352
|
+
FROM sqlite_master
|
21353
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
21354
|
+
UNION ALL
|
21355
|
+
SELECT sql
|
21356
|
+
FROM sqlite_temp_master
|
21357
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
21358
|
+
|
21359
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
21360
|
+
FROM sqlite_master
|
21361
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
21362
|
+
UNION ALL
|
21363
|
+
SELECT sql
|
21364
|
+
FROM sqlite_temp_master
|
21365
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
21366
|
+
[0m
|
21367
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
21368
|
+
[1m[35m (0.1ms)[0m begin transaction
|
21369
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
21370
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
21371
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
21372
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
21373
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
21374
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
21375
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
21376
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
21377
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
21378
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
21379
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
21380
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "string_fields"
|
21381
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')[0m
|
21382
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
|
21383
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')[0m
|
21384
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
|
21385
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')[0m
|
21386
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
|
21387
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')[0m
|
21388
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
|
21389
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')[0m
|
21390
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
|
21391
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')[0m
|
21392
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
|
21393
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')[0m
|
21394
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
|
21395
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')[0m
|
21396
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
|
21397
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')[0m
|
21398
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
|
21399
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')[0m
|
21400
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
|
21401
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')[0m
|
21402
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
|
21403
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')[0m
|
21404
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
|
21405
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')[0m
|
21406
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
|
21407
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')[0m
|
21408
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
|
21409
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')[0m
|
21410
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
|
21411
|
+
[1m[36mFixture Delete (1.1ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
21412
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
21413
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)[0m
|
21414
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
21415
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
21416
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
21417
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
21418
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
21419
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
21420
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
21421
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)[0m
|
21422
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
21423
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
21424
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
21425
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)[0m
|
21426
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
21427
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)[0m
|
21428
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
21429
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)[0m
|
21430
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
21431
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)[0m
|
21432
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
21433
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
21434
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
21435
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)[0m
|
21436
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
21437
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)[0m
|
21438
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
21439
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
21440
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
21441
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
21442
|
+
[1m[35mFixture Delete (0.8ms)[0m DELETE FROM "trees"
|
21443
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (1, 'Oak', 1, '2011-02-11 11:00:00.000000', '2011-02-11 11:00:00.000000')[0m
|
21444
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (2, 'Mapple', 2, '2011-02-15 21:00:00.000000', '2011-02-15 21:00:00.000000')
|
21445
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2013-04-11 12:00:00.000000', '2013-04-11 12:00:00.000000')[0m
|
21446
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (4, 'Oak', 2, '2016-06-18 09:00:00.000000', '2016-06-18 09:00:00.000000')
|
21447
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (5, 'Oak', 3, '2015-06-18 09:00:00.000000', '2015-06-18 09:00:00.000000')[0m
|
21448
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2018-05-29 20:36:11.000000', '2018-05-29 20:36:11.000000')
|
21449
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2018-05-29 20:36:11.000000', '2018-05-29 20:36:11.000000')[0m
|
21450
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2018-05-29 20:36:11.000000', '2018-05-29 20:36:11.000000')
|
21451
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "has_one_fields"[0m
|
21452
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
|
21453
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)[0m
|
21454
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
|
21455
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)[0m
|
21456
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
|
21457
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)[0m
|
21458
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
|
21459
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)[0m
|
21460
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
|
21461
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)[0m
|
21462
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
|
21463
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)[0m
|
21464
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
|
21465
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)[0m
|
21466
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
|
21467
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)[0m
|
21468
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
|
21469
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)[0m
|
21470
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
|
21471
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)[0m
|
21472
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
|
21473
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)[0m
|
21474
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
|
21475
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)[0m
|
21476
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
|
21477
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)[0m
|
21478
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
|
21479
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)[0m
|
21480
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
|
21481
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)[0m
|
21482
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "owners"
|
21483
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (1, 'Sandro Munda', '2017-05-30 09:00:00.000000', '2018-06-27 20:00:00.000000')[0m
|
21484
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (2, 'Arnaud Besnier', '2018-05-02 09:00:00.000000', '2018-06-28 08:00:00.000000')
|
21485
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "owners" ("id", "name", "created_at", "updated_at") VALUES (3, 'John Doe', '2016-05-02 09:00:00.000000', '2017-06-28 08:00:00.000000')[0m
|
21486
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "has_many_fields"
|
21487
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
21488
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
21489
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
21490
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
21491
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
21492
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
21493
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
21494
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
21495
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
21496
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
21497
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
21498
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
21499
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
21500
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
21501
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
21502
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
21503
|
+
[1m[36m (2.6ms)[0m [1mcommit transaction[0m
|
21504
|
+
[1m[35m (0.1ms)[0m begin transaction
|
21505
|
+
----------------------------------------------------------
|
21506
|
+
ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
|
21507
|
+
----------------------------------------------------------
|
21508
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" > '2018-05-29 20:35:11 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
21509
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2018-05-29 20:35:11 UTC')
|
21510
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21511
|
+
[1m[35m (0.1ms)[0m begin transaction
|
21512
|
+
-------------------------------------------------------------------------------------------
|
21513
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
21514
|
+
-------------------------------------------------------------------------------------------
|
21515
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "owners"."id" AS t0_r0, "owners"."name" AS t0_r1, "owners"."created_at" AS t0_r2, "owners"."updated_at" AS t0_r3 FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC') ORDER BY owners.created_at DESC LIMIT 10 OFFSET 0[0m
|
21516
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC')
|
21517
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21518
|
+
[1m[35m (0.1ms)[0m begin transaction
|
21519
|
+
-----------------------------------------------------------------------
|
21520
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
21521
|
+
-----------------------------------------------------------------------
|
21522
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "belongs_to_fields"."id" AS t0_r0, "belongs_to_fields"."has_one_field_id" AS t0_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t0_r2, "belongs_to_fields"."has_many_field_id" AS t0_r3, "has_one_fields"."id" AS t1_r0, "has_one_fields"."checked" AS t1_r1, "has_one_fields"."status" AS t1_r2, "has_many_fields"."id" AS t2_r0, "has_many_fields"."has_many_through_field_id" AS t2_r1, "has_many_class_name_fields"."id" AS t3_r0 FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" ORDER BY "has_one_fields"."id" ASC LIMIT 10 OFFSET 0[0m
|
21523
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "belongs_to_fields"
|
21524
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
21525
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21526
|
+
------------------------------------------------------------------------------------------------------
|
21527
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
21528
|
+
------------------------------------------------------------------------------------------------------
|
21529
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
21530
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)')
|
21531
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21532
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21533
|
+
-----------------------------------------------------------------
|
21534
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
21535
|
+
-----------------------------------------------------------------
|
21536
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 10 OFFSET 10[0m
|
21537
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "string_fields"
|
21538
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
21539
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21540
|
+
----------------------------------------------------------------
|
21541
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
21542
|
+
----------------------------------------------------------------
|
21543
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.field DESC LIMIT 10 OFFSET 0[0m
|
21544
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "string_fields"
|
21545
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21546
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21547
|
+
------------------------------------------------------------------------------------
|
21548
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
21549
|
+
------------------------------------------------------------------------------------
|
21550
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0[0m
|
21551
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
|
21552
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21553
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21554
|
+
------------------------------------------------------------------------------------------------
|
21555
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
21556
|
+
------------------------------------------------------------------------------------------------
|
21557
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
21558
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC')
|
21559
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21560
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21561
|
+
-----------------------------------------------------------------
|
21562
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
21563
|
+
-----------------------------------------------------------------
|
21564
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "string_fields"."id" AS t0_r0, "string_fields"."field" AS t0_r1 FROM "string_fields" ORDER BY string_fields.id DESC LIMIT 15 OFFSET 0[0m
|
21565
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "string_fields"
|
21566
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21567
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21568
|
+
------------------------------------------------------------
|
21569
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
|
21570
|
+
------------------------------------------------------------
|
21571
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" < '2018-05-29 20:35:11 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
21572
|
+
[1m[35m (0.0ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2018-05-29 20:35:11 UTC')
|
21573
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
21574
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21575
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21576
|
+
--------------------------------------------------------------------
|
21577
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
21578
|
+
--------------------------------------------------------------------
|
21579
|
+
[1m[35mSQL (0.5ms)[0m SELECT "has_one_fields"."id" AS t0_r0, "has_one_fields"."checked" AS t0_r1, "has_one_fields"."status" AS t0_r2, "belongs_to_fields"."id" AS t1_r0, "belongs_to_fields"."has_one_field_id" AS t1_r1, "belongs_to_fields"."has_many_class_name_field_id" AS t1_r2, "belongs_to_fields"."has_many_field_id" AS t1_r3, "belongs_to_class_name_fields"."id" AS t2_r0, "belongs_to_class_name_fields"."foo_id" AS t2_r1 FROM "has_one_fields" LEFT OUTER JOIN "belongs_to_fields" ON "belongs_to_fields"."has_one_field_id" = "has_one_fields"."id" LEFT OUTER JOIN "belongs_to_class_name_fields" ON "belongs_to_class_name_fields"."foo_id" = "has_one_fields"."id" ORDER BY "belongs_to_fields"."id" DESC LIMIT 10 OFFSET 0
|
21580
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "has_one_fields"[0m
|
21581
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21582
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21583
|
+
----------------------------------------------------------------
|
21584
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
21585
|
+
----------------------------------------------------------------
|
21586
|
+
[1m[35mSQL (0.3ms)[0m SELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
21587
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE ("trees"."created_at" > '2015-06-18 08:00:00') AND (owners.name = 'Arnaud Besnier')[0m
|
21588
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21589
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21590
|
+
---------------------------
|
21591
|
+
ForestLianaTest: test_truth
|
21592
|
+
---------------------------
|
21593
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21594
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21595
|
+
----------------------------------------------------------------------------------------------------
|
21596
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
21597
|
+
----------------------------------------------------------------------------------------------------
|
21598
|
+
[1m[35m (0.2ms)[0m SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."checked" = 0)
|
21599
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
21600
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21601
|
+
-------------------------------------------------------------------------------------------------
|
21602
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
21603
|
+
-------------------------------------------------------------------------------------------------
|
21604
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."status" = '1')[0m
|
21605
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21606
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21607
|
+
-----------------------------------------------------------------------------
|
21608
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
21609
|
+
-----------------------------------------------------------------------------
|
21610
|
+
[1m[35m (0.5ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
21611
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
21612
|
+
[1m[35m (0.1ms)[0m begin transaction
|
21613
|
+
----------------------------------------------------------------------------------------------------
|
21614
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
21615
|
+
----------------------------------------------------------------------------------------------------
|
21616
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')[0m
|
21617
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21618
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21619
|
+
-----------------------------------------------------------------------------------------
|
21620
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
21621
|
+
-----------------------------------------------------------------------------------------
|
21622
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC
|
21623
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
21624
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21625
|
+
---------------------------------------------------------------------------------------
|
21626
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
21627
|
+
---------------------------------------------------------------------------------------
|
21628
|
+
[1m[36m (0.7ms)[0m [1mSELECT COUNT(DISTINCT "belongs_to_fields"."id") AS count_id, belongs_to_fields.has_one_field_id AS belongs_to_fields_has_one_field_id FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" GROUP BY belongs_to_fields.has_one_field_id ORDER BY count_id DESC[0m
|
21629
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21630
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21631
|
+
-------------------------------------------------------------------------
|
21632
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
|
21633
|
+
-------------------------------------------------------------------------
|
21634
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
21635
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%')[0m [["owner_id", 1]]
|
21636
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
21637
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
21638
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21639
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21640
|
+
-----------------------------------------------------------------------
|
21641
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
|
21642
|
+
-----------------------------------------------------------------------
|
21643
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
21644
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC[0m [["owner_id", 1]]
|
21645
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
21646
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
21647
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21648
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21649
|
+
------------------------------------------------------------------
|
21650
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
|
21651
|
+
------------------------------------------------------------------
|
21652
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
21653
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ?[0m [["owner_id", 1]]
|
21654
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(DISTINCT count_column) FROM (SELECT "trees"."id" AS count_column FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? LIMIT 15 OFFSET 0) subquery_for_count [["owner_id", 1]]
|
21655
|
+
[1m[36mSQL (0.1ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
21656
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21657
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21658
|
+
-------------------------------------------------------------------------
|
21659
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
21660
|
+
-------------------------------------------------------------------------
|
21661
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21662
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
21663
|
+
------------------------------------------------------------------------
|
21664
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
21665
|
+
------------------------------------------------------------------------
|
21666
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21667
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21668
|
+
--------------------------------------------------------
|
21669
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
21670
|
+
--------------------------------------------------------
|
21671
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21672
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
21673
|
+
--------------------------------------------------------------------------
|
21674
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
21675
|
+
--------------------------------------------------------------------------
|
21676
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21677
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
21678
|
+
----------------------------------------------------------------------------------
|
21679
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
21680
|
+
----------------------------------------------------------------------------------
|
21681
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21682
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21683
|
+
--------------------------------------------------------------------------
|
21684
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
21685
|
+
--------------------------------------------------------------------------
|
21686
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21687
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21688
|
+
-------------------------------------------------------------------------
|
21689
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
21690
|
+
-------------------------------------------------------------------------
|
21691
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21692
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21693
|
+
------------------------------------------------------------------------------------
|
21694
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
21695
|
+
------------------------------------------------------------------------------------
|
21696
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21697
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21698
|
+
---------------------------------------------------------------------------
|
21699
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
21700
|
+
---------------------------------------------------------------------------
|
21701
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21702
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21703
|
+
-----------------------------------------------------------
|
21704
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
21705
|
+
-----------------------------------------------------------
|
21706
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21707
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21708
|
+
---------------------------------------------------------------------
|
21709
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
21710
|
+
---------------------------------------------------------------------
|
21711
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21712
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21713
|
+
---------------------------------------------------------
|
21714
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
21715
|
+
---------------------------------------------------------
|
21716
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
21717
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21718
|
+
-----------------------------------
|
21719
|
+
ForestLiana::RouteTest: test_Routes
|
21720
|
+
-----------------------------------
|
21721
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
21722
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21723
|
+
---------------------------------------------------------------------------------------------------------
|
21724
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
21725
|
+
---------------------------------------------------------------------------------------------------------
|
21726
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
21727
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
21728
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21729
|
+
---------------------------------------------------------------------------------------------------
|
21730
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
21731
|
+
---------------------------------------------------------------------------------------------------
|
21732
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
21733
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
21734
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
21735
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
21736
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
21737
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21738
|
+
------------------------------------------------------------------------------------------------------------
|
21739
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
21740
|
+
------------------------------------------------------------------------------------------------------------
|
21741
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
21742
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
21743
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
21744
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
21745
|
+
[1m[36m (0.4ms)[0m [1mrollback transaction[0m
|
21746
|
+
[1m[35m (0.0ms)[0m begin transaction
|
21747
|
+
------------------------------------------------------------------------------------------------------
|
21748
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
21749
|
+
------------------------------------------------------------------------------------------------------
|
21750
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
21751
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
21752
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
21753
|
+
[1m[35m (0.0ms)[0m rollback transaction
|