Energinet-DataHub / ARCHIVED-geh-charges

Apache License 2.0
7 stars 3 forks source link

Revert: The database migration for `ChargesQuery.ChargeHistory` #1874

Closed prtandrup closed 1 year ago

prtandrup commented 1 year ago

Description

Due to an issue with the CD job ApplyDatabaseMigrations, it is necessary to revert PR1872. Once the CD issue is fixed, the ChargeHistory table will be added again.

As of now, the Charges U-001 database has been deleted and recreated. An older PR will soon be deployed PR1869, which know nothing about the ChargesQuery.ChargeHistory table, and thus deleting this table here in this PR will work, as none of the environments will have executed the creation.

References

codecov[bot] commented 1 year ago

Codecov Report

Merging #1874 (766c3a5) into main (0a64bd3) will decrease coverage by 0.34%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1874      +/-   ##
==========================================
- 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

No Coverage information No Coverage information
No Duplication information No Duplication information