-
Notifications
You must be signed in to change notification settings - Fork 3
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
Conversation
...e/dotnet/wholesale-api/Edi/Validation/WholesaleServicesRequest/Rules/PeriodValidationRule.cs
Outdated
Show resolved
Hide resolved
9c3e0f8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Test results for \source\dotnet\wholesale-api\Edi.UnitTests\bin\Release\net8.0\Energinet.DataHub.Wholesale.Edi.UnitTests.dll283 tests 283 ✅ 4s ⏱️ Results for commit b92dbb7. ♻️ This comment has been updated with latest results. |
Test results for \source\dotnet\wholesale-api\WebApi.IntegrationTests\bin\Release\net8.0\Energinet.DataHub.Wholesale.WebApi.IntegrationTests.dll27 tests 24 ✅ 16s ⏱️ Results for commit b92dbb7. ♻️ This comment has been updated with latest results. |
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 -11Added 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
dev_002
)