Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
8 stars 3 forks source link

feat: history for charge changes are stored #1876

Closed x-platformcoder closed 1 year ago

x-platformcoder commented 1 year ago

Description

this story is about implementing the historical data model for charge information and being able to populate it with data from accepted Charge Information events, so it can be queried through Charges Web API

References

codecov[bot] commented 1 year ago

Codecov Report

Merging #1876 (e63d8bc) into main (f0115c3) will increase coverage by 52.00%. The diff coverage is 90.74%.

@@             Coverage Diff             @@
##             main    #1876       +/-   ##
===========================================
+ Coverage   32.22%   84.23%   +52.00%     
===========================================
  Files          24      460      +436     
  Lines         512     8208     +7696     
  Branches       23       23               
===========================================
+ Hits          165     6914     +6749     
- Misses        332     1150      +818     
- Partials       15      144      +129     
Flag Coverage Δ
business 87.69% <90.74%> (?)
clientlibraries 32.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...nEnergyHub.Charges.QueryApi/Model/ChargeHistory.cs 0.00% <0.00%> (ø)
...nEnergyHub.Charges.QueryApi/Model/ChargeMessage.cs 0.00% <ø> (ø)
...tionHost/Configuration/HealthCheckConfiguration.cs 51.06% <40.00%> (ø)
...nEnergyHub.Charges.Domain/Charges/ChargeHistory.cs 93.97% <93.97%> (ø)
...ndlers/ChargeInformation/ChargeHistoryPersister.cs 100.00% <100.00%> (ø)
...tionHost/Charges/ChargeHistoryPersisterEndpoint.cs 100.00% <100.00%> (ø)
...ergyHub.Charges.FunctionHost/ChargesFunctionApp.cs 94.00% <100.00%> (ø)
...ion/ChargeHistoryPersisterEndpointConfiguration.cs 100.00% <100.00%> (ø)
....FunctionHost/Configuration/SharedConfiguration.cs 92.61% <100.00%> (ø)
...frastructure/Persistence/ChargesDatabaseContext.cs 96.00% <100.00%> (ø)
... and 435 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 5 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication