-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redmine 2.0 support #79
Comments
Redmine 2.x uses Rail 3.x. I don't know what changes are needed to have the However, there have been some changes on the routes in the development |
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:
|
I really wish this change would come true! |
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. |
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 hicknhack-software@b857397 |
Great job with this plugin! Do you have plans to make this compatible with Redmine 2.0.x? |
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... |
the hicknhack fork (https://github.com/hicknhack-software/redmine_time_tracker) works well with redmine 2.0.x 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 ) hope it will help anyone. |
Thanks delaitre and creich. I appreciate the time/effort you put in. |
And another fork with Redmine 2.0 support: https://github.com/martinllanos/redmine_time_tracker |
@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 Have you any ideas? Thanks! |
It seems you had run it without plugin's migration. |
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? |
I have same problem:
|
@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 |
i am not sure about that, but i think it is not! |
@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. |
Hello. Unfortunately - I never got this to work. Let me know if you do! On Jun 6, 2013, at 12:17 PM, Nico [email protected] wrote:
|
i tried https://github.com/hicknhack-software/redmine_time_tracker and its not woribng with redmine 2.3.1 ;( |
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. |
My mistake as i meant redmine 2.3.1 |
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. |
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). |
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: We use Redmine 2.5 bitnami image. Thanks |
Hi!,
Martín Llanos 2014-03-25 9:28 GMT-03:00 balagab [email protected]:
|
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! |
Solution OneActivate "Enable REST web service" in the authentication tab in settings Solution Two
Execute from bitnami home path ./use_redmine
select version from schema_migrations where version like '%time_tracker%'; delete from schema_migrations where version like '%time_tracker%';
Solution Three
cd /opt/redmine/apps/redmine/htdocs/config cp additional_environment.rb.example additional_environment.rb edit file additional_environment.rb, Execute from bitnami home path ./use_redmine tail -f /opt/redmine/apps/redmine/htdocs/log/production.log
Martín Llanos |
Dear Martín Llanos! Please find attached the relevant part of the production log file. Thank you, From: Martin Llanos [mailto:[email protected]] Solution One Activate "Enable REST web service" in the authentication tab in settings Solution Two
Execute from bitnami home path ./use_redmine
select version from schema_migrations where version like '%time_tracker%'; delete from schema_migrations where version like '%time_tracker%';
Solution Three
cd /opt/redmine/apps/redmine/htdocs/config cp additional_environment.rb.example additional_environment.rb edit file additional_environment.rb, Execute from bitnami home path ./use_redmine tail -f /opt/redmine/apps/redmine/htdocs/log/production.log
Martín Llanos — Started GET "/redmine/time_trackers/start" for 192.168.10.137 at 2014-03-31 10:07:08 +0000 NameError (uninitialized constant ActiveRecord::AttributeMethods::Query::StatementInvalid): |
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 [email protected] \ --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 Githubcd /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 modecd /opt/redmine/apps/redmine/htdocs bundle install --no-deployment Install rdoc files with gemcd /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 menuLogin in redmine 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
|
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. Thank you four your help, this is a very userful plugin! From: Martin Llanos [mailto:[email protected]] 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 [email protected]:[email protected] \ --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 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. — |
Simple. Redmine is dead balagab [email protected] 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. Thank you four your help, this is a very userful plugin! From: Martin Llanos [mailto:[email protected]] 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 [email protected]:[email protected] \ --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 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. — Reply to this email directly or view it on GitHub: |
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. |
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 :)
The text was updated successfully, but these errors were encountered: