fernandokosh / redmine_time_tracker

A time tracker plugin for Redmine
Other
203 stars 141 forks source link

redmine 2.0 support #79

Open danklassen opened 12 years ago

danklassen commented 12 years ago

Are there any plans for redmine 2.0 support? The first issue I've run into on a clean install is the routes.rb file doesn't seem to be in the new syntax.

Thanks for the all the work :)

delaitre commented 12 years ago

Redmine 2.x uses Rail 3.x. I don't know what changes are needed to have the plugin working on the new version.

However, there have been some changes on the routes in the development version of the plugin (#72). Did you try with the development version or the last stable one?

danklassen commented 12 years ago

Thanks for the quick response. I had just pulled the time tracker plugin from master after doing a clean install of Redmine 2.

The actual error message when running the plugin migration is:

An error occurred while loading the routes definition of redmine_time_tracker plugin (/home/projects/redmine/plugins/redmine_time_tracker/config/routes.rb): (eval):1: uninitialized constant ActionDispatch::Routing::Routes.
cgatian commented 12 years ago

I really wish this change would come true!

danklassen commented 12 years ago

I just tried out the fork: https://github.com/hicknhack-software/redmine_time_tracker and it seems to be working well with Redmine 2.0.

b-sh commented 12 years ago

I wouldnt lable it as bug. For me it is a Feature. By the way the fork mentioned above is on a heavy development and should be used with caution unless you are not about to use your redmine in productive environment. If you want to gain redmine 2.0 support you need basically just to add the routes.rb in your project and some logger changes due to using Rails 3.2.3 see https://github.com/hicknhack-software/redmine_time_tracker/commit/b857397c33d4af6fc1f38e8533b2d642ef75b414

jenz commented 12 years ago

Great job with this plugin! Do you have plans to make this compatible with Redmine 2.0.x?

delaitre commented 12 years ago

Indeed, I don't know what to do. My major problem is that we've moved to ChiliProject here and making the plugin compatible with Redmine 2.0 will break ChiliProject "support" (this is not really supported, but works with few fixes).

As I don't have much time neither, this is a bit complicated...

creich commented 12 years ago

the hicknhack fork (https://github.com/hicknhack-software/redmine_time_tracker) works well with redmine 2.0.x but i have made major changes due to the planed new features, so it's not the original time-tracker plugin anymore... for now the start/stop function works (in a way you should know it from the original plugin) if you use the context menu at the issue list. this will start a timetracker in background and if you stop it via context menu the timetracker will be booked to the issue you started on... additional functionality will be added soon and could be found under the main menu which is placed at the top left redmine menu.

i have tagged the actual version with 0.4.1 you can directly reach it here ( https://github.com/hicknhack-software/redmine_time_tracker/tree/0.4.1 ) this version should work as described above

hope it will help anyone. feel free to comment the commits :)

jenz commented 12 years ago

Thanks delaitre and creich. I appreciate the time/effort you put in.

denispeplin commented 12 years ago

And another fork with Redmine 2.0 support: https://github.com/martinllanos/redmine_time_tracker

logical-and commented 12 years ago

@denispeplin I got an error:

ActionView::Template::Error (undefined method `time_tracker_for' for #<#:0x00000007130478>):
    1: <%# time_tracker = nil %>
    2: <% time_tracker = time_tracker_for(User.current) %>
    3: <% if !time_tracker.nil? %>
    4:     <% if time_tracker.paused %>
    5:         <%# A time tracker is in pause, display the tracked issue, the time spent and the resume/stop actions %>
  lib/redmine/hook.rb:110:in `block in render_on'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:151:in `call_hook'
  app/views/layouts/base.html.erb:80:in `_app_views_layouts_base_html_erb___900188309223161512_59399740'
  app/controllers/issues_controller.rb:83:in `block (2 levels) in index'
  app/controllers/issues_controller.rb:82:in `index'

Redmine 2.0.2 Ruby 1.9.2 Rails 3.2.5

Have you any ideas?

Thanks!

denispeplin commented 12 years ago

It seems you had run it without plugin's migration. Use rake redmine:plugins:migrate for development mode or rake redmine:plugins:migrate RAILS_ENV=production for production.

logical-and commented 12 years ago
root@artvertep /var/www/redmine/plugins # git clone git://github.com/martinllanos/redmine_time_tracker.git
Cloning into redmine_time_tracker...
remote: Counting objects: 655, done.
remote: Compressing objects: 100% (321/321), done.
remote: Total 655 (delta 312), reused 569 (delta 254)
Receiving objects: 100% (655/655), 93.76 KiB, done.
Resolving deltas: 100% (312/312), done.

root@artvertep /var/www/redmine/plugins # rake redmine:plugins:migrate RAILS_ENV=production
(in /var/www/redmine)
Migrating redmine_auto_watch (Redmine Auto Watch plugin)...
Migrating redmine_default_columns (Default queries per project)...
Migrating redmine_extra_query_operators (Extra query operators plugin)...
Migrating redmine_graph_activities (Redmine Graph Activities plugin)...
Migrating redmine_importer (Issue Importer)...
Migrating redmine_inline_attach_screenshot (Redmine Attach Screenshot plugin)...
Migrating redmine_lightbox (Redmine Light Box plugin)...
Migrating redmine_local_avatars (Redmine Local Avatars plugin)...
Migrating redmine_monitoring_controlling (Redmine (Monitoring & Controlling | Monitoramento & Controle))...
Migrating redmine_open_links_in_new_window (Redmine Open Links In New Window plugin)...
Migrating redmine_plugin_views_revisions (Redmine plugin views revisions plugin)...
Migrating redmine_reorder_links_arbitrary (Reorder links arbitrary)...
Migrating redmine_spent_time_column (Redmine Spent Time Column)...
Migrating redmine_theme_changer (Redmine Theme Changer plugin)...
Migrating redmine_time_tracker (Redmine Time Tracker plugin)...
==  CreateTimeTrackers: migrating =============================================
-- create_table(:time_trackers)
   -] 0.0230s
==  CreateTimeTrackers: migrated (0.0232s) ====================================

==  AddPauseSupport: migrating ================================================
-- add_column(:time_trackers, :time_spent, :float, {:default=]0})
   -] 0.5745s
-- add_column(:time_trackers, :paused, :boolean, {:default=]false})
   -] 0.0984s
==  AddPauseSupport: migrated (0.6732s) =======================================

Migrating redmine_wktime (Weekly Timesheet)...

root@artvertep /var/www/redmine/plugins # !ruby
ruby ../script/rails server webrick -e production
=] Booting WEBrick
=] Rails 3.2.5 application starting in production on http://0.0.0.0:3000
=] Call with -d to detach
=] Ctrl-C to shutdown server
[2012-07-04 08:29:06] INFO  WEBrick 1.3.1
[2012-07-04 08:29:06] INFO  ruby 1.9.2 (2012-04-20) [x86_64-linux]
[2012-07-04 08:29:06] INFO  WEBrick::HTTPServer#start: pid=23221 port=3000

Started GET "/issues?query_id=18" for 80.239.242.206 at 2012-07-04 08:39:16 +0200
Processing by IssuesController#index as HTML
  Parameters: {"query_id"=]"18"}
   (0.4ms)  SELECT MAX(`settings`.`updated_on`) AS max_id FROM `settings`
  Setting Load (0.4ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'autologin' LIMIT 1
  Token Load (0.3ms)  SELECT `tokens`.* FROM `tokens` WHERE `tokens`.`action` = 'autologin' AND `tokens`.`value` = '8a7edc95a9f8871fcda428950a90b1e5772023d5'
  User Load (0.3ms)  SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`id` = 4 LIMIT 1
   (0.2ms)  BEGIN
   (0.6ms)  UPDATE `users` SET `last_login_on` = '2012-07-04 08:39:17', `updated_on` = '2012-07-04 08:39:17' WHERE `users`.`type` IN ('User', 'AnonymousUser') AND `users`.`id` = 4
  CustomField Load (0.3ms)  SELECT `custom_fields`.* FROM `custom_fields` WHERE (type = 'UserCustomField') ORDER BY position
  SQL (1.1ms)  SELECT `custom_values`.`id` AS t0_r0, `custom_values`.`customized_type` AS t0_r1, `custom_values`.`customized_id` AS t0_r2, `custom_values`.`custom_field_id` AS t0_r3, `custom_values`.`value` AS t0_r4, `custom_fields`.`id` AS t1_r0, `custom_fields`.`type` AS t1_r1, `custom_fields`.`name` AS t1_r2, `custom_fields`.`field_format` AS t1_r3, `custom_fields`.`possible_values` AS t1_r4, `custom_fields`.`regexp` AS t1_r5, `custom_fields`.`min_length` AS t1_r6, `custom_fields`.`max_length` AS t1_r7, `custom_fields`.`is_required` AS t1_r8, `custom_fields`.`is_for_all` AS t1_r9, `custom_fields`.`is_filter` AS t1_r10, `custom_fields`.`position` AS t1_r11, `custom_fields`.`searchable` AS t1_r12, `custom_fields`.`default_value` AS t1_r13, `custom_fields`.`editable` AS t1_r14, `custom_fields`.`visible` AS t1_r15, `custom_fields`.`multiple` AS t1_r16 FROM `custom_values` LEFT OUTER JOIN `custom_fields` ON `custom_fields`.`id` = `custom_values`.`custom_field_id` WHERE `custom_values`.`customized_id` = 4 AND `custom_values`.`customized_type` = 'Principal' ORDER BY custom_fields.position
   (368.8ms)  COMMIT
  Query Load (0.3ms)  SELECT `queries`.* FROM `queries` WHERE `queries`.`id` = 18 AND (project_id IS NULL) LIMIT 1
  IssueCustomField Load (5.3ms)  SELECT `custom_fields`.* FROM `custom_fields` WHERE `custom_fields`.`type` IN ('IssueCustomField')
  Setting Load (1.5ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'user_format' LIMIT 1
  Tracker Load (0.3ms)  SELECT `trackers`.* FROM `trackers` ORDER BY position
  IssueStatus Load (38.3ms)  SELECT `issue_statuses`.* FROM `issue_statuses` ORDER BY position
  IssuePriority Load (2.1ms)  SELECT `enumerations`.* FROM `enumerations` WHERE `enumerations`.`type` IN ('IssuePriority') ORDER BY enumerations.position ASC
  Project Load (1.2ms)  SELECT `projects`.* FROM `projects` WHERE (projects.status=1)
  Principal Load (1.8ms)  SELECT `users`.* FROM `users` WHERE (users.status = 1 AND users.id IN (SELECT DISTINCT user_id FROM members WHERE project_id IN (1,2,3,4,5,6,7,8,9,10,11)))
   (0.6ms)  SELECT COUNT(DISTINCT `members`.`id`) FROM `members` LEFT OUTER JOIN `projects` ON `projects`.`id` = `members`.`project_id` LEFT OUTER JOIN `member_roles` ON `member_roles`.`member_id` = `members`.`id` LEFT OUTER JOIN `roles` ON `roles`.`id` = `member_roles`.`role_id` WHERE `members`.`user_id` = 4 AND (projects.status=1)
  Setting Load (0.4ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'issue_group_assignment' LIMIT 1
  Group Load (0.3ms)  SELECT `users`.* FROM `users` WHERE `users`.`type` IN ('Group')
  Role Load (0.4ms)  SELECT `roles`.* FROM `roles` WHERE (builtin = 0) ORDER BY position
  SQL (0.6ms)  SELECT `versions`.`id` AS t0_r0, `versions`.`project_id` AS t0_r1, `versions`.`name` AS t0_r2, `versions`.`description` AS t0_r3, `versions`.`effective_date` AS t0_r4, `versions`.`created_on` AS t0_r5, `versions`.`updated_on` AS t0_r6, `versions`.`wiki_page_title` AS t0_r7, `versions`.`status` AS t0_r8, `versions`.`sharing` AS t0_r9, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft` AS t1_r10, `projects`.`rgt` AS t1_r11 FROM `versions` LEFT OUTER JOIN `projects` ON `projects`.`id` = `versions`.`project_id` WHERE `versions`.`sharing` = 'system' AND (projects.status=1 AND projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='issue_tracking'))
  IssueCustomField Load (0.3ms)  SELECT `custom_fields`.* FROM `custom_fields` WHERE `custom_fields`.`type` IN ('IssueCustomField') AND `custom_fields`.`is_filter` = 1 AND `custom_fields`.`is_for_all` = 1
  Setting Load (0.2ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'per_page_options' LIMIT 1
   (0.4ms)  SELECT `users`.id FROM `users` INNER JOIN `groups_users` ON `users`.`id` = `groups_users`.`group_id` WHERE `users`.`type` IN ('Group') AND `groups_users`.`user_id` = 4
   (3.9ms)  SELECT COUNT(DISTINCT `issues`.`id`) FROM `issues` LEFT OUTER JOIN `projects` ON `projects`.`id` = `issues`.`project_id` LEFT OUTER JOIN `issue_statuses` ON `issue_statuses`.`id` = `issues`.`status_id` WHERE (projects.status=1 AND projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='issue_tracking')) AND ((issues.status_id IN (SELECT id FROM issue_statuses WHERE is_closed=0)) AND (issues.assigned_to_id IN ('4','5')) AND (issues.due_date [= '2012-07-04 23:59:59'))
  CACHE (0.0ms)  SELECT `users`.id FROM `users` INNER JOIN `groups_users` ON `users`.`id` = `groups_users`.`group_id` WHERE `users`.`type` IN ('Group') AND `groups_users`.`user_id` = 4
  SQL (4.0ms)  SELECT `issues`.`id` AS t0_r0, `issues`.`tracker_id` AS t0_r1, `issues`.`project_id` AS t0_r2, `issues`.`subject` AS t0_r3, `issues`.`description` AS t0_r4, `issues`.`due_date` AS t0_r5, `issues`.`category_id` AS t0_r6, `issues`.`status_id` AS t0_r7, `issues`.`assigned_to_id` AS t0_r8, `issues`.`priority_id` AS t0_r9, `issues`.`fixed_version_id` AS t0_r10, `issues`.`author_id` AS t0_r11, `issues`.`lock_version` AS t0_r12, `issues`.`created_on` AS t0_r13, `issues`.`updated_on` AS t0_r14, `issues`.`start_date` AS t0_r15, `issues`.`done_ratio` AS t0_r16, `issues`.`estimated_hours` AS t0_r17, `issues`.`parent_id` AS t0_r18, `issues`.`root_id` AS t0_r19, `issues`.`lft` AS t0_r20, `issues`.`rgt` AS t0_r21, `issues`.`is_private` AS t0_r22, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft` AS t1_r10, `projects`.`rgt` AS t1_r11, `issue_statuses`.`id` AS t2_r0, `issue_statuses`.`name` AS t2_r1, `issue_statuses`.`is_closed` AS t2_r2, `issue_statuses`.`is_default` AS t2_r3, `issue_statuses`.`position` AS t2_r4, `issue_statuses`.`default_done_ratio` AS t2_r5, `users`.`id` AS t3_r0, `users`.`login` AS t3_r1, `users`.`hashed_password` AS t3_r2, `users`.`firstname` AS t3_r3, `users`.`lastname` AS t3_r4, `users`.`mail` AS t3_r5, `users`.`admin` AS t3_r6, `users`.`status` AS t3_r7, `users`.`last_login_on` AS t3_r8, `users`.`language` AS t3_r9, `users`.`auth_source_id` AS t3_r10, `users`.`created_on` AS t3_r11, `users`.`updated_on` AS t3_r12, `users`.`type` AS t3_r13, `users`.`identity_url` AS t3_r14, `users`.`mail_notification` AS t3_r15, `users`.`salt` AS t3_r16, `trackers`.`id` AS t4_r0, `trackers`.`name` AS t4_r1, `trackers`.`is_in_chlog` AS t4_r2, `trackers`.`position` AS t4_r3, `trackers`.`is_in_roadmap` AS t4_r4, `enumerations`.`id` AS t5_r0, `enumerations`.`name` AS t5_r1, `enumerations`.`position` AS t5_r2, `enumerations`.`is_default` AS t5_r3, `enumerations`.`type` AS t5_r4, `enumerations`.`active` AS t5_r5, `enumerations`.`project_id` AS t5_r6, `enumerations`.`parent_id` AS t5_r7, `issue_categories`.`id` AS t6_r0, `issue_categories`.`project_id` AS t6_r1, `issue_categories`.`name` AS t6_r2, `issue_categories`.`assigned_to_id` AS t6_r3, `versions`.`id` AS t7_r0, `versions`.`project_id` AS t7_r1, `versions`.`name` AS t7_r2, `versions`.`description` AS t7_r3, `versions`.`effective_date` AS t7_r4, `versions`.`created_on` AS t7_r5, `versions`.`updated_on` AS t7_r6, `versions`.`wiki_page_title` AS t7_r7, `versions`.`status` AS t7_r8, `versions`.`sharing` AS t7_r9 FROM `issues` LEFT OUTER JOIN `projects` ON `projects`.`id` = `issues`.`project_id` LEFT OUTER JOIN `issue_statuses` ON `issue_statuses`.`id` = `issues`.`status_id` LEFT OUTER JOIN `users` ON `users`.`id` = `issues`.`assigned_to_id` LEFT OUTER JOIN `trackers` ON `trackers`.`id` = `issues`.`tracker_id` LEFT OUTER JOIN `enumerations` ON `enumerations`.`id` = `issues`.`priority_id` AND `enumerations`.`type` IN ('IssuePriority') LEFT OUTER JOIN `issue_categories` ON `issue_categories`.`id` = `issues`.`category_id` LEFT OUTER JOIN `versions` ON `versions`.`id` = `issues`.`fixed_version_id` WHERE (projects.status=1 AND projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='issue_tracking')) AND ((issues.status_id IN (SELECT id FROM issue_statuses WHERE is_closed=0)) AND (issues.assigned_to_id IN ('4','5')) AND (issues.due_date [= '2012-07-04 23:59:59')) ORDER BY projects.name ,issues.due_date, enumerations.position DESC LIMIT 25 OFFSET 0
  CACHE (0.0ms)  SELECT `users`.id FROM `users` INNER JOIN `groups_users` ON `users`.`id` = `groups_users`.`group_id` WHERE `users`.`type` IN ('Group') AND `groups_users`.`user_id` = 4
   (6.0ms)  SELECT COUNT(DISTINCT `issues`.`id`) AS count_id, project_id AS project_id FROM `issues` LEFT OUTER JOIN `projects` ON `projects`.`id` = `issues`.`project_id` LEFT OUTER JOIN `issue_statuses` ON `issue_statuses`.`id` = `issues`.`status_id` WHERE (projects.status=1 AND projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='issue_tracking')) AND ((issues.status_id IN (SELECT id FROM issue_statuses WHERE is_closed=0)) AND (issues.assigned_to_id IN ('4','5')) AND (issues.due_date [= '2012-07-04 23:59:59')) GROUP BY project_id
  Project Load (0.3ms)  SELECT `projects`.* FROM `projects` WHERE `projects`.`id` IN (1, 6)
  ThemeChangerUserSetting Load (0.3ms)  SELECT `theme_changer_user_settings`.* FROM `theme_changer_user_settings` WHERE (user_id = 4) LIMIT 1
  Setting Load (0.4ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'ui_theme' LIMIT 1
  Setting Load (0.4ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'start_of_week' LIMIT 1
  Rendered plugins/redmine_extra_query_operators/app/views/queries/_filters.html.erb (424.8ms)
  Rendered queries/_columns.html.erb (23.8ms)
  UserPreference Load (0.3ms)  SELECT `user_preferences`.* FROM `user_preferences` WHERE `user_preferences`.`user_id` = 4 LIMIT 1
  Setting Load (0.4ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'date_format' LIMIT 1
  Setting Load (3.9ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'time_format' LIMIT 1
  Rendered issues/_list.html.erb (104.7ms)
  Token Load (4.0ms)  SELECT `tokens`.* FROM `tokens` WHERE `tokens`.`user_id` = 4 AND (action='feeds') LIMIT 1
  Setting Load (0.5ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'plugin_redmine_spent_time_column' LIMIT 1
  EnabledModule Load (0.3ms)  SELECT name FROM `enabled_modules` WHERE `enabled_modules`.`project_id` = 6
   (0.5ms)  SELECT SUM(estimated_hours * done_ratio / 100) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 257 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
   (0.2ms)  SELECT SUM(estimated_hours - (estimated_hours * done_ratio / 100)) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 257 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
  EnabledModule Load (0.2ms)  SELECT name FROM `enabled_modules` WHERE `enabled_modules`.`project_id` = 1
   (0.3ms)  SELECT SUM(estimated_hours * done_ratio / 100) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 254 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
   (0.2ms)  SELECT SUM(estimated_hours - (estimated_hours * done_ratio / 100)) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 254 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
   (0.2ms)  SELECT SUM(estimated_hours * done_ratio / 100) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 246 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
   (0.3ms)  SELECT SUM(estimated_hours - (estimated_hours * done_ratio / 100)) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 246 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
   (0.3ms)  SELECT SUM(estimated_hours * done_ratio / 100) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 258 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
   (0.3ms)  SELECT SUM(estimated_hours - (estimated_hours * done_ratio / 100)) AS sum_id FROM `issues` WHERE `issues`.`root_id` = 258 AND (`issues`.`lft`]= 1 AND `issues`.`rgt` [= 2)
  Rendered plugins/redmine_spent_time_column/app/views/hooks/redmine_spent_time_column/_view_issues_index_bottom.html.erb (29.0ms)
  SQL (0.8ms)  SELECT `queries`.`id` AS t0_r0, `queries`.`project_id` AS t0_r1, `queries`.`name` AS t0_r2, `queries`.`filters` AS t0_r3, `queries`.`user_id` AS t0_r4, `queries`.`is_public` AS t0_r5, `queries`.`column_names` AS t0_r6, `queries`.`sort_criteria` AS t0_r7, `queries`.`group_by` AS t0_r8, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft` AS t1_r10, `projects`.`rgt` AS t1_r11 FROM `queries` LEFT OUTER JOIN `projects` ON `projects`.`id` = `queries`.`project_id` WHERE ((queries.project_id IS NULL OR (projects.status=1 AND projects.id IN (SELECT em.project_id FROM enabled_modules em WHERE em.name='issue_tracking'))) AND (queries.is_public = 1 OR queries.user_id = 4)) AND (project_id IS NULL) ORDER BY queries.name ASC
  Rendered issues/_sidebar.html.erb (19.1ms)
  Rendered plugins/redmine_default_columns/app/views/issues/index.html.erb within layouts/base (825.2ms)
  Setting Load (0.4ms)  SELECT `settings`.* FROM `settings` WHERE `settings`.`name` = 'app_title' LIMIT 1
  SQL (1.0ms)  SELECT `members`.`id` AS t0_r0, `members`.`user_id` AS t0_r1, `members`.`project_id` AS t0_r2, `members`.`created_on` AS t0_r3, `members`.`mail_notification` AS t0_r4, `projects`.`id` AS t1_r0, `projects`.`name` AS t1_r1, `projects`.`description` AS t1_r2, `projects`.`homepage` AS t1_r3, `projects`.`is_public` AS t1_r4, `projects`.`parent_id` AS t1_r5, `projects`.`created_on` AS t1_r6, `projects`.`updated_on` AS t1_r7, `projects`.`identifier` AS t1_r8, `projects`.`status` AS t1_r9, `projects`.`lft` AS t1_r10, `projects`.`rgt` AS t1_r11, `roles`.`id` AS t2_r0, `roles`.`name` AS t2_r1, `roles`.`position` AS t2_r2, `roles`.`assignable` AS t2_r3, `roles`.`builtin` AS t2_r4, `roles`.`permissions` AS t2_r5, `roles`.`issues_visibility` AS t2_r6 FROM `members` LEFT OUTER JOIN `projects` ON `projects`.`id` = `members`.`project_id` LEFT OUTER JOIN `member_roles` ON `member_roles`.`member_id` = `members`.`id` LEFT OUTER JOIN `roles` ON `roles`.`id` = `member_roles`.`role_id` WHERE `members`.`user_id` = 4 AND (projects.status=1) ORDER BY projects.name
  Rendered plugins/redmine_time_tracker/app/views/time_trackers/_embed_menu.html.erb (458.7ms)
  Rendered plugins/redmine_time_tracker/app/views/time_trackers/_update_menu.html.erb (461.4ms)
Completed 500 Internal Server Error in 28250ms

ActionView::Template::Error (undefined method `time_tracker_for' for #[#[Class:0x00000008d1d140]:0x00000008c68010]):
    1: [%# time_tracker = nil %]
    2: [% time_tracker = time_tracker_for(User.current) %]
    3: [% if !time_tracker.nil? %]
    4:     [% if time_tracker.paused %]
    5:         [%# A time tracker is in pause, display the tracked issue, the time spent and the resume/stop actions %]
  lib/redmine/hook.rb:110:in `block in render_on'
  lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
  lib/redmine/hook.rb:61:in `each'
  lib/redmine/hook.rb:61:in `block in call_hook'
  lib/redmine/hook.rb:58:in `tap'
  lib/redmine/hook.rb:58:in `call_hook'
  lib/redmine/hook.rb:151:in `call_hook'
  app/views/layouts/base.html.erb:80:in `_app_views_layouts_base_html_erb__2077258096710180650_74447400'
  app/controllers/issues_controller.rb:83:in `block (2 levels) in index'
  app/controllers/issues_controller.rb:82:in `index'

This is full log. Whats the trouble?

tomwys commented 11 years ago

I have same problem:

git clone https://github.com/redmine/redmine.git

RAILS_ENV=production rake db:migrate_plugins
An error occurred while loading the routes definition of redmine_time_tracker plugin (/home/redmine/redmine/plugins/redmine_time_tracker/config/routes.rb): (eval):1: uninitialized constant ActionDispatch::Routing::Routes.
cforce commented 11 years ago

@creich/hicknhack-software.com

is your fork https://github.com/hicknhack-software/redmine_time_tracker also compatible with redmine 1.4 We need some time tp switch ro 2.0 cause to many plugins have to be migrated first

creich commented 11 years ago

i am not sure about that, but i think it is not! for now i am developing on 2.0 only. i have not tested it with 1.4. maybe someone else could say more about it.. i am not aware of how much extra work it will be, to stay compatible with both redmine versions so i also could not say if i'll make it 1.4-comatible within the next time, but maybe it's not that complex...

watro commented 11 years ago

@logical-and were you ever able to resolve the issue with the view error? I'm trying to install the time tracker now, and I have the same issue.

I also tried @martinllanos (https://github.com/martinllanos/redmine_time_tracker) version that @denispeplin mentioned, but I keet hitting the same error.

jenz commented 11 years ago

Hello. Unfortunately - I never got this to work.

Let me know if you do! Jen

On Jun 6, 2013, at 12:17 PM, Nico notifications@github.com wrote:

@logical-and were you ever able to resolve the issue with the view error? I'm trying to install the time tracker now, and I have the same issue.

I also tried @martinllanos (https://github.com/martinllanos/redmine_time_tracker) version that @denispeplin mentioned, but I keet hitting the same error.

— Reply to this email directly or view it on GitHub.

cforce commented 11 years ago

i tried https://github.com/hicknhack-software/redmine_time_tracker and its not woribng with redmine 2.3.1 ;( see https://github.com/hicknhack-software/redmine_time_tracker/issues/49

arBmind commented 11 years ago

Our fork currently only targets redmine 2.3.1. The plugin machanics of redmine are very volatile and it's really hard to keep a plugin compatible with multiple versions.

cforce commented 11 years ago

My mistake as i meant redmine 2.3.1

aufderpalme commented 10 years ago

From the pics that I saw your plugin seems to be really nice. Since you probably won't support versions > 2.3.0 (?) it would be great if you add an hint to the readme file to https://github.com/hicknhack-software/redmine_time_tracker , even if it is still under development. I haven't tried it out yet but I will start now and at least installation seemed to be successfull, so I guess it works for 2.3.2

delaitre commented 10 years ago

The thing is hicknhack's fork has a lot more features than the original project and I am not sure this is even comparable in the end (never tried).

balagab commented 10 years ago

Is there any plan to support 2.5? We really need this plugin at my company, but I recieve error when I migrate the db: /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/trace_output.rb:16:in block in trace_on': invalid byte sequence in US-ASCII (ArgumentError) from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/trace_output.rb:14:inmap' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/trace_output.rb:14:in trace_on' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:340:intrace' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:187:in display_error_message' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:174:inrescue in standard_exception_handling' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in standard_exception_handling' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:inrun' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in <top (required)>' from /opt/bitnami/ruby/bin/rake:23:inload' from /opt/bitnami/ruby/bin/rake:23:in `

'

We use Redmine 2.5 bitnami image.

Thanks

martinllanos commented 10 years ago

Hi!, We do not plan to make updates on the plug-in. We recommend using the plug-in from the people of hicknhack-software. https://github.com/hicknhack-software/redmine_time_tracker Is stable, we are keeping this many plug-in. I will soon write an article to better understand how to use it and detail your workflow.

  Sorry for not replying in advance.

  Luck.

Martín Llanos martinllanos@gmail.com

2014-03-25 9:28 GMT-03:00 balagab notifications@github.com:

Is there any plan to support 2.5? We really need this plugin at my company, but I recieve error when I migrate the db: /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/trace_output.rb:16:in block in trace_on': invalid byte sequence in US-ASCII (ArgumentError) from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/trace_output.rb:14:in map' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/trace_output.rb:14:in trace_on' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:340:in trace' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:187:in display_error_message' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:174:inrescue in standard_exception_handling' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:165:in standard_exception_handling' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/lib/rake/application.rb:75:in run' from /opt/bitnami/ruby/lib/ruby/gems/1.9.1/gems/rake-10.1.1/bin/rake:33:in <top (required)>' from /opt/bitnami/ruby/bin/rake:23:inload' from /opt/bitnami/ruby/bin/rake:23:in `'

We use Redmine 2.5 bitnami image.

Thanks

— Reply to this email directly or view it on GitHubhttps://github.com/fernandokosh/redmine_time_tracker/issues/79#issuecomment-38557916 .

balagab commented 10 years ago

Hi,

Thank you, I could install this plugins, check the configurations at administration/plugins, I can start/stop the timer, however I can not go to TimeTracker menu (Internal error). If I run the tracker (start/stop), it should shows the spent time on the issue's page?

Thank you again!

martinllanos commented 10 years ago

Solution One

Activate "Enable REST web service" in the authentication tab in settings

Solution Two

1) uninstall actual time_tracker with command

Execute from bitnami home path

./use_redmine cd /opt/redmine/apps/redmine/htdocs/

2) Execute rake redmine:plugins:migrate NAME=redmine_time_tracker VERSION=0 RAILS_ENV=production

3) Delete all data from database table on schema_migrations

select version from schema_migrations where version like '%time_tracker%';

delete from schema_migrations where version like '%time_tracker%';

4) Install time_tracker with hicknhack-software

Solution Three

1) Enable log

cd /opt/redmine/apps/redmine/htdocs/config

cp additional_environment.rb.example additional_environment.rb

edit file additional_environment.rb, un-comment line # config.log_level = :debug

Execute from bitnami home path

./use_redmine ./ctlscript.sh restart apache

tail -f /opt/redmine/apps/redmine/htdocs/log/production.log

2) Send the log of the moment when you click start / stop the timer.

Martín Llanos martinllanos@gmail.com

balagab commented 10 years ago

Dear Martín Llanos!

Please find attached the relevant part of the production log file.

Thank you, Gabor Balazs

From: Martin Llanos [mailto:notifications@github.com] Sent: Friday, March 28, 2014 2:18 PM To: fernandokosh/redmine_time_tracker Cc: Balázs Gábor Subject: Re: [redmine_time_tracker] redmine 2.0 support (#79)

Solution One

Activate "Enable REST web service" in the authentication tab in settings

Solution Two

1) uninstall actual time_tracker with command

Execute from bitnami home path

./use_redmine cd /opt/redmine/apps/redmine/htdocs/

2) Execute rake redmine:plugins:migrate NAME=redmine_time_tracker VERSION=0 RAILS_ENV=production

3) Delete all data from database table on schema_migrations

select version from schema_migrations where version like '%time_tracker%';

delete from schema_migrations where version like '%time_tracker%';

4) Install time_tracker with hicknhack-software

Solution Three

1) Enable log

cd /opt/redmine/apps/redmine/htdocs/config

cp additional_environment.rb.example additional_environment.rb

edit file additional_environment.rb, un-comment line # config.log_level = :debug

Execute from bitnami home path

./use_redmine ./ctlscript.sh restart apache

tail -f /opt/redmine/apps/redmine/htdocs/log/production.log

2) Send the log of the moment when you click start / stop the timer.

Martín Llanos martinllanos@gmail.commailto:martinllanos@gmail.com

— Reply to this email directly or view it on GitHubhttps://github.com/fernandokosh/redmine_time_tracker/issues/79#issuecomment-38917526.

Started GET "/redmine/time_trackers/start" for 192.168.10.137 at 2014-03-31 10:07:08 +0000 Processing by TimeTrackersController#start as HTML Current user: admin (id=439) Redirected to http://192.168.1.66/redmine/issues/28 Completed 302 Found in 26.8ms (ActiveRecord: 13.7ms) Started GET "/redmine/issues/28" for 192.168.10.137 at 2014-03-31 10:07:09 +0000 Processing by IssuesController#show as HTML Parameters: {"id"=>"28"} Current user: admin (id=439) Rendered issues/_action_menu.html.erb (4.0ms) Rendered plugins/redmine_time_tracker/app/views/tt_overview/_time_tracker.js.erb (0.2ms) Rendered plugins/redmine_time_tracker/app/views/time_trackers/_start_dialog.html.erb (4.2ms) Rendered plugins/redmine_time_tracker/app/views/time_trackers/_issue_action_menu.html.erb (7.4ms) Rendered issue_relations/_form.html.erb (1.6ms) Rendered issues/_relations.html.erb (2.7ms) Rendered issues/_action_menu.html.erb (2.9ms) Rendered issues/_form_custom_fields.html.erb (0.1ms) Rendered issues/_attributes.html.erb (13.9ms) Rendered issues/_form.html.erb (38.3ms) Rendered attachments/_form.html.erb (2.1ms) Rendered issues/_edit.html.erb (53.0ms) Rendered issues/_sidebar.html.erb (5.1ms) Rendered watchers/_watchers.html.erb (5.8ms) Rendered plugins/event_notifications/app/views/issues/show.html.erb within layouts/base (104.9ms) Rendered inline template (0.8ms) Rendered plugins/redmine_time_tracker/app/views/time_trackers/_assets.html.erb (1.7ms) Completed 200 OK in 341.1ms (Views: 103.5ms | ActiveRecord: 70.6ms) Started GET "/redmine/time_trackers/stop" for 192.168.10.137 at 2014-03-31 10:07:12 +0000 Processing by TimeTrackersController#stop as HTML Current user: admin (id=439) Redirected to http://192.168.1.66/redmine/issues/28 Completed 302 Found in 27.6ms (ActiveRecord: 14.3ms) Started GET "/redmine/issues/28" for 192.168.10.137 at 2014-03-31 10:07:12 +0000 Processing by IssuesController#show as HTML Parameters: {"id"=>"28"} Current user: admin (id=439) Rendered issues/_action_menu.html.erb (4.5ms) Rendered plugins/redmine_time_tracker/app/views/time_trackers/_issue_action_menu.html.erb (1.7ms) Rendered issue_relations/_form.html.erb (2.7ms) Rendered issues/_relations.html.erb (4.2ms) Rendered issues/_action_menu.html.erb (3.1ms) Rendered issues/_form_custom_fields.html.erb (0.1ms) Rendered issues/_attributes.html.erb (14.7ms) Rendered issues/_form.html.erb (40.0ms) Rendered attachments/_form.html.erb (2.2ms) Rendered issues/_edit.html.erb (54.8ms) Rendered issues/_sidebar.html.erb (9.9ms) Rendered watchers/_watchers.html.erb (5.4ms) Rendered plugins/event_notifications/app/views/issues/show.html.erb within layouts/base (108.7ms) Rendered inline template (0.8ms) Rendered plugins/redmine_time_tracker/app/views/time_trackers/_assets.html.erb (1.6ms) Completed 200 OK in 346.7ms (Views: 209.8ms | ActiveRecord: 81.8ms) Started GET "/redmine/tt_menu_switcher/index" for 192.168.10.137 at 2014-03-31 10:07:17 +0000 Processing by TtMenuSwitcherController#index as HTML Current user: admin (id=439) Redirected to http://192.168.1.66/redmine/tt_overview Completed 302 Found in 7.9ms (ActiveRecord: 4.6ms) Started GET "/redmine/tt_overview" for 192.168.10.137 at 2014-03-31 10:07:17 +0000 Processing by TtOverviewController#index as HTML Current user: admin (id=439) Completed 500 Internal Server Error in 33.0ms

