Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

fix: Use searchcriteria daterange as provided by UI #1869

Closed HenrikSommer closed 1 year ago

HenrikSommer commented 1 year ago

Description

The date range as provided by UI now includes the whole range from midnight of the fromDate to the millisecond before midnight on the day after endDate, so no need to add a day in the backend search.

codecov[bot] commented 1 year ago

Codecov Report

Merging #1869 (be9f356) into main (0a64bd3) will decrease coverage by 0.34%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1869      +/-   ##
==========================================
- Coverage   84.48%   84.14%   -0.35%     
==========================================
  Files         471      450      -21     
  Lines        8121     7888     -233     
  Branches      442       22     -420     
==========================================
- Hits         6861     6637     -224     
+ Misses       1174     1123      -51     
- Partials       86      128      +42     
Flag Coverage Δ
business 87.64% <100.00%> (?)

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

Impacted Files Coverage Δ
...ueryApi/QueryServices/ChargeMessageQueryService.cs 90.00% <100.00%> (-4.00%) :arrow_down:
...ergyHub.Charges.Domain/Charges/ChargeIdentifier.cs 0.00% <0.00%> (-100.00%) :arrow_down:
...ain/Dtos/Events/MarketParticipantCreatedCommand.cs 14.28% <0.00%> (-85.72%) :arrow_down:
...es.Domain/Dtos/Events/GridAreaOwnerAddedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
...Dtos/Events/MarketParticipantNameChangedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
...os/Events/MarketParticipantStatusChangedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
...vents/MarketParticipantB2CActorIdChangedCommand.cs 33.33% <0.00%> (-66.67%) :arrow_down:
....ApplyDBMigrationsApp/Helpers/EnvironmentFilter.cs 0.00% <0.00%> (-62.50%) :arrow_down:
....Domain/Dtos/Events/GridAreaOwnerRemovedCommand.cs 50.00% <0.00%> (-50.00%) :arrow_down:
...rastructure.Core/Registration/EnvironmentHelper.cs 0.00% <0.00%> (-50.00%) :arrow_down:
... and 70 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 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication