Merge pull request #26 from finnlabs/fix-groupby-subclass-loading
[OPF #997, #1005] Fix groupby subclass loadingpull/6827/head
commit
2e7890968f
@ -1 +0,0 @@ |
|||||||
class CostQuery::Filter::Base < Report::Filter::Base; end |
|
@ -1,8 +1,5 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::ActivityId < Report::GroupBy::Base |
||||||
class ActivityId < Base |
def self.label |
||||||
|
TimeEntry.human_attribute_name(:activity) |
||||||
def self.label |
|
||||||
TimeEntry.human_attribute_name(:activity) |
|
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::AssignedToId < Report::GroupBy::Base |
||||||
class AssignedToId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:assigned_to) |
Issue.human_attribute_name(:assigned_to) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::AuthorId < Report::GroupBy::Base |
||||||
class AuthorId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:author) |
Issue.human_attribute_name(:author) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1 +0,0 @@ |
|||||||
class CostQuery::GroupBy::Base < Report::GroupBy::Base; end |
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::CategoryId < Report::GroupBy::Base |
||||||
class CategoryId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:category) |
Issue.human_attribute_name(:category) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::CostObjectId < Report::GroupBy::Base |
||||||
class CostObjectId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
CostObject.model_name.human |
CostObject.model_name.human |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,6 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::CostTypeId < Report::GroupBy::Base |
||||||
class CostTypeId < Base |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
CostType.model_name.human |
CostType.model_name.human |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,7 +1,5 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::CustomFieldEntries < Report::GroupBy::Base |
||||||
class CustomFieldEntries < Base |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
extend CostQuery::CustomFieldMixin |
||||||
extend CostQuery::CustomFieldMixin |
on_prepare { group_fields table_name } |
||||||
on_prepare { group_fields table_name } |
|
||||||
end |
|
||||||
end |
end |
||||||
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::FixedVersionId < Report::GroupBy::Base |
||||||
class FixedVersionId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:fixed_version) |
Issue.human_attribute_name(:fixed_version) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,6 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::IssueId < Report::GroupBy::Base |
||||||
class IssueId < Base |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.model_name.human |
Issue.model_name.human |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::PriorityId < Report::GroupBy::Base |
||||||
class PriorityId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:priority) |
Issue.human_attribute_name(:priority) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,6 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::ProjectId < Report::GroupBy::Base |
||||||
class ProjectId < Base |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Project.model_name.human |
Project.model_name.human |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,5 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::SpentOn < Report::GroupBy::Base |
||||||
class SpentOn < Base |
def self.label |
||||||
|
I18n.t(:label_spent_on_reporting) |
||||||
def self.label |
|
||||||
I18n.t(:label_spent_on_reporting) |
|
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::StatusId < Report::GroupBy::Base |
||||||
class StatusId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:status) |
Issue.human_attribute_name(:status) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,6 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::Tmonth < Report::GroupBy::Base |
||||||
class Tmonth < Base |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
I18n.t(:label_month_reporting) |
I18n.t(:label_month_reporting) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,10 +1,8 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::TrackerId < Report::GroupBy::Base |
||||||
class TrackerId < Base |
join_table Issue |
||||||
join_table Issue |
applies_for :label_issue_attributes |
||||||
applies_for :label_issue_attributes |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:tracker) |
Issue.human_attribute_name(:tracker) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,6 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::Tweek < Report::GroupBy::Base |
||||||
class Tweek < Base |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
I18n.t(:label_week_reporting) |
I18n.t(:label_week_reporting) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,6 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::Tyear < Report::GroupBy::Base |
||||||
class Tyear < Base |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
I18n.t(:label_year_reporting) |
I18n.t(:label_year_reporting) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,6 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::UserId < Report::GroupBy::Base |
||||||
class UserId < Base |
|
||||||
|
|
||||||
def self.label |
def self.label |
||||||
Issue.human_attribute_name(:user) |
Issue.human_attribute_name(:user) |
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
@ -1,8 +1,5 @@ |
|||||||
class CostQuery::GroupBy |
class CostQuery::GroupBy::Week < Report::GroupBy::Base |
||||||
class Week < Base |
def self.label |
||||||
|
I18n.t(:label_week_reporting) |
||||||
def self.label |
|
||||||
I18n.t(:label_week_reporting) |
|
||||||
end |
|
||||||
end |
end |
||||||
end |
end |
||||||
|
Loading…
Reference in new issue