Skip to content

Conversation

@hukho
Copy link
Contributor

@hukho hukho commented Feb 10, 2025

PR Classification

Code cleanup and new feature

PR Summary

This PR introduces new configuration options and coding style rules, refactors code for better readability, and adds a new FormattedWeekNumber model for week and year calculations.

  • .editorconfig: Added various dotnet and C# style rules.
  • FileShareService.cs: Introduced GetWeekNumber method and refactored GetBatchDetails.
  • FulfilmentDataService.cs: Refactored to use FormattedWeekNumber and improved readability.
  • CommonHelper.cs: Added methods for week and year calculations.
  • appsettings.json: Reformatted and added WeeksToIncrement setting.

@snyk-io
Copy link

snyk-io bot commented Feb 10, 2025

🎉 Snyk checks have passed. No issues have been found so far.

security/snyk check is complete. No issues have been found. (View Details)

license/snyk check is complete. No issues have been found. (View Details)

code/snyk check is complete. No issues have been found. (View Details)

@hukho hukho marked this pull request as ready for review February 10, 2025 14:09
@hukho hukho requested review from a team and rockydevnet as code owners February 10, 2025 14:09
Copy link

@richardAhz richardAhz left a comment

Choose a reason for hiding this comment

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

Looks ok

@hukho hukho merged commit 41dca67 into main Feb 11, 2025
22 checks passed
@hukho hukho deleted the Feature/Abzu-176930-aio-week-number4 branch February 11, 2025 09:40
JiviteshT pushed a commit that referenced this pull request Mar 3, 2025
* Allow week number to be adjusted on calculation

* Update year / week calculations

* Update editorconfig

* Rework week number calculations

* Pass week number details through code

* Calculate week number up front

* Rename

* Small fix

* Update AIO file names

* Test update

* Revert spacing

* Set weeks to increment value

* Update tests to match new file names

* Update functional tests and stub

* Fix for week numbers in testing

* Reinstate accidentally removed code

* Further fix

* And another fix

* Add parameter to functional tests
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