manuelmorales / teamtrick Goto Github PK
View Code? Open in Web Editor NEWOpen source web application to implement Scrum built with Ruby on Rails.
Home Page: http://team-trick.net
License: GNU Affero General Public License v3.0
Open source web application to implement Scrum built with Ruby on Rails.
Home Page: http://team-trick.net
License: GNU Affero General Public License v3.0
Use the new gem bundler to be able to bundle gems with TeamTrick.
http://yehudakatz.com/2009/11/03/using-the-new-gem-bundler-today/
Downloading source from GitHub
Follow the I18n steps here: http://guides.rubyonrails.org/i18n.html
Running them with spec returns success.
$ rake spec SPEC=spec/controllers/commitments_controller_spec.rb
1)
NoMethodError in 'CommitmentsController responding to DELETE destroy should success for users with role scrum_master'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
2)
NoMethodError in 'CommitmentsController responding to DELETE destroy should success for users with role product_owner'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
3)
NoMethodError in 'CommitmentsController responding to PUT update should success for users with role scrum_master'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
4)
NoMethodError in 'CommitmentsController responding to PUT update should success for users with role product_owner'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
5)
NoMethodError in 'CommitmentsController responding to POST create should success for users with role scrum_master'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
6)
NoMethodError in 'CommitmentsController responding to POST create should success for users with role product_owner'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
7)
NoMethodError in 'CommitmentsController responding to GET edit should success for users with role scrum_master'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
8)
NoMethodError in 'CommitmentsController responding to GET edit should success for users with role product_owner'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
9)
NoMethodError in 'CommitmentsController responding to GET new should success for users with role scrum_master'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
10)
NoMethodError in 'CommitmentsController responding to GET new should success for users with role product_owner'
You have a nil object when you didn't expect it!
You might have expected an instance of ActiveRecord::Base.
The error occurred while evaluating nil.update_attribute
/home/manuel/scrum/teamtrick/spec/support/macros/controller_macros.rb:61:in `it_should_success_for_users_with_role'
11)
'CommitmentsController responding to GET show should success for a normal user' FAILED
expected success? to return true, got false
./spec/controllers/commitments_controller_spec.rb:63:
Finished in 2.917772 seconds
47 examples, 11 failures
Fomr appears displaced to the right
User can click on Burndown chart points to see information about the tasks/hours done on that day.
development mode works well
Create a script or rake task that zips the bundled app.
destroyed? method is not working fine
This may require to update RSpec too. See
https://rails.lighthouseapp.com/projects/8994/tickets/3527-undefined-method-destroyed-for-activerecordassociationsbelongstoassociation
t.string :demo_meeting
t.string :scrum_meeting
t.string :retrospective_meeting
t.text :retrospective_report
Un usuario quiere editar una tarea de una historia y al pinchar sobre ella sale la cabecera de la aplicación montada sobre la lista de tareas con el mensaje "Action not allowed."
Processing MessageController#index (for 127.0.0.1 at 2010-01-14 17:16:46)
[GET]
Parameters: {"action"=>"index", "controller"=>"message"}
Rendering template within layouts/application
Rendering message/index
Completed in 16ms (View: 16, DB: 0) | 200 OK [http://localhost/message]
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
ssage]
Processing PlanningsController#row (for 127.0.0.1 at 2010-01-14 17:19:05)
[GET]
Parameters: {"eid"=>"e3acaa77216566a2e8383e1a5c7fa4ac",
"project_id"=>"2", "mode"=>"current", "action"=>"row", "_metho
d"=>"get", "id"=>"79", "controller"=>"plannings"}
Completed in 32ms (View: 16, DB: 16) | 200 OK
[http://localhost/plannings/row/79?_method=get&eid=e3acaa77216566a2e8383e1
a5c7fa4ac&mode=current&project_id=2]
Processing PlanningsController#show (for 127.0.0.1 at 2010-01-14 17:19:08)
[GET]
Parameters: {"eid"=>"e3acaa77216566a2e8383e1a5c7fa4ac",
"project_id"=>"2", "mode"=>"current", "action"=>"show", "_meth
od"=>"get", "adapter"=>"_list_inline_adapter", "id"=>"79",
"controller"=>"plannings"}
Start rendering component ({:controller=>"tasks",
:params=>{:mode=>"current", :eid=>"287a781970e11b5c1d178fbcb7a5e309"},
:action=>"table"}):
Processing TasksController#table (for 127.0.0.1 at 2010-01-14 17:19:08)
[GET]
Parameters: {"eid"=>"287a781970e11b5c1d178fbcb7a5e309",
"mode"=>"current", "action"=>"table", "id"=>nil, "controller"=
>"tasks"}
Rendering list
Completed in 297ms (View: 265, DB: 16) | 200 OK
[http://localhost/plannings/show/79?_method=get&eid=e3acaa77216566a2e838
3e1a5c7fa4ac&mode=current&project_id=2&adapter=_list_inline_adapter]
End of component rendering
Completed in 391ms (View: 16, DB: 0) | 200 OK
[http://localhost/plannings/show/79?_method=get&eid=e3acaa77216566a2e8383e
1a5c7fa4ac&mode=current&project_id=2&adapter=_list_inline_adapter]
D:/Software/teamtrick/lib/find_by_associated_extension.rb:13: warning:
Object#id will be deprecated; use Object#object_id
ist_inline_adapter]
Processing TasksController#show (for 127.0.0.1 at 2010-01-14 17:19:11)
[GET]
Parameters: {"eid"=>"287a781970e11b5c1d178fbcb7a5e309",
"mode"=>"current", "action"=>"show", "_method"=>"get", "adapte
r"=>"_list_inline_adapter", "id"=>"453", "controller"=>"tasks"}
Redirected to http://localhost:3000/message
Add the bundles to the micro-site
So that permission are preserved
Reported by Ryuzee here:
http://groups.google.com/group/teamtrick/browse_thread/thread/e16b87a63e64a42
Create a Rake task that bundle all gems, initialize data base and zips everything into a standalone file.
All specs should be green.
Try:
rake gem install rspec rspec-rails
rake db:migrate
rake
Work hours user selection should only show users commited to that sprint
Generate coherent sample data in Spanish for documentation and demonstration purposes.
So that, no admin interaction is needed for this. Mail sending will be necessary.
Try the bundle under am empty Linux to see if all gems are in place.
Run tests too
Create a Rake task that runs everything that has to be run to have the app working from scratch.
It only work even times.
$ rake teamtrick:zip_all --trace
(in /home/manuel/scrum/teamtrick)
** Invoke teamtrick:zip_all (first_time)
** Invoke teamtrick:bundle (first_time)
** Invoke teamtrick:clean (first_time)
** Execute teamtrick:clean
Deleting log/production.log
Deleting log/development.log
Deleting config/database.yml
Deleting db/production.sqlite3
Deleting public/blank_iframe.html
Deleting public/images/calendar_date_select
Deleting public/javascripts/calendar_date_select
Deleting public/stylesheets/calendar_date_select
Deleting vendor/gems
Deleting vendor/rails
** Invoke teamtrick:force_production_environment (first_time)
** Execute teamtrick:force_production_environment
** Invoke teamtrick:install (first_time)
** Invoke teamtrick:configure (first_time)
** Execute teamtrick:configure
Created config/database.yml
** Invoke environment (first_time)
** Execute environment
rake aborted!
no such file to load -- ruby_version_check
/usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
/home/manuel/scrum/teamtrick/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/home/manuel/scrum/teamtrick/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/manuel/scrum/teamtrick/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/home/manuel/scrum/teamtrick/config/../vendor/rails/railties/lib/initializer.rb:210:in `check_ruby_version'
/home/manuel/scrum/teamtrick/config/../vendor/rails/railties/lib/initializer.rb:129:in `process'
/home/manuel/scrum/teamtrick/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/home/manuel/scrum/teamtrick/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'
/home/manuel/scrum/teamtrick/config/environment.rb:13
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/manuel/scrum/teamtrick/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/home/manuel/scrum/teamtrick/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
/home/manuel/scrum/teamtrick/vendor/rails/activesupport/lib/active_support/dependencies.rb:156:in `require'
/home/manuel/scrum/teamtrick/vendor/rails/railties/lib/tasks/misc.rake:4
Create a script that unpacks all gems.
Guess what is needed to get TeamTrick bundle to run on a Mac.
SQLite gem is the weak point
Make PFC sample pending sprint to begin today instead of finishing today.
Make the bundle work under Windows. Probably, a native sqlite3.dll will be needed.
I pass some params on embedded scaffolds. Those params override the already existent, like project_id, causing problems. See http://github.com/manuelmorales/teamtrick/issues/#issue/37.
There should be a way to merge the right ones.
Linux startup script doesn't work
Right now, non admin users cannot edit its own profile. Check redirections too.
Making it narrower should do the trick
This may require to update RSpec too. See
https://rails.lighthouseapp.com/projects/8994/tickets/3527-undefined-method-destroyed-for-activerecordassociationsbelongstoassociation
Only an administrator can create, edit or delete a task.
The code suggests otherwise (task_controller.rb):
def show_authorized?
current_user_is_admin_or?(:product_owner, :scrum_master, :team_member)
end
def create_authorized?
current_user_is_admin_or?(:product_owner, :scrum_master, :team_member)
end
def update_authorized?
current_user_is_admin_or?(:product_owner, :scrum_master, :team_member)
end
def delete_authorized?
current_user_is_admin_or?(:product_owner, :scrum_master, :team_member)
end
It also suggests everybody has access, so deleting this block solved my problem.
But the question remains why that block of code doesn't work, it seems to work in the other controllers.
Create google group or sth like that for support.
Add the posibility of mail sending, when an account is created, for instance.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.