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,8 @@ |
||||
class CostQuery::Filter::CreatedOn < CostQuery::Filter::Base |
||||
class CostQuery::Filter::CreatedOn < Report::Filter::Base |
||||
db_field "entries.created_on" |
||||
use :time_operators |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:created_on) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,8 +1,8 @@ |
||||
class CostQuery::Filter::UpdatedOn < CostQuery::Filter::Base |
||||
class CostQuery::Filter::UpdatedOn < Report::Filter::Base |
||||
db_field "entries.updated_on" |
||||
use :time_operators |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:updated_on) |
||||
end |
||||
end |
||||
end |
||||
|
@ -1,8 +1,5 @@ |
||||
class CostQuery::GroupBy |
||||
class ActivityId < Base |
||||
|
||||
def self.label |
||||
TimeEntry.human_attribute_name(:activity) |
||||
end |
||||
class CostQuery::GroupBy::ActivityId < Report::GroupBy::Base |
||||
def self.label |
||||
TimeEntry.human_attribute_name(:activity) |
||||
end |
||||
end |
||||
|
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class AssignedToId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::AssignedToId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:assigned_to) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:assigned_to) |
||||
end |
||||
end |
||||
|
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class AuthorId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::AuthorId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:author) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:author) |
||||
end |
||||
end |
||||
|
@ -1 +0,0 @@ |
||||
class CostQuery::GroupBy::Base < Report::GroupBy::Base; end |
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class CategoryId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::CategoryId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:category) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:category) |
||||
end |
||||
end |
||||
|
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class CostObjectId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::CostObjectId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
CostObject.model_name.human |
||||
end |
||||
def self.label |
||||
CostObject.model_name.human |
||||
end |
||||
end |
||||
|
@ -1,8 +1,6 @@ |
||||
class CostQuery::GroupBy |
||||
class CostTypeId < Base |
||||
class CostQuery::GroupBy::CostTypeId < Report::GroupBy::Base |
||||
|
||||
def self.label |
||||
CostType.model_name.human |
||||
end |
||||
def self.label |
||||
CostType.model_name.human |
||||
end |
||||
end |
||||
|
@ -1,7 +1,5 @@ |
||||
class CostQuery::GroupBy |
||||
class CustomFieldEntries < Base |
||||
applies_for :label_issue_attributes |
||||
extend CostQuery::CustomFieldMixin |
||||
on_prepare { group_fields table_name } |
||||
end |
||||
class CostQuery::GroupBy::CustomFieldEntries < Report::GroupBy::Base |
||||
applies_for :label_issue_attributes |
||||
extend CostQuery::CustomFieldMixin |
||||
on_prepare { group_fields table_name } |
||||
end |
||||
|
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class FixedVersionId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::FixedVersionId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:fixed_version) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:fixed_version) |
||||
end |
||||
end |
||||
|
@ -1,8 +1,6 @@ |
||||
class CostQuery::GroupBy |
||||
class IssueId < Base |
||||
class CostQuery::GroupBy::IssueId < Report::GroupBy::Base |
||||
|
||||
def self.label |
||||
Issue.model_name.human |
||||
end |
||||
def self.label |
||||
Issue.model_name.human |
||||
end |
||||
end |
||||
|
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class PriorityId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::PriorityId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:priority) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:priority) |
||||
end |
||||
end |
||||
|
@ -1,8 +1,6 @@ |
||||
class CostQuery::GroupBy |
||||
class ProjectId < Base |
||||
class CostQuery::GroupBy::ProjectId < Report::GroupBy::Base |
||||
|
||||
def self.label |
||||
Project.model_name.human |
||||
end |
||||
def self.label |
||||
Project.model_name.human |
||||
end |
||||
end |
||||
|
@ -1,8 +1,5 @@ |
||||
class CostQuery::GroupBy |
||||
class SpentOn < Base |
||||
|
||||
def self.label |
||||
I18n.t(:label_spent_on_reporting) |
||||
end |
||||
class CostQuery::GroupBy::SpentOn < Report::GroupBy::Base |
||||
def self.label |
||||
I18n.t(:label_spent_on_reporting) |
||||
end |
||||
end |
||||
|
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class StatusId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::StatusId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:status) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:status) |
||||
end |
||||
end |
||||
|
@ -1,8 +1,6 @@ |
||||
class CostQuery::GroupBy |
||||
class Tmonth < Base |
||||
class CostQuery::GroupBy::Tmonth < Report::GroupBy::Base |
||||
|
||||
def self.label |
||||
I18n.t(:label_month_reporting) |
||||
end |
||||
def self.label |
||||
I18n.t(:label_month_reporting) |
||||
end |
||||
end |
||||
|
@ -1,10 +1,8 @@ |
||||
class CostQuery::GroupBy |
||||
class TrackerId < Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
class CostQuery::GroupBy::TrackerId < Report::GroupBy::Base |
||||
join_table Issue |
||||
applies_for :label_issue_attributes |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:tracker) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:tracker) |
||||
end |
||||
end |
||||
|
@ -1,8 +1,6 @@ |
||||
class CostQuery::GroupBy |
||||
class Tweek < Base |
||||
class CostQuery::GroupBy::Tweek < Report::GroupBy::Base |
||||
|
||||
def self.label |
||||
I18n.t(:label_week_reporting) |
||||
end |
||||
def self.label |
||||
I18n.t(:label_week_reporting) |
||||
end |
||||
end |
||||
|
@ -1,8 +1,6 @@ |
||||
class CostQuery::GroupBy |
||||
class Tyear < Base |
||||
class CostQuery::GroupBy::Tyear < Report::GroupBy::Base |
||||
|
||||
def self.label |
||||
I18n.t(:label_year_reporting) |
||||
end |
||||
def self.label |
||||
I18n.t(:label_year_reporting) |
||||
end |
||||
end |
||||
|
@ -1,8 +1,6 @@ |
||||
class CostQuery::GroupBy |
||||
class UserId < Base |
||||
class CostQuery::GroupBy::UserId < Report::GroupBy::Base |
||||
|
||||
def self.label |
||||
Issue.human_attribute_name(:user) |
||||
end |
||||
def self.label |
||||
Issue.human_attribute_name(:user) |
||||
end |
||||
end |
||||
|
@ -1,8 +1,5 @@ |
||||
class CostQuery::GroupBy |
||||
class Week < Base |
||||
|
||||
def self.label |
||||
I18n.t(:label_week_reporting) |
||||
end |
||||
class CostQuery::GroupBy::Week < Report::GroupBy::Base |
||||
def self.label |
||||
I18n.t(:label_week_reporting) |
||||
end |
||||
end |
||||
|
Loading…
Reference in new issue