NameError (uninitialized constant ActiveRecord::AttributeMethods::Query::StatementInvalid): plugins/redmine_time_tracker/app/models/time_log_query.rb:54:in rescue in log_count_by_group' plugins/redmine_time_tracker/app/models/time_log_query.rb:38:inlog_count_by_group' plugins/redmine_time_tracker/app/controllers/tt_overview_controller.rb:39:in index' actionpack (3.2.17) lib/action_controller/metal/implicit_render.rb:4:insend_action' actionpack (3.2.17) lib/abstract_controller/base.rb:167:in process_action' actionpack (3.2.17) lib/action_controller/metal/rendering.rb:10:inprocess_action' actionpack (3.2.17) lib/abstract_controller/callbacks.rb:18:in block in process_action' activesupport (3.2.17) lib/active_support/callbacks.rb:491:in_run1452076599606981865process_action1229103561621212821callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.17) lib/active_support/callbacks.rb:385:in_run_process_action_callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.17) lib/abstract_controller/callbacks.rb:17:inprocess_action' actionpack (3.2.17) lib/action_controller/metal/rescue.rb:29:in process_action' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:30:inblock in process_action' activesupport (3.2.17) lib/active_support/notifications.rb:123:in block in instrument' activesupport (3.2.17) lib/active_support/notifications/instrumenter.rb:20:ininstrument' activesupport (3.2.17) lib/active_support/notifications.rb:123:in instrument' actionpack (3.2.17) lib/action_controller/metal/instrumentation.rb:29:inprocess_action' actionpack (3.2.17) lib/action_controller/metal/params_wrapper.rb:207:in process_action' activerecord (3.2.17) lib/active_record/railties/controller_runtime.rb:18:inprocess_action' actionpack (3.2.17) lib/abstract_controller/base.rb:121:in process' actionpack (3.2.17) lib/abstract_controller/rendering.rb:45:inprocess' actionpack (3.2.17) lib/action_controller/metal.rb:203:in dispatch' actionpack (3.2.17) lib/action_controller/metal/rack_delegation.rb:14:indispatch' actionpack (3.2.17) lib/action_controller/metal.rb:246:in block in action' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:73:incall' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:73:in dispatch' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:36:incall' journey (1.0.4) lib/journey/router.rb:68:in block in call' journey (1.0.4) lib/journey/router.rb:56:ineach' journey (1.0.4) lib/journey/router.rb:56:in call' actionpack (3.2.17) lib/action_dispatch/routing/route_set.rb:608:incall' rack-openid (1.3.1) lib/rack/openid.rb:98:in call' actionpack (3.2.17) lib/action_dispatch/middleware/best_standards_support.rb:17:incall' rack (1.4.5) lib/rack/etag.rb:23:in call' rack (1.4.5) lib/rack/conditionalget.rb:25:incall' actionpack (3.2.17) lib/action_dispatch/middleware/head.rb:14:in call' actionpack (3.2.17) lib/action_dispatch/middleware/params_parser.rb:21:incall' actionpack (3.2.17) lib/action_dispatch/middleware/flash.rb:242:in call' rack (1.4.5) lib/rack/session/abstract/id.rb:210:incontext' rack (1.4.5) lib/rack/session/abstract/id.rb:205:in call' actionpack (3.2.17) lib/action_dispatch/middleware/cookies.rb:341:incall' activerecord (3.2.17) lib/active_record/query_cache.rb:64:in call' activerecord (3.2.17) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:incall' actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:28:in block in call' activesupport (3.2.17) lib/active_support/callbacks.rb:405:in_run2046092292658111565call989915056213981644callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:405:in __run_callback' activesupport (3.2.17) lib/active_support/callbacks.rb:385:in_run_call_callbacks' activesupport (3.2.17) lib/active_support/callbacks.rb:81:in run_callbacks' actionpack (3.2.17) lib/action_dispatch/middleware/callbacks.rb:27:incall' actionpack (3.2.17) lib/action_dispatch/middleware/remote_ip.rb:31:in call' actionpack (3.2.17) lib/action_dispatch/middleware/debug_exceptions.rb:16:incall' actionpack (3.2.17) lib/action_dispatch/middleware/show_exceptions.rb:56:in call' railties (3.2.17) lib/rails/rack/logger.rb:32:incall_app' railties (3.2.17) lib/rails/rack/logger.rb:16:in block in call' activesupport (3.2.17) lib/active_support/tagged_logging.rb:22:intagged' railties (3.2.17) lib/rails/rack/logger.rb:16:in call' actionpack (3.2.17) lib/action_dispatch/middleware/request_id.rb:22:incall' rack (1.4.5) lib/rack/methodoverride.rb:21:in call' rack (1.4.5) lib/rack/runtime.rb:17:incall' activesupport (3.2.17) lib/active_support/cache/strategy/local_cache.rb:72:in call' rack (1.4.5) lib/rack/lock.rb:15:incall' actionpack (3.2.17) lib/action_dispatch/middleware/static.rb:63:in call' rack-cache (1.2) lib/rack/cache/context.rb:136:inforward' rack-cache (1.2) lib/rack/cache/context.rb:245:in fetch' rack-cache (1.2) lib/rack/cache/context.rb:185:inlookup' rack-cache (1.2) lib/rack/cache/context.rb:66:in call!' rack-cache (1.2) lib/rack/cache/context.rb:51:incall' railties (3.2.17) lib/rails/engine.rb:484:in call' railties (3.2.17) lib/rails/application.rb:231:incall' railties (3.2.17) lib/rails/railtie/configurable.rb:30:in method_missing' rack (1.4.5) lib/rack/builder.rb:134:incall' rack (1.4.5) lib/rack/urlmap.rb:64:in block in call' rack (1.4.5) lib/rack/urlmap.rb:49:ineach' rack (1.4.5) lib/rack/urlmap.rb:49:in call' passenger (4.0.33) lib/phusion_passenger/rack/thread_handler_extension.rb:77:inprocess_request' passenger (4.0.33) lib/phusion_passenger/request_handler/thread_handler.rb:141:in accept_and_process_next_request' passenger (4.0.33) lib/phusion_passenger/request_handler/thread_handler.rb:109:inmain_loop' passenger (4.0.33) lib/phusion_passenger/request_handler.rb:440:in `block (3 levels) in start_threads'

martinllanos commented 10 years ago

Install Bitnami Redmine 2.5 with command;

This is an example on linux 64 bit arch

 chmod +x bitnami-redmine-2.5.0-0-linux-x64-installer.run
 ./bitnami-redmine-2.5.0-0-linux-x64-installer.run \
 --mode unattended \
 --prefix /opt/redmine \
 --installer-language es \
 --disable-components phpmyadmin \
 --mysql_port 3307 \
 --apache_server_port 80 \
 --apache_server_ssl_port 443 \
 --base_user user \
 --base_password bitnami \
 --base_user_name bitnami \
 --subversion_port 3690 \
 --base_mail desarrolloCoto@redcoto.com.ar \
 --redmine_language es \
 --smtp_enable 1 \
 --smtp_port 25 \
 --smtp_host 172.18.8.90 \
 --smtp_protocol none \
 --smtp_user "" \
 --smtp_password ""  \
 --web_server_domain homero.redcoto.com.ar

Install redmine_time_tracker 0.9.7 from Github

cd /opt/redmine
./use_redmine
cd /opt/redmine/apps/redmine/htdocs/plugins/
git clone https://github.com/hicknhack-software/redmine_time_tracker.git

Install gem files with bundle on no-deployment mode

cd /opt/redmine/apps/redmine/htdocs
bundle install --no-deployment

Install rdoc files with gem

cd /opt/redmine/apps/redmine/htdocs
gem install rdoc-data; rdoc-data --install

Migrate plugin estructure;

rake redmine:plugins:migrate RAILS_ENV=production

Enable REST and JSONP Web Services with Redmine Administration menu

Login in redmine username: user password: bitnami Administration/Configuration/Authentication/

Enable REST/JSON Service and Support

Restart Redmine with command;

cd /opt/redmine
./ctlscript.sh restart apache

It is an upgrade, you either have to run in command;

cd /opt/redmine
./use_redmine
cd /opt/redmine/apps/redmine/htdocs/plugins/redmine_time_tracker
git pull
cd /opt/redmine/apps/redmine/htdocs/
rake redmine:plugins:migrate RAILS_ENV=production

You can then run this command need to install more gems

The intention of this tutorial is to consider the steps to follow to get a good performance and detect where is a possible malfunction. No leads in check again if this does not work.

balagab commented 10 years ago

I made the steps, but it did not help. What exactly gives the TimeTracker menu for me? Is it only responsible for reporting? If yes, it doesn’t matter, as we use MS SQL, so the reporting is not problem. However that would be great if the user could run the ticket (start/stop the timer) when it is assigned to him/her. Is there any plan to solve it?

Thank you four your help, this is a very userful plugin!

From: Martin Llanos [mailto:notifications@github.com] Sent: Monday, March 31, 2014 8:19 PM To: fernandokosh/redmine_time_tracker Cc: Balázs Gábor Subject: Re: [redmine_time_tracker] redmine 2.0 support (#79)

Install Bitnami Redmine 2.5 with command;

This is an example on 64 bit linux

chmod +x bitnami-redmine-2.5.0-0-linux-x64-installer.run

./bitnami-redmine-2.5.0-0-linux-x64-installer.run \

--mode unattended \

--prefix /opt/redmine \

--installer-language es \

--disable-components phpmyadmin \

--mysql_port 3307 \

--apache_server_port 80 \

--apache_server_ssl_port 443 \

--base_user user \

--base_password bitnami \

--base_user_name bitnami \

--subversion_port 3690 \

--base_mail desarrolloCoto@redcoto.com.armailto:desarrolloCoto@redcoto.com.ar \

--redmine_language es \

--smtp_enable 1 \

--smtp_port 25 \

--smtp_host 172.18.8.90 \

--smtp_protocol none \

--smtp_user "" \

--smtp_password "" \

--web_server_domain homero.redcoto.com.ar

Install redmine_time_tracker 0.9.7 from Github

cd /opt/redmine

./use_redmine

cd /opt/redmine/apps/redmine/htdocs/plugins/

git clone https://github.com/hicknhack-software/redmine_time_tracker.git

Install gem files with bundle on no-deployment mode

cd /opt/redmine/apps/redmine/htdocs

bundle install --no-deployment

Install rdoc files with gem

cd /opt/redmine/apps/redmine/htdocs

gem install rdoc-data; rdoc-data --install

Migrate plugin estructure;

rake redmine:plugins:migrate RAILS_ENV=production

Enable REST and JSONP Web Services with Redmine Administration menu

Login in redmine username: user password: bitnami Administration/Configuration/Authentication/

Enable REST/JSON Service and Support

Restart Redmine with command;

cd /opt/redmine

./


It is an upgrade, you either have to run in command;

cd /opt/redmine

./use_redmine

cd /opt/redmine/apps/redmine/htdocs/plugins/redmine_time_tracker

git pull

rake redmine:plugins:migrate RAILS_ENV=production

You can then run this command need to install more gems

The intention of this tutorial is to consider the steps to follow to get a good performance and detect where is a possible malfunction. No leads in check again if this does not work.

— Reply to this email directly or view it on GitHubhttps://github.com/fernandokosh/redmine_time_tracker/issues/79#issuecomment-39122506.

cgatian commented 10 years ago

Simple. Redmine is dead

balagab notifications@github.com wrote:

I made the steps, but it did not help. What exactly gives the TimeTracker menu for me? Is it only responsible for reporting? If yes, it doesn’t matter, as we use MS SQL, so the reporting is not problem. However that would be great if the user could run the ticket (start/stop the timer) when it is assigned to him/her. Is there any plan to solve it?

Thank you four your help, this is a very userful plugin!

From: Martin Llanos [mailto:notifications@github.com] Sent: Monday, March 31, 2014 8:19 PM To: fernandokosh/redmine_time_tracker Cc: Balázs Gábor Subject: Re: [redmine_time_tracker] redmine 2.0 support (#79)

Install Bitnami Redmine 2.5 with command;

This is an example on 64 bit linux

chmod +x bitnami-redmine-2.5.0-0-linux-x64-installer.run

./bitnami-redmine-2.5.0-0-linux-x64-installer.run \

--mode unattended \

--prefix /opt/redmine \

--installer-language es \

--disable-components phpmyadmin \

--mysql_port 3307 \

--apache_server_port 80 \

--apache_server_ssl_port 443 \

--base_user user \

--base_password bitnami \

--base_user_name bitnami \

--subversion_port 3690 \

--base_mail desarrolloCoto@redcoto.com.armailto:desarrolloCoto@redcoto.com.ar \

--redmine_language es \

--smtp_enable 1 \

--smtp_port 25 \

--smtp_host 172.18.8.90 \

--smtp_protocol none \

--smtp_user "" \

--smtp_password "" \

--web_server_domain homero.redcoto.com.ar

Install redmine_time_tracker 0.9.7 from Github

cd /opt/redmine

./use_redmine

cd /opt/redmine/apps/redmine/htdocs/plugins/

git clone https://github.com/hicknhack-software/redmine_time_tracker.git

Install gem files with bundle on no-deployment mode

cd /opt/redmine/apps/redmine/htdocs

bundle install --no-deployment

Install rdoc files with gem

cd /opt/redmine/apps/redmine/htdocs

gem install rdoc-data; rdoc-data --install

Migrate plugin estructure;

rake redmine:plugins:migrate RAILS_ENV=production

Enable REST and JSONP Web Services with Redmine Administration menu

Login in redmine username: user password: bitnami Administration/Configuration/Authentication/

Enable REST/JSON Service and Support

Restart Redmine with command;

cd /opt/redmine

./


It is an upgrade, you either have to run in command;

cd /opt/redmine

./use_redmine

cd /opt/redmine/apps/redmine/htdocs/plugins/redmine_time_tracker

git pull

rake redmine:plugins:migrate RAILS_ENV=production

You can then run this command need to install more gems

The intention of this tutorial is to consider the steps to follow to get a good performance and detect where is a possible malfunction. No leads in check again if this does not work.

— Reply to this email directly or view it on GitHubhttps://github.com/fernandokosh/redmine_time_tracker/issues/79#issuecomment-39122506.


Reply to this email directly or view it on GitHub: https://github.com/fernandokosh/redmine_time_tracker/issues/79#issuecomment-39416726

balagab commented 10 years ago

Hi, so now everyone can start the time tracker on every issue page, The best would be if a user could starts the time tracker on an issue page, only if the issue is assigned to him/her. Thanks