You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To accomodate the new templates, a new table DataReport will be introduced.
DataReport 1-Many with Goal
Moving from one Goal model to several Goals, each inheriting from the parent model Goal. The new goal types will be GoalStandard, GoalTransaction, GoalWaterTreatment, GoalStreetLights, GoalDataCenter.
Through these new Goal types, each template can be represented by nesting Goal types under a DataReport. Many of the templates introduce the concept of a "blended sumamry". A blended summary aggregates each of its child goal's summary values (total sqft across all goals). When a DataReport has multiple Goals, the DataReport endpoints will handle the "blended summary".
multi goal data reports should have a parent portfolio summary based on data report type
modify goal editor for different types
prevent users from changing report/goal types while editing
if standard data report, hardcode new goals as standard type (same with transactions and data centers). MultiFamily will have OPR option. WWT will have wastewater and streetlights.
data quality checks by data_report, not goal
partial when no data reports
Comments
Data reports are generic, but we should probably hard code around them
Would a unique controller for each data_report type make sense?
DB Schema
To accomodate the new templates, a new table
DataReport
will be introduced.DataReport
1-Many withGoal
Goal
model to severalGoals
, each inheriting from the parent modelGoal
. The new goal types will beGoalStandard
,GoalTransaction
,GoalWaterTreatment
,GoalStreetLights
,GoalDataCenter
.Through these new
Goal
types, each template can be represented by nestingGoal
types under aDataReport
. Many of the templates introduce the concept of a "blended sumamry". A blended summary aggregates each of its child goal's summary values (total sqft across all goals). When a DataReport has multipleGoals
, theDataReport
endpoints will handle the "blended summary".Template breakdown
There are 6 unique data report templates.
DataReport -> [GoalTransaction]
DataReport -> [GoalStanard]
(optional AAPI field = True)DataReport -> [GoalStandard, GoalStandard]
DataReport -> [GoalStandard, GoalStandard]
(optional AAPI field = True)DataReport -> [GoalStandard, GoalWaterTreatement, GoalStreetlight]
DataReport -> [GoalDataCenter]
Concerns
The text was updated successfully, but these errors were encountered: