clark_kent 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clark_kent/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +357 -0
- metadata +42 -36
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db689e28c24e5b598413dfff1e262d5190194606
|
4
|
+
data.tar.gz: 2d33fab1d3696a878377a826e0eab54ad57b9320
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9c3966ad951cd09b6612be9236b9a4696cccb77dd8f1b833aaec73b89f89e14c8314f27bfd7d0797c828c0bd04cf1776f354732aef83b5654a6443fc93616841
|
7
|
+
data.tar.gz: b94128d52ac306654460168b01d6cf4e22ac4f6740f790e41b6e0677e285c40445100d1d3c681dfa4e2f4b877e15556adba3867f9c15e6d71b9701fe5c06cded
|
data/lib/clark_kent/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -35014,3 +35014,360 @@ ClarkKent::ReportableTest: test_it_works_without_any_required_filters
|
|
35014
35014
|
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35015
35015
|
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 2]]
|
35016
35016
|
[1m[35m (0.4ms)[0m rollback transaction
|
35017
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
35018
|
+
[1m[35m (1.0ms)[0m CREATE TABLE "clark_kent_report_columns" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "column_name" varchar, "column_order" integer, "report_sort" varchar, "summary_method" varchar)
|
35019
|
+
[1m[36m (0.0ms)[0m [1mselect sqlite_version(*)[0m
|
35020
|
+
[1m[35m (0.8ms)[0m CREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")
|
35021
|
+
[1m[36m (0.7ms)[0m [1mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar) [0m
|
35022
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_report_filters" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "filterable_id" integer, "filterable_type" varchar DEFAULT 'ClarkKent::Report', "string" varchar DEFAULT 'ClarkKent::Report', "filter_name" varchar, "filter_value" varchar, "type" varchar, "duration" varchar, "kind_of_day" varchar, "offset" varchar, "created_at" datetime, "updated_at" datetime)
|
35023
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
35024
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35025
|
+
FROM sqlite_master
|
35026
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
35027
|
+
UNION ALL
|
35028
|
+
SELECT sql
|
35029
|
+
FROM sqlite_temp_master
|
35030
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
35031
|
+
|
35032
|
+
[1m[36m (0.9ms)[0m [1mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
35033
|
+
[1m[35m (0.9ms)[0m CREATE TABLE "clark_kent_reports" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "resource_type" varchar, "sharing_scope_type" varchar, "sharing_scope_id" integer, "created_at" datetime, "updated_at" datetime)
|
35034
|
+
[1m[36m (0.8ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
35035
|
+
[1m[35m (0.1ms)[0m SELECT sql
|
35036
|
+
FROM sqlite_master
|
35037
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
35038
|
+
UNION ALL
|
35039
|
+
SELECT sql
|
35040
|
+
FROM sqlite_temp_master
|
35041
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
35042
|
+
|
35043
|
+
[1m[36m (0.7ms)[0m [1mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
35044
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)
|
35045
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar) [0m
|
35046
|
+
[1m[35m (0.8ms)[0m CREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)
|
35047
|
+
[1m[36m (0.8ms)[0m [1mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer) [0m
|
35048
|
+
[1m[35m (0.7ms)[0m CREATE TABLE "schema_migrations" ("version" varchar NOT NULL)
|
35049
|
+
[1m[36m (0.8ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
35050
|
+
[1m[35m (0.1ms)[0m SELECT version FROM "schema_migrations"
|
35051
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
35052
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20131226170042')
|
35053
|
+
[1m[36m (0.7ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20131226170112')[0m
|
35054
|
+
[1m[35m (0.8ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140114010048')
|
35055
|
+
[1m[36m (0.8ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140129051754')[0m
|
35056
|
+
[1m[35m (0.7ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150304233739')
|
35057
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35058
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?) [["resource_type", "Order"], ["created_at", "2016-02-03 20:13:25.697701"], ["updated_at", "2016-02-03 20:13:25.697701"]]
|
35059
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
35060
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35061
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "user_name"], ["column_order", 1], ["report_id", 1]]
|
35062
|
+
[1m[35m (0.8ms)[0m commit transaction
|
35063
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35064
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "id"], ["column_order", 2], ["report_id", 1]]
|
35065
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
35066
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35067
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?)[0m [["column_name", "amount"], ["column_order", 3], ["report_id", 1]]
|
35068
|
+
[1m[35m (0.7ms)[0m commit transaction
|
35069
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35070
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "clark_kent_report_columns" ("column_name", "column_order", "report_id") VALUES (?, ?, ?) [["column_name", "description"], ["column_order", 4], ["report_id", 1]]
|
35071
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
35072
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35073
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
35074
|
+
[1m[35m (0.7ms)[0m commit transaction
|
35075
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35076
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?) [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
35077
|
+
[1m[36m (0.7ms)[0m [1mcommit transaction[0m
|
35078
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35079
|
+
[1m[36mSQL (0.3ms)[0m [1mINSERT INTO "orders" ("user_id", "description", "amount", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["description", "Guitar strings"], ["amount", 1], ["created_at", "2016-02-03 20:13:25.747959"], ["updated_at", "2016-02-03 20:13:25.747959"]]
|
35080
|
+
[1m[35m (0.7ms)[0m commit transaction
|
35081
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35082
|
+
---------------------------------------------------
|
35083
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
35084
|
+
---------------------------------------------------
|
35085
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1 [["email", "taproot@gmail.com"]]
|
35086
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35087
|
+
[1m[35mSQL (0.3ms)[0m UPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ? [["id", 1]]
|
35088
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35089
|
+
[1m[35mSQL (0.2ms)[0m INSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?) [["name", "test_emailer"], ["report_id", 1]]
|
35090
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35091
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35092
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "clark_kent_report_filters" ("type", "filter_name", "duration", "kind_of_day", "offset", "filterable_id", "filterable_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["type", "ClarkKent::ReportDateFilter"], ["filter_name", "created_at"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["created_at", "2016-02-03 20:13:25.849817"], ["updated_at", "2016-02-03 20:13:25.849817"]]
|
35093
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35094
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
35095
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35096
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35097
|
+
[1m[35mDepartment Load (0.1ms)[0m SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
|
35098
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1[0m [["id", 1]]
|
35099
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35100
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
35101
|
+
[1m[35mClarkKent::ReportFilter Load (0.1ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35102
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
35103
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
35104
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
35105
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
35106
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
35107
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
|
35108
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35109
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35110
|
+
-----------------------------------------------------------------------------------------
|
35111
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
35112
|
+
-----------------------------------------------------------------------------------------
|
35113
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT 1[0m [["email", "taproot@gmail.com"]]
|
35114
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35115
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
35116
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35117
|
+
[1m[36mSQL (0.1ms)[0m [1mINSERT INTO "clark_kent_report_emails" ("name", "report_id") VALUES (?, ?)[0m [["name", "test_emailer"], ["report_id", 1]]
|
35118
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35119
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 1]]
|
35120
|
+
[1m[35mClarkKent::Report Load (0.0ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35121
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35122
|
+
[1m[35mDepartment Load (0.0ms)[0m SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
|
35123
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT 1[0m [["id", 1]]
|
35124
|
+
[1m[35mClarkKent::Report Load (0.0ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35125
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
35126
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35127
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
35128
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
35129
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
35130
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35132
|
+
------------------------------------------------------------------------------------------------
|
35133
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
35134
|
+
------------------------------------------------------------------------------------------------
|
35135
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35136
|
+
[1m[36m (0.1ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
35137
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35138
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35139
|
+
-------------------------
|
35140
|
+
ClarkKentTest: test_truth
|
35141
|
+
-------------------------
|
35142
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
35143
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35144
|
+
-------------------------------------------------------
|
35145
|
+
ClarkKent::ReportsController: test_should_create_report
|
35146
|
+
-------------------------------------------------------
|
35147
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35148
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
35149
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
35150
|
+
Parameters: {"report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1"}
|
35151
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
35152
|
+
[1m[36mSQL (0.7ms)[0m [1mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-02-03 20:13:25.969559"], ["updated_at", "2016-02-03 20:13:25.969559"]]
|
35153
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35154
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (5.7ms)
|
35155
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35156
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (3.7ms)
|
35157
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
35158
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (3.8ms)
|
35159
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
35160
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (3.7ms)
|
35161
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (35.5ms)
|
35162
|
+
Completed 200 OK in 261ms (Views: 257.0ms | ActiveRecord: 1.2ms)
|
35163
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT 1 [["name", "delete me"]]
|
35164
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35165
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35166
|
+
[1m[36mClarkKent::ReportColumn Load (0.0ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
35167
|
+
[1m[35mClarkKent::ReportEmail Load (0.0ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 2]]
|
35168
|
+
[1m[36mSQL (0.9ms)[0m [1mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
35169
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35170
|
+
[1m[36m (0.7ms)[0m [1mrollback transaction[0m
|
35171
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35172
|
+
--------------------------------------------------------
|
35173
|
+
ClarkKent::ReportsController: test_should_destroy_report
|
35174
|
+
--------------------------------------------------------
|
35175
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35176
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35177
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35178
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "delete me"], ["resource_type", "Order"], ["created_at", "2016-02-03 20:13:26.236563"], ["updated_at", "2016-02-03 20:13:26.236563"]]
|
35179
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35180
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "clark_kent_reports"
|
35181
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
35182
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
35183
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 2]]
|
35184
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
35185
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35186
|
+
[1m[35mClarkKent::ReportColumn Load (0.0ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
35187
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
35188
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? [["id", 2]]
|
35189
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35190
|
+
Redirected to http://test.host/reports/reports
|
35191
|
+
Completed 302 Found in 6ms (ActiveRecord: 0.6ms)
|
35192
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "clark_kent_reports"
|
35193
|
+
[1m[36m (0.6ms)[0m [1mrollback transaction[0m
|
35194
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35195
|
+
--------------------------------------------------
|
35196
|
+
ClarkKent::ReportsController: test_should_get_edit
|
35197
|
+
--------------------------------------------------
|
35198
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35199
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35200
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
35201
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
35202
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
35203
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (4.2ms)
|
35204
|
+
[1m[35mClarkKent::ReportFilter Load (0.1ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35205
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.8ms)
|
35206
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 1]]
|
35207
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (3.6ms)
|
35208
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (6.8ms)
|
35209
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.9ms)
|
35210
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.1ms)
|
35211
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.8ms)
|
35212
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (2.0ms)
|
35213
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.7ms)
|
35214
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (1.9ms)
|
35215
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (18.7ms)
|
35216
|
+
[1m[35mClarkKent::ReportEmail Load (0.1ms)[0m SELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ? [["report_id", 1]]
|
35217
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (2.4ms)
|
35218
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (31.0ms)
|
35219
|
+
Completed 200 OK in 33ms (Views: 32.6ms | ActiveRecord: 0.3ms)
|
35220
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35221
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35222
|
+
---------------------------------------------------
|
35223
|
+
ClarkKent::ReportsController: test_should_get_index
|
35224
|
+
---------------------------------------------------
|
35225
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35226
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35227
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
35228
|
+
Parameters: {"current_user_id"=>"1"}
|
35229
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
35230
|
+
[1m[35mClarkKent::Report Exists (0.1ms)[0m SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "User"]]
|
35231
|
+
[1m[36mDepartment Load (0.0ms)[0m [1mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1[0m [["id", 1]]
|
35232
|
+
[1m[35mClarkKent::Report Exists (0.0ms)[0m SELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT 1 [["sharing_scope_id", 1], ["sharing_scope_type", "Department"]]
|
35233
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
35234
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL
|
35235
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (19.6ms)
|
35236
|
+
Completed 200 OK in 25ms (Views: 23.7ms | ActiveRecord: 0.6ms)
|
35237
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35238
|
+
[1m[35m (0.1ms)[0m begin transaction
|
35239
|
+
-------------------------------------------------
|
35240
|
+
ClarkKent::ReportsController: test_should_get_new
|
35241
|
+
-------------------------------------------------
|
35242
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35243
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35244
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
35245
|
+
Parameters: {"current_user_id"=>"1"}
|
35246
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT 1[0m [["id", 1]]
|
35247
|
+
[1m[35mDepartment Load (0.0ms)[0m SELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT 1 [["id", 1]]
|
35248
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (55.9ms)
|
35249
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (61.6ms)
|
35250
|
+
Completed 200 OK in 68ms (Views: 67.4ms | ActiveRecord: 0.1ms)
|
35251
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35252
|
+
[1m[35m (0.2ms)[0m begin transaction
|
35253
|
+
-----------------------------------------------------
|
35254
|
+
ClarkKent::ReportsController: test_should_show_report
|
35255
|
+
-----------------------------------------------------
|
35256
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m
|
35257
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35258
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
35259
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
35260
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1[0m [["id", 1]]
|
35261
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order
|
35262
|
+
[1m[36m (0.1ms)[0m [1mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35263
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35264
|
+
[1m[36m (0.0ms)[0m [1mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35265
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.1ms)
|
35266
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35267
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users"[0m
|
35268
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.7ms)
|
35269
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
35270
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.8ms)
|
35271
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (20.9ms)
|
35272
|
+
Completed 200 OK in 32ms (Views: 25.2ms | ActiveRecord: 0.6ms)
|
35273
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35274
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
35275
|
+
-------------------------------------------------------------
|
35276
|
+
ClarkKent::ReportsController: test_should_show_report_results
|
35277
|
+
-------------------------------------------------------------
|
35278
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35279
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
35280
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
35281
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>true, "created_at_until"=>"2016-02-03", "created_at_from"=>"2016-02-02", "id"=>"1"}
|
35282
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
|
35283
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order[0m
|
35284
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35285
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
35286
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
35287
|
+
[1m[36m (0.2ms)[0m [1mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35288
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35289
|
+
[1m[36m (0.0ms)[0m [1mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35290
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
35291
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35292
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users"[0m
|
35293
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
|
35294
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
35295
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)
|
35296
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0) subquery_for_count[0m
|
35297
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (3.5ms)
|
35298
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 1]]
|
35299
|
+
[1m[36mOrder Load (0.1ms)[0m [1mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
35300
|
+
(SELECT u.name
|
35301
|
+
FROM users u
|
35302
|
+
WHERE u.id = orders.user_id)
|
35303
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT 10 OFFSET 0[0m
|
35304
|
+
[1m[35mClarkKent::Report Load (0.0ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35305
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
35306
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35307
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1[0m [["id", 1]]
|
35308
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (2.8ms)
|
35309
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (29.9ms)
|
35310
|
+
Completed 200 OK in 36ms (Views: 31.2ms | ActiveRecord: 1.3ms)
|
35311
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35312
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35313
|
+
----------------------------------------------------------------
|
35314
|
+
ClarkKent::ReportsController: test_should_show_report_run_errors
|
35315
|
+
----------------------------------------------------------------
|
35316
|
+
[1m[35mClarkKent::Report Load (0.2ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35317
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
35318
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
35319
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>true, "id"=>"1"}
|
35320
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT 1 [["id", 1]]
|
35321
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" IN (1) ORDER BY clark_kent_report_columns.column_order[0m
|
35322
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35323
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
35324
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
35325
|
+
[1m[36m (0.1ms)[0m [1mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35326
|
+
[1m[35m (0.0ms)[0m SELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35327
|
+
[1m[36m (0.1ms)[0m [1mSELECT "clark_kent_report_filters"."filter_name" FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::Report"]]
|
35328
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
35329
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1
|
35330
|
+
[1m[36mUser Load (0.0ms)[0m [1mSELECT "users".* FROM "users"[0m
|
35331
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (0.9ms)
|
35332
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
35333
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
35334
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (7.3ms)
|
35335
|
+
Completed 200 OK in 13ms (Views: 9.0ms | ActiveRecord: 0.7ms)
|
35336
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35337
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35338
|
+
-------------------------------------------------------
|
35339
|
+
ClarkKent::ReportsController: test_should_update_report
|
35340
|
+
-------------------------------------------------------
|
35341
|
+
[1m[35mClarkKent::Report Load (0.2ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT 1
|
35342
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT 1[0m
|
35343
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
35344
|
+
Parameters: {"report"=>{"name"=>nil, "resource_type"=>"Order", "sharing_scope_id"=>nil, "sharing_scope_type"=>nil}, "current_user_id"=>"1", "id"=>"1"}
|
35345
|
+
[1m[35mClarkKent::Report Load (0.1ms)[0m SELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT 1 [["id", 1]]
|
35346
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
35347
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
35348
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (3.8ms)
|
35349
|
+
Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.2ms)
|
35350
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
35351
|
+
[1m[35m (0.0ms)[0m begin transaction
|
35352
|
+
-------------------------------------------------------------------
|
35353
|
+
ClarkKent::ReportableTest: test_it_adds_required_filters_if_present
|
35354
|
+
-------------------------------------------------------------------
|
35355
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
35356
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "test one"], ["resource_type", "Order"], ["created_at", "2016-02-03 20:13:26.505057"], ["updated_at", "2016-02-03 20:13:26.505057"]]
|
35357
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
35358
|
+
[1m[35mClarkKent::ReportColumn Load (0.1ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order [["report_id", 2]]
|
35359
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35360
|
+
[1m[35mClarkKent::ReportColumn Load (0.2ms)[0m SELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1 [["report_id", 1]]
|
35361
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 1]]
|
35362
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
35363
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
35364
|
+
---------------------------------------------------------------------
|
35365
|
+
ClarkKent::ReportableTest: test_it_works_without_any_required_filters
|
35366
|
+
---------------------------------------------------------------------
|
35367
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
35368
|
+
[1m[36mSQL (0.2ms)[0m [1mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", "2016-02-03 20:13:26.512785"], ["updated_at", "2016-02-03 20:13:26.512785"]]
|
35369
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
35370
|
+
[1m[36mClarkKent::ReportColumn Load (0.0ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? ORDER BY clark_kent_report_columns.column_order[0m [["report_id", 2]]
|
35371
|
+
[1m[35mClarkKent::ReportFilter Load (0.0ms)[0m SELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ? [["filterable_id", 2], ["filterable_type", "ClarkKent::Report"]]
|
35372
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? AND (clark_kent_report_columns.report_sort is not NULL and clark_kent_report_columns.report_sort != '') ORDER BY clark_kent_report_columns.column_order LIMIT 1[0m [["report_id", 2]]
|
35373
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clark_kent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -17,6 +17,9 @@ dependencies:
|
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 4.2.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -24,20 +27,23 @@ dependencies:
|
|
24
27
|
- - '='
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: 4.2.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: sass-rails
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - "<"
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
39
|
+
version: '5.1'
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
|
-
- - "
|
44
|
+
- - "<"
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
46
|
+
version: '5.1'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: simple_form
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -62,16 +68,16 @@ dependencies:
|
|
62
68
|
name: kaminari
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
65
|
-
- - "
|
71
|
+
- - "<"
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version: '
|
73
|
+
version: '1'
|
68
74
|
type: :runtime
|
69
75
|
prerelease: false
|
70
76
|
version_requirements: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
|
-
- - "
|
78
|
+
- - "<"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: '
|
80
|
+
version: '1'
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: thin_man
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -101,7 +107,7 @@ dependencies:
|
|
101
107
|
version: 0.10.3
|
102
108
|
- - "<"
|
103
109
|
- !ruby/object:Gem::Version
|
104
|
-
version: '0.
|
110
|
+
version: '0.12'
|
105
111
|
type: :runtime
|
106
112
|
prerelease: false
|
107
113
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -111,7 +117,7 @@ dependencies:
|
|
111
117
|
version: 0.10.3
|
112
118
|
- - "<"
|
113
119
|
- !ruby/object:Gem::Version
|
114
|
-
version: '0.
|
120
|
+
version: '0.12'
|
115
121
|
- !ruby/object:Gem::Dependency
|
116
122
|
name: hooch
|
117
123
|
requirement: !ruby/object:Gem::Requirement
|
@@ -150,86 +156,86 @@ dependencies:
|
|
150
156
|
name: sqlite3
|
151
157
|
requirement: !ruby/object:Gem::Requirement
|
152
158
|
requirements:
|
153
|
-
- - "
|
159
|
+
- - "<"
|
154
160
|
- !ruby/object:Gem::Version
|
155
|
-
version: '
|
161
|
+
version: '2'
|
156
162
|
type: :development
|
157
163
|
prerelease: false
|
158
164
|
version_requirements: !ruby/object:Gem::Requirement
|
159
165
|
requirements:
|
160
|
-
- - "
|
166
|
+
- - "<"
|
161
167
|
- !ruby/object:Gem::Version
|
162
|
-
version: '
|
168
|
+
version: '2'
|
163
169
|
- !ruby/object:Gem::Dependency
|
164
170
|
name: minitest
|
165
171
|
requirement: !ruby/object:Gem::Requirement
|
166
172
|
requirements:
|
167
|
-
- - "
|
173
|
+
- - "<"
|
168
174
|
- !ruby/object:Gem::Version
|
169
|
-
version: '
|
175
|
+
version: '6'
|
170
176
|
type: :development
|
171
177
|
prerelease: false
|
172
178
|
version_requirements: !ruby/object:Gem::Requirement
|
173
179
|
requirements:
|
174
|
-
- - "
|
180
|
+
- - "<"
|
175
181
|
- !ruby/object:Gem::Version
|
176
|
-
version: '
|
182
|
+
version: '6'
|
177
183
|
- !ruby/object:Gem::Dependency
|
178
184
|
name: minitest-rails
|
179
185
|
requirement: !ruby/object:Gem::Requirement
|
180
186
|
requirements:
|
181
|
-
- - "
|
187
|
+
- - "<"
|
182
188
|
- !ruby/object:Gem::Version
|
183
|
-
version: '
|
189
|
+
version: '3'
|
184
190
|
type: :development
|
185
191
|
prerelease: false
|
186
192
|
version_requirements: !ruby/object:Gem::Requirement
|
187
193
|
requirements:
|
188
|
-
- - "
|
194
|
+
- - "<"
|
189
195
|
- !ruby/object:Gem::Version
|
190
|
-
version: '
|
196
|
+
version: '3'
|
191
197
|
- !ruby/object:Gem::Dependency
|
192
198
|
name: pry-rails
|
193
199
|
requirement: !ruby/object:Gem::Requirement
|
194
200
|
requirements:
|
195
|
-
- - "
|
201
|
+
- - "<"
|
196
202
|
- !ruby/object:Gem::Version
|
197
|
-
version: '
|
203
|
+
version: '1'
|
198
204
|
type: :development
|
199
205
|
prerelease: false
|
200
206
|
version_requirements: !ruby/object:Gem::Requirement
|
201
207
|
requirements:
|
202
|
-
- - "
|
208
|
+
- - "<"
|
203
209
|
- !ruby/object:Gem::Version
|
204
|
-
version: '
|
210
|
+
version: '1'
|
205
211
|
- !ruby/object:Gem::Dependency
|
206
212
|
name: pry-nav
|
207
213
|
requirement: !ruby/object:Gem::Requirement
|
208
214
|
requirements:
|
209
|
-
- - "
|
215
|
+
- - "<"
|
210
216
|
- !ruby/object:Gem::Version
|
211
|
-
version: '
|
217
|
+
version: '1'
|
212
218
|
type: :development
|
213
219
|
prerelease: false
|
214
220
|
version_requirements: !ruby/object:Gem::Requirement
|
215
221
|
requirements:
|
216
|
-
- - "
|
222
|
+
- - "<"
|
217
223
|
- !ruby/object:Gem::Version
|
218
|
-
version: '
|
224
|
+
version: '1'
|
219
225
|
- !ruby/object:Gem::Dependency
|
220
226
|
name: pry-remote
|
221
227
|
requirement: !ruby/object:Gem::Requirement
|
222
228
|
requirements:
|
223
|
-
- - "
|
229
|
+
- - "<"
|
224
230
|
- !ruby/object:Gem::Version
|
225
|
-
version: '
|
231
|
+
version: '1'
|
226
232
|
type: :development
|
227
233
|
prerelease: false
|
228
234
|
version_requirements: !ruby/object:Gem::Requirement
|
229
235
|
requirements:
|
230
|
-
- - "
|
236
|
+
- - "<"
|
231
237
|
- !ruby/object:Gem::Version
|
232
|
-
version: '
|
238
|
+
version: '1'
|
233
239
|
description: A powerful reporting engine for Rails apps.
|
234
240
|
email:
|
235
241
|
- edraut@gmail.com
|