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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c8dda42aa3002ba36352eb33224bcdc64db0795
4
- data.tar.gz: 85d7008bdeded7ac09db9f895d277d21ffd3e37c
3
+ metadata.gz: 7825474a2be0935a5146b4773dacf86a3bc235d5
4
+ data.tar.gz: b49d46a5c6437577217acb96fc7153bd6734283e
5
5
  SHA512:
6
- metadata.gz: 49cf47bce788a004e84126d6ff63241d3b4acce389d2d9ad9687fa91a98522c27aa3358f8c61cf515e7bfb7a6645c5cc922ead614bad8257093e5d819f9f77c3
7
- data.tar.gz: a6354dedfeeda1f336b17c52f0dd4792a5e5d490845133ba334efecf19cf4a49986893b7478621b2daec97eaa03a76eabb636ed805d0559e2f12392c60b29615
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
- if getter.includes.length > 0
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] += ",#{getter.includes.join(',')}"
110
+ fields_to_serialize[association_name] += ",#{includes.join(',')}"
110
111
  end
111
112
 
112
113
  json = serialize_models(
113
114
  records,
114
- include: getter.includes,
115
+ include: includes,
115
116
  fields: fields_to_serialize,
116
117
  count: getter.count,
117
118
  params: params
@@ -105,7 +105,7 @@ module ForestLiana
105
105
  end
106
106
 
107
107
  def includes(getter)
108
- getter.includes.map(&:to_s)
108
+ getter.includes_for_serialization
109
109
  end
110
110
 
111
111
  def record_includes
@@ -29,4 +29,8 @@ class ForestLiana::Model::Collection
29
29
  def id
30
30
  name
31
31
  end
32
+
33
+ def fields_belongs_to
34
+ fields.select { |field| field[:type] == 'String' && !field[:reference].nil? }
35
+ end
32
36
  end
@@ -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
@@ -5,6 +5,8 @@ module ForestLiana
5
5
  def initialize(resource, params)
6
6
  @resource = resource
7
7
  @params = params
8
+ @collection_name = ForestLiana.name_for(@resource)
9
+ @collection = get_collection(@collection_name)
8
10
  end
9
11
 
10
12
  def perform
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.1"
3
3
  end
Binary file
@@ -21306,3 +21306,448 @@ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belo
21306
21306
  ----------------------------------------------------------------------------------------------------
21307
21307
   (0.2ms) 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"."id" = '3')
21308
21308
   (0.0ms) rollback transaction
21309
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
21310
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21311
+  (0.1ms)  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
+ 
21319
+  (0.1ms) 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
+  (0.1ms)  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
+ 
21335
+  (0.1ms) 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
+  (0.1ms)  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
+ 
21351
+  (0.1ms) 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
+  (0.1ms)  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
+ 
21367
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
21368
+  (0.1ms) begin transaction
21369
+ Fixture Delete (0.7ms) DELETE FROM "has_many_through_fields"
21370
+ Fixture Insert (0.5ms) INSERT INTO "has_many_through_fields" ("id") VALUES (1)
21371
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (2)
21372
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (3)
21373
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (4)
21374
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (5)
21375
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (6)
21376
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (7)
21377
+ Fixture Insert (0.1ms) INSERT INTO "has_many_through_fields" ("id") VALUES (8)
21378
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (9)
21379
+ Fixture Insert (0.0ms) INSERT INTO "has_many_through_fields" ("id") VALUES (10)
21380
+ Fixture Delete (0.5ms) DELETE FROM "string_fields"
21381
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')
21382
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
21383
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')
21384
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
21385
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')
21386
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
21387
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')
21388
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
21389
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')
21390
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
21391
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')
21392
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
21393
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')
21394
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
21395
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')
21396
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
21397
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')
21398
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
21399
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')
21400
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
21401
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')
21402
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
21403
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')
21404
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
21405
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')
21406
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
21407
+ Fixture Insert (0.1ms) INSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')
21408
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
21409
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')
21410
+ Fixture Insert (0.0ms) INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
21411
+ Fixture Delete (1.1ms) DELETE FROM "belongs_to_fields"
21412
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
21413
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (2, 2, 1)
21414
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
21415
+ Fixture Insert (0.1ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)
21416
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
21417
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)
21418
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
21419
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)
21420
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
21421
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (10, 10, 4)
21422
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
21423
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)
21424
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
21425
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (14, 14, 5)
21426
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
21427
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (16, 16, 6)
21428
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
21429
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (18, 18, 6)
21430
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
21431
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)
21432
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
21433
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)
21434
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
21435
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)
21436
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
21437
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)
21438
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
21439
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)
21440
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
21441
+ Fixture Insert (0.0ms) INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)
21442
+ Fixture Delete (0.8ms) DELETE FROM "trees"
21443
+ Fixture Insert (0.1ms) INSERT 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')
21444
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
21446
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
21448
+ Fixture Insert (0.0ms) 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
+ Fixture Insert (0.0ms) INSERT 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')
21450
+ Fixture Insert (0.0ms) 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
+ Fixture Delete (0.4ms) DELETE FROM "has_one_fields"
21452
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
21453
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)
21454
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
21455
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)
21456
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
21457
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)
21458
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
21459
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)
21460
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
21461
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)
21462
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
21463
+ Fixture Insert (0.2ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)
21464
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
21465
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)
21466
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
21467
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)
21468
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
21469
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)
21470
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
21471
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)
21472
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
21473
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)
21474
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
21475
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)
21476
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
21477
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)
21478
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
21479
+ Fixture Insert (0.1ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)
21480
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
21481
+ Fixture Insert (0.0ms) INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)
21482
+ Fixture Delete (0.5ms) DELETE FROM "owners"
21483
+ Fixture Insert (0.1ms) INSERT 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')
21484
+ Fixture Insert (0.1ms) 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
+ Fixture Insert (0.1ms) INSERT 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')
21486
+ Fixture Delete (0.9ms) DELETE FROM "has_many_fields"
21487
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (1)
21488
+ Fixture Insert (0.2ms) INSERT INTO "has_many_fields" ("id") VALUES (2)
21489
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (3)
21490
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (4)
21491
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)
21492
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
21493
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (7)
21494
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
21495
+ Fixture Insert (0.1ms) INSERT INTO "has_many_fields" ("id") VALUES (9)
21496
+ Fixture Insert (0.0ms) INSERT INTO "has_many_fields" ("id") VALUES (10)
21497
+ Fixture Delete (0.1ms) DELETE FROM "serialize_fields"
21498
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
21499
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')
21500
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
21501
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')
21502
+ Fixture Insert (0.0ms) INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
21503
+  (2.6ms) commit transaction
21504
+  (0.1ms) begin transaction
21505
+ ----------------------------------------------------------
21506
+ ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
21507
+ ----------------------------------------------------------
21508
+ SQL (0.2ms) 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 FROM "trees" WHERE ("trees"."created_at" > '2018-05-29 20:35:11 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
21509
+  (0.1ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2018-05-29 20:35:11 UTC')
21510
+  (0.0ms) rollback transaction
21511
+  (0.1ms) begin transaction
21512
+ -------------------------------------------------------------------------------------------
21513
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
21514
+ -------------------------------------------------------------------------------------------
21515
+ SQL (0.1ms) SELECT "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
21516
+  (0.1ms) 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
+  (0.0ms) rollback transaction
21518
+  (0.1ms) begin transaction
21519
+ -----------------------------------------------------------------------
21520
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
21521
+ -----------------------------------------------------------------------
21522
+ SQL (0.2ms) SELECT "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
21523
+  (0.1ms) SELECT COUNT(*) FROM "belongs_to_fields"
21524
+  (0.1ms) rollback transaction
21525
+  (0.0ms) begin transaction
21526
+ ------------------------------------------------------------------------------------------------------
21527
+ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
21528
+ ------------------------------------------------------------------------------------------------------
21529
+ SQL (0.2ms) 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 (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
21530
+  (0.1ms) 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
+  (0.0ms) rollback transaction
21532
+  (0.0ms) begin transaction
21533
+ -----------------------------------------------------------------
21534
+ ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
21535
+ -----------------------------------------------------------------
21536
+ SQL (0.1ms) SELECT "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
21537
+  (0.1ms) SELECT COUNT(*) FROM "string_fields"
21538
+  (0.1ms) rollback transaction
21539
+  (0.0ms) begin transaction
21540
+ ----------------------------------------------------------------
21541
+ ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
21542
+ ----------------------------------------------------------------
21543
+ SQL (0.2ms) SELECT "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
21544
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
21545
+  (0.0ms) rollback transaction
21546
+  (0.0ms) begin transaction
21547
+ ------------------------------------------------------------------------------------
21548
+ ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
21549
+ ------------------------------------------------------------------------------------
21550
+ SQL (0.2ms) 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 (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
21551
+  (0.1ms) SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')
21552
+  (0.0ms) rollback transaction
21553
+  (0.0ms) begin transaction
21554
+ ------------------------------------------------------------------------------------------------
21555
+ ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
21556
+ ------------------------------------------------------------------------------------------------
21557
+ SQL (0.2ms) 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 (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
21558
+  (0.1ms) 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
+  (0.0ms) rollback transaction
21560
+  (0.0ms) begin transaction
21561
+ -----------------------------------------------------------------
21562
+ ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
21563
+ -----------------------------------------------------------------
21564
+ SQL (0.1ms) SELECT "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
21565
+  (0.0ms) SELECT COUNT(*) FROM "string_fields"
21566
+  (0.0ms) rollback transaction
21567
+  (0.0ms) begin transaction
21568
+ ------------------------------------------------------------
21569
+ ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
21570
+ ------------------------------------------------------------
21571
+ SQL (0.1ms) 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 FROM "trees" WHERE ("trees"."created_at" < '2018-05-29 20:35:11 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
21572
+  (0.0ms) SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2018-05-29 20:35:11 UTC')
21573
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 2]]
21574
+  (0.0ms) rollback transaction
21575
+  (0.0ms) begin transaction
21576
+ --------------------------------------------------------------------
21577
+ ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
21578
+ --------------------------------------------------------------------
21579
+ SQL (0.5ms) 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
+  (0.0ms) SELECT COUNT(*) FROM "has_one_fields"
21581
+  (0.0ms) rollback transaction
21582
+  (0.0ms) begin transaction
21583
+ ----------------------------------------------------------------
21584
+ ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
21585
+ ----------------------------------------------------------------
21586
+ SQL (0.3ms) 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
+  (0.1ms) SELECT 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')
21588
+  (0.0ms) rollback transaction
21589
+  (0.0ms) begin transaction
21590
+ ---------------------------
21591
+ ForestLianaTest: test_truth
21592
+ ---------------------------
21593
+  (0.0ms) rollback transaction
21594
+  (0.0ms) begin transaction
21595
+ ----------------------------------------------------------------------------------------------------
21596
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
21597
+ ----------------------------------------------------------------------------------------------------
21598
+  (0.2ms) 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
+  (0.0ms) rollback transaction
21600
+  (0.0ms) begin transaction
21601
+ -------------------------------------------------------------------------------------------------
21602
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
21603
+ -------------------------------------------------------------------------------------------------
21604
+  (0.2ms) 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"."status" = '1')
21605
+  (0.0ms) rollback transaction
21606
+  (0.0ms) begin transaction
21607
+ -----------------------------------------------------------------------------
21608
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
21609
+ -----------------------------------------------------------------------------
21610
+  (0.5ms) SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
21611
+  (0.1ms) rollback transaction
21612
+  (0.1ms) begin transaction
21613
+ ----------------------------------------------------------------------------------------------------
21614
+ ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
21615
+ ----------------------------------------------------------------------------------------------------
21616
+  (0.2ms) 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"."id" = '3')
21617
+  (0.1ms) rollback transaction
21618
+  (0.0ms) begin transaction
21619
+ -----------------------------------------------------------------------------------------
21620
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
21621
+ -----------------------------------------------------------------------------------------
21622
+  (0.1ms) 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
+  (0.1ms) rollback transaction
21624
+  (0.0ms) begin transaction
21625
+ ---------------------------------------------------------------------------------------
21626
+ ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
21627
+ ---------------------------------------------------------------------------------------
21628
+  (0.7ms) SELECT 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
21629
+  (0.0ms) rollback transaction
21630
+  (0.0ms) begin transaction
21631
+ -------------------------------------------------------------------------
21632
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
21633
+ -------------------------------------------------------------------------
21634
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
21635
+ SQL (0.2ms) 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"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') [["owner_id", 1]]
21636
+  (0.1ms) 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
+ SQL (0.1ms) 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"."owner_id" = ? AND (LOWER("trees"."name") LIKE '%fir%') ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
21638
+  (0.0ms) rollback transaction
21639
+  (0.0ms) begin transaction
21640
+ -----------------------------------------------------------------------
21641
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
21642
+ -----------------------------------------------------------------------
21643
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
21644
+ SQL (0.2ms) 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"."owner_id" = ? ORDER BY trees.id DESC [["owner_id", 1]]
21645
+  (0.2ms) 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
+ SQL (0.2ms) 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"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0 [["owner_id", 1]]
21647
+  (0.1ms) rollback transaction
21648
+  (0.0ms) begin transaction
21649
+ ------------------------------------------------------------------
21650
+ ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
21651
+ ------------------------------------------------------------------
21652
+ Owner Load (0.1ms) SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
21653
+ SQL (0.2ms) 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"."owner_id" = ? [["owner_id", 1]]
21654
+  (0.1ms) 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
+ SQL (0.1ms) 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"."owner_id" = ? ORDER BY "trees"."id" ASC LIMIT 1 OFFSET 0 [["owner_id", 1]]
21656
+  (0.0ms) rollback transaction
21657
+  (0.0ms) begin transaction
21658
+ -------------------------------------------------------------------------
21659
+ ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
21660
+ -------------------------------------------------------------------------
21661
+  (0.0ms) rollback transaction
21662
+  (0.1ms) begin transaction
21663
+ ------------------------------------------------------------------------
21664
+ ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
21665
+ ------------------------------------------------------------------------
21666
+  (0.1ms) rollback transaction
21667
+  (0.0ms) begin transaction
21668
+ --------------------------------------------------------
21669
+ ForestLiana::SchemaAdapterTest: test_hasOne_relationship
21670
+ --------------------------------------------------------
21671
+  (0.0ms) rollback transaction
21672
+  (0.1ms) begin transaction
21673
+ --------------------------------------------------------------------------
21674
+ ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
21675
+ --------------------------------------------------------------------------
21676
+  (0.0ms) rollback transaction
21677
+  (0.1ms) begin transaction
21678
+ ----------------------------------------------------------------------------------
21679
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
21680
+ ----------------------------------------------------------------------------------
21681
+  (0.0ms) rollback transaction
21682
+  (0.0ms) begin transaction
21683
+ --------------------------------------------------------------------------
21684
+ ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
21685
+ --------------------------------------------------------------------------
21686
+  (0.0ms) rollback transaction
21687
+  (0.0ms) begin transaction
21688
+ -------------------------------------------------------------------------
21689
+ ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
21690
+ -------------------------------------------------------------------------
21691
+  (0.0ms) rollback transaction
21692
+  (0.0ms) begin transaction
21693
+ ------------------------------------------------------------------------------------
21694
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
21695
+ ------------------------------------------------------------------------------------
21696
+  (0.0ms) rollback transaction
21697
+  (0.0ms) begin transaction
21698
+ ---------------------------------------------------------------------------
21699
+ ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
21700
+ ---------------------------------------------------------------------------
21701
+  (0.0ms) rollback transaction
21702
+  (0.0ms) begin transaction
21703
+ -----------------------------------------------------------
21704
+ ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
21705
+ -----------------------------------------------------------
21706
+  (0.0ms) rollback transaction
21707
+  (0.0ms) begin transaction
21708
+ ---------------------------------------------------------------------
21709
+ ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
21710
+ ---------------------------------------------------------------------
21711
+  (0.0ms) rollback transaction
21712
+  (0.0ms) begin transaction
21713
+ ---------------------------------------------------------
21714
+ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
21715
+ ---------------------------------------------------------
21716
+  (0.0ms) rollback transaction
21717
+  (0.0ms) begin transaction
21718
+ -----------------------------------
21719
+ ForestLiana::RouteTest: test_Routes
21720
+ -----------------------------------
21721
+  (0.1ms) rollback transaction
21722
+  (0.0ms) begin transaction
21723
+ ---------------------------------------------------------------------------------------------------------
21724
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
21725
+ ---------------------------------------------------------------------------------------------------------
21726
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
21727
+  (0.1ms) rollback transaction
21728
+  (0.0ms) begin transaction
21729
+ ---------------------------------------------------------------------------------------------------
21730
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
21731
+ ---------------------------------------------------------------------------------------------------
21732
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
21733
+  (0.1ms) SAVEPOINT active_record_1
21734
+ SQL (0.2ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", nil], ["id", 1]]
21735
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21736
+  (0.6ms) rollback transaction
21737
+  (0.0ms) begin transaction
21738
+ ------------------------------------------------------------------------------------------------------------
21739
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
21740
+ ------------------------------------------------------------------------------------------------------------
21741
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
21742
+  (0.1ms) SAVEPOINT active_record_1
21743
+ SQL (0.4ms) UPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ? [["field", "---\n- test\n- test\n"], ["id", 1]]
21744
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21745
+  (0.4ms) rollback transaction
21746
+  (0.0ms) begin transaction
21747
+ ------------------------------------------------------------------------------------------------------
21748
+ ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
21749
+ ------------------------------------------------------------------------------------------------------
21750
+ SerializeField Load (0.1ms) SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
21751
+  (0.0ms) SAVEPOINT active_record_1
21752
+  (0.0ms) RELEASE SAVEPOINT active_record_1
21753
+  (0.0ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda