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
As a Carbon Aware Application Developer, I want to clean the code to remove redundant classes and establish clear boundaries between different models thereby reducing complexity and bringing clarity to the repo.
Currently, there are similar model classes in the GSF library, CarbonAware project and the Consumer layers as listed below -
<style>
</style>
CarbonAware project
GSF library
WebAPI
CLI
EmissionsData
EmissionsData
EmissionsDataDTO
EmissionsDataDTO
EmissionsForecast
EmissionsForecast
EmissionsForecastDTO
EmissionsForecastDTO
Each Consumer layer should have its own DTO that may not be identical to another consumer layer to help normalize the data. The common model should only contain fields received from the data source response and the user input fields should reside in the consumer DTO models.
Acceptance Criteria
Checklist
Ensure that the consumers (CLI and WebAI) return data in their own format
User-input parameters should be set in the response by the consumer layer
A list of the fields retrieving from the backend and the list of fields that are returning user-inputted values - added to Class documentation
Description
As a Carbon Aware Application Developer, I want to clean the code to remove redundant classes and establish clear boundaries between different models thereby reducing complexity and bringing clarity to the repo.
Currently, there are similar model classes in the GSF library, CarbonAware project and the Consumer layers as listed below -
<style> </style>Each Consumer layer should have its own DTO that may not be identical to another consumer layer to help normalize the data. The common model should only contain fields received from the data source response and the user input fields should reside in the consumer DTO models.
Acceptance Criteria
Checklist
Documentation:
Dependencies
Green-Software-Foundation#269
Sprint-Ready Checklist
The text was updated successfully, but these errors were encountered: