Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

feat: Create endpoint in Charges Web API that serves charge history data #1877

Closed prtandrup closed 1 year ago

prtandrup commented 1 year ago

Description

With this PR a new Charges Web API endpoint is created that upon request can provide Charge History data (Charge Information).

References

codecov[bot] commented 1 year ago

Codecov Report

Merging #1877 (19e5f9e) into main (f0115c3) will increase coverage by 51.75%. The diff coverage is 83.33%.

@@             Coverage Diff             @@
##             main    #1877       +/-   ##
===========================================
+ Coverage   32.22%   83.98%   +51.75%     
===========================================
  Files          24      454      +430     
  Lines         512     8059     +7547     
  Branches       23       23               
===========================================
+ Hits          165     6768     +6603     
- Misses        332     1147      +815     
- Partials       15      144      +129     
Flag Coverage Δ
business 87.49% <83.33%> (?)
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% <ø> (ø)
...ges/source/GreenEnergyHub.Charges.QueryApi/Data.cs 100.00% <100.00%> (ø)
...EnergyHub.Charges.QueryApi/Model/QueryDbContext.cs 98.54% <100.00%> (ø)
...ueryApi/QueryServices/ChargeHistoryQueryService.cs 100.00% <100.00%> (ø)
...ueryApi/QueryServices/ChargeMessageQueryService.cs 90.19% <100.00%> (ø)
...s.WebApi/Controllers/V1/ChargeHistoryController.cs 100.00% <100.00%> (ø)
...nEnergyHub.Charges.WebApi/QueryApiConfiguration.cs 98.07% <100.00%> (ø)
...ub.Charges.Domain/ChargeLinks/ChargeLinkFactory.cs 100.00% <0.00%> (ø)
...hargePriceMessagePersisterEndpointConfiguration.cs 100.00% <0.00%> (ø)
... and 425 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 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication