green_flag 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/app/assets/javascripts/green_flag/admin/features.js +1 -1
- data/lib/green_flag/version.rb +1 -1
- data/spec/dummy/log/development.log +706 -0
- data/spec/dummy/log/test.log +722 -0
- data/spec/dummy/tmp/cache/assets/CE7/FF0/sprockets%2Fe45f3a7675a8c5a5b064117792bf5e28 +0 -0
- data/spec/dummy/tmp/cache/assets/D13/270/sprockets%2F701a30cd450ae3cfa114092bafc16004 +0 -0
- data/spec/dummy/tmp/cache/assets/DA9/2C0/sprockets%2Ff95d82b2bbb6db8ffe1a87f67b415291 +0 -0
- data/spec/dummy/tmp/pids/server.pid +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f12a08a6b744c18fb705f7356a78ac0f692a6d1e
|
4
|
+
data.tar.gz: c3b66b1ade6c2d4ff6bedbe5f06987619f64c1d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57a139c4c7e59e024102cc74393b0432dd8efcb83f371a02179659d61b5bb9a85384ff83ad1b7d550faa5cf7d9e0f0b6377f9ccab9dcdfb2ab3760b956ed9565
|
7
|
+
data.tar.gz: dc1ff913fd24537eb19d7da71ce78483d56bf5678b6fc92d669d82385767b55369d2bfcdb8197b0e292e4d9bb83b8e1c81ae4da4a49e5c1a2625136b2d96841a
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
green_flag (0.1.
|
5
|
-
activerecord-concurrent-index
|
6
|
-
pg
|
4
|
+
green_flag (0.1.1)
|
5
|
+
activerecord-concurrent-index
|
6
|
+
pg
|
7
7
|
rails (~> 3.2)
|
8
|
-
sass-rails
|
8
|
+
sass-rails
|
9
9
|
|
10
10
|
GEM
|
11
11
|
remote: https://rubygems.org/
|
@@ -108,7 +108,7 @@ GEM
|
|
108
108
|
rspec-core (~> 2.14.0)
|
109
109
|
rspec-expectations (~> 2.14.0)
|
110
110
|
rspec-mocks (~> 2.14.0)
|
111
|
-
sass (3.4.
|
111
|
+
sass (3.4.16)
|
112
112
|
sass-rails (3.2.6)
|
113
113
|
railties (~> 3.2.0)
|
114
114
|
sass (>= 3.1.10)
|
data/lib/green_flag/version.rb
CHANGED
@@ -8339,3 +8339,709 @@ Connecting to database specified by database.yml
|
|
8339
8339
|
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150218035000')[0m
|
8340
8340
|
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
|
8341
8341
|
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150218171852')[0m
|
8342
|
+
|
8343
|
+
|
8344
|
+
Started GET "/green_flag/admin/features" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8345
|
+
Connecting to database specified by database.yml
|
8346
|
+
Processing by GreenFlag::Admin::FeaturesController#index as HTML
|
8347
|
+
[1m[36mGreenFlag::Feature Load (2.1ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" [0m
|
8348
|
+
Rendered /Users/tim/src/green_flag/app/views/green_flag/admin/features/index.html.erb within layouts/green_flag/application (1.8ms)
|
8349
|
+
Compiled green_flag/application.js (1ms) (pid 16150)
|
8350
|
+
Completed 200 OK in 58.7ms (Views: 43.0ms | ActiveRecord: 9.4ms)
|
8351
|
+
|
8352
|
+
|
8353
|
+
Started GET "/assets/green_flag/application.css?body=1" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8354
|
+
Served asset /green_flag/application.css - 200 OK (6ms)
|
8355
|
+
|
8356
|
+
|
8357
|
+
Started GET "/assets/green_flag/admin/features.css?body=1" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8358
|
+
Served asset /green_flag/admin/features.css - 200 OK (1ms)
|
8359
|
+
|
8360
|
+
|
8361
|
+
Started GET "/assets/green_flag/admin/rules.css?body=1" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8362
|
+
Served asset /green_flag/admin/rules.css - 200 OK (1ms)
|
8363
|
+
|
8364
|
+
|
8365
|
+
Started GET "/assets/green_flag/admin/features.js?body=1" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8366
|
+
Served asset /green_flag/admin/features.js - 200 OK (1ms)
|
8367
|
+
|
8368
|
+
|
8369
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8370
|
+
Served asset /jquery_ujs.js - 200 OK (1ms)
|
8371
|
+
|
8372
|
+
|
8373
|
+
Started GET "/assets/green_flag/admin/rules.js?body=1" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8374
|
+
Served asset /green_flag/admin/rules.js - 200 OK (1ms)
|
8375
|
+
|
8376
|
+
|
8377
|
+
Started GET "/assets/green_flag/application.js?body=1" for 127.0.0.1 at 2015-08-06 19:58:11 -0400
|
8378
|
+
Served asset /green_flag/application.js - 200 OK (2ms)
|
8379
|
+
|
8380
|
+
|
8381
|
+
Started GET "/green_flag/admin/features/2" for 127.0.0.1 at 2015-08-06 19:58:14 -0400
|
8382
|
+
Processing by GreenFlag::Admin::FeaturesController#show as HTML
|
8383
|
+
Parameters: {"id"=>"2"}
|
8384
|
+
[1m[35mGreenFlag::Feature Load (2.0ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8385
|
+
Rendered /Users/tim/src/green_flag/app/views/green_flag/admin/features/show.html.erb within layouts/green_flag/application (4.3ms)
|
8386
|
+
Completed 200 OK in 12.9ms (Views: 8.0ms | ActiveRecord: 2.2ms)
|
8387
|
+
|
8388
|
+
|
8389
|
+
Started GET "/green_flag/admin/features/2/rule_list" for 127.0.0.1 at 2015-08-06 19:58:14 -0400
|
8390
|
+
Processing by GreenFlag::Admin::RuleListsController#show as JSON
|
8391
|
+
Parameters: {"feature_id"=>"2"}
|
8392
|
+
[1m[36mGreenFlag::Feature Load (2.2ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8393
|
+
[1m[35mGreenFlag::Rule Load (3.2ms)[0m SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 2 AND (version_number = 1) ORDER BY order_by
|
8394
|
+
Completed 200 OK in 29.2ms (Views: 0.1ms | ActiveRecord: 8.7ms)
|
8395
|
+
|
8396
|
+
|
8397
|
+
Started GET "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 19:58:14 -0400
|
8398
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#index as JSON
|
8399
|
+
Parameters: {"feature_id"=>"2"}
|
8400
|
+
[1m[36mGreenFlag::FeatureDecision Load (4.7ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" INNER JOIN "users" ON "users"."id" = "green_flag_site_visitors"."user_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't' AND "green_flag_feature_decisions"."manual" = 't' ORDER BY created_at[0m
|
8401
|
+
Completed 200 OK in 58.8ms (Views: 0.1ms | ActiveRecord: 12.4ms)
|
8402
|
+
|
8403
|
+
|
8404
|
+
Started GET "/green_flag/admin/features/2/feature_decision_summary" for 127.0.0.1 at 2015-08-06 19:58:14 -0400
|
8405
|
+
Processing by GreenFlag::Admin::FeatureDecisionSummariesController#show as JSON
|
8406
|
+
Parameters: {"feature_id"=>"2"}
|
8407
|
+
[1m[35mGreenFlag::Feature Load (0.4ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8408
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't'[0m
|
8409
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 'f'
|
8410
|
+
Completed 200 OK in 4.6ms (Views: 0.2ms | ActiveRecord: 1.1ms)
|
8411
|
+
|
8412
|
+
|
8413
|
+
Started GET "/green_flag/admin/features/2/current_visitor_status" for 127.0.0.1 at 2015-08-06 19:58:15 -0400
|
8414
|
+
Processing by GreenFlag::Admin::FeaturesController#current_visitor_status as JSON
|
8415
|
+
Parameters: {"id"=>"2"}
|
8416
|
+
[1m[36mGreenFlag::Feature Load (0.4ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8417
|
+
[1m[35mGreenFlag::SiteVisitor Load (2.4ms)[0m SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'ab5c4360-33b0-4606-a349-153a21b66141' LIMIT 1
|
8418
|
+
[1m[36mGreenFlag::FeatureDecision Load (0.5ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 2 LIMIT 1[0m
|
8419
|
+
Completed 200 OK in 9.6ms (Views: 0.2ms | ActiveRecord: 3.3ms)
|
8420
|
+
|
8421
|
+
|
8422
|
+
Started POST "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 19:58:20 -0400
|
8423
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#create as JSON
|
8424
|
+
Parameters: {"email"=>"a@b.com", "feature_id"=>"2", "white_list_user"=>{"email"=>"a@b.com"}}
|
8425
|
+
[1m[35mGreenFlag::Feature Load (0.4ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8426
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'a@b.com' LIMIT 1[0m
|
8427
|
+
[1m[35mGreenFlag::Feature Load (0.7ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'bar' LIMIT 1
|
8428
|
+
Completed 500 Internal Server Error in 3.5ms
|
8429
|
+
|
8430
|
+
RuntimeError (Called id for nil, which would mistakenly be 8 -- if you really wanted the id of nil, use object_id):
|
8431
|
+
/Users/tim/src/green_flag/app/models/green_flag/site_visitor.rb:14:in `for_user!'
|
8432
|
+
/Users/tim/src/green_flag/app/models/green_flag/feature_decision.rb:45:in `ensure_feature_enabled'
|
8433
|
+
/Users/tim/src/green_flag/app/models/green_flag/feature_decision.rb:40:in `whitelist_user!'
|
8434
|
+
/Users/tim/src/green_flag/app/controllers/green_flag/admin/white_list_users_controller.rb:19:in `create'
|
8435
|
+
actionpack (3.2.22) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
|
8436
|
+
actionpack (3.2.22) lib/abstract_controller/base.rb:167:in `process_action'
|
8437
|
+
actionpack (3.2.22) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
8438
|
+
actionpack (3.2.22) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
|
8439
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:425:in `_run__3150261070101214609__process_action__973703961377308946__callbacks'
|
8440
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `__run_callback'
|
8441
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
|
8442
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
8443
|
+
actionpack (3.2.22) lib/abstract_controller/callbacks.rb:17:in `process_action'
|
8444
|
+
actionpack (3.2.22) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
8445
|
+
actionpack (3.2.22) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
|
8446
|
+
activesupport (3.2.22) lib/active_support/notifications.rb:123:in `block in instrument'
|
8447
|
+
activesupport (3.2.22) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
8448
|
+
activesupport (3.2.22) lib/active_support/notifications.rb:123:in `instrument'
|
8449
|
+
actionpack (3.2.22) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
|
8450
|
+
actionpack (3.2.22) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
|
8451
|
+
activerecord (3.2.22) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
8452
|
+
actionpack (3.2.22) lib/abstract_controller/base.rb:121:in `process'
|
8453
|
+
actionpack (3.2.22) lib/abstract_controller/rendering.rb:45:in `process'
|
8454
|
+
actionpack (3.2.22) lib/action_controller/metal.rb:203:in `dispatch'
|
8455
|
+
actionpack (3.2.22) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
|
8456
|
+
actionpack (3.2.22) lib/action_controller/metal.rb:246:in `block in action'
|
8457
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:73:in `call'
|
8458
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
8459
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:36:in `call'
|
8460
|
+
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
8461
|
+
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
8462
|
+
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
8463
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:608:in `call'
|
8464
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
8465
|
+
railties (3.2.22) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
8466
|
+
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
8467
|
+
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
8468
|
+
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
8469
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:608:in `call'
|
8470
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
|
8471
|
+
rack (1.4.7) lib/rack/etag.rb:23:in `call'
|
8472
|
+
rack (1.4.7) lib/rack/conditionalget.rb:35:in `call'
|
8473
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/head.rb:14:in `call'
|
8474
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
|
8475
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/flash.rb:242:in `call'
|
8476
|
+
rack (1.4.7) lib/rack/session/abstract/id.rb:210:in `context'
|
8477
|
+
rack (1.4.7) lib/rack/session/abstract/id.rb:205:in `call'
|
8478
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/cookies.rb:341:in `call'
|
8479
|
+
activerecord (3.2.22) lib/active_record/query_cache.rb:64:in `call'
|
8480
|
+
activerecord (3.2.22) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
8481
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
8482
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `_run__2485833851387758175__call__664004077974287349__callbacks'
|
8483
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `__run_callback'
|
8484
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
8485
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
8486
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
8487
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/reloader.rb:65:in `call'
|
8488
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
8489
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
8490
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
8491
|
+
railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
|
8492
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
|
8493
|
+
activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
|
8494
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
|
8495
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
8496
|
+
rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
|
8497
|
+
rack (1.4.7) lib/rack/runtime.rb:17:in `call'
|
8498
|
+
activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
8499
|
+
rack (1.4.7) lib/rack/lock.rb:15:in `call'
|
8500
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
|
8501
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
8502
|
+
railties (3.2.22) lib/rails/application.rb:231:in `call'
|
8503
|
+
rack (1.4.7) lib/rack/content_length.rb:14:in `call'
|
8504
|
+
railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
|
8505
|
+
rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
|
8506
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
8507
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
8508
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
8509
|
+
|
8510
|
+
|
8511
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
8512
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.6ms)
|
8513
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (4.9ms)
|
8514
|
+
Connecting to database specified by database.yml
|
8515
|
+
|
8516
|
+
|
8517
|
+
Started POST "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 19:59:54 -0400
|
8518
|
+
Connecting to database specified by database.yml
|
8519
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#create as JSON
|
8520
|
+
Parameters: {"email"=>"a@b.com", "feature_id"=>"2", "white_list_user"=>{"email"=>"a@b.com"}}
|
8521
|
+
[1m[36mGreenFlag::Feature Load (1.1ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8522
|
+
[1m[35mUser Load (0.8ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'a@b.com' LIMIT 1
|
8523
|
+
[1m[36mGreenFlag::Feature Load (0.4ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'bar' LIMIT 1[0m
|
8524
|
+
[1m[35mGreenFlag::SiteVisitor Load (1.5ms)[0m SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
|
8525
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
8526
|
+
[1m[35mSQL (4.0ms)[0m INSERT INTO "green_flag_site_visitors" ("created_at", "updated_at", "user_id", "visitor_code") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Thu, 06 Aug 2015 23:59:54 UTC +00:00], ["updated_at", Thu, 06 Aug 2015 23:59:54 UTC +00:00], ["user_id", 1], ["visitor_code", "e7cdb695-748f-4322-9ff5-90a6f07e84a4"]]
|
8527
|
+
[1m[36m (0.5ms)[0m [1mCOMMIT[0m
|
8528
|
+
[1m[35mGreenFlag::FeatureDecision Load (0.5ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 3 LIMIT 1
|
8529
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
8530
|
+
[1m[35mSQL (3.5ms)[0m INSERT INTO "green_flag_feature_decisions" ("created_at", "enabled", "feature_id", "manual", "rule_id", "site_visitor_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Thu, 06 Aug 2015 23:59:55 UTC +00:00], ["enabled", true], ["feature_id", 2], ["manual", true], ["rule_id", nil], ["site_visitor_id", 3], ["updated_at", Thu, 06 Aug 2015 23:59:55 UTC +00:00]]
|
8531
|
+
[1m[36m (0.4ms)[0m [1mCOMMIT[0m
|
8532
|
+
Completed 200 OK in 105.8ms (Views: 0.1ms | ActiveRecord: 26.2ms)
|
8533
|
+
|
8534
|
+
|
8535
|
+
Started DELETE "/green_flag/admin/features/2/white_list_users/1" for 127.0.0.1 at 2015-08-06 19:59:59 -0400
|
8536
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#destroy as JSON
|
8537
|
+
Parameters: {"feature_id"=>"2", "id"=>"1"}
|
8538
|
+
[1m[35mGreenFlag::FeatureDecision Load (1.3ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND (green_flag_site_visitors.user_id = '1') LIMIT 1
|
8539
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8540
|
+
[1m[35mSQL (0.5ms)[0m DELETE FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."id" = $1 [["id", 1]]
|
8541
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
8542
|
+
Completed 200 OK in 11.7ms (Views: 0.1ms | ActiveRecord: 2.9ms)
|
8543
|
+
|
8544
|
+
|
8545
|
+
Started GET "/assets/green_flag/application.css?body=1" for 127.0.0.1 at 2015-08-06 20:00:03 -0400
|
8546
|
+
Served asset /green_flag/application.css - 304 Not Modified (5ms)
|
8547
|
+
|
8548
|
+
|
8549
|
+
Started GET "/assets/green_flag/admin/features.css?body=1" for 127.0.0.1 at 2015-08-06 20:00:03 -0400
|
8550
|
+
Served asset /green_flag/admin/features.css - 304 Not Modified (2ms)
|
8551
|
+
|
8552
|
+
|
8553
|
+
Started GET "/assets/green_flag/admin/rules.css?body=1" for 127.0.0.1 at 2015-08-06 20:00:03 -0400
|
8554
|
+
Served asset /green_flag/admin/rules.css - 304 Not Modified (1ms)
|
8555
|
+
|
8556
|
+
|
8557
|
+
Started GET "/green_flag/admin/features/2" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8558
|
+
Processing by GreenFlag::Admin::FeaturesController#show as HTML
|
8559
|
+
Parameters: {"id"=>"2"}
|
8560
|
+
[1m[35mGreenFlag::Feature Load (0.4ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8561
|
+
Rendered /Users/tim/src/green_flag/app/views/green_flag/admin/features/show.html.erb within layouts/green_flag/application (4.2ms)
|
8562
|
+
Completed 200 OK in 48.7ms (Views: 46.6ms | ActiveRecord: 0.4ms)
|
8563
|
+
|
8564
|
+
|
8565
|
+
Started GET "/assets/green_flag/application.css?body=1" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8566
|
+
Served asset /green_flag/application.css - 200 OK (0ms)
|
8567
|
+
|
8568
|
+
|
8569
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8570
|
+
Served asset /jquery_ujs.js - 200 OK (1ms)
|
8571
|
+
|
8572
|
+
|
8573
|
+
Started GET "/assets/green_flag/admin/rules.js?body=1" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8574
|
+
Served asset /green_flag/admin/rules.js - 200 OK (1ms)
|
8575
|
+
|
8576
|
+
|
8577
|
+
Started GET "/assets/green_flag/admin/rules.css?body=1" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8578
|
+
Served asset /green_flag/admin/rules.css - 200 OK (0ms)
|
8579
|
+
|
8580
|
+
|
8581
|
+
Started GET "/assets/green_flag/admin/features.css?body=1" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8582
|
+
Served asset /green_flag/admin/features.css - 200 OK (0ms)
|
8583
|
+
|
8584
|
+
|
8585
|
+
Started GET "/assets/green_flag/admin/features.js?body=1" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8586
|
+
Served asset /green_flag/admin/features.js - 200 OK (1ms)
|
8587
|
+
|
8588
|
+
|
8589
|
+
Started GET "/assets/green_flag/application.js?body=1" for 127.0.0.1 at 2015-08-06 20:00:30 -0400
|
8590
|
+
Served asset /green_flag/application.js - 200 OK (2ms)
|
8591
|
+
|
8592
|
+
|
8593
|
+
Started GET "/green_flag/admin/features/2/rule_list" for 127.0.0.1 at 2015-08-06 20:00:31 -0400
|
8594
|
+
Processing by GreenFlag::Admin::RuleListsController#show as JSON
|
8595
|
+
Parameters: {"feature_id"=>"2"}
|
8596
|
+
[1m[36mGreenFlag::Feature Load (0.4ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8597
|
+
[1m[35mGreenFlag::Rule Load (0.9ms)[0m SELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 2 AND (version_number = 1) ORDER BY order_by
|
8598
|
+
Completed 200 OK in 42.9ms (Views: 0.1ms | ActiveRecord: 4.8ms)
|
8599
|
+
|
8600
|
+
|
8601
|
+
Started GET "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 20:00:31 -0400
|
8602
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#index as JSON
|
8603
|
+
Parameters: {"feature_id"=>"2"}
|
8604
|
+
[1m[36mGreenFlag::FeatureDecision Load (1.1ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" INNER JOIN "users" ON "users"."id" = "green_flag_site_visitors"."user_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't' AND "green_flag_feature_decisions"."manual" = 't' ORDER BY created_at[0m
|
8605
|
+
Completed 200 OK in 3.7ms (Views: 0.1ms | ActiveRecord: 1.1ms)
|
8606
|
+
|
8607
|
+
|
8608
|
+
Started GET "/green_flag/admin/features/2/feature_decision_summary" for 127.0.0.1 at 2015-08-06 20:00:31 -0400
|
8609
|
+
Processing by GreenFlag::Admin::FeatureDecisionSummariesController#show as JSON
|
8610
|
+
Parameters: {"feature_id"=>"2"}
|
8611
|
+
[1m[35mGreenFlag::Feature Load (0.4ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8612
|
+
[1m[36m (1.6ms)[0m [1mSELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't'[0m
|
8613
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 'f'
|
8614
|
+
Completed 200 OK in 7.0ms (Views: 0.2ms | ActiveRecord: 2.4ms)
|
8615
|
+
|
8616
|
+
|
8617
|
+
Started GET "/green_flag/admin/features/2/current_visitor_status" for 127.0.0.1 at 2015-08-06 20:00:31 -0400
|
8618
|
+
Processing by GreenFlag::Admin::FeaturesController#current_visitor_status as JSON
|
8619
|
+
Parameters: {"id"=>"2"}
|
8620
|
+
[1m[36mGreenFlag::Feature Load (0.4ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8621
|
+
[1m[35mGreenFlag::SiteVisitor Load (0.5ms)[0m SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'ab5c4360-33b0-4606-a349-153a21b66141' LIMIT 1
|
8622
|
+
[1m[36mGreenFlag::FeatureDecision Load (0.7ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 2 LIMIT 1[0m
|
8623
|
+
Completed 200 OK in 5.7ms (Views: 0.2ms | ActiveRecord: 1.7ms)
|
8624
|
+
|
8625
|
+
|
8626
|
+
Started POST "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 20:00:57 -0400
|
8627
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#create as JSON
|
8628
|
+
Parameters: {"email"=>"a@b.com", "feature_id"=>"2", "white_list_user"=>{"email"=>"a@b.com"}}
|
8629
|
+
[1m[35mGreenFlag::Feature Load (0.4ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8630
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'a@b.com' LIMIT 1[0m
|
8631
|
+
[1m[35mGreenFlag::Feature Load (0.3ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'bar' LIMIT 1
|
8632
|
+
[1m[36mGreenFlag::SiteVisitor Load (0.3ms)[0m [1mSELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1[0m
|
8633
|
+
[1m[35mGreenFlag::FeatureDecision Load (0.4ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 3 LIMIT 1
|
8634
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8635
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "green_flag_feature_decisions" ("created_at", "enabled", "feature_id", "manual", "rule_id", "site_visitor_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:00:57 UTC +00:00], ["enabled", true], ["feature_id", 2], ["manual", true], ["rule_id", nil], ["site_visitor_id", 3], ["updated_at", Fri, 07 Aug 2015 00:00:57 UTC +00:00]]
|
8636
|
+
[1m[36m (0.9ms)[0m [1mCOMMIT[0m
|
8637
|
+
Completed 200 OK in 6.9ms (Views: 0.1ms | ActiveRecord: 3.1ms)
|
8638
|
+
|
8639
|
+
|
8640
|
+
Started DELETE "/green_flag/admin/features/2/white_list_users/1" for 127.0.0.1 at 2015-08-06 20:01:01 -0400
|
8641
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#destroy as JSON
|
8642
|
+
Parameters: {"feature_id"=>"2", "id"=>"1"}
|
8643
|
+
[1m[35mGreenFlag::FeatureDecision Load (0.7ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND (green_flag_site_visitors.user_id = '1') LIMIT 1
|
8644
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8645
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."id" = $1 [["id", 2]]
|
8646
|
+
[1m[36m (0.8ms)[0m [1mCOMMIT[0m
|
8647
|
+
Completed 200 OK in 3.8ms (Views: 0.1ms | ActiveRecord: 1.9ms)
|
8648
|
+
|
8649
|
+
|
8650
|
+
Started DELETE "/green_flag/admin/features/2/white_list_users/1" for 127.0.0.1 at 2015-08-06 20:16:00 -0400
|
8651
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#destroy as JSON
|
8652
|
+
Parameters: {"feature_id"=>"2", "id"=>"1"}
|
8653
|
+
[1m[35mGreenFlag::FeatureDecision Load (0.6ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND (green_flag_site_visitors.user_id = '1') LIMIT 1
|
8654
|
+
Completed 500 Internal Server Error in 1.6ms
|
8655
|
+
|
8656
|
+
NoMethodError (undefined method `destroy' for nil:NilClass):
|
8657
|
+
/Users/tim/src/green_flag/app/controllers/green_flag/admin/white_list_users_controller.rb:33:in `destroy'
|
8658
|
+
actionpack (3.2.22) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
|
8659
|
+
actionpack (3.2.22) lib/abstract_controller/base.rb:167:in `process_action'
|
8660
|
+
actionpack (3.2.22) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
8661
|
+
actionpack (3.2.22) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
|
8662
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:425:in `_run__1116895080392220193__process_action__566392267269644479__callbacks'
|
8663
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `__run_callback'
|
8664
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
|
8665
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
8666
|
+
actionpack (3.2.22) lib/abstract_controller/callbacks.rb:17:in `process_action'
|
8667
|
+
actionpack (3.2.22) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
8668
|
+
actionpack (3.2.22) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
|
8669
|
+
activesupport (3.2.22) lib/active_support/notifications.rb:123:in `block in instrument'
|
8670
|
+
activesupport (3.2.22) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
8671
|
+
activesupport (3.2.22) lib/active_support/notifications.rb:123:in `instrument'
|
8672
|
+
actionpack (3.2.22) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
|
8673
|
+
actionpack (3.2.22) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
|
8674
|
+
activerecord (3.2.22) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
8675
|
+
actionpack (3.2.22) lib/abstract_controller/base.rb:121:in `process'
|
8676
|
+
actionpack (3.2.22) lib/abstract_controller/rendering.rb:45:in `process'
|
8677
|
+
actionpack (3.2.22) lib/action_controller/metal.rb:203:in `dispatch'
|
8678
|
+
actionpack (3.2.22) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
|
8679
|
+
actionpack (3.2.22) lib/action_controller/metal.rb:246:in `block in action'
|
8680
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:73:in `call'
|
8681
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
8682
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:36:in `call'
|
8683
|
+
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
8684
|
+
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
8685
|
+
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
8686
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:608:in `call'
|
8687
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
8688
|
+
railties (3.2.22) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
8689
|
+
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
8690
|
+
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
8691
|
+
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
8692
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:608:in `call'
|
8693
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
|
8694
|
+
rack (1.4.7) lib/rack/etag.rb:23:in `call'
|
8695
|
+
rack (1.4.7) lib/rack/conditionalget.rb:35:in `call'
|
8696
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/head.rb:14:in `call'
|
8697
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
|
8698
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/flash.rb:242:in `call'
|
8699
|
+
rack (1.4.7) lib/rack/session/abstract/id.rb:210:in `context'
|
8700
|
+
rack (1.4.7) lib/rack/session/abstract/id.rb:205:in `call'
|
8701
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/cookies.rb:341:in `call'
|
8702
|
+
activerecord (3.2.22) lib/active_record/query_cache.rb:64:in `call'
|
8703
|
+
activerecord (3.2.22) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
8704
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
8705
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `_run__1204750802795865260__call__304914188283302326__callbacks'
|
8706
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `__run_callback'
|
8707
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
8708
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
8709
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
8710
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/reloader.rb:65:in `call'
|
8711
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
8712
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
8713
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
8714
|
+
railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
|
8715
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
|
8716
|
+
activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
|
8717
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
|
8718
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
8719
|
+
rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
|
8720
|
+
rack (1.4.7) lib/rack/runtime.rb:17:in `call'
|
8721
|
+
activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
8722
|
+
rack (1.4.7) lib/rack/lock.rb:15:in `call'
|
8723
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
|
8724
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
8725
|
+
railties (3.2.22) lib/rails/application.rb:231:in `call'
|
8726
|
+
rack (1.4.7) lib/rack/content_length.rb:14:in `call'
|
8727
|
+
railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
|
8728
|
+
rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
|
8729
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
8730
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
8731
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
8732
|
+
|
8733
|
+
|
8734
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (0.8ms)
|
8735
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (0.6ms)
|
8736
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (5.0ms)
|
8737
|
+
|
8738
|
+
|
8739
|
+
Started GET "/green_flag/admin/features/2" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8740
|
+
Processing by GreenFlag::Admin::FeaturesController#show as HTML
|
8741
|
+
Parameters: {"id"=>"2"}
|
8742
|
+
[1m[36mGreenFlag::Feature Load (0.3ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8743
|
+
Rendered /Users/tim/src/green_flag/app/views/green_flag/admin/features/show.html.erb within layouts/green_flag/application (1.4ms)
|
8744
|
+
Completed 200 OK in 5.8ms (Views: 4.7ms | ActiveRecord: 0.3ms)
|
8745
|
+
|
8746
|
+
|
8747
|
+
Started GET "/assets/green_flag/application.css?body=1" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8748
|
+
Served asset /green_flag/application.css - 200 OK (0ms)
|
8749
|
+
|
8750
|
+
|
8751
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8752
|
+
Served asset /jquery_ujs.js - 200 OK (0ms)
|
8753
|
+
|
8754
|
+
|
8755
|
+
Started GET "/assets/green_flag/admin/features.css?body=1" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8756
|
+
Served asset /green_flag/admin/features.css - 200 OK (0ms)
|
8757
|
+
|
8758
|
+
|
8759
|
+
Started GET "/assets/green_flag/admin/rules.css?body=1" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8760
|
+
Served asset /green_flag/admin/rules.css - 200 OK (0ms)
|
8761
|
+
|
8762
|
+
|
8763
|
+
Started GET "/assets/green_flag/admin/features.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8764
|
+
Served asset /green_flag/admin/features.js - 200 OK (0ms)
|
8765
|
+
|
8766
|
+
|
8767
|
+
Started GET "/assets/green_flag/admin/rules.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8768
|
+
Served asset /green_flag/admin/rules.js - 200 OK (0ms)
|
8769
|
+
|
8770
|
+
|
8771
|
+
Started GET "/assets/green_flag/application.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8772
|
+
Served asset /green_flag/application.js - 200 OK (0ms)
|
8773
|
+
|
8774
|
+
|
8775
|
+
Started GET "/green_flag/admin/features/2/rule_list" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8776
|
+
Processing by GreenFlag::Admin::RuleListsController#show as JSON
|
8777
|
+
Parameters: {"feature_id"=>"2"}
|
8778
|
+
[1m[35mGreenFlag::Feature Load (0.5ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8779
|
+
[1m[36mGreenFlag::Rule Load (2.4ms)[0m [1mSELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 2 AND (version_number = 1) ORDER BY order_by[0m
|
8780
|
+
Completed 200 OK in 5.3ms (Views: 0.1ms | ActiveRecord: 2.8ms)
|
8781
|
+
|
8782
|
+
|
8783
|
+
Started GET "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8784
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#index as JSON
|
8785
|
+
Parameters: {"feature_id"=>"2"}
|
8786
|
+
[1m[35mGreenFlag::FeatureDecision Load (1.6ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" INNER JOIN "users" ON "users"."id" = "green_flag_site_visitors"."user_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't' AND "green_flag_feature_decisions"."manual" = 't' ORDER BY created_at
|
8787
|
+
Completed 200 OK in 4.3ms (Views: 0.1ms | ActiveRecord: 1.6ms)
|
8788
|
+
|
8789
|
+
|
8790
|
+
Started GET "/green_flag/admin/features/2/current_visitor_status" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8791
|
+
Processing by GreenFlag::Admin::FeaturesController#current_visitor_status as JSON
|
8792
|
+
Parameters: {"id"=>"2"}
|
8793
|
+
[1m[36mGreenFlag::Feature Load (1.8ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8794
|
+
[1m[35mGreenFlag::SiteVisitor Load (1.0ms)[0m SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'ab5c4360-33b0-4606-a349-153a21b66141' LIMIT 1
|
8795
|
+
[1m[36mGreenFlag::FeatureDecision Load (0.4ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 2 LIMIT 1[0m
|
8796
|
+
Completed 200 OK in 5.2ms (Views: 0.1ms | ActiveRecord: 3.2ms)
|
8797
|
+
|
8798
|
+
|
8799
|
+
Started GET "/green_flag/admin/features/2/feature_decision_summary" for 127.0.0.1 at 2015-08-06 20:16:06 -0400
|
8800
|
+
Processing by GreenFlag::Admin::FeatureDecisionSummariesController#show as JSON
|
8801
|
+
Parameters: {"feature_id"=>"2"}
|
8802
|
+
[1m[35mGreenFlag::Feature Load (0.2ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8803
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't'[0m
|
8804
|
+
[1m[35m (0.5ms)[0m SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 'f'
|
8805
|
+
Completed 200 OK in 4.4ms (Views: 0.2ms | ActiveRecord: 1.2ms)
|
8806
|
+
|
8807
|
+
|
8808
|
+
Started GET "/green_flag/admin/features/2" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8809
|
+
Processing by GreenFlag::Admin::FeaturesController#show as HTML
|
8810
|
+
Parameters: {"id"=>"2"}
|
8811
|
+
[1m[36mGreenFlag::Feature Load (0.3ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8812
|
+
Rendered /Users/tim/src/green_flag/app/views/green_flag/admin/features/show.html.erb within layouts/green_flag/application (1.1ms)
|
8813
|
+
Completed 200 OK in 5.3ms (Views: 4.3ms | ActiveRecord: 0.3ms)
|
8814
|
+
|
8815
|
+
|
8816
|
+
Started GET "/assets/green_flag/admin/features.css?body=1" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8817
|
+
Served asset /green_flag/admin/features.css - 200 OK (0ms)
|
8818
|
+
|
8819
|
+
|
8820
|
+
Started GET "/assets/green_flag/admin/rules.css?body=1" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8821
|
+
Served asset /green_flag/admin/rules.css - 200 OK (0ms)
|
8822
|
+
|
8823
|
+
|
8824
|
+
Started GET "/assets/green_flag/admin/features.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8825
|
+
Served asset /green_flag/admin/features.js - 200 OK (0ms)
|
8826
|
+
|
8827
|
+
|
8828
|
+
Started GET "/assets/green_flag/application.css?body=1" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8829
|
+
Served asset /green_flag/application.css - 200 OK (0ms)
|
8830
|
+
|
8831
|
+
|
8832
|
+
Started GET "/assets/jquery_ujs.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8833
|
+
Served asset /jquery_ujs.js - 200 OK (0ms)
|
8834
|
+
|
8835
|
+
|
8836
|
+
Started GET "/assets/green_flag/admin/rules.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8837
|
+
Served asset /green_flag/admin/rules.js - 200 OK (0ms)
|
8838
|
+
|
8839
|
+
|
8840
|
+
Started GET "/assets/green_flag/application.js?body=1" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8841
|
+
Served asset /green_flag/application.js - 200 OK (0ms)
|
8842
|
+
|
8843
|
+
|
8844
|
+
Started GET "/green_flag/admin/features/2/rule_list" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8845
|
+
Processing by GreenFlag::Admin::RuleListsController#show as JSON
|
8846
|
+
Parameters: {"feature_id"=>"2"}
|
8847
|
+
[1m[35mGreenFlag::Feature Load (2.2ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8848
|
+
[1m[36mGreenFlag::Rule Load (1.5ms)[0m [1mSELECT "green_flag_rules".* FROM "green_flag_rules" WHERE "green_flag_rules"."feature_id" = 2 AND (version_number = 1) ORDER BY order_by[0m
|
8849
|
+
Completed 200 OK in 5.7ms (Views: 0.1ms | ActiveRecord: 3.7ms)
|
8850
|
+
|
8851
|
+
|
8852
|
+
Started GET "/green_flag/admin/features/2/current_visitor_status" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8853
|
+
Processing by GreenFlag::Admin::FeaturesController#current_visitor_status as JSON
|
8854
|
+
Parameters: {"id"=>"2"}
|
8855
|
+
[1m[35mGreenFlag::Feature Load (0.2ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8856
|
+
[1m[36mGreenFlag::SiteVisitor Load (0.4ms)[0m [1mSELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."visitor_code" = 'ab5c4360-33b0-4606-a349-153a21b66141' LIMIT 1[0m
|
8857
|
+
[1m[35mGreenFlag::FeatureDecision Load (0.4ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 2 LIMIT 1
|
8858
|
+
Completed 200 OK in 2.5ms (Views: 0.1ms | ActiveRecord: 1.0ms)
|
8859
|
+
|
8860
|
+
|
8861
|
+
Started GET "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8862
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#index as JSON
|
8863
|
+
Parameters: {"feature_id"=>"2"}
|
8864
|
+
[1m[36mGreenFlag::FeatureDecision Load (1.2ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" INNER JOIN "users" ON "users"."id" = "green_flag_site_visitors"."user_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't' AND "green_flag_feature_decisions"."manual" = 't' ORDER BY created_at[0m
|
8865
|
+
Completed 200 OK in 2.3ms (Views: 0.1ms | ActiveRecord: 1.2ms)
|
8866
|
+
|
8867
|
+
|
8868
|
+
Started GET "/green_flag/admin/features/2/feature_decision_summary" for 127.0.0.1 at 2015-08-06 20:16:33 -0400
|
8869
|
+
Processing by GreenFlag::Admin::FeatureDecisionSummariesController#show as JSON
|
8870
|
+
Parameters: {"feature_id"=>"2"}
|
8871
|
+
[1m[35mGreenFlag::Feature Load (0.2ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8872
|
+
[1m[36m (0.4ms)[0m [1mSELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 't'[0m
|
8873
|
+
[1m[35m (0.3ms)[0m SELECT COUNT(*) FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."enabled" = 'f'
|
8874
|
+
Completed 200 OK in 3.7ms (Views: 0.2ms | ActiveRecord: 0.9ms)
|
8875
|
+
|
8876
|
+
|
8877
|
+
Started POST "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 20:16:44 -0400
|
8878
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#create as JSON
|
8879
|
+
Parameters: {"email"=>"a@b.com", "feature_id"=>"2", "white_list_user"=>{"email"=>"a@b.com"}}
|
8880
|
+
[1m[36mGreenFlag::Feature Load (0.3ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1[0m [["id", "2"]]
|
8881
|
+
[1m[35mUser Load (0.4ms)[0m SELECT "users".* FROM "users" WHERE "users"."email" = 'a@b.com' LIMIT 1
|
8882
|
+
[1m[36mGreenFlag::Feature Load (0.4ms)[0m [1mSELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'bar' LIMIT 1[0m
|
8883
|
+
[1m[35mGreenFlag::SiteVisitor Load (0.4ms)[0m SELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1
|
8884
|
+
[1m[36mGreenFlag::FeatureDecision Load (0.4ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 3 LIMIT 1[0m
|
8885
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8886
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "green_flag_feature_decisions" ("created_at", "enabled", "feature_id", "manual", "rule_id", "site_visitor_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"[0m [["created_at", Fri, 07 Aug 2015 00:16:44 UTC +00:00], ["enabled", true], ["feature_id", 2], ["manual", true], ["rule_id", nil], ["site_visitor_id", 3], ["updated_at", Fri, 07 Aug 2015 00:16:44 UTC +00:00]]
|
8887
|
+
[1m[35m (1.1ms)[0m COMMIT
|
8888
|
+
Completed 200 OK in 7.5ms (Views: 0.1ms | ActiveRecord: 3.4ms)
|
8889
|
+
|
8890
|
+
|
8891
|
+
Started DELETE "/green_flag/admin/features/2/white_list_users/1" for 127.0.0.1 at 2015-08-06 20:16:56 -0400
|
8892
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#destroy as JSON
|
8893
|
+
Parameters: {"feature_id"=>"2", "id"=>"1"}
|
8894
|
+
[1m[36mGreenFlag::FeatureDecision Load (0.8ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND (green_flag_site_visitors.user_id = '1') LIMIT 1[0m
|
8895
|
+
[1m[35m (0.1ms)[0m BEGIN
|
8896
|
+
[1m[36mSQL (0.3ms)[0m [1mDELETE FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."id" = $1[0m [["id", 3]]
|
8897
|
+
[1m[35m (0.9ms)[0m COMMIT
|
8898
|
+
Completed 200 OK in 3.9ms (Views: 0.1ms | ActiveRecord: 2.1ms)
|
8899
|
+
|
8900
|
+
|
8901
|
+
Started DELETE "/green_flag/admin/features/2/white_list_users/1" for 127.0.0.1 at 2015-08-06 20:21:31 -0400
|
8902
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#destroy as JSON
|
8903
|
+
Parameters: {"feature_id"=>"2", "id"=>"1"}
|
8904
|
+
[1m[36mGreenFlag::FeatureDecision Load (0.7ms)[0m [1mSELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND (green_flag_site_visitors.user_id = '1') LIMIT 1[0m
|
8905
|
+
Completed 500 Internal Server Error in 2.1ms
|
8906
|
+
|
8907
|
+
NoMethodError (undefined method `destroy' for nil:NilClass):
|
8908
|
+
/Users/tim/src/green_flag/app/controllers/green_flag/admin/white_list_users_controller.rb:33:in `destroy'
|
8909
|
+
actionpack (3.2.22) lib/action_controller/metal/implicit_render.rb:4:in `send_action'
|
8910
|
+
actionpack (3.2.22) lib/abstract_controller/base.rb:167:in `process_action'
|
8911
|
+
actionpack (3.2.22) lib/action_controller/metal/rendering.rb:10:in `process_action'
|
8912
|
+
actionpack (3.2.22) lib/abstract_controller/callbacks.rb:18:in `block in process_action'
|
8913
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:425:in `_run__1116895080392220193__process_action__566392267269644479__callbacks'
|
8914
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `__run_callback'
|
8915
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
|
8916
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
8917
|
+
actionpack (3.2.22) lib/abstract_controller/callbacks.rb:17:in `process_action'
|
8918
|
+
actionpack (3.2.22) lib/action_controller/metal/rescue.rb:29:in `process_action'
|
8919
|
+
actionpack (3.2.22) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
|
8920
|
+
activesupport (3.2.22) lib/active_support/notifications.rb:123:in `block in instrument'
|
8921
|
+
activesupport (3.2.22) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
|
8922
|
+
activesupport (3.2.22) lib/active_support/notifications.rb:123:in `instrument'
|
8923
|
+
actionpack (3.2.22) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
|
8924
|
+
actionpack (3.2.22) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
|
8925
|
+
activerecord (3.2.22) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
|
8926
|
+
actionpack (3.2.22) lib/abstract_controller/base.rb:121:in `process'
|
8927
|
+
actionpack (3.2.22) lib/abstract_controller/rendering.rb:45:in `process'
|
8928
|
+
actionpack (3.2.22) lib/action_controller/metal.rb:203:in `dispatch'
|
8929
|
+
actionpack (3.2.22) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
|
8930
|
+
actionpack (3.2.22) lib/action_controller/metal.rb:246:in `block in action'
|
8931
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:73:in `call'
|
8932
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
|
8933
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:36:in `call'
|
8934
|
+
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
8935
|
+
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
8936
|
+
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
8937
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:608:in `call'
|
8938
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
8939
|
+
railties (3.2.22) lib/rails/railtie/configurable.rb:30:in `method_missing'
|
8940
|
+
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
|
8941
|
+
journey (1.0.4) lib/journey/router.rb:56:in `each'
|
8942
|
+
journey (1.0.4) lib/journey/router.rb:56:in `call'
|
8943
|
+
actionpack (3.2.22) lib/action_dispatch/routing/route_set.rb:608:in `call'
|
8944
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
|
8945
|
+
rack (1.4.7) lib/rack/etag.rb:23:in `call'
|
8946
|
+
rack (1.4.7) lib/rack/conditionalget.rb:35:in `call'
|
8947
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/head.rb:14:in `call'
|
8948
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
|
8949
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/flash.rb:242:in `call'
|
8950
|
+
rack (1.4.7) lib/rack/session/abstract/id.rb:210:in `context'
|
8951
|
+
rack (1.4.7) lib/rack/session/abstract/id.rb:205:in `call'
|
8952
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/cookies.rb:341:in `call'
|
8953
|
+
activerecord (3.2.22) lib/active_record/query_cache.rb:64:in `call'
|
8954
|
+
activerecord (3.2.22) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
|
8955
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
|
8956
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `_run__1204750802795865260__call__304914188283302326__callbacks'
|
8957
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:405:in `__run_callback'
|
8958
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
|
8959
|
+
activesupport (3.2.22) lib/active_support/callbacks.rb:81:in `run_callbacks'
|
8960
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
|
8961
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/reloader.rb:65:in `call'
|
8962
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
|
8963
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
|
8964
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
|
8965
|
+
railties (3.2.22) lib/rails/rack/logger.rb:32:in `call_app'
|
8966
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `block in call'
|
8967
|
+
activesupport (3.2.22) lib/active_support/tagged_logging.rb:22:in `tagged'
|
8968
|
+
railties (3.2.22) lib/rails/rack/logger.rb:16:in `call'
|
8969
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/request_id.rb:22:in `call'
|
8970
|
+
rack (1.4.7) lib/rack/methodoverride.rb:21:in `call'
|
8971
|
+
rack (1.4.7) lib/rack/runtime.rb:17:in `call'
|
8972
|
+
activesupport (3.2.22) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
|
8973
|
+
rack (1.4.7) lib/rack/lock.rb:15:in `call'
|
8974
|
+
actionpack (3.2.22) lib/action_dispatch/middleware/static.rb:83:in `call'
|
8975
|
+
railties (3.2.22) lib/rails/engine.rb:484:in `call'
|
8976
|
+
railties (3.2.22) lib/rails/application.rb:231:in `call'
|
8977
|
+
rack (1.4.7) lib/rack/content_length.rb:14:in `call'
|
8978
|
+
railties (3.2.22) lib/rails/rack/log_tailer.rb:17:in `call'
|
8979
|
+
rack (1.4.7) lib/rack/handler/webrick.rb:59:in `service'
|
8980
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
|
8981
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
|
8982
|
+
/Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
|
8983
|
+
|
8984
|
+
|
8985
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_trace.erb (1.7ms)
|
8986
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (1.4ms)
|
8987
|
+
Rendered /Users/tim/.rbenv/versions/2.0.0-p353/lib/ruby/gems/2.0.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/templates/rescues/diagnostics.erb within rescues/layout (9.2ms)
|
8988
|
+
|
8989
|
+
|
8990
|
+
Started POST "/green_flag/admin/features/2/white_list_users" for 127.0.0.1 at 2015-08-06 20:21:46 -0400
|
8991
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#create as JSON
|
8992
|
+
Parameters: {"email"=>"a@b.com", "feature_id"=>"2", "white_list_user"=>{"email"=>"a@b.com"}}
|
8993
|
+
[1m[35mGreenFlag::Feature Load (0.2ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."id" = $1 LIMIT 1 [["id", "2"]]
|
8994
|
+
[1m[36mUser Load (0.3ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."email" = 'a@b.com' LIMIT 1[0m
|
8995
|
+
[1m[35mGreenFlag::Feature Load (0.4ms)[0m SELECT "green_flag_features".* FROM "green_flag_features" WHERE "green_flag_features"."code" = 'bar' LIMIT 1
|
8996
|
+
[1m[36mGreenFlag::SiteVisitor Load (0.3ms)[0m [1mSELECT "green_flag_site_visitors".* FROM "green_flag_site_visitors" WHERE "green_flag_site_visitors"."user_id" = 1 LIMIT 1[0m
|
8997
|
+
[1m[35mGreenFlag::FeatureDecision Load (0.3ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND "green_flag_feature_decisions"."site_visitor_id" = 3 LIMIT 1
|
8998
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
8999
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "green_flag_feature_decisions" ("created_at", "enabled", "feature_id", "manual", "rule_id", "site_visitor_id", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["created_at", Fri, 07 Aug 2015 00:21:46 UTC +00:00], ["enabled", true], ["feature_id", 2], ["manual", true], ["rule_id", nil], ["site_visitor_id", 3], ["updated_at", Fri, 07 Aug 2015 00:21:46 UTC +00:00]]
|
9000
|
+
[1m[36m (1.0ms)[0m [1mCOMMIT[0m
|
9001
|
+
Completed 200 OK in 7.0ms (Views: 0.1ms | ActiveRecord: 3.1ms)
|
9002
|
+
|
9003
|
+
|
9004
|
+
Started DELETE "/green_flag/admin/features/2/white_list_users/1" for 127.0.0.1 at 2015-08-06 20:22:07 -0400
|
9005
|
+
Processing by GreenFlag::Admin::WhiteListUsersController#destroy as JSON
|
9006
|
+
Parameters: {"feature_id"=>"2", "id"=>"1"}
|
9007
|
+
[1m[35mGreenFlag::FeatureDecision Load (0.7ms)[0m SELECT "green_flag_feature_decisions".* FROM "green_flag_feature_decisions" INNER JOIN "green_flag_site_visitors" ON "green_flag_site_visitors"."id" = "green_flag_feature_decisions"."site_visitor_id" WHERE "green_flag_feature_decisions"."feature_id" = 2 AND (green_flag_site_visitors.user_id = '1') LIMIT 1
|
9008
|
+
[1m[36m (0.1ms)[0m [1mBEGIN[0m
|
9009
|
+
[1m[35mSQL (0.3ms)[0m DELETE FROM "green_flag_feature_decisions" WHERE "green_flag_feature_decisions"."id" = $1 [["id", 4]]
|
9010
|
+
[1m[36m (0.7ms)[0m [1mCOMMIT[0m
|
9011
|
+
Completed 200 OK in 3.6ms (Views: 0.1ms | ActiveRecord: 1.8ms)
|
9012
|
+
Connecting to database specified by database.yml
|
9013
|
+
[1m[36m (1.2ms)[0m [1mSELECT "schema_migrations"."version" FROM "schema_migrations" [0m
|
9014
|
+
[1m[35m (264.2ms)[0m DROP DATABASE IF EXISTS "green_flag_dummy_test"
|
9015
|
+
[1m[36m (319.5ms)[0m [1mCREATE DATABASE "green_flag_dummy_test" ENCODING = 'unicode'[0m
|
9016
|
+
[1m[35m (9.6ms)[0m CREATE TABLE "green_flag_feature_decisions" ("id" serial primary key, "feature_id" integer NOT NULL, "site_visitor_id" integer NOT NULL, "enabled" boolean, "manual" boolean, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "rule_id" integer)
|
9017
|
+
[1m[36m (1.4ms)[0m [1mCREATE UNIQUE INDEX "index_gf_feature_decisions_on_site_visitor_id_feature_id" ON "green_flag_feature_decisions" ("site_visitor_id", "feature_id")[0m
|
9018
|
+
[1m[35m (2.7ms)[0m CREATE TABLE "green_flag_feature_events" ("id" serial primary key, "feature_id" integer NOT NULL, "event_type_code" integer NOT NULL, "count" integer NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL)
|
9019
|
+
[1m[36m (1.2ms)[0m [1mCREATE INDEX "index_green_flag_feature_events_on_event_type_code" ON "green_flag_feature_events" ("event_type_code")[0m
|
9020
|
+
[1m[35m (1.1ms)[0m CREATE INDEX "index_green_flag_feature_events_on_feature_id" ON "green_flag_feature_events" ("feature_id")
|
9021
|
+
[1m[36m (3.9ms)[0m [1mCREATE TABLE "green_flag_features" ("id" serial primary key, "code" character varying(255) NOT NULL, "description" character varying(255), "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) [0m
|
9022
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_green_flag_features_on_code" ON "green_flag_features" ("code")
|
9023
|
+
[1m[36m (2.6ms)[0m [1mCREATE TABLE "green_flag_rules" ("id" serial primary key, "group_key" character varying(255) NOT NULL, "feature_id" integer NOT NULL, "order_by" integer NOT NULL, "percentage" integer DEFAULT 0 NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "version_number" integer DEFAULT 1 NOT NULL) [0m
|
9024
|
+
[1m[35m (1.1ms)[0m CREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_group_key" ON "green_flag_rules" ("feature_id", "group_key", "version_number")
|
9025
|
+
[1m[36m (1.1ms)[0m [1mCREATE UNIQUE INDEX "index_green_flag_rules_on_feature_version_and_order_by" ON "green_flag_rules" ("feature_id", "order_by", "version_number")[0m
|
9026
|
+
[1m[35m (2.5ms)[0m CREATE TABLE "green_flag_site_visitors" ("id" serial primary key, "user_id" integer, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "visitor_code" character varying(255) NOT NULL)
|
9027
|
+
[1m[36m (1.0ms)[0m [1mCREATE UNIQUE INDEX "index_green_flag_site_visitors_on_user_id" ON "green_flag_site_visitors" ("user_id")[0m
|
9028
|
+
[1m[35m (1.0ms)[0m CREATE UNIQUE INDEX "index_green_flag_site_visitors_on_visitor_code" ON "green_flag_site_visitors" ("visitor_code")
|
9029
|
+
[1m[36m (2.4ms)[0m [1mCREATE TABLE "users" ("id" serial primary key, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL, "email" character varying(255)) [0m
|
9030
|
+
[1m[35m (1.3ms)[0m CREATE TABLE "schema_migrations" ("version" character varying(255) NOT NULL)
|
9031
|
+
[1m[36m (1.3ms)[0m [1mCREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")[0m
|
9032
|
+
[1m[35m (0.5ms)[0m SELECT version FROM "schema_migrations"
|
9033
|
+
[1m[36m (0.6ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150726204409')[0m
|
9034
|
+
[1m[35m (0.4ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150726195118')
|
9035
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140502112602')[0m
|
9036
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140502221059')
|
9037
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140502221423')[0m
|
9038
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140505204611')
|
9039
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140511045110')[0m
|
9040
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140513203728')
|
9041
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20140514202337')[0m
|
9042
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20140516214909')
|
9043
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150211214159')[0m
|
9044
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150213191101')
|
9045
|
+
[1m[36m (0.4ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150218035000')[0m
|
9046
|
+
[1m[35m (0.3ms)[0m INSERT INTO "schema_migrations" (version) VALUES ('20150218035805')
|
9047
|
+
[1m[36m (0.3ms)[0m [1mINSERT INTO "schema_migrations" (version) VALUES ('20150218171852')[0m
|