Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
lexa62
committed
Sep 21, 2018
1 parent
131c1bc
commit 42696dd
Showing
26 changed files
with
89 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
= redmine_issue_progress | ||
= done_ratio_via_time | ||
|
||
Description goes here |
10 changes: 5 additions & 5 deletions
10
...ers/issue_progress_settings_controller.rb → ...one_ratio_via_time_settings_controller.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ews/issue_progress_settings/edit.html.erb → ...one_ratio_via_time_settings/edit.html.erb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
get 'issue_progress_settings/edit', to: 'issue_progress_settings#edit' | ||
post 'issue_progress_settings/update', to: 'issue_progress_settings#update' | ||
get 'done_ratio_via_time_settings/edit', to: 'done_ratio_via_time_settings#edit' | ||
post 'done_ratio_via_time_settings/update', to: 'done_ratio_via_time_settings#update' | ||
get 'job_statuses', to: 'job_statuses#index' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
require 'sidekiq_initialization' | ||
|
||
# must be loaded before IssueQuery | ||
require 'done_ratio_via_time/patches/issue_relation_patch' | ||
|
||
require 'done_ratio_setup' | ||
require 'calculate_done_ratio' | ||
require 'update_parents_done_ratio' | ||
|
||
require 'workers/issue_done_ratio_recalculation_worker' | ||
|
||
Rails.configuration.to_prepare do | ||
# patches | ||
require 'done_ratio_via_time/patches/issue_patch' | ||
require 'done_ratio_via_time/patches/time_entry_patch' | ||
require 'done_ratio_via_time/patches/issues_helper_patch' | ||
require 'done_ratio_via_time/patches/issue_relations_controller_patch' | ||
require 'done_ratio_via_time/patches/issue_query_patch' | ||
require 'done_ratio_via_time/patches/project_patch' | ||
|
||
# hooks | ||
require 'done_ratio_via_time/done_ratio_via_time_hooks/views_issues_hook' | ||
require 'done_ratio_via_time/done_ratio_via_time_hooks/view_projects_hook' | ||
require 'done_ratio_via_time/done_ratio_via_time_hooks/view_layouts_hook' | ||
end |
4 changes: 2 additions & 2 deletions
4
...issue_progress_hooks/view_layouts_hook.rb → ...ratio_via_time_hooks/view_layouts_hook.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...ssue_progress_hooks/view_projects_hook.rb → ...atio_via_time_hooks/view_projects_hook.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
module RedmineIssueProgress | ||
module DoneRatioViaTime | ||
module Hooks | ||
# default done ratio calculation type in project settings | ||
class ViewsProjectsHook < Redmine::Hook::ViewListener | ||
render_on :view_projects_form, | ||
partial: 'issue_progress_hooks/view_projects_form' | ||
partial: 'done_ratio_via_time_hooks/view_projects_form' | ||
end | ||
end | ||
end |
8 changes: 4 additions & 4 deletions
8
...issue_progress_hooks/views_issues_hook.rb → ...ratio_via_time_hooks/views_issues_hook.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
module RedmineIssueProgress | ||
module DoneRatioViaTime | ||
module Hooks | ||
# done_ratio as numeric field, done_ratio_calculation_type field | ||
class ViewsIssuesHook < Redmine::Hook::ViewListener | ||
render_on :view_issues_form_details_bottom, | ||
partial: 'issue_progress_hooks/view_issues_form_details_bottom' | ||
partial: 'done_ratio_via_time_hooks/view_issues_form_details_bottom' | ||
render_on :view_issues_context_menu_start, | ||
partial: 'issue_progress_hooks/view_issues_context_menu_start' | ||
partial: 'done_ratio_via_time_hooks/view_issues_context_menu_start' | ||
render_on :view_issues_bulk_edit_details_bottom, | ||
partial: 'issue_progress_hooks/view_issues_bulk_edit_details_bottom' | ||
partial: 'done_ratio_via_time_hooks/view_issues_bulk_edit_details_bottom' | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.