forest_liana 2.13.2 → 2.13.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/services/forest_liana/permissions_checker.rb +2 -3
- 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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f838e5ecbe3ab3d18c04493beb8e42d644c4bbcb
|
4
|
+
data.tar.gz: 7f06fff682623f27847ddd101acfae03b99e3650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe3aea057fc44b34134fb5eec00ae79f6163821492338dde82087ae9a270e443a2461154e79dbd33143e28af852fcf39f70f6b0105fb3269bd1dbe1adc2aaa1c
|
7
|
+
data.tar.gz: c3bd09cee4286088ffd589d0caee3395aed0f231df1e6ec752fbb6657b0793d85b68182bc443bb202c11d3be3f8796e2c57951bea2ab0019ccee0b8074e64613
|
@@ -29,7 +29,6 @@ module ForestLiana
|
|
29
29
|
|
30
30
|
def is_allowed?
|
31
31
|
permissions = get_permissions
|
32
|
-
|
33
32
|
if permissions && permissions[@collection_name] &&
|
34
33
|
permissions[@collection_name]['collection']
|
35
34
|
permissions[@collection_name]['collection'][@permission_name]
|
@@ -40,8 +39,8 @@ module ForestLiana
|
|
40
39
|
|
41
40
|
def retrieve_permissions
|
42
41
|
@@permissions_per_rendering[@rendering_id] = Hash.new
|
43
|
-
|
44
|
-
|
42
|
+
permissions = ForestLiana::PermissionsGetter.new(@rendering_id).perform()
|
43
|
+
@@permissions_per_rendering[@rendering_id]['data'] = permissions
|
45
44
|
@@permissions_per_rendering[@rendering_id]['last_retrieve'] = Time.now
|
46
45
|
end
|
47
46
|
|
data/lib/forest_liana/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -63660,3 +63660,448 @@ ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
|
63660
63660
|
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
63661
63661
|
--------------------------------------------------------
|
63662
63662
|
[1m[35m (0.0ms)[0m rollback transaction
|
63663
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
63664
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
63665
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
63666
|
+
FROM sqlite_master
|
63667
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
63668
|
+
UNION ALL
|
63669
|
+
SELECT sql
|
63670
|
+
FROM sqlite_temp_master
|
63671
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
63672
|
+
[0m
|
63673
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
63674
|
+
FROM sqlite_master
|
63675
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
63676
|
+
UNION ALL
|
63677
|
+
SELECT sql
|
63678
|
+
FROM sqlite_temp_master
|
63679
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
63680
|
+
|
63681
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
63682
|
+
FROM sqlite_master
|
63683
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
63684
|
+
UNION ALL
|
63685
|
+
SELECT sql
|
63686
|
+
FROM sqlite_temp_master
|
63687
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
63688
|
+
[0m
|
63689
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
63690
|
+
FROM sqlite_master
|
63691
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
63692
|
+
UNION ALL
|
63693
|
+
SELECT sql
|
63694
|
+
FROM sqlite_temp_master
|
63695
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
63696
|
+
|
63697
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
63698
|
+
FROM sqlite_master
|
63699
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
63700
|
+
UNION ALL
|
63701
|
+
SELECT sql
|
63702
|
+
FROM sqlite_temp_master
|
63703
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
63704
|
+
[0m
|
63705
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
63706
|
+
FROM sqlite_master
|
63707
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
63708
|
+
UNION ALL
|
63709
|
+
SELECT sql
|
63710
|
+
FROM sqlite_temp_master
|
63711
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
63712
|
+
|
63713
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
63714
|
+
FROM sqlite_master
|
63715
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
63716
|
+
UNION ALL
|
63717
|
+
SELECT sql
|
63718
|
+
FROM sqlite_temp_master
|
63719
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
63720
|
+
[0m
|
63721
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
63722
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63723
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
63724
|
+
[1m[35mFixture Insert (0.4ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
63725
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
63726
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
63727
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
63728
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
63729
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
63730
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
63731
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
63732
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
63733
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
63734
|
+
[1m[35mFixture Delete (0.4ms)[0m DELETE FROM "string_fields"
|
63735
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')[0m
|
63736
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
|
63737
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')[0m
|
63738
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
|
63739
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')[0m
|
63740
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
|
63741
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')[0m
|
63742
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
|
63743
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')[0m
|
63744
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
|
63745
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')[0m
|
63746
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
|
63747
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')[0m
|
63748
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
|
63749
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')[0m
|
63750
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
|
63751
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')[0m
|
63752
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
|
63753
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')[0m
|
63754
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
|
63755
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')[0m
|
63756
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
|
63757
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')[0m
|
63758
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
|
63759
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')[0m
|
63760
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
|
63761
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')[0m
|
63762
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
|
63763
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')[0m
|
63764
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
|
63765
|
+
[1m[36mFixture Delete (0.9ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
63766
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
63767
|
+
[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
|
63768
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
63769
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
63770
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
63771
|
+
[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
|
63772
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
63773
|
+
[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
|
63774
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
63775
|
+
[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
|
63776
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
63777
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (12, 12, 4)[0m
|
63778
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
63779
|
+
[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
|
63780
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
63781
|
+
[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
|
63782
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
63783
|
+
[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
|
63784
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
63785
|
+
[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
|
63786
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
63787
|
+
[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
|
63788
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
63789
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (24, 24, 8)[0m
|
63790
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
63791
|
+
[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
|
63792
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
63793
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (28, 28, 10)[0m
|
63794
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
63795
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
63796
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "trees"
|
63797
|
+
[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
|
63798
|
+
[1m[35mFixture Insert (0.1ms)[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')
|
63799
|
+
[1m[36mFixture Insert (0.1ms)[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
|
63800
|
+
[1m[35mFixture Insert (0.1ms)[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')
|
63801
|
+
[1m[36mFixture Insert (0.1ms)[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
|
63802
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2018-09-25 16:38:33.000000', '2018-09-25 16:38:33.000000')
|
63803
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2018-09-25 16:38:33.000000', '2018-09-25 16:38:33.000000')[0m
|
63804
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2018-09-25 16:38:33.000000', '2018-09-25 16:38:33.000000')
|
63805
|
+
[1m[36mFixture Delete (0.7ms)[0m [1mDELETE FROM "has_one_fields"[0m
|
63806
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
|
63807
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)[0m
|
63808
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
|
63809
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)[0m
|
63810
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
|
63811
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)[0m
|
63812
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
|
63813
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)[0m
|
63814
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
|
63815
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)[0m
|
63816
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
|
63817
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)[0m
|
63818
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
|
63819
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)[0m
|
63820
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
|
63821
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)[0m
|
63822
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
|
63823
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)[0m
|
63824
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
|
63825
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)[0m
|
63826
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
|
63827
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)[0m
|
63828
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
|
63829
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)[0m
|
63830
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
|
63831
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)[0m
|
63832
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
|
63833
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)[0m
|
63834
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
|
63835
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)[0m
|
63836
|
+
[1m[35mFixture Delete (0.5ms)[0m DELETE FROM "owners"
|
63837
|
+
[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
|
63838
|
+
[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')
|
63839
|
+
[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
|
63840
|
+
[1m[35mFixture Delete (1.8ms)[0m DELETE FROM "has_many_fields"
|
63841
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
63842
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
63843
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
63844
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
63845
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
63846
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
63847
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
63848
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
63849
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
63850
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
63851
|
+
[1m[36mFixture Delete (0.5ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
63852
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
63853
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
63854
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
63855
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
63856
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
63857
|
+
[1m[36m (5.3ms)[0m [1mcommit transaction[0m
|
63858
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63859
|
+
-------------------------------------------------------------------------
|
63860
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
63861
|
+
-------------------------------------------------------------------------
|
63862
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63863
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63864
|
+
------------------------------------------------------------------------
|
63865
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
63866
|
+
------------------------------------------------------------------------
|
63867
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63868
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63869
|
+
---------------------------------------------------------------------
|
63870
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
63871
|
+
---------------------------------------------------------------------
|
63872
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63873
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63874
|
+
---------------------------------------------------------
|
63875
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
63876
|
+
---------------------------------------------------------
|
63877
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63878
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63879
|
+
-------------------------------------------------------------------------
|
63880
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
63881
|
+
-------------------------------------------------------------------------
|
63882
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63883
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63884
|
+
---------------------------------------------------------------------------
|
63885
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
63886
|
+
---------------------------------------------------------------------------
|
63887
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63888
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63889
|
+
--------------------------------------------------------------------------
|
63890
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
63891
|
+
--------------------------------------------------------------------------
|
63892
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63893
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63894
|
+
--------------------------------------------------------------------------
|
63895
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
63896
|
+
--------------------------------------------------------------------------
|
63897
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63898
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63899
|
+
-----------------------------------------------------------
|
63900
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
63901
|
+
-----------------------------------------------------------
|
63902
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63903
|
+
[1m[35m (0.1ms)[0m begin transaction
|
63904
|
+
----------------------------------------------------------------------------------
|
63905
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
63906
|
+
----------------------------------------------------------------------------------
|
63907
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63908
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63909
|
+
--------------------------------------------------------
|
63910
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
63911
|
+
--------------------------------------------------------
|
63912
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
63913
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63914
|
+
------------------------------------------------------------------------------------
|
63915
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
63916
|
+
------------------------------------------------------------------------------------
|
63917
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
63918
|
+
[1m[35m (0.0ms)[0m begin transaction
|
63919
|
+
------------------------------------------------------------
|
63920
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
|
63921
|
+
------------------------------------------------------------
|
63922
|
+
[1m[36mSQL (1.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-09-25 16:37:33 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
63923
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2018-09-25 16:37:33 UTC')
|
63924
|
+
[1m[36mOwner Load (0.1ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
63925
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63926
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63927
|
+
-------------------------------------------------------------------------------------------
|
63928
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
63929
|
+
-------------------------------------------------------------------------------------------
|
63930
|
+
[1m[35mSQL (0.2ms)[0m 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
|
63931
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "owners" WHERE ("owners"."updated_at" BETWEEN '2017-01-01 08:00:00 UTC' AND '2018-01-01 07:59:59 UTC')[0m
|
63932
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63933
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63934
|
+
------------------------------------------------------------------------------------
|
63935
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
63936
|
+
------------------------------------------------------------------------------------
|
63937
|
+
[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 (owners.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
|
63938
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')[0m
|
63939
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
63940
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63941
|
+
-----------------------------------------------------------------
|
63942
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
63943
|
+
-----------------------------------------------------------------
|
63944
|
+
[1m[35mSQL (0.2ms)[0m 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
|
63945
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
63946
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63947
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63948
|
+
--------------------------------------------------------------------
|
63949
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
63950
|
+
--------------------------------------------------------------------
|
63951
|
+
[1m[35mSQL (0.7ms)[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
|
63952
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(DISTINCT "has_one_fields"."id") 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"[0m
|
63953
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63954
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63955
|
+
----------------------------------------------------------
|
63956
|
+
ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
|
63957
|
+
----------------------------------------------------------
|
63958
|
+
[1m[35mSQL (0.2ms)[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 FROM "trees" WHERE ("trees"."created_at" > '2018-09-25 16:37:33 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
63959
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2018-09-25 16:37:33 UTC')[0m
|
63960
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63961
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
63962
|
+
----------------------------------------------------------------
|
63963
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
63964
|
+
----------------------------------------------------------------
|
63965
|
+
[1m[35mSQL (0.6ms)[0m 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
|
63966
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
63967
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
63968
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63969
|
+
------------------------------------------------------------------------------------------------
|
63970
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
63971
|
+
------------------------------------------------------------------------------------------------
|
63972
|
+
[1m[35mSQL (0.2ms)[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 (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
|
63973
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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')[0m
|
63974
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63975
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
63976
|
+
----------------------------------------------------------------
|
63977
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
63978
|
+
----------------------------------------------------------------
|
63979
|
+
[1m[35mSQL (0.2ms)[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
|
63980
|
+
[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
|
63981
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63982
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63983
|
+
------------------------------------------------------------------------------------------------------
|
63984
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
63985
|
+
------------------------------------------------------------------------------------------------------
|
63986
|
+
[1m[35mSQL (0.2ms)[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 (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0
|
63987
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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)')[0m
|
63988
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63989
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63990
|
+
-----------------------------------------------------------------------
|
63991
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
63992
|
+
-----------------------------------------------------------------------
|
63993
|
+
[1m[35mSQL (0.2ms)[0m 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
|
63994
|
+
[1m[36m (0.1ms)[0m [1mSELECT 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"[0m
|
63995
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
63996
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
63997
|
+
-----------------------------------------------------------------
|
63998
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
63999
|
+
-----------------------------------------------------------------
|
64000
|
+
[1m[35mSQL (0.1ms)[0m 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
|
64001
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
64002
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64003
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64004
|
+
-----------------------------------
|
64005
|
+
ForestLiana::RouteTest: test_Routes
|
64006
|
+
-----------------------------------
|
64007
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64008
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64009
|
+
----------------------------------------------------------------------------------------------------
|
64010
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
64011
|
+
----------------------------------------------------------------------------------------------------
|
64012
|
+
[1m[35m (0.3ms)[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)
|
64013
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
64014
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64015
|
+
-------------------------------------------------------------------------------------------------
|
64016
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
64017
|
+
-------------------------------------------------------------------------------------------------
|
64018
|
+
[1m[36m (0.3ms)[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
|
64019
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64020
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64021
|
+
----------------------------------------------------------------------------------------------------
|
64022
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
64023
|
+
----------------------------------------------------------------------------------------------------
|
64024
|
+
[1m[35m (0.1ms)[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"."id" = '3')
|
64025
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64026
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64027
|
+
-----------------------------------------------------------------------------
|
64028
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
64029
|
+
-----------------------------------------------------------------------------
|
64030
|
+
[1m[36m (0.4ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)[0m
|
64031
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64032
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64033
|
+
-----------------------------------------------------------------------------------------
|
64034
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
64035
|
+
-----------------------------------------------------------------------------------------
|
64036
|
+
[1m[35m (0.5ms)[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
|
64037
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
64038
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64039
|
+
---------------------------------------------------------------------------------------
|
64040
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
64041
|
+
---------------------------------------------------------------------------------------
|
64042
|
+
[1m[36m (0.6ms)[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
|
64043
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64044
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64045
|
+
---------------------------
|
64046
|
+
ForestLianaTest: test_truth
|
64047
|
+
---------------------------
|
64048
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64049
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64050
|
+
------------------------------------------------------------------------------------------------------
|
64051
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
64052
|
+
------------------------------------------------------------------------------------------------------
|
64053
|
+
[1m[35mSerializeField Load (0.1ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
64054
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
64055
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
64056
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
64057
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64058
|
+
---------------------------------------------------------------------------------------------------
|
64059
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
64060
|
+
---------------------------------------------------------------------------------------------------
|
64061
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
64062
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
64063
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
64064
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64065
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
64066
|
+
[1m[35m (0.0ms)[0m begin transaction
|
64067
|
+
------------------------------------------------------------------------------------------------------------
|
64068
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
64069
|
+
------------------------------------------------------------------------------------------------------------
|
64070
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
64071
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
64072
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
64073
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
64074
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
64075
|
+
[1m[35m (0.1ms)[0m begin transaction
|
64076
|
+
---------------------------------------------------------------------------------------------------------
|
64077
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
64078
|
+
---------------------------------------------------------------------------------------------------------
|
64079
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
64080
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64081
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64082
|
+
------------------------------------------------------------------
|
64083
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
|
64084
|
+
------------------------------------------------------------------
|
64085
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
64086
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ?[0m [["owner_id", 1]]
|
64087
|
+
[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]]
|
64088
|
+
[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]]
|
64089
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
64090
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
64091
|
+
-------------------------------------------------------------------------
|
64092
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
|
64093
|
+
-------------------------------------------------------------------------
|
64094
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
64095
|
+
[1m[36m (0.2ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") 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]]
|
64096
|
+
[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]]
|
64097
|
+
[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]]
|
64098
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
64099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
64100
|
+
-----------------------------------------------------------------------
|
64101
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
|
64102
|
+
-----------------------------------------------------------------------
|
64103
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
64104
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ?[0m [["owner_id", 1]]
|
64105
|
+
[1m[35m (0.0ms)[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]]
|
64106
|
+
[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 DESC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
64107
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.13.
|
4
|
+
version: 2.13.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-09-
|
11
|
+
date: 2018-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|