forest_liana 2.8.1 → 2.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/resources_controller.rb +7 -7
- 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: 14ab097ffc6a225f2195936253472b5c52a73e3b
|
4
|
+
data.tar.gz: 60a23d3c4b9a13db8f87c8debf710b80394651e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01f1d41c1d3b33fd91fdc3d1b1275a0ccbdbb29bc41b29b73d782883dfb7e5490eeebf2b409fa919f1cb40edb0c489a3a0fbb10571b17cd44e10ff1734b771f6
|
7
|
+
data.tar.gz: 38ed452888ca8f14d894395b2fb3cbae2319c2c9dcbdfea7bcd039e3439a77fc25d682e6390dffa26a85beae01f43d27e8a4d0cb732f5c74a0e6d9f998adefce
|
@@ -16,11 +16,11 @@ module ForestLiana
|
|
16
16
|
def index
|
17
17
|
begin
|
18
18
|
if request.format == 'csv'
|
19
|
-
return head :forbidden unless PermissionsChecker.new(@resource, 'export').is_authorized?
|
19
|
+
return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'export').is_authorized?
|
20
20
|
elsif params.has_key?(:searchToEdit)
|
21
|
-
return head :forbidden unless PermissionsChecker.new(@resource, 'searchToEdit').is_authorized?
|
21
|
+
return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'searchToEdit').is_authorized?
|
22
22
|
else
|
23
|
-
return head :forbidden unless PermissionsChecker.new(@resource, 'list').is_authorized?
|
23
|
+
return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'list').is_authorized?
|
24
24
|
end
|
25
25
|
|
26
26
|
getter = ForestLiana::ResourcesGetter.new(@resource, params)
|
@@ -41,7 +41,7 @@ module ForestLiana
|
|
41
41
|
|
42
42
|
def show
|
43
43
|
begin
|
44
|
-
return head :forbidden unless PermissionsChecker.new(@resource, 'show').is_authorized?
|
44
|
+
return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'show').is_authorized?
|
45
45
|
|
46
46
|
getter = ForestLiana::ResourceGetter.new(@resource, params)
|
47
47
|
getter.perform
|
@@ -56,7 +56,7 @@ module ForestLiana
|
|
56
56
|
|
57
57
|
def create
|
58
58
|
begin
|
59
|
-
return head :forbidden unless PermissionsChecker.new(@resource, 'create').is_authorized?
|
59
|
+
return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'create').is_authorized?
|
60
60
|
|
61
61
|
creator = ForestLiana::ResourceCreator.new(@resource, params)
|
62
62
|
creator.perform
|
@@ -79,7 +79,7 @@ module ForestLiana
|
|
79
79
|
|
80
80
|
def update
|
81
81
|
begin
|
82
|
-
return head :forbidden unless PermissionsChecker.new(@resource, 'update').is_authorized?
|
82
|
+
return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'update').is_authorized?
|
83
83
|
|
84
84
|
updater = ForestLiana::ResourceUpdater.new(@resource, params)
|
85
85
|
updater.perform
|
@@ -102,7 +102,7 @@ module ForestLiana
|
|
102
102
|
|
103
103
|
def destroy
|
104
104
|
begin
|
105
|
-
return head :forbidden unless PermissionsChecker.new(@resource, 'delete').is_authorized?
|
105
|
+
return head :forbidden unless ForestLiana::PermissionsChecker.new(@resource, 'delete').is_authorized?
|
106
106
|
|
107
107
|
@resource.destroy(params[:id])
|
108
108
|
head :no_content
|
data/lib/forest_liana/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -23086,3 +23086,448 @@ ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an
|
|
23086
23086
|
ForestLianaTest: test_truth
|
23087
23087
|
---------------------------
|
23088
23088
|
[1m[35m (0.0ms)[0m rollback transaction
|
23089
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23090
|
+
[1m[35mActiveRecord::SchemaMigration Load (0.1ms)[0m SELECT "schema_migrations".* FROM "schema_migrations"
|
23091
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
23092
|
+
FROM sqlite_master
|
23093
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
23094
|
+
UNION ALL
|
23095
|
+
SELECT sql
|
23096
|
+
FROM sqlite_temp_master
|
23097
|
+
WHERE name='index_belongs_to_class_name_fields_on_foo_id' AND type='index'
|
23098
|
+
[0m
|
23099
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
23100
|
+
FROM sqlite_master
|
23101
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
23102
|
+
UNION ALL
|
23103
|
+
SELECT sql
|
23104
|
+
FROM sqlite_temp_master
|
23105
|
+
WHERE name='index_belongs_to_fields_on_has_many_field_id' AND type='index'
|
23106
|
+
|
23107
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
23108
|
+
FROM sqlite_master
|
23109
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
23110
|
+
UNION ALL
|
23111
|
+
SELECT sql
|
23112
|
+
FROM sqlite_temp_master
|
23113
|
+
WHERE name='index_belongs_to_fields_on_has_many_class_name_field_id' AND type='index'
|
23114
|
+
[0m
|
23115
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
23116
|
+
FROM sqlite_master
|
23117
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
23118
|
+
UNION ALL
|
23119
|
+
SELECT sql
|
23120
|
+
FROM sqlite_temp_master
|
23121
|
+
WHERE name='index_belongs_to_fields_on_has_one_field_id' AND type='index'
|
23122
|
+
|
23123
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
23124
|
+
FROM sqlite_master
|
23125
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
23126
|
+
UNION ALL
|
23127
|
+
SELECT sql
|
23128
|
+
FROM sqlite_temp_master
|
23129
|
+
WHERE name='index_has_many_fields_on_has_many_through_field_id' AND type='index'
|
23130
|
+
[0m
|
23131
|
+
[1m[35m (0.2ms)[0m SELECT sql
|
23132
|
+
FROM sqlite_master
|
23133
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
23134
|
+
UNION ALL
|
23135
|
+
SELECT sql
|
23136
|
+
FROM sqlite_temp_master
|
23137
|
+
WHERE name='index_polymorphic_fields_on_has_one_field_id' AND type='index'
|
23138
|
+
|
23139
|
+
[1m[36m (0.1ms)[0m [1m SELECT sql
|
23140
|
+
FROM sqlite_master
|
23141
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
23142
|
+
UNION ALL
|
23143
|
+
SELECT sql
|
23144
|
+
FROM sqlite_temp_master
|
23145
|
+
WHERE name='index_trees_on_owner_id' AND type='index'
|
23146
|
+
[0m
|
23147
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
23148
|
+
[1m[35m (0.2ms)[0m begin transaction
|
23149
|
+
[1m[36mFixture Delete (2.1ms)[0m [1mDELETE FROM "has_many_through_fields"[0m
|
23150
|
+
[1m[35mFixture Insert (0.5ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (1)
|
23151
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (2)[0m
|
23152
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (3)
|
23153
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (4)[0m
|
23154
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (5)
|
23155
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (6)[0m
|
23156
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (7)
|
23157
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (8)[0m
|
23158
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_through_fields" ("id") VALUES (9)
|
23159
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_through_fields" ("id") VALUES (10)[0m
|
23160
|
+
[1m[35mFixture Delete (0.9ms)[0m DELETE FROM "string_fields"
|
23161
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (1, 'Test 1')[0m
|
23162
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (2, 'Test 2')
|
23163
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (3, 'Test 3')[0m
|
23164
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (4, 'Test 4')
|
23165
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (5, 'Test 5')[0m
|
23166
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (6, 'Test 6')
|
23167
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (7, 'Test 7')[0m
|
23168
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (8, 'Test 8')
|
23169
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (9, 'Test 9')[0m
|
23170
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (10, 'Test 10')
|
23171
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (11, 'Test 11')[0m
|
23172
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (12, 'Test 12')
|
23173
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (13, 'Test 13')[0m
|
23174
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (14, 'Test 14')
|
23175
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (15, 'Test 15')[0m
|
23176
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (16, 'Test 16')
|
23177
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (17, 'Test 17')[0m
|
23178
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (18, 'Test 18')
|
23179
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (19, 'Test 19')[0m
|
23180
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (20, 'Test 20')
|
23181
|
+
[1m[36mFixture Insert (1.5ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (21, 'Test 21')[0m
|
23182
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (22, 'Test 22')
|
23183
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (23, 'Test 23')[0m
|
23184
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (24, 'Test 24')
|
23185
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (25, 'Test 25')[0m
|
23186
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (26, 'Test 26')
|
23187
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (27, 'Test 27')[0m
|
23188
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (28, 'Test 28')
|
23189
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "string_fields" ("id", "field") VALUES (29, 'Test 29')[0m
|
23190
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "string_fields" ("id", "field") VALUES (30, 'Test 30')
|
23191
|
+
[1m[36mFixture Delete (5.2ms)[0m [1mDELETE FROM "belongs_to_fields"[0m
|
23192
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (1, 1, 1)
|
23193
|
+
[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
|
23194
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (3, 3, 1)
|
23195
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (4, 4, 2)[0m
|
23196
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (5, 5, 2)
|
23197
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (6, 6, 2)[0m
|
23198
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (7, 7, 3)
|
23199
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (8, 8, 3)[0m
|
23200
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (9, 9, 3)
|
23201
|
+
[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
|
23202
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (11, 11, 4)
|
23203
|
+
[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
|
23204
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (13, 13, 5)
|
23205
|
+
[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
|
23206
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (15, 15, 5)
|
23207
|
+
[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
|
23208
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (17, 17, 6)
|
23209
|
+
[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
|
23210
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (19, 19, 7)
|
23211
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (20, 20, 7)[0m
|
23212
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (21, 21, 7)
|
23213
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (22, 22, 7)[0m
|
23214
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (23, 23, 8)
|
23215
|
+
[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
|
23216
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (25, 25, 9)
|
23217
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (26, 26, 9)[0m
|
23218
|
+
[1m[35mFixture Insert (0.3ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (27, 27, 9)
|
23219
|
+
[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
|
23220
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (29, 29, 10)
|
23221
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "belongs_to_fields" ("id", "has_one_field_id", "has_many_field_id") VALUES (30, 30, 10)[0m
|
23222
|
+
[1m[35mFixture Delete (3.5ms)[0m DELETE FROM "trees"
|
23223
|
+
[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
|
23224
|
+
[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')
|
23225
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (3, 'Mapple', 2, '2013-04-11 12:00:00.000000', '2013-04-11 12:00:00.000000')[0m
|
23226
|
+
[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')
|
23227
|
+
[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
|
23228
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (6, 'Oak', 3, '2018-06-18 18:50:04.000000', '2018-06-18 18:50:04.000000')
|
23229
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (7, 'Sequoia', 1, '2018-06-18 18:50:04.000000', '2018-06-18 18:50:04.000000')[0m
|
23230
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "trees" ("id", "name", "owner_id", "created_at", "updated_at") VALUES (8, 'Fir', 1, '2018-06-18 18:50:04.000000', '2018-06-18 18:50:04.000000')
|
23231
|
+
[1m[36mFixture Delete (0.4ms)[0m [1mDELETE FROM "has_one_fields"[0m
|
23232
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (1, 't', 0)
|
23233
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (2, 't', 0)[0m
|
23234
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (3, 't', 0)
|
23235
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (4, 't', 0)[0m
|
23236
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (5, 't', 0)
|
23237
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (6, 't', 0)[0m
|
23238
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (7, 't', 0)
|
23239
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (8, 't', 0)[0m
|
23240
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (9, 't', 0)
|
23241
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (10, 't', 0)[0m
|
23242
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (11, 't', 0)
|
23243
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (12, 't', 0)[0m
|
23244
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (13, 't', 0)
|
23245
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (14, 't', 0)[0m
|
23246
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (15, 't', 0)
|
23247
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (16, 't', 0)[0m
|
23248
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (17, 't', 0)
|
23249
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (18, 't', 0)[0m
|
23250
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (19, 't', 0)
|
23251
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (20, 't', 0)[0m
|
23252
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (21, 't', 0)
|
23253
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (22, 't', 0)[0m
|
23254
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (23, 't', 0)
|
23255
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (24, 't', 0)[0m
|
23256
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (25, 't', 0)
|
23257
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (26, 't', 0)[0m
|
23258
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (27, 't', 0)
|
23259
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (28, 't', 0)[0m
|
23260
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (29, 't', 0)
|
23261
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_one_fields" ("id", "checked", "status") VALUES (30, 't', 1)[0m
|
23262
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "owners"
|
23263
|
+
[1m[36mFixture Insert (0.0ms)[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
|
23264
|
+
[1m[35mFixture Insert (0.0ms)[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')
|
23265
|
+
[1m[36mFixture Insert (0.0ms)[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
|
23266
|
+
[1m[35mFixture Delete (0.6ms)[0m DELETE FROM "has_many_fields"
|
23267
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (1)[0m
|
23268
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (2)
|
23269
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (3)[0m
|
23270
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (4)
|
23271
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (5, 3)[0m
|
23272
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (6, 2)
|
23273
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (7)[0m
|
23274
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id", "has_many_through_field_id") VALUES (8, 2)
|
23275
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "has_many_fields" ("id") VALUES (9)[0m
|
23276
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "has_many_fields" ("id") VALUES (10)
|
23277
|
+
[1m[36mFixture Delete (0.1ms)[0m [1mDELETE FROM "serialize_fields"[0m
|
23278
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (1, 'value 1')
|
23279
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (2, 'value 2')[0m
|
23280
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (3, 'value 3')
|
23281
|
+
[1m[36mFixture Insert (0.0ms)[0m [1mINSERT INTO "serialize_fields" ("id", "field") VALUES (4, 'value 4')[0m
|
23282
|
+
[1m[35mFixture Insert (0.0ms)[0m INSERT INTO "serialize_fields" ("id", "field") VALUES (5, 'value 5')
|
23283
|
+
[1m[36m (2.1ms)[0m [1mcommit transaction[0m
|
23284
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23285
|
+
-------------------------------------------------------------------------------------------------
|
23286
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_enum_field
|
23287
|
+
-------------------------------------------------------------------------------------------------
|
23288
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."status" = '1')[0m
|
23289
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23290
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23291
|
+
----------------------------------------------------------------------------------------------------
|
23292
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_integer_field
|
23293
|
+
----------------------------------------------------------------------------------------------------
|
23294
|
+
[1m[35m (0.2ms)[0m SELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."id" = '3')
|
23295
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23296
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23297
|
+
----------------------------------------------------------------------------------------------------
|
23298
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_filter_on_a_belongs_to_boolean_field
|
23299
|
+
----------------------------------------------------------------------------------------------------
|
23300
|
+
[1m[36m (0.2ms)[0m [1mSELECT DISTINCT COUNT(DISTINCT "belongs_to_fields"."id") FROM "belongs_to_fields" LEFT OUTER JOIN "has_one_fields" ON "has_one_fields"."id" = "belongs_to_fields"."has_one_field_id" LEFT OUTER JOIN "has_many_fields" ON "has_many_fields"."id" = "belongs_to_fields"."has_many_field_id" LEFT OUTER JOIN "has_many_class_name_fields" ON "has_many_class_name_fields"."id" = "belongs_to_fields"."has_many_class_name_field_id" WHERE ("has_one_fields"."checked" = 0)[0m
|
23301
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23302
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23303
|
+
-----------------------------------------------------------------------------
|
23304
|
+
ForestLiana::ValueStatGetterTest: test_Value_stat_getter_with_a_simple_filter
|
23305
|
+
-----------------------------------------------------------------------------
|
23306
|
+
[1m[35m (0.4ms)[0m SELECT DISTINCT COUNT(DISTINCT "boolean_fields"."id") FROM "boolean_fields" WHERE ("boolean_fields"."field" = 1)
|
23307
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23308
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23309
|
+
---------------------------------------------------------------------------------------
|
23310
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_foreign_key
|
23311
|
+
---------------------------------------------------------------------------------------
|
23312
|
+
[1m[36m (1.4ms)[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
|
23313
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23314
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23315
|
+
-----------------------------------------------------------------------------------------
|
23316
|
+
ForestLiana::PieStatGetterTest: test_Pie_stat_getter_with_an_aggregate_on_a_boolean_field
|
23317
|
+
-----------------------------------------------------------------------------------------
|
23318
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) AS count_all, boolean_fields.field AS boolean_fields_field FROM "boolean_fields" GROUP BY boolean_fields.field ORDER BY count_all DESC
|
23319
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23320
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23321
|
+
-------------------------------------------------------------------------
|
23322
|
+
ForestLiana::SchemaAdapterTest: test_DateTime_should_have_the_type_`Date`
|
23323
|
+
-------------------------------------------------------------------------
|
23324
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23325
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23326
|
+
---------------------------------------------------------------------
|
23327
|
+
ForestLiana::SchemaAdapterTest: test_Date_should_have_the_type_`Date`
|
23328
|
+
---------------------------------------------------------------------
|
23329
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23330
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23331
|
+
-------------------------------------------------------------------------
|
23332
|
+
ForestLiana::SchemaAdapterTest: test_String_should_have_the_type_`String`
|
23333
|
+
-------------------------------------------------------------------------
|
23334
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23335
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23336
|
+
---------------------------------------------------------------------------
|
23337
|
+
ForestLiana::SchemaAdapterTest: test_Boolean_should_have_the_type_`Boolean`
|
23338
|
+
---------------------------------------------------------------------------
|
23339
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23340
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23341
|
+
--------------------------------------------------------------------------
|
23342
|
+
ForestLiana::SchemaAdapterTest: test_Decimal_should_have_the_type_`Number`
|
23343
|
+
--------------------------------------------------------------------------
|
23344
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23345
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23346
|
+
------------------------------------------------------------------------------------
|
23347
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationhip_with_specified_class_name
|
23348
|
+
------------------------------------------------------------------------------------
|
23349
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
23350
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23351
|
+
--------------------------------------------------------
|
23352
|
+
ForestLiana::SchemaAdapterTest: test_hasOne_relationship
|
23353
|
+
--------------------------------------------------------
|
23354
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23355
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23356
|
+
------------------------------------------------------------------------
|
23357
|
+
ForestLiana::SchemaAdapterTest: test_Float_should_have_the_type_`Number`
|
23358
|
+
------------------------------------------------------------------------
|
23359
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23360
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23361
|
+
--------------------------------------------------------------------------
|
23362
|
+
ForestLiana::SchemaAdapterTest: test_Integer_should_have_the_type_`Number`
|
23363
|
+
--------------------------------------------------------------------------
|
23364
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23365
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23366
|
+
-----------------------------------------------------------
|
23367
|
+
ForestLiana::SchemaAdapterTest: test_belongsTo_relationship
|
23368
|
+
-----------------------------------------------------------
|
23369
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23370
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23371
|
+
---------------------------------------------------------
|
23372
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationship
|
23373
|
+
---------------------------------------------------------
|
23374
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23375
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23376
|
+
----------------------------------------------------------------------------------
|
23377
|
+
ForestLiana::SchemaAdapterTest: test_hasMany_relationhip_with_specified_class_name
|
23378
|
+
----------------------------------------------------------------------------------
|
23379
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23380
|
+
[1m[35m (0.0ms)[0m begin transaction
|
23381
|
+
------------------------------------------------------------------------------------------------------
|
23382
|
+
ForestLiana::ResourcesGetterTest: test_Filter_equal_on_an_updated_at_field_of_an_associated_collection
|
23383
|
+
------------------------------------------------------------------------------------------------------
|
23384
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
23385
|
+
[1m[35m (0.2ms)[0m SELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.updated_at = 'Sat Jul 02 2016 11:52:00 GMT-0400 (EDT)')
|
23386
|
+
[1m[36m (0.3ms)[0m [1mrollback transaction[0m
|
23387
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23388
|
+
----------------------------------------------------------
|
23389
|
+
ForestLiana::ResourcesGetterTest: test_Filter_after_x_days
|
23390
|
+
----------------------------------------------------------
|
23391
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4 FROM "trees" WHERE ("trees"."created_at" > '2018-06-18 18:49:04 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
23392
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" > '2018-06-18 18:49:04 UTC')
|
23393
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
23394
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23395
|
+
------------------------------------------------------------
|
23396
|
+
ForestLiana::ResourcesGetterTest: test_Filter_before_x_hours
|
23397
|
+
------------------------------------------------------------
|
23398
|
+
[1m[36mSQL (0.3ms)[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-06-18 18:49:05 UTC') ORDER BY trees.created_at DESC LIMIT 10 OFFSET 0[0m
|
23399
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "trees" WHERE ("trees"."created_at" < '2018-06-18 18:49:05 UTC')
|
23400
|
+
[1m[36mOwner Load (0.2ms)[0m [1mSELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1[0m [["id", 2]]
|
23401
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23402
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23403
|
+
------------------------------------------------------------------------------------------------
|
23404
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_an_associated_collection
|
23405
|
+
------------------------------------------------------------------------------------------------
|
23406
|
+
[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.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
|
23407
|
+
[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
|
23408
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23409
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23410
|
+
------------------------------------------------------------------------------------
|
23411
|
+
ForestLiana::ResourcesGetterTest: test_Sort_on_an_ambiguous_field_name_with_a_filter
|
23412
|
+
------------------------------------------------------------------------------------
|
23413
|
+
[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.name = 'Arnaud Besnier') ORDER BY trees.name DESC LIMIT 10 OFFSET 0
|
23414
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(DISTINCT "trees"."id") FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE (owners.name = 'Arnaud Besnier')[0m
|
23415
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23416
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23417
|
+
----------------------------------------------------------------
|
23418
|
+
ForestLiana::ResourcesGetterTest: test_StringField_sort_by_field
|
23419
|
+
----------------------------------------------------------------
|
23420
|
+
[1m[35mSQL (0.3ms)[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
|
23421
|
+
[1m[36m (0.3ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
23422
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23423
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23424
|
+
--------------------------------------------------------------------
|
23425
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_has_one_association
|
23426
|
+
--------------------------------------------------------------------
|
23427
|
+
[1m[35mSQL (0.6ms)[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
|
23428
|
+
[1m[36m (0.0ms)[0m [1mSELECT COUNT(*) FROM "has_one_fields"[0m
|
23429
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23430
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23431
|
+
----------------------------------------------------------------
|
23432
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_ambiguous_field
|
23433
|
+
----------------------------------------------------------------
|
23434
|
+
[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
|
23435
|
+
[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
|
23436
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23438
|
+
-----------------------------------------------------------------
|
23439
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_1_size_15
|
23440
|
+
-----------------------------------------------------------------
|
23441
|
+
[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 15 OFFSET 0
|
23442
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
23443
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23444
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23445
|
+
-----------------------------------------------------------------
|
23446
|
+
ForestLiana::ResourcesGetterTest: test_StringField_page_2_size_10
|
23447
|
+
-----------------------------------------------------------------
|
23448
|
+
[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 10 OFFSET 10
|
23449
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "string_fields"[0m
|
23450
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23451
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
23452
|
+
-----------------------------------------------------------------------
|
23453
|
+
ForestLiana::ResourcesGetterTest: test_Sort_by_a_belongs_to_association
|
23454
|
+
-----------------------------------------------------------------------
|
23455
|
+
[1m[35mSQL (1.4ms)[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
|
23456
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "belongs_to_fields"[0m
|
23457
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23458
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23459
|
+
-------------------------------------------------------------------------------------------
|
23460
|
+
ForestLiana::ResourcesGetterTest: test_Filter_on_an_updated_at_field_of_the_main_collection
|
23461
|
+
-------------------------------------------------------------------------------------------
|
23462
|
+
[1m[35mSQL (0.3ms)[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
|
23463
|
+
[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
|
23464
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23465
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23466
|
+
-------------------------------------------------------------------------
|
23467
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_search_parameter
|
23468
|
+
-------------------------------------------------------------------------
|
23469
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
23470
|
+
[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]]
|
23471
|
+
[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]]
|
23472
|
+
[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]]
|
23473
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23474
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23475
|
+
-----------------------------------------------------------------------
|
23476
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_with_sort_parameter
|
23477
|
+
-----------------------------------------------------------------------
|
23478
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
23479
|
+
[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]]
|
23480
|
+
[1m[35m (0.4ms)[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]]
|
23481
|
+
[1m[36mSQL (0.2ms)[0m [1mSELECT "trees"."id" AS t0_r0, "trees"."name" AS t0_r1, "trees"."owner_id" AS t0_r2, "trees"."created_at" AS t0_r3, "trees"."updated_at" AS t0_r4, "owners"."id" AS t1_r0, "owners"."name" AS t1_r1, "owners"."created_at" AS t1_r2, "owners"."updated_at" AS t1_r3 FROM "trees" LEFT OUTER JOIN "owners" ON "owners"."id" = "trees"."owner_id" WHERE "trees"."owner_id" = ? ORDER BY trees.id DESC LIMIT 1 OFFSET 0[0m [["owner_id", 1]]
|
23482
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23483
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23484
|
+
------------------------------------------------------------------
|
23485
|
+
ForestLiana::HasManyGetterTest: test_HasMany_Getter_page_1_size_15
|
23486
|
+
------------------------------------------------------------------
|
23487
|
+
[1m[35mOwner Load (0.1ms)[0m SELECT "owners".* FROM "owners" WHERE "owners"."id" = ? LIMIT 1 [["id", 1]]
|
23488
|
+
[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" = ?[0m [["owner_id", 1]]
|
23489
|
+
[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]]
|
23490
|
+
[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]]
|
23491
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23492
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
23493
|
+
------------------------------------------------------------------------------------------------------
|
23494
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_missing_value
|
23495
|
+
------------------------------------------------------------------------------------------------------
|
23496
|
+
[1m[35mSerializeField Load (0.2ms)[0m SELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1 [["id", 1]]
|
23497
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
23498
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
23499
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
23500
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23501
|
+
---------------------------------------------------------------------------------------------------
|
23502
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_null_value
|
23503
|
+
---------------------------------------------------------------------------------------------------
|
23504
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
23505
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
23506
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", nil], ["id", 1]]
|
23507
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
23508
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
23509
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23510
|
+
------------------------------------------------------------------------------------------------------------
|
23511
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_well_formated_value
|
23512
|
+
------------------------------------------------------------------------------------------------------------
|
23513
|
+
[1m[36mSerializeField Load (0.3ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
23514
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
23515
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "serialize_fields" SET "field" = ? WHERE "serialize_fields"."id" = ?[0m [["field", "---\n- test\n- test\n"], ["id", 1]]
|
23516
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
23517
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
23518
|
+
[1m[35m (0.1ms)[0m begin transaction
|
23519
|
+
---------------------------------------------------------------------------------------------------------
|
23520
|
+
ForestLiana::ResourceUpdaterTest: test_Update_a_record_on_a_"serialize"_attribute_with_a_bad_format_value
|
23521
|
+
---------------------------------------------------------------------------------------------------------
|
23522
|
+
[1m[36mSerializeField Load (0.1ms)[0m [1mSELECT "serialize_fields".* FROM "serialize_fields" WHERE "serialize_fields"."id" = ? LIMIT 1[0m [["id", 1]]
|
23523
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
23524
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23525
|
+
---------------------------
|
23526
|
+
ForestLianaTest: test_truth
|
23527
|
+
---------------------------
|
23528
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23529
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
23530
|
+
-----------------------------------
|
23531
|
+
ForestLiana::RouteTest: test_Routes
|
23532
|
+
-----------------------------------
|
23533
|
+
[1m[35m (0.2ms)[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.8.
|
4
|
+
version: 2.8.2
|
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-06-
|
11
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|