clark_kent 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/clark_kent/report.rb +1 -1
- data/lib/clark_kent/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +692 -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: 4de57766aecd490acb4b984021138075f84a8628
|
4
|
+
data.tar.gz: 42f55e194b368c09d5c0789ec4de17f8d6d67c12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: df66b58c6e04a380b67c7addf610509526032bfb280dcfed30620e4b85297be1ba06019ab00797a2b60967ee1f2aff92eb3fb56aa0840cf98e215f554708d59f
|
7
|
+
data.tar.gz: 091995c346ca849f168ccbade8565bdc399034b5927f707e8679f6c41bcbdc4f0a9f92d4b40050796a78f6a11026a590400cf44636f8f689b755e0feaf29b087
|
@@ -275,7 +275,7 @@ require 'aws-sdk-v1'
|
|
275
275
|
end
|
276
276
|
|
277
277
|
def headers
|
278
|
-
the_headers = viable_report_columns.sort_by
|
278
|
+
the_headers = viable_report_columns.sort_by{|c| c.column_order || 100}.map(&:column_name)
|
279
279
|
|
280
280
|
unless name =~ /net\s?promoter/i
|
281
281
|
the_headers.map(&:humanize)
|
data/lib/clark_kent/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -63331,3 +63331,695 @@ ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
|
63331
63331
|
ClarkKentTest: test_truth
|
63332
63332
|
-------------------------
|
63333
63333
|
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
63334
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
63335
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE 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)[0m
|
63336
|
+
[1m[35m (0.1ms)[0m [1m[34mselect sqlite_version(*)[0m
|
63337
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_columns_on_report_id" ON "clark_kent_report_columns" ("report_id")[0m
|
63338
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE TABLE "clark_kent_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "report_id" integer, "when_to_send" varchar, "name" varchar)[0m
|
63339
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
|
63340
|
+
[1m[35m (2.1ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_id" ON "clark_kent_report_filters" ("filterable_id")[0m
|
63341
|
+
[1m[35m (0.5ms)[0m [1m[34m SELECT sql
|
63342
|
+
FROM sqlite_master
|
63343
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
63344
|
+
UNION ALL
|
63345
|
+
SELECT sql
|
63346
|
+
FROM sqlite_temp_master
|
63347
|
+
WHERE name='index_clark_kent_report_filters_on_filterable_id' AND type='index'
|
63348
|
+
[0m
|
63349
|
+
[1m[35m (2.5ms)[0m [1m[35mCREATE INDEX "index_clark_kent_report_filters_on_filterable_type" ON "clark_kent_report_filters" ("filterable_type")[0m
|
63350
|
+
[1m[35m (1.0ms)[0m [1m[35mCREATE 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)[0m
|
63351
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_id" ON "clark_kent_reports" ("sharing_scope_id")[0m
|
63352
|
+
[1m[35m (0.1ms)[0m [1m[34m SELECT sql
|
63353
|
+
FROM sqlite_master
|
63354
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
63355
|
+
UNION ALL
|
63356
|
+
SELECT sql
|
63357
|
+
FROM sqlite_temp_master
|
63358
|
+
WHERE name='index_clark_kent_reports_on_sharing_scope_id' AND type='index'
|
63359
|
+
[0m
|
63360
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE INDEX "index_clark_kent_reports_on_sharing_scope_type" ON "clark_kent_reports" ("sharing_scope_type")[0m
|
63361
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "clark_kent_user_report_emails" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "report_email_id" integer)[0m
|
63362
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "departments" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar)[0m
|
63363
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "orders" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "user_id" integer, "amount" integer, "description" varchar, "created_at" datetime, "updated_at" datetime)[0m
|
63364
|
+
[1m[35m (0.8ms)[0m [1m[35mCREATE TABLE "users" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar, "email" varchar, "age" integer, "department_id" integer)[0m
|
63365
|
+
[1m[35m (0.9ms)[0m [1m[35mCREATE TABLE "schema_migrations" ("version" varchar NOT NULL PRIMARY KEY)[0m
|
63366
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT version FROM "schema_migrations"[0m
|
63367
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO "schema_migrations" (version) VALUES ('20150313144015')[0m
|
63368
|
+
[1m[35m (0.8ms)[0m [1m[32mINSERT INTO schema_migrations (version) VALUES
|
63369
|
+
('20131226170042'),
|
63370
|
+
('20131226170112'),
|
63371
|
+
('20140114010048'),
|
63372
|
+
('20140129051754'),
|
63373
|
+
('20150304233739');
|
63374
|
+
|
63375
|
+
[0m
|
63376
|
+
[1m[35m (1.2ms)[0m [1m[35mCREATE TABLE "ar_internal_metadata" ("key" varchar NOT NULL PRIMARY KEY, "value" varchar, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)[0m
|
63377
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.2ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
63378
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63379
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "ar_internal_metadata" ("key", "value", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["key", "environment"], ["value", "test"], ["created_at", 2017-04-03 16:05:55 UTC], ["updated_at", 2017-04-03 16:05:55 UTC]]
|
63380
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
63381
|
+
[1m[36mActiveRecord::InternalMetadata Load (0.1ms)[0m [1m[34mSELECT "ar_internal_metadata".* FROM "ar_internal_metadata" WHERE "ar_internal_metadata"."key" = ? LIMIT ?[0m [["key", :environment], ["LIMIT", 1]]
|
63382
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63383
|
+
[1m[35m (0.0ms)[0m [1m[36mcommit transaction[0m
|
63384
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63385
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("resource_type", "created_at", "updated_at") VALUES (?, ?, ?)[0m [["resource_type", "Order"], ["created_at", 2017-04-03 16:05:55 UTC], ["updated_at", 2017-04-03 16:05:55 UTC]]
|
63386
|
+
[1m[35m (1.2ms)[0m [1m[36mcommit transaction[0m
|
63387
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63388
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "user_name"], ["column_order", 1]]
|
63389
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
63390
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63391
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "id"], ["column_order", 2]]
|
63392
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
63393
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63394
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "amount"], ["column_order", 3]]
|
63395
|
+
[1m[35m (0.8ms)[0m [1m[36mcommit transaction[0m
|
63396
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63397
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name", "column_order") VALUES (?, ?, ?)[0m [["report_id", 1], ["column_name", "description"], ["column_order", 4]]
|
63398
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
63399
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63400
|
+
[1m[35mSQL (0.4ms)[0m [1m[32mINSERT INTO "departments" ("name") VALUES (?)[0m [["name", "silly walks"]]
|
63401
|
+
[1m[35m (0.7ms)[0m [1m[36mcommit transaction[0m
|
63402
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63403
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "users" ("name", "email", "department_id") VALUES (?, ?, ?)[0m [["name", "Michael Hedges"], ["email", "taproot@gmail.com"], ["department_id", 1]]
|
63404
|
+
[1m[35m (1.0ms)[0m [1m[36mcommit transaction[0m
|
63405
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63406
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "orders" ("user_id", "amount", "description", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["user_id", 1], ["amount", 1], ["description", "Guitar strings"], ["created_at", 2017-04-03 16:05:55 UTC], ["updated_at", 2017-04-03 16:05:55 UTC]]
|
63407
|
+
[1m[35m (0.9ms)[0m [1m[36mcommit transaction[0m
|
63408
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63409
|
+
-------------------------
|
63410
|
+
ClarkKentTest: test_truth
|
63411
|
+
-------------------------
|
63412
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63413
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63414
|
+
---------------------------------------------------
|
63415
|
+
ClarkKent::ReportEmailTest: test_sends_report_to_s3
|
63416
|
+
---------------------------------------------------
|
63417
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
63418
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63419
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
63420
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63421
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
63422
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63423
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63424
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "this_week"], ["created_at", 2017-04-03 16:05:55 UTC], ["updated_at", 2017-04-03 16:05:55 UTC]]
|
63425
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63426
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63427
|
+
[1m[36mClarkKent::ReportFilter Load (0.3ms)[0m [1m[34mSELECT "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"]]
|
63428
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63429
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63430
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63431
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "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]]
|
63432
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63433
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "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"]]
|
63434
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
63435
|
+
[1m[35m (1.2ms)[0m [1m[31mrollback transaction[0m
|
63436
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63437
|
+
-----------------------------------------------------------------------------------------
|
63438
|
+
ClarkKent::ReportEmailTest: test_throws_an_error_if_required_date_filters_are_not_present
|
63439
|
+
-----------------------------------------------------------------------------------------
|
63440
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."email" = ? LIMIT ?[0m [["email", "taproot@gmail.com"], ["LIMIT", 1]]
|
63441
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63442
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "sharing_scope_type" = 'Department', "sharing_scope_id" = 1 WHERE "clark_kent_reports"."id" = ?[0m [["id", 1]]
|
63443
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63444
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "name") VALUES (?, ?)[0m [["report_id", 1], ["name", "test_emailer"]]
|
63445
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63446
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63447
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "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"]]
|
63448
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63449
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63450
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63451
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "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]]
|
63452
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63453
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "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"]]
|
63454
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63455
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63456
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb
|
63457
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_mailer/report_error.html.erb (1.6ms)
|
63458
|
+
ClarkKent::ReportMailer#report_error: processed outbound mail in 201.7ms
|
63459
|
+
Sent mail to taproot@gmail.com (7.5ms)
|
63460
|
+
Date: Mon, 03 Apr 2017 10:05:56 -0600
|
63461
|
+
From: reservations@invitedhome.com
|
63462
|
+
To: taproot@gmail.com
|
63463
|
+
Message-ID: <58e272e418e18_b0033ff9ea03fa2426250@Erics-MacBook-Pro.local.mail>
|
63464
|
+
Subject: Your report has a problem
|
63465
|
+
Mime-Version: 1.0
|
63466
|
+
Content-Type: text/html;
|
63467
|
+
charset=UTF-8
|
63468
|
+
Content-Transfer-Encoding: 7bit
|
63469
|
+
|
63470
|
+
Your report could not be created due to the following problem:
|
63471
|
+
<strong>At least one date range is required.</strong>
|
63472
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63473
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63474
|
+
-------------------------------------------------------------------------------
|
63475
|
+
ClarkKent::ReportColumnsControllerTest: test_0001_should create a report column
|
63476
|
+
-------------------------------------------------------------------------------
|
63477
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63478
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
63479
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1"}}
|
63480
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63481
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63482
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_columns" ("report_id", "column_name") VALUES (?, ?)[0m [["report_id", 1], ["column_name", "user_name"]]
|
63483
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63484
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (8.3ms)
|
63485
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (38.5ms)
|
63486
|
+
Completed 200 OK in 69ms (Views: 65.9ms | ActiveRecord: 0.5ms)
|
63487
|
+
[1m[35m (0.6ms)[0m [1m[31mrollback transaction[0m
|
63488
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63489
|
+
--------------------------------------------------------------------------------------------------
|
63490
|
+
ClarkKent::ReportColumnsControllerTest: test_0003_should reject a report column with unusable sort
|
63491
|
+
--------------------------------------------------------------------------------------------------
|
63492
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63493
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
63494
|
+
Parameters: {"report_column"=>{"column_name"=>"user_name", "report_id"=>"1", "report_sort"=>"ascending"}}
|
63495
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63496
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63497
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63498
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
63499
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63500
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "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]]
|
63501
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (66.2ms)
|
63502
|
+
Completed 409 Conflict in 100ms (Views: 95.6ms | ActiveRecord: 0.5ms)
|
63503
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63504
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63505
|
+
---------------------------------------------------------------------------------------------------
|
63506
|
+
ClarkKent::ReportColumnsControllerTest: test_0002_should reject a report column with no column_name
|
63507
|
+
---------------------------------------------------------------------------------------------------
|
63508
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63509
|
+
Processing by ClarkKent::ReportColumnsController#create as JS
|
63510
|
+
Parameters: {"report_column"=>{"report_id"=>"1"}}
|
63511
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63512
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63513
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
63514
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63515
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63516
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63517
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_form.html.erb (7.5ms)
|
63518
|
+
Completed 409 Conflict in 10ms (Views: 7.6ms | ActiveRecord: 0.4ms)
|
63519
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63520
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63521
|
+
------------------------------------------------------------------------------------------------
|
63522
|
+
ClarkKent::ReportTest: test_can't_save_without_a_sharing_scope_id_if_the_sharing_scope_is_custom
|
63523
|
+
------------------------------------------------------------------------------------------------
|
63524
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63525
|
+
[1m[35m (0.0ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
63526
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
63527
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
63528
|
+
------------------------------------------------------------------------
|
63529
|
+
ClarkKent::ReportableTest: test_0001_it adds required filters if present
|
63530
|
+
------------------------------------------------------------------------
|
63531
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63532
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "Order"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63533
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63534
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63535
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63536
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63537
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63538
|
+
--------------------------------------------------------------------------
|
63539
|
+
ClarkKent::ReportableTest: test_0002_it works without any required filters
|
63540
|
+
--------------------------------------------------------------------------
|
63541
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63542
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63543
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63544
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63545
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63546
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63547
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63548
|
+
--------------------------------------------------------------------------
|
63549
|
+
ClarkKent::ReportableTest: test_0003_doesn't blow up if order_sql is blank
|
63550
|
+
--------------------------------------------------------------------------
|
63551
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63552
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "test one"], ["resource_type", "TestReportable"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63553
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63554
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63555
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
63556
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63557
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "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]]
|
63558
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63559
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63560
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63561
|
+
-----------------------------------------------------
|
63562
|
+
ClarkKent::ReportsHelperTest: test_it_displays_a_date
|
63563
|
+
-----------------------------------------------------
|
63564
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63565
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63566
|
+
--------------------------------------------------------------------------
|
63567
|
+
ClarkKent::ReportColumnTest: test_0001_rejects report sort if no order_sql
|
63568
|
+
--------------------------------------------------------------------------
|
63569
|
+
[1m[36mClarkKent::Report Load (0.3ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63570
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63571
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63572
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63573
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
63574
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63575
|
+
------------------------------------------------------------------------------------------
|
63576
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_an_object_filter
|
63577
|
+
------------------------------------------------------------------------------------------
|
63578
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63579
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63580
|
+
[1m[35mSQL (1.0ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63581
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63582
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63583
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63584
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63585
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63586
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
63587
|
+
Parameters: {"id"=>"1"}
|
63588
|
+
[1m[36mClarkKent::ReportFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63589
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63590
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63591
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63592
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (1.1ms)
|
63593
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (9.0ms)
|
63594
|
+
Completed 200 OK in 18ms (Views: 12.8ms | ActiveRecord: 0.4ms)
|
63595
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63596
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63597
|
+
-----------------------------------------------------------------------------------------
|
63598
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_string_filter
|
63599
|
+
-----------------------------------------------------------------------------------------
|
63600
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63601
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63602
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63603
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63604
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63605
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63606
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63607
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63608
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
63609
|
+
Parameters: {"id"=>"1"}
|
63610
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63611
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63612
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63613
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.9ms)
|
63614
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (8.3ms)
|
63615
|
+
Completed 200 OK in 12ms (Views: 9.0ms | ActiveRecord: 0.2ms)
|
63616
|
+
[1m[35m (1.1ms)[0m [1m[31mrollback transaction[0m
|
63617
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63618
|
+
---------------------------------------------------------------------------------------
|
63619
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_show_view_for_a_date_filter
|
63620
|
+
---------------------------------------------------------------------------------------
|
63621
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63622
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63623
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63624
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63625
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63626
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63627
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63628
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63629
|
+
Processing by ClarkKent::ReportFiltersController#show as HTML
|
63630
|
+
Parameters: {"id"=>"1"}
|
63631
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63632
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63633
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63634
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.6ms)
|
63635
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (5.6ms)
|
63636
|
+
Completed 200 OK in 9ms (Views: 6.1ms | ActiveRecord: 0.1ms)
|
63637
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63638
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63639
|
+
---------------------------------------------------------------------------------------
|
63640
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_date_filter
|
63641
|
+
---------------------------------------------------------------------------------------
|
63642
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63643
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63644
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63645
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63646
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63647
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63648
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63649
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63650
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
63651
|
+
Parameters: {"id"=>"1"}
|
63652
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63653
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63654
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63655
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_edit.html.erb (6.1ms)
|
63656
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (18.2ms)
|
63657
|
+
Completed 200 OK in 25ms (Views: 21.3ms | ActiveRecord: 0.2ms)
|
63658
|
+
[1m[35m (0.8ms)[0m [1m[31mrollback transaction[0m
|
63659
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63660
|
+
----------------------------------------------------------------------------------
|
63661
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_date_report_filter
|
63662
|
+
----------------------------------------------------------------------------------
|
63663
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63664
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63665
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63666
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63667
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63668
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
63669
|
+
Parameters: {"report_filter"=>{"duration"=>"week", "filter_name"=>"created_at", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report", "kind_of_day"=>"Monday", "offset"=>"last_week"}}
|
63670
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63671
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63672
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "type", "duration", "kind_of_day", "offset", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "created_at"], ["type", "ClarkKent::ReportDateFilter"], ["duration", "week"], ["kind_of_day", "Monday"], ["offset", "last_week"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63673
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63674
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63675
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_date_filter_show.html.erb (0.1ms)
|
63676
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (4.8ms)
|
63677
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (5.7ms)
|
63678
|
+
Completed 200 OK in 13ms (Views: 8.8ms | ActiveRecord: 0.4ms)
|
63679
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
63680
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63681
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63682
|
+
-----------------------------------------------------------------------------
|
63683
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_a_report_filter
|
63684
|
+
-----------------------------------------------------------------------------
|
63685
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63686
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63687
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63688
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63689
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63690
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
63691
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_email", "filter_value"=>"taproot@gmail.com", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
63692
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63693
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63694
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63695
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63696
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63697
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_show.html.erb (0.1ms)
|
63698
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.5ms)
|
63699
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.7ms)
|
63700
|
+
Completed 200 OK in 7ms (Views: 3.1ms | ActiveRecord: 0.4ms)
|
63701
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
63702
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63703
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63704
|
+
------------------------------------------------------------------------------------------
|
63705
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_an_object_filter
|
63706
|
+
------------------------------------------------------------------------------------------
|
63707
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63708
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63709
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63710
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63711
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63712
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63713
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63714
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63715
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
63716
|
+
Parameters: {"id"=>"1"}
|
63717
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63718
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63719
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63720
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
63721
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_edit.html.erb (5.0ms)
|
63722
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (12.9ms)
|
63723
|
+
Completed 200 OK in 16ms (Views: 13.1ms | ActiveRecord: 0.3ms)
|
63724
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63725
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63726
|
+
-------------------------------------------------------------------------------------
|
63727
|
+
ClarkKent::ReportFiltersControllerTest: test_it_should_create_an_object_report_filter
|
63728
|
+
-------------------------------------------------------------------------------------
|
63729
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63730
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63731
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63732
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63733
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63734
|
+
Processing by ClarkKent::ReportFiltersController#create as HTML
|
63735
|
+
Parameters: {"report_filter"=>{"filter_name"=>"user_id", "filter_value"=>"1", "filterable_id"=>"1", "filterable_type"=>"ClarkKent::Report"}}
|
63736
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63737
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63738
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filter_name", "user_id"], ["filter_value", "1"], ["type", "ClarkKent::ReportObjectFilter"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63739
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63740
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63741
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63742
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_object_filter_show.html.erb (0.4ms)
|
63743
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show.html.erb (2.2ms)
|
63744
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_show_wrapper.html.erb (2.4ms)
|
63745
|
+
Completed 200 OK in 8ms (Views: 2.6ms | ActiveRecord: 0.6ms)
|
63746
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" ORDER BY "clark_kent_report_filters"."id" DESC LIMIT ?[0m [["LIMIT", 1]]
|
63747
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63748
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63749
|
+
-----------------------------------------------------------------------------------------
|
63750
|
+
ClarkKent::ReportFiltersControllerTest: test_should_get_the_edit_form_for_a_string_filter
|
63751
|
+
-----------------------------------------------------------------------------------------
|
63752
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63753
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63754
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63755
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63756
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63757
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63758
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_report_filters" ("filterable_id", "filterable_type", "filter_name", "filter_value", "type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"], ["filter_name", "user_email"], ["filter_value", "taproot@gmail.com"], ["type", "ClarkKent::ReportStringFilter"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63759
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63760
|
+
Processing by ClarkKent::ReportFiltersController#edit as HTML
|
63761
|
+
Parameters: {"id"=>"1"}
|
63762
|
+
[1m[36mClarkKent::ReportFilter Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63763
|
+
[1m[36mClarkKent::ReportEmail Load (0.0ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63764
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63765
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_string_filter_edit.html.erb (0.4ms)
|
63766
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_form.html.erb (11.9ms)
|
63767
|
+
Completed 200 OK in 15ms (Views: 12.4ms | ActiveRecord: 0.2ms)
|
63768
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63769
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63770
|
+
-----------------------------------------------------------------
|
63771
|
+
ClarkKent::ReportsControllerTest: test_0010_should destroy report
|
63772
|
+
-----------------------------------------------------------------
|
63773
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63774
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63775
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63776
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63777
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63778
|
+
[1m[35mSQL (0.1ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "created_at", "updated_at") VALUES (?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["created_at", 2017-04-03 16:05:56 UTC], ["updated_at", 2017-04-03 16:05:56 UTC]]
|
63779
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63780
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
63781
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63782
|
+
Processing by ClarkKent::ReportsController#destroy as HTML
|
63783
|
+
Parameters: {"current_user_id"=>"1", "id"=>"2"}
|
63784
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
63785
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63786
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63787
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63788
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
63789
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
63790
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63791
|
+
Redirected to http://test.host/reports/reports
|
63792
|
+
Completed 302 Found in 12ms (ActiveRecord: 0.7ms)
|
63793
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports"[0m
|
63794
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63795
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63796
|
+
--------------------------------------------------------------------------------
|
63797
|
+
ClarkKent::ReportsControllerTest: test_0004_should render errors during creation
|
63798
|
+
--------------------------------------------------------------------------------
|
63799
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63800
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63801
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63802
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63803
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63804
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
63805
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
63806
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63807
|
+
[1m[35m (0.1ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
63808
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
63809
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63810
|
+
[1m[36mDepartment Load (0.0ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63811
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (8.6ms)
|
63812
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (12.6ms)
|
63813
|
+
Completed 409 Conflict in 230ms (Views: 227.3ms | ActiveRecord: 0.4ms)
|
63814
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
63815
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63816
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63817
|
+
----------------------------------------------------------------------
|
63818
|
+
ClarkKent::ReportsControllerTest: test_0006_should show report results
|
63819
|
+
----------------------------------------------------------------------
|
63820
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63821
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63822
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63823
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63824
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63825
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
63826
|
+
Parameters: {"created_at_from"=>"2017-04-02", "created_at_until"=>"2017-04-03", "current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
63827
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63828
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
63829
|
+
[1m[36mClarkKent::ReportFilter Load (0.4ms)[0m [1m[34mSELECT "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"]]
|
63830
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
63831
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (1.3ms)
|
63832
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63833
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
63834
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (2.3ms)
|
63835
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.6ms)
|
63836
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "orders" WHERE (orders.user_id > 0)[0m
|
63837
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(count_column) FROM (SELECT "orders"."id" AS count_column FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?) subquery_for_count[0m [["LIMIT", 10], ["OFFSET", 0]]
|
63838
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (6.8ms)
|
63839
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63840
|
+
[1m[36mOrder Load (0.1ms)[0m [1m[34mSELECT DISTINCT orders.id, orders.user_id, orders.amount, orders.description, orders.created_at, orders.updated_at,
|
63841
|
+
(SELECT u.name
|
63842
|
+
FROM users u
|
63843
|
+
WHERE u.id = orders.user_id)
|
63844
|
+
as user_name FROM "orders" WHERE (orders.user_id > 0) LIMIT ? OFFSET ?[0m [["LIMIT", 10], ["OFFSET", 0]]
|
63845
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63846
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63847
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63848
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63849
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_download_link.html.erb (1.2ms)
|
63850
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (53.1ms)
|
63851
|
+
Completed 200 OK in 70ms (Views: 54.8ms | ActiveRecord: 1.8ms)
|
63852
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63853
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63854
|
+
--------------------------------------------------------------
|
63855
|
+
ClarkKent::ReportsControllerTest: test_0005_should show report
|
63856
|
+
--------------------------------------------------------------
|
63857
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63858
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63859
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63860
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63861
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63862
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
63863
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
63864
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63865
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
63866
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
63867
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63868
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.3ms)
|
63869
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63870
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
63871
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.2ms)
|
63872
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.1ms)
|
63873
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.0ms)
|
63874
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (5.3ms)
|
63875
|
+
Completed 200 OK in 11ms (Views: 8.0ms | ActiveRecord: 0.4ms)
|
63876
|
+
[1m[35m (0.7ms)[0m [1m[31mrollback transaction[0m
|
63877
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63878
|
+
-------------------------------------------------------------------------
|
63879
|
+
ClarkKent::ReportsControllerTest: test_0007_should show report run errors
|
63880
|
+
-------------------------------------------------------------------------
|
63881
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63882
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63883
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63884
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63885
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63886
|
+
Processing by ClarkKent::ReportsController#show as HTML
|
63887
|
+
Parameters: {"current_user_id"=>"1", "run_report"=>"true", "id"=>"1"}
|
63888
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63889
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_columns".* FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = 1 ORDER BY clark_kent_report_columns.column_order[0m
|
63890
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63891
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application
|
63892
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_date_filter.html.erb (0.9ms)
|
63893
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63894
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users"[0m
|
63895
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_object_filter.html.erb (1.8ms)
|
63896
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_string_filter.html.erb (0.5ms)
|
63897
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_print_report.html.erb (0.1ms)
|
63898
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/show.html.erb within layouts/application (4.9ms)
|
63899
|
+
Completed 200 OK in 15ms (Views: 9.3ms | ActiveRecord: 0.4ms)
|
63900
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63901
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63902
|
+
-----------------------------------------------------------
|
63903
|
+
ClarkKent::ReportsControllerTest: test_0008_should get edit
|
63904
|
+
-----------------------------------------------------------
|
63905
|
+
[1m[36mClarkKent::Report Load (0.2ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63906
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63907
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63908
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63909
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63910
|
+
Processing by ClarkKent::ReportsController#edit as HTML
|
63911
|
+
Parameters: {"current_user_id"=>"1", "id"=>"1"}
|
63912
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63913
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
63914
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (2.5ms)
|
63915
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63916
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (9.5ms)
|
63917
|
+
[1m[36mClarkKent::ReportColumn Load (0.2ms)[0m [1m[34mSELECT "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]]
|
63918
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (1.0ms)
|
63919
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (4.3ms)
|
63920
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.3ms)
|
63921
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.5ms)
|
63922
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.2ms)
|
63923
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
63924
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show.html.erb (0.2ms)
|
63925
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_show_wrapper.html.erb (0.4ms)
|
63926
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (11.4ms)
|
63927
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 1]]
|
63928
|
+
[1m[36mClarkKent::ReportDateFilter Load (0.2ms)[0m [1m[34mSELECT "clark_kent_report_filters".* FROM "clark_kent_report_filters" WHERE "clark_kent_report_filters"."type" IN ('ClarkKent::ReportDateFilter') AND "clark_kent_report_filters"."filterable_id" = ? AND "clark_kent_report_filters"."filterable_type" = ?[0m [["filterable_id", 1], ["filterable_type", "ClarkKent::ReportEmail"]]
|
63929
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" INNER JOIN "clark_kent_user_report_emails" ON "users"."id" = "clark_kent_user_report_emails"."user_id" WHERE "clark_kent_user_report_emails"."report_email_id" = ?[0m [["report_email_id", 1]]
|
63930
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show.html.erb (36.8ms)
|
63931
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_show_wrapper.html.erb (40.6ms)
|
63932
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (50.2ms)
|
63933
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (91.7ms)
|
63934
|
+
Completed 200 OK in 102ms (Views: 94.5ms | ActiveRecord: 0.8ms)
|
63935
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
63936
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63937
|
+
----------------------------------------------------------------
|
63938
|
+
ClarkKent::ReportsControllerTest: test_0003_should create report
|
63939
|
+
----------------------------------------------------------------
|
63940
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63941
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63942
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63943
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63944
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63945
|
+
Processing by ClarkKent::ReportsController#create as HTML
|
63946
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"delete me", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}}
|
63947
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63948
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "clark_kent_reports" ("name", "resource_type", "sharing_scope_type", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?)[0m [["name", "delete me"], ["resource_type", "Order"], ["sharing_scope_type", ""], ["created_at", 2017-04-03 16:05:57 UTC], ["updated_at", 2017-04-03 16:05:57 UTC]]
|
63949
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63950
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application
|
63951
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.3ms)
|
63952
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63953
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_filters/_index.html.erb (2.6ms)
|
63954
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63955
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_columns/_index.html.erb (8.7ms)
|
63956
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
63957
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/report_emails/_index.html.erb (1.5ms)
|
63958
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/edit.html.erb within layouts/application (15.1ms)
|
63959
|
+
Completed 200 OK in 20ms (Views: 17.3ms | ActiveRecord: 0.5ms)
|
63960
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."name" = ? LIMIT ?[0m [["name", "delete me"], ["LIMIT", 1]]
|
63961
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63962
|
+
[1m[36mClarkKent::ReportFilter Load (0.1ms)[0m [1m[34mSELECT "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"]]
|
63963
|
+
[1m[36mClarkKent::ReportColumn Load (0.1ms)[0m [1m[34mSELECT "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]]
|
63964
|
+
[1m[36mClarkKent::ReportEmail Load (0.1ms)[0m [1m[34mSELECT "clark_kent_report_emails".* FROM "clark_kent_report_emails" WHERE "clark_kent_report_emails"."report_id" = ?[0m [["report_id", 2]]
|
63965
|
+
[1m[35mSQL (0.1ms)[0m [1m[31mDELETE FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ?[0m [["id", 2]]
|
63966
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63967
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63968
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63969
|
+
----------------------------------------------------------------
|
63970
|
+
ClarkKent::ReportsControllerTest: test_0009_should update report
|
63971
|
+
----------------------------------------------------------------
|
63972
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63973
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63974
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63975
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63976
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63977
|
+
Processing by ClarkKent::ReportsController#update as HTML
|
63978
|
+
Parameters: {"current_user_id"=>"1", "report"=>{"name"=>"", "resource_type"=>"Order", "sharing_scope_id"=>"", "sharing_scope_type"=>""}, "id"=>"1"}
|
63979
|
+
[1m[36mClarkKent::Report Load (0.0ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
63980
|
+
[1m[36mClarkKent::ReportColumn Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_report_columns" WHERE "clark_kent_report_columns"."report_id" = ? LIMIT ?[0m [["report_id", 1], ["LIMIT", 1]]
|
63981
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63982
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "clark_kent_reports" SET "name" = ?, "sharing_scope_type" = ?, "updated_at" = ? WHERE "clark_kent_reports"."id" = ?[0m [["name", ""], ["sharing_scope_type", ""], ["updated_at", 2017-04-03 16:05:57 UTC], ["id", 1]]
|
63983
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63984
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_show.html.erb (1.3ms)
|
63985
|
+
Completed 200 OK in 15ms (Views: 1.7ms | ActiveRecord: 0.6ms)
|
63986
|
+
[1m[35m (0.4ms)[0m [1m[31mrollback transaction[0m
|
63987
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
63988
|
+
------------------------------------------------------------
|
63989
|
+
ClarkKent::ReportsControllerTest: test_0001_should get index
|
63990
|
+
------------------------------------------------------------
|
63991
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63992
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
63993
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
63994
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
63995
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
63996
|
+
Processing by ClarkKent::ReportsController#index as HTML
|
63997
|
+
Parameters: {"current_user_id"=>"1"}
|
63998
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application
|
63999
|
+
[1m[36mUser Load (0.4ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64000
|
+
[1m[36mClarkKent::Report Exists (0.4ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "User"], ["LIMIT", 1]]
|
64001
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64002
|
+
[1m[36mClarkKent::Report Exists (0.1ms)[0m [1m[34mSELECT 1 AS one FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" = ? AND "clark_kent_reports"."sharing_scope_type" = ? LIMIT ?[0m [["sharing_scope_id", 1], ["sharing_scope_type", "Department"], ["LIMIT", 1]]
|
64003
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
64004
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" WHERE "clark_kent_reports"."sharing_scope_id" IS NULL[0m
|
64005
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/index.html.erb within layouts/application (11.6ms)
|
64006
|
+
Completed 200 OK in 19ms (Views: 13.8ms | ActiveRecord: 1.1ms)
|
64007
|
+
[1m[35m (0.5ms)[0m [1m[31mrollback transaction[0m
|
64008
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
64009
|
+
----------------------------------------------------------
|
64010
|
+
ClarkKent::ReportsControllerTest: test_0002_should get new
|
64011
|
+
----------------------------------------------------------
|
64012
|
+
[1m[36mClarkKent::Report Load (0.1ms)[0m [1m[34mSELECT "clark_kent_reports".* FROM "clark_kent_reports" ORDER BY "clark_kent_reports"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64013
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
64014
|
+
[1m[35mSQL (0.3ms)[0m [1m[32mINSERT INTO "clark_kent_report_emails" ("report_id", "when_to_send", "name") VALUES (?, ?, ?)[0m [["report_id", 1], ["when_to_send", "Monday"], ["name", "Owner Arrival"]]
|
64015
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
64016
|
+
[1m[36mUser Load (0.0ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
64017
|
+
Processing by ClarkKent::ReportsController#new as HTML
|
64018
|
+
Parameters: {"current_user_id"=>"1"}
|
64019
|
+
Rendering /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application
|
64020
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? ORDER BY "users"."id" ASC LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64021
|
+
[1m[36mDepartment Load (0.1ms)[0m [1m[34mSELECT "departments".* FROM "departments" WHERE "departments"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
64022
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/_edit.html.erb (9.6ms)
|
64023
|
+
Rendered /Users/eric/projects/clark_kent/app/views/clark_kent/reports/new.html.erb within layouts/application (10.3ms)
|
64024
|
+
Completed 200 OK in 15ms (Views: 14.2ms | ActiveRecord: 0.2ms)
|
64025
|
+
[1m[35m (0.3ms)[0m [1m[31mrollback transaction[0m
|
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.8.
|
4
|
+
version: 0.8.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Draut
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03
|
11
|
+
date: 2017-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|