Created
November 24, 2011 15:08
-
-
Save tmaier/1391540 to your computer and use it in GitHub Desktop.
Trouble with polymorphic relations see mongoid#1433
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
noname:SampleApp tobiasmaier$ rm log/* | |
noname:SampleApp tobiasmaier$ bin/rspec spec/requests/tasks_spec.rb | |
Run filtered including {:focus=>true} | |
F | |
Failures: | |
1) Tasks GET /projects/12345/tasks/12345/edit edit | |
Failure/Error: page.should have_content "2010-08-01" | |
expected there to be content "2010-08-01" in "\n\nProjects > Mein Projekt 1 > Tasks > Kellergeschoss\n\nTask was successfully updated.\nKellergeschoss\nDetails\nA001\nKellergeschoss\nMein Projekt 1\nTarget Values\n\n2010-01-01 00:00:00 +0100\n2010-01-10 00:00:00 +0100\n\nWork Breakdown Structure\nErdgeschoss\nObergeschoss\nEdit\n|\nBack\n\n" | |
# ./spec/requests/tasks_spec.rb:202:in `block (4 levels) in <top (required)>' | |
# ./spec/requests/tasks_spec.rb:194:in `block (3 levels) in <top (required)>' | |
Finished in 14.22 seconds | |
1 example, 1 failure | |
Failed examples: | |
rspec ./spec/requests/tasks_spec.rb:158 # Tasks GET /projects/12345/tasks/12345/edit edit | |
noname:SampleApp tobiasmaier$ mv l | |
lib/ log/ | |
noname:SampleApp tobiasmaier$ mv log/test.log log/embedded_polymorphic.log | |
noname:SampleApp tobiasmaier$ bin/rspec spec/requests/tasks_spec.rb | |
Run filtered including {:focus=>true} | |
. | |
Finished in 15.49 seconds | |
1 example, 0 failures | |
noname:SampleApp tobiasmaier$ mv log/test.log log/embedded.log | |
noname:SampleApp tobiasmaier$ bin/rspec spec/requests/tasks_spec.rb | |
Run filtered including {:focus=>true} | |
F | |
Failures: | |
1) Tasks GET /projects/12345/tasks/12345/edit edit | |
Failure/Error: page.should have_content "2010-08-01" | |
expected there to be content "2010-08-01" in "\n\nProjects > Mein Projekt 1 > Tasks > Kellergeschoss\n\nTask was successfully updated.\nKellergeschoss\nDetails\nA001\nKellergeschoss\nMein Projekt 1\nTarget Values\n\n2010-01-01 00:00:00 +0100\n2010-01-10 00:00:00 +0100\n\nWork Breakdown Structure\nErdgeschoss\nObergeschoss\nEdit\n|\nBack\n\n" | |
# ./spec/requests/tasks_spec.rb:202:in `block (4 levels) in <top (required)>' | |
# ./spec/requests/tasks_spec.rb:194:in `block (3 levels) in <top (required)>' | |
Finished in 14.47 seconds | |
1 example, 1 failure | |
Failed examples: | |
rspec ./spec/requests/tasks_spec.rb:158 # Tasks GET /projects/12345/tasks/12345/edit edit | |
noname:SampleApp tobiasmaier$ mv log/test.log log/referenced_polymorphic.log | |
noname:SampleApp tobiasmaier$ bin/rspec spec/requests/tasks_spec.rb | |
Run filtered including {:focus=>true} | |
. | |
Finished in 14.7 seconds | |
1 example, 0 failures | |
noname:SampleApp tobiasmaier$ mv log/test.log log/referenced.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. | |
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 0", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b49499dda573f000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>"[email protected]", :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>/^Hansi\-0\ Hinterseer\-0$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>/^email\-0@example\.com$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
Started GET "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:57:13 +0100 | |
Processing by Devise::SessionsController#new as HTML | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/shared/_links.erb (1.2ms) | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/sessions/new.html.erb within layouts/application (227.3ms) | |
Rendered devise/menu/_registration_items.html.haml (1.3ms) | |
Rendered devise/menu/_login_items.html.haml (1.7ms) | |
Completed 200 OK in 368ms (Views: 367.0ms) | |
Started POST "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:57:13 +0100 | |
Processing by Devise::SessionsController#create as HTML | |
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} | |
MONGODB sample_app_test['participants'].find({:email=>"[email protected]", :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
Redirected to http://www.example.com/ | |
Completed 302 Found in 25ms | |
Started GET "/" for 127.0.0.1 at 2011-11-24 15:57:13 +0100 | |
Processing by HomeController#index as HTML | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['participants'].find({:_type=>{"$in"=>["User"]}}) | |
Rendered home/index.html.haml within layouts/application (3.2ms) | |
Rendered devise/menu/_registration_items.html.haml (0.3ms) | |
Rendered devise/menu/_login_items.html.haml (0.3ms) | |
Completed 200 OK in 59ms (Views: 58.1ms) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"Mein Projekt 1"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b4a499dda573f00000c')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b4a499dda573f00000d')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b4a499dda573f00000e')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000010')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 1", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b4a499dda573f000012')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"CJV E18 0"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b4a499dda573f00000f')}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"001-01", :project_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
Started GET "/projects/4ece5b4a499dda573f000007/tasks/4ece5b4a499dda573f000016/edit" for 127.0.0.1 at 2011-11-24 15:57:14 +0100 | |
Processing by TasksController#edit as HTML | |
Parameters: {"project_id"=>"4ece5b4a499dda573f000007", "id"=>"4ece5b4a499dda573f000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b49499dda573f000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007'), :_id=>BSON::ObjectId('4ece5b4a499dda573f000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"$or"=>[{:_id=>{"$in"=>[BSON::ObjectId('4ece5b4a499dda573f000007')]}}, {:organization_ids=>{"$in"=>[BSON::ObjectId('4ece5b49499dda573f000005')]}}]}).sort([[:name, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:project_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}) | |
Rendered tasks/_form.html.haml (106.0ms) | |
Rendered tasks/edit.html.haml within layouts/application (109.4ms) | |
Rendered devise/menu/_registration_items.html.haml (0.3ms) | |
Rendered devise/menu/_login_items.html.haml (0.3ms) | |
Completed 200 OK in 204ms (Views: 188.2ms) | |
Started PUT "/projects/4ece5b4a499dda573f000007/tasks/4ece5b4a499dda573f000016" for 127.0.0.1 at 2011-11-24 15:57:14 +0100 | |
Processing by TasksController#update as HTML | |
Parameters: {"utf8"=>"✓", "task"=>{"activity_identifier"=>"A001", "title"=>"Kellergeschoss", "project_id"=>"4ece5b4a499dda573f000007", "target_attributes"=>{"start"=>"1.8.2010", "end"=>"8.1.2011", "id"=>"4ece5b4a499dda573f000017"}, "work_breakdown_structure_ids"=>["", "", "", "4ece5b4a499dda573f00000d", "", "4ece5b4a499dda573f00000e"]}, "commit"=>"Update Task", "project_id"=>"4ece5b4a499dda573f000007", "id"=>"4ece5b4a499dda573f000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b49499dda573f000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007'), :_id=>BSON::ObjectId('4ece5b4a499dda573f000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"A001", :_id=>{"$ne"=>BSON::ObjectId('4ece5b4a499dda573f000016')}, :project_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
Redirected to http://www.example.com/projects/4ece5b4a499dda573f000007/tasks/4ece5b4a499dda573f000016 | |
Completed 302 Found in 45ms | |
Started GET "/projects/4ece5b4a499dda573f000007/tasks/4ece5b4a499dda573f000016" for 127.0.0.1 at 2011-11-24 15:57:14 +0100 | |
Processing by TasksController#show as HTML | |
Parameters: {"project_id"=>"4ece5b4a499dda573f000007", "id"=>"4ece5b4a499dda573f000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b49499dda573f000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007'), :_id=>BSON::ObjectId('4ece5b4a499dda573f000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:_id=>{"$in"=>[BSON::ObjectId('4ece5b4a499dda573f00000d'), BSON::ObjectId('4ece5b4a499dda573f00000e')]}}) | |
Rendered tasks/show.html.haml within layouts/application (64.5ms) | |
Rendered devise/menu/_registration_items.html.haml (0.6ms) | |
Rendered devise/menu/_login_items.html.haml (0.6ms) | |
Completed 200 OK in 184ms (Views: 162.2ms) | |
Started GET "/projects/4ece5b4a499dda573f000007/work_breakdown_structures/4ece5b4a499dda573f00000d" for 127.0.0.1 at 2011-11-24 15:57:14 +0100 | |
Processing by WorkBreakdownStructuresController#show as HTML | |
Parameters: {"project_id"=>"4ece5b4a499dda573f000007", "id"=>"4ece5b4a499dda573f00000d"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b49499dda573f000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b49499dda573f000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007'), :_id=>BSON::ObjectId('4ece5b4a499dda573f00000d')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b4a499dda573f000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['tasks'].find({:_id=>{"$in"=>[BSON::ObjectId('4ece5b4a499dda573f000016')]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:_id=>BSON::ObjectId('4ece5b4a499dda573f00000c')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"parent_id"=>BSON::ObjectId('4ece5b4a499dda573f00000d')}, "fields"=>nil}).limit(-1) | |
Rendered work_breakdown_structures/show.html.haml within layouts/application (13.3ms) | |
Rendered devise/menu/_registration_items.html.haml (0.4ms) | |
Rendered devise/menu/_login_items.html.haml (0.4ms) | |
Completed 200 OK in 192ms (Views: 102.1ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. | |
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 0", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b0d499dda56e9000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>"[email protected]", :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>/^Hansi\-0\ Hinterseer\-0$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>/^email\-0@example\.com$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
Started GET "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:56:13 +0100 | |
Processing by Devise::SessionsController#new as HTML | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/shared/_links.erb (1.1ms) | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/sessions/new.html.erb within layouts/application (227.6ms) | |
Rendered devise/menu/_registration_items.html.haml (1.2ms) | |
Rendered devise/menu/_login_items.html.haml (1.7ms) | |
Completed 200 OK in 365ms (Views: 363.6ms) | |
Started POST "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:56:14 +0100 | |
Processing by Devise::SessionsController#create as HTML | |
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} | |
MONGODB sample_app_test['participants'].find({:email=>"[email protected]", :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
Redirected to http://www.example.com/ | |
Completed 302 Found in 26ms | |
Started GET "/" for 127.0.0.1 at 2011-11-24 15:56:14 +0100 | |
Processing by HomeController#index as HTML | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b0d499dda56e9000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['participants'].find({:_type=>{"$in"=>["User"]}}) | |
Rendered home/index.html.haml within layouts/application (3.2ms) | |
Rendered devise/menu/_registration_items.html.haml (0.4ms) | |
Rendered devise/menu/_login_items.html.haml (0.3ms) | |
Completed 200 OK in 61ms (Views: 59.5ms) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"Mein Projekt 1"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b0e499dda56e900000c')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b0e499dda56e900000d')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b0e499dda56e900000e')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000010')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 1", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b0e499dda56e9000012')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"CJV E18 0"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b0e499dda56e900000f')}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"001-01", :project_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
Started GET "/projects/4ece5b0e499dda56e9000007/tasks/4ece5b0e499dda56e9000016/edit" for 127.0.0.1 at 2011-11-24 15:56:14 +0100 | |
Processing by TasksController#edit as HTML | |
Parameters: {"project_id"=>"4ece5b0e499dda56e9000007", "id"=>"4ece5b0e499dda56e9000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b0d499dda56e9000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b0d499dda56e9000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b0d499dda56e9000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007'), :_id=>BSON::ObjectId('4ece5b0e499dda56e9000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"$or"=>[{:_id=>{"$in"=>[BSON::ObjectId('4ece5b0e499dda56e9000007')]}}, {:organization_ids=>{"$in"=>[BSON::ObjectId('4ece5b0d499dda56e9000005')]}}]}).sort([[:name, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:project_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}) | |
Rendered tasks/_form.html.haml (104.8ms) | |
Rendered tasks/edit.html.haml within layouts/application (108.2ms) | |
Rendered devise/menu/_registration_items.html.haml (0.4ms) | |
Rendered devise/menu/_login_items.html.haml (0.4ms) | |
Completed 200 OK in 203ms (Views: 187.3ms) | |
Started PUT "/projects/4ece5b0e499dda56e9000007/tasks/4ece5b0e499dda56e9000016" for 127.0.0.1 at 2011-11-24 15:56:14 +0100 | |
Processing by TasksController#update as HTML | |
Parameters: {"utf8"=>"✓", "task"=>{"activity_identifier"=>"A001", "title"=>"Kellergeschoss", "project_id"=>"4ece5b0e499dda56e9000007", "target_attributes"=>{"start"=>"1.8.2010", "end"=>"8.1.2011", "id"=>"4ece5b0e499dda56e9000017"}, "work_breakdown_structure_ids"=>["", "", "", "4ece5b0e499dda56e900000d", "", "4ece5b0e499dda56e900000e"]}, "commit"=>"Update Task", "project_id"=>"4ece5b0e499dda56e9000007", "id"=>"4ece5b0e499dda56e9000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b0d499dda56e9000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b0d499dda56e9000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b0d499dda56e9000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007'), :_id=>BSON::ObjectId('4ece5b0e499dda56e9000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"A001", :_id=>{"$ne"=>BSON::ObjectId('4ece5b0e499dda56e9000016')}, :project_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
Redirected to http://www.example.com/projects/4ece5b0e499dda56e9000007/tasks/4ece5b0e499dda56e9000016 | |
Completed 302 Found in 41ms | |
Started GET "/projects/4ece5b0e499dda56e9000007/tasks/4ece5b0e499dda56e9000016" for 127.0.0.1 at 2011-11-24 15:56:14 +0100 | |
Processing by TasksController#show as HTML | |
Parameters: {"project_id"=>"4ece5b0e499dda56e9000007", "id"=>"4ece5b0e499dda56e9000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b0d499dda56e9000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b0d499dda56e9000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b0d499dda56e9000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007'), :_id=>BSON::ObjectId('4ece5b0e499dda56e9000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b0e499dda56e9000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b0e499dda56e9000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:_id=>{"$in"=>[BSON::ObjectId('4ece5b0e499dda56e900000d'), BSON::ObjectId('4ece5b0e499dda56e900000e')]}}) | |
Rendered tasks/show.html.haml within layouts/application (69.8ms) | |
Rendered devise/menu/_registration_items.html.haml (0.5ms) | |
Rendered devise/menu/_login_items.html.haml (0.6ms) | |
Completed 200 OK in 188ms (Views: 165.2ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. | |
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 0", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5bcb499dda57ee000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>"[email protected]", :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>/^Hansi\-0\ Hinterseer\-0$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>/^email\-0@example\.com$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
Started GET "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:59:23 +0100 | |
Processing by Devise::SessionsController#new as HTML | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/shared/_links.erb (1.2ms) | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/sessions/new.html.erb within layouts/application (228.2ms) | |
Rendered devise/menu/_registration_items.html.haml (1.4ms) | |
Rendered devise/menu/_login_items.html.haml (2.1ms) | |
Completed 200 OK in 368ms (Views: 366.6ms) | |
Started POST "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:59:24 +0100 | |
Processing by Devise::SessionsController#create as HTML | |
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} | |
MONGODB sample_app_test['participants'].find({:email=>"[email protected]", :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
Redirected to http://www.example.com/ | |
Completed 302 Found in 26ms | |
Started GET "/" for 127.0.0.1 at 2011-11-24 15:59:24 +0100 | |
Processing by HomeController#index as HTML | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['participants'].find({:_type=>{"$in"=>["User"]}}) | |
Rendered home/index.html.haml within layouts/application (3.2ms) | |
Rendered devise/menu/_registration_items.html.haml (0.4ms) | |
Rendered devise/menu/_login_items.html.haml (0.4ms) | |
Completed 200 OK in 21ms (Views: 20.2ms) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"Mein Projekt 1"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5bcc499dda57ee00000c')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5bcc499dda57ee00000d')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5bcc499dda57ee00000e')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000010')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 1", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5bcc499dda57ee000012')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"CJV E18 0"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5bcc499dda57ee00000f')}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"001-01", :project_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
Started GET "/projects/4ece5bcc499dda57ee000007/tasks/4ece5bcc499dda57ee000016/edit" for 127.0.0.1 at 2011-11-24 15:59:24 +0100 | |
Processing by TasksController#edit as HTML | |
Parameters: {"project_id"=>"4ece5bcc499dda57ee000007", "id"=>"4ece5bcc499dda57ee000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5bcb499dda57ee000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007'), :_id=>BSON::ObjectId('4ece5bcc499dda57ee000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['task_values'].find({"task_id"=>BSON::ObjectId('4ece5bcc499dda57ee000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"$or"=>[{:_id=>{"$in"=>[BSON::ObjectId('4ece5bcc499dda57ee000007')]}}, {:organization_ids=>{"$in"=>[BSON::ObjectId('4ece5bcb499dda57ee000005')]}}]}).sort([[:name, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:project_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}) | |
Rendered tasks/_form.html.haml (102.6ms) | |
Rendered tasks/edit.html.haml within layouts/application (106.0ms) | |
Rendered devise/menu/_registration_items.html.haml (0.3ms) | |
Rendered devise/menu/_login_items.html.haml (0.3ms) | |
Completed 200 OK in 200ms (Views: 184.1ms) | |
Started PUT "/projects/4ece5bcc499dda57ee000007/tasks/4ece5bcc499dda57ee000016" for 127.0.0.1 at 2011-11-24 15:59:24 +0100 | |
Processing by TasksController#update as HTML | |
Parameters: {"utf8"=>"✓", "task"=>{"activity_identifier"=>"A001", "title"=>"Kellergeschoss", "project_id"=>"4ece5bcc499dda57ee000007", "target_attributes"=>{"start"=>"1.8.2010", "end"=>"8.1.2011", "id"=>"4ece5bcc499dda57ee000017"}, "work_breakdown_structure_ids"=>["", "", "", "4ece5bcc499dda57ee00000d", "", "4ece5bcc499dda57ee00000e"]}, "commit"=>"Update Task", "project_id"=>"4ece5bcc499dda57ee000007", "id"=>"4ece5bcc499dda57ee000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5bcb499dda57ee000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007'), :_id=>BSON::ObjectId('4ece5bcc499dda57ee000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['task_values'].find({"task_id"=>BSON::ObjectId('4ece5bcc499dda57ee000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"A001", :_id=>{"$ne"=>BSON::ObjectId('4ece5bcc499dda57ee000016')}, :project_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
Redirected to http://www.example.com/projects/4ece5bcc499dda57ee000007/tasks/4ece5bcc499dda57ee000016 | |
Completed 302 Found in 48ms | |
Started GET "/projects/4ece5bcc499dda57ee000007/tasks/4ece5bcc499dda57ee000016" for 127.0.0.1 at 2011-11-24 15:59:24 +0100 | |
Processing by TasksController#show as HTML | |
Parameters: {"project_id"=>"4ece5bcc499dda57ee000007", "id"=>"4ece5bcc499dda57ee000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5bcb499dda57ee000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007'), :_id=>BSON::ObjectId('4ece5bcc499dda57ee000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['task_values'].find({"task_id"=>BSON::ObjectId('4ece5bcc499dda57ee000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:_id=>{"$in"=>[BSON::ObjectId('4ece5bcc499dda57ee00000d'), BSON::ObjectId('4ece5bcc499dda57ee00000e')]}}) | |
Rendered tasks/show.html.haml within layouts/application (12.4ms) | |
Rendered devise/menu/_registration_items.html.haml (0.5ms) | |
Rendered devise/menu/_login_items.html.haml (0.8ms) | |
Completed 200 OK in 171ms (Views: 148.3ms) | |
Started GET "/projects/4ece5bcc499dda57ee000007/work_breakdown_structures/4ece5bcc499dda57ee00000d" for 127.0.0.1 at 2011-11-24 15:59:24 +0100 | |
Processing by WorkBreakdownStructuresController#show as HTML | |
Parameters: {"project_id"=>"4ece5bcc499dda57ee000007", "id"=>"4ece5bcc499dda57ee00000d"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5bcb499dda57ee000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5bcb499dda57ee000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007'), :_id=>BSON::ObjectId('4ece5bcc499dda57ee00000d')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5bcc499dda57ee000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['tasks'].find({:_id=>{"$in"=>[BSON::ObjectId('4ece5bcc499dda57ee000016')]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:_id=>BSON::ObjectId('4ece5bcc499dda57ee00000c')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"parent_id"=>BSON::ObjectId('4ece5bcc499dda57ee00000d')}, "fields"=>nil}).limit(-1) | |
Rendered work_breakdown_structures/show.html.haml within layouts/application (15.4ms) | |
Rendered devise/menu/_registration_items.html.haml (0.5ms) | |
Rendered devise/menu/_login_items.html.haml (0.6ms) | |
Completed 200 OK in 183ms (Views: 156.5ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MongoDB logging. Please note that logging negatively impacts performance and should be disabled for high-performance production apps. | |
MONGODB admin['$cmd'].find({:ismaster=>1}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 0", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b93499dda579d000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>"[email protected]", :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>/^Hansi\-0\ Hinterseer\-0$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:email=>/^email\-0@example\.com$/i, :_type=>{"$in"=>["User"]}}, "fields"=>nil}).limit(-1) | |
Started GET "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:58:27 +0100 | |
Processing by Devise::SessionsController#new as HTML | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/shared/_links.erb (1.1ms) | |
Rendered /Users/tobiasmaier/.rvm/gems/ruby-1.9.2-p290@SampleApp/gems/devise-1.5.1/app/views/devise/sessions/new.html.erb within layouts/application (221.1ms) | |
Rendered devise/menu/_registration_items.html.haml (1.2ms) | |
Rendered devise/menu/_login_items.html.haml (1.8ms) | |
Completed 200 OK in 321ms (Views: 319.4ms) | |
Started POST "/users/sign_in" for 127.0.0.1 at 2011-11-24 15:58:28 +0100 | |
Processing by Devise::SessionsController#create as HTML | |
Parameters: {"utf8"=>"✓", "user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Sign in"} | |
MONGODB sample_app_test['participants'].find({:email=>"[email protected]", :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
Redirected to http://www.example.com/ | |
Completed 302 Found in 25ms | |
Started GET "/" for 127.0.0.1 at 2011-11-24 15:58:28 +0100 | |
Processing by HomeController#index as HTML | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b93499dda579d000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['participants'].find({:_type=>{"$in"=>["User"]}}) | |
Rendered home/index.html.haml within layouts/application (3.2ms) | |
Rendered devise/menu/_registration_items.html.haml (0.3ms) | |
Rendered devise/menu/_login_items.html.haml (0.3ms) | |
Completed 200 OK in 21ms (Views: 19.7ms) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"Mein Projekt 1"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b94499dda579d00000c')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b94499dda579d00000d')}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b94499dda579d00000e')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000010')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"participants", "query"=>{:name=>"Bilfinger Berger 1", :_type=>{"$in"=>["Organization"]}}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b94499dda579d000012')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"projects", "query"=>{:name=>"CJV E18 0"}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>{"$in"=>[]}, :_type=>{"$in"=>["Organization"]}}) | |
MONGODB sample_app_test['work_breakdown_structures'].find({"parent_id"=>BSON::ObjectId('4ece5b94499dda579d00000f')}) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"001-01", :project_id=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['system.namespaces'].find({}) | |
Started GET "/projects/4ece5b94499dda579d000007/tasks/4ece5b94499dda579d000016/edit" for 127.0.0.1 at 2011-11-24 15:58:28 +0100 | |
Processing by TasksController#edit as HTML | |
Parameters: {"project_id"=>"4ece5b94499dda579d000007", "id"=>"4ece5b94499dda579d000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b93499dda579d000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b94499dda579d000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b93499dda579d000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b93499dda579d000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007'), :_id=>BSON::ObjectId('4ece5b94499dda579d000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['task_values'].find({"timeable_id"=>BSON::ObjectId('4ece5b94499dda579d000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b94499dda579d000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({"$or"=>[{:_id=>{"$in"=>[BSON::ObjectId('4ece5b94499dda579d000007')]}}, {:organization_ids=>{"$in"=>[BSON::ObjectId('4ece5b93499dda579d000005')]}}]}).sort([[:name, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:project_id=>BSON::ObjectId('4ece5b94499dda579d000007')}) | |
Rendered tasks/_form.html.haml (104.9ms) | |
Rendered tasks/edit.html.haml within layouts/application (108.3ms) | |
Rendered devise/menu/_registration_items.html.haml (0.3ms) | |
Rendered devise/menu/_login_items.html.haml (0.3ms) | |
Completed 200 OK in 205ms (Views: 188.2ms) | |
Started PUT "/projects/4ece5b94499dda579d000007/tasks/4ece5b94499dda579d000016" for 127.0.0.1 at 2011-11-24 15:58:29 +0100 | |
Processing by TasksController#update as HTML | |
Parameters: {"utf8"=>"✓", "task"=>{"activity_identifier"=>"A001", "title"=>"Kellergeschoss", "project_id"=>"4ece5b94499dda579d000007", "target_attributes"=>{"start"=>"1.8.2010", "end"=>"8.1.2011", "id"=>"4ece5b94499dda579d000017"}, "work_breakdown_structure_ids"=>["", "", "", "4ece5b94499dda579d00000d", "", "4ece5b94499dda579d00000e"]}, "commit"=>"Update Task", "project_id"=>"4ece5b94499dda579d000007", "id"=>"4ece5b94499dda579d000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b93499dda579d000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b94499dda579d000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b93499dda579d000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b93499dda579d000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007'), :_id=>BSON::ObjectId('4ece5b94499dda579d000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['task_values'].find({"timeable_id"=>BSON::ObjectId('4ece5b94499dda579d000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b94499dda579d000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"tasks", "query"=>{:activity_identifier=>"A001", :_id=>{"$ne"=>BSON::ObjectId('4ece5b94499dda579d000016')}, :project_id=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
Redirected to http://www.example.com/projects/4ece5b94499dda579d000007/tasks/4ece5b94499dda579d000016 | |
Completed 302 Found in 44ms | |
Started GET "/projects/4ece5b94499dda579d000007/tasks/4ece5b94499dda579d000016" for 127.0.0.1 at 2011-11-24 15:58:29 +0100 | |
Processing by TasksController#show as HTML | |
Parameters: {"project_id"=>"4ece5b94499dda579d000007", "id"=>"4ece5b94499dda579d000016"} | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b93499dda579d000001'), :_type=>{"$in"=>["User"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b94499dda579d000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['participants'].find({:_id=>BSON::ObjectId('4ece5b93499dda579d000005'), :_type=>{"$in"=>["Organization"]}}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({"owner_id"=>BSON::ObjectId('4ece5b93499dda579d000005')}) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['projects'].find({:_id=>{"$in"=>[]}}) | |
MONGODB sample_app_test['tasks'].find({"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007'), :_id=>BSON::ObjectId('4ece5b94499dda579d000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['task_values'].find({"timeable_id"=>BSON::ObjectId('4ece5b94499dda579d000016')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['projects'].find({:_id=>BSON::ObjectId('4ece5b94499dda579d000007')}).limit(-1).sort([[:_id, :asc]]) | |
MONGODB sample_app_test['$cmd'].find({"count"=>"work_breakdown_structures", "query"=>{"project_id"=>BSON::ObjectId('4ece5b94499dda579d000007')}, "fields"=>nil}).limit(-1) | |
MONGODB sample_app_test['work_breakdown_structures'].find({:_id=>{"$in"=>[BSON::ObjectId('4ece5b94499dda579d00000d'), BSON::ObjectId('4ece5b94499dda579d00000e')]}}) | |
Rendered tasks/show.html.haml within layouts/application (15.2ms) | |
Rendered devise/menu/_registration_items.html.haml (0.5ms) | |
Rendered devise/menu/_login_items.html.haml (0.5ms) | |
Completed 200 OK in 184ms (Views: 162.9ms) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class TasksController < InheritedResources::Base | |
belongs_to :project | |
load_and_authorize_resource :project | |
before_filter :load_collection, only: [:index] | |
load_resource :task, :through => :project_id | |
before_filter :build_objects, :only => [:new, :edit] | |
authorize_resource :task, :through => :project_id | |
private | |
def load_collection | |
@tasks = @project.tasks | |
end | |
def build_objects | |
@task.target ||= TaskValue.new | |
#@task.actual ||= TaskValue.new | |
@task.project ||= @project | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe "Tasks" do | |
let(:user) {Fabricate(:user)} | |
let(:project) {Fabricate(:project, :name => "Mein Projekt 1", :owner => user.organization)} | |
before(:each) do | |
login_as user | |
end | |
describe "GET /projects/12345/tasks/12345/edit" do | |
let(:task1) {Fabricate(:task, :project => project, :activity_identifier => "001-01", :title => "Test-Task 01")} | |
it "edit", :focus do | |
wbs1 = Fabricate(:work_breakdown_structure, :project => project, :title => "Garten") | |
wbs2 = Fabricate(:work_breakdown_structure, project: project, parent: wbs1, title: "Erdgeschoss") | |
wbs3 = Fabricate(:work_breakdown_structure, project: project, parent: wbs1, title: "Obergeschoss") | |
wbs_foreign = Fabricate(:work_breakdown_structure, :title => "Hasenstall") | |
visit edit_project_task_path(project, task1) | |
within("#content") do | |
fill_in "Activity identifier", :with => "A001" | |
fill_in "Title", :with => "Kellergeschoss" | |
page.should have_selector "select#task_project_id", :value => project.id, :text => project.name | |
within_fieldset("Target Values") do | |
fill_in "Start", :with => "1.8.2010" | |
fill_in "End", :with => "8.1.2011" | |
end | |
#within_fieldset("Actual Values") do | |
# fill_in "Start", :with => "8.8.2010" | |
# fill_in "End", :with => "1.1.2011" | |
#end | |
within_fieldset("Related work breakdown structure") do | |
page.should have_content project.work_breakdown_structure_root.title | |
page.should have_content "Garten" | |
page.should have_content "Erdgeschoss" | |
page.should have_content "Obergeschoss" | |
page.should_not have_content wbs_foreign.title | |
check "Erdgeschoss" | |
check "Obergeschoss" | |
end | |
save_and_open_page | |
click_button "Update Task" | |
end | |
within("#content") do | |
save_and_open_page | |
page.should have_content "Task was successfully updated." | |
page.should have_content "A001" | |
page.should have_content "Kellergeschoss" | |
page.should have_link project.to_s, :href => project_path(project) | |
page.should have_content "2010-08-01" | |
page.should have_content "2011-01-08" | |
#page.should have_content "2010-08-08" | |
#page.should have_content "2011-01-01" | |
page.should_not have_content "Garten" | |
page.should have_link "Erdgeschoss", :href => project_work_breakdown_structure_path(project, wbs2) | |
page.should have_link "Obergeschoss", :href => project_work_breakdown_structure_path(project, wbs3) | |
page.should_not have_content wbs_foreign.title | |
click_link "Erdgeschoss" | |
end | |
within("#content") do | |
page.should have_link "Kellergeschoss", :href => project_task_path(task1.project, task1) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment