Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Wholesale requests spanning a change in years #3085

Merged
merged 3 commits into from
Jan 10, 2025
Merged

Conversation

lasrinnil
Copy link
Contributor

@lasrinnil lasrinnil commented Jan 10, 2025

Description

This PR will allow requests for wholesale series which overlap a year on local date time.

  • PeriodValidationRule now inspects a if the month differ more than 1 from each other, and the year of start and end period is between each other (1), then the start and end of the month is allowed to be -11

    • Start: 2024-12-01T23:00:00Z, End: 2025-01-01T23:00:00Z
  • Added a test to ensure the cased described is working as intended.

Reference: https://app.zenhub.com/workspaces/mosaic-60a6105157304f00119be86e/issues/gh/energinet-datahub/internal-repo/1535

Pull-request quality

  • The title adheres to this guide
  • Tests are written and executed locally
  • Subsystem tests have been tested (by manually deploying to dev_002)

@lasrinnil lasrinnil marked this pull request as ready for review January 10, 2025 11:47
@lasrinnil lasrinnil requested review from a team as code owners January 10, 2025 11:47
@lasrinnil lasrinnil requested a review from ManBearTM January 10, 2025 11:47
RasmusGraabaek
RasmusGraabaek previously approved these changes Jan 10, 2025
ebbeknudsen
ebbeknudsen previously approved these changes Jan 10, 2025
ebbeknudsen
ebbeknudsen previously approved these changes Jan 10, 2025
Copy link
Contributor

@ebbeknudsen ebbeknudsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

github-actions bot commented Jan 10, 2025

Test results for \source\dotnet\wholesale-api\Edi.UnitTests\bin\Release\net8.0\Energinet.DataHub.Wholesale.Edi.UnitTests.dll

283 tests   283 ✅  4s ⏱️
  1 suites    0 💤
  1 files      0 ❌

Results for commit b92dbb7.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Jan 10, 2025

Test results for \source\dotnet\wholesale-api\WebApi.IntegrationTests\bin\Release\net8.0\Energinet.DataHub.Wholesale.WebApi.IntegrationTests.dll

27 tests   24 ✅  16s ⏱️
 1 suites   3 💤
 1 files     0 ❌

Results for commit b92dbb7.

♻️ This comment has been updated with latest results.

@lasrinnil lasrinnil merged commit d42ae1c into main Jan 10, 2025
45 checks passed
@lasrinnil lasrinnil deleted the lrn_fix_INC0424065 branch January 10, 2025 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants