-
Notifications
You must be signed in to change notification settings - Fork 1
feat(proposition): prepare for fetching dynamic proposition configuration #377
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
Conversation
58bd5b8 to
5a7f7e5
Compare
b6157fc to
3cf3314
Compare
b553fc3 to
f5e4aaa
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v3-proposition #377 +/- ##
====================================================
- Coverage 95.72% 95.41% -0.32%
- Complexity 1816 1942 +126
====================================================
Files 343 346 +3
Lines 6153 6517 +364
====================================================
+ Hits 5890 6218 +328
- Misses 263 299 +36 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
b940479 to
8cfe8b4
Compare
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.
Pull Request Overview
This pull request implements a new proposition config system to replace existing platform functionality, introducing a shared proposition configuration approach as a proof of concept for INT-1084.
Key changes:
- Adds proposition-based carrier configuration system
- Updates test snapshots to reflect new carrier naming conventions (POSTNL instead of postnl)
- Modifies various services to use proposition service instead of direct platform access
Reviewed Changes
Copilot reviewed 253 out of 569 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| Multiple test snapshots | Updated to reflect new carrier naming conventions and data structures |
| tests/Unit files | Modified to use new proposition-based carrier features and testing infrastructure |
| src/Validation/Validator/CarrierSchema.php | Added proposition-based validation with backward compatibility |
| src/Settings files | Updated to support new proposition service while maintaining legacy compatibility |
| src/Shipment files | Modified to use proposition service for carrier and platform data |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
ffb2990 to
3d348f1
Compare
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.
Pull Request Overview
Copilot reviewed 253 out of 573 changed files in this pull request and generated no new comments.
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
639eaef to
8940626
Compare
8940626 to
f246c1f
Compare
f246c1f to
0280ca6
Compare
NabDevs
left a comment
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.
Awesome job!
NabDevs
left a comment
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.
Awesome job!
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.
.
| /** | ||
| * @deprecated use ALLOW_EXPRESS_DELIVERY instead | ||
| */ | ||
| public const ALLOW_DELIVERY_TYPE_EXPRESS = 'allowExpressDelivery'; |
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.
I mostly did this to be consistent, as all other options use the allow{Type}Delivery format, I can not otherwise generate these options in a loop in the frontend.
| * | ||
| * @return string | ||
| */ | ||
| private static function getLocalCountry(): string |
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.
Yes, I think that would be a good option. However, since it was already defined here, I opted not to do that refactor right now (mapToPlatformConfig will likely be replaced at some point)
435c33f to
4bba719
Compare
…ing ShipmentOptions
process PR feedback and get propositions by ID rather than name to prevent having to map names to IDs and allow any new proposition to be supported by simply adding a new config file
0b07c5b to
2badbbd
Compare
69051cb to
7f5a013
Compare
…tion (#377) replace PHP platform config with JSON proposition config files, and map it to existing definitions. This prepares the PDK for a future definition using a propositions API which determines available features and carriers. --------- Co-authored-by: Joeri van Veen <joeri@myparcel.nl> Co-authored-by: jochemgravendeel <jochem.gravendeel@myparcel.nl>
…tion (#377) replace PHP platform config with JSON proposition config files, and map it to existing definitions. This prepares the PDK for a future definition using a propositions API which determines available features and carriers. --------- Co-authored-by: Joeri van Veen <joeri@myparcel.nl> Co-authored-by: jochemgravendeel <jochem.gravendeel@myparcel.nl>
…tion (#377) replace PHP platform config with JSON proposition config files, and map it to existing definitions. This prepares the PDK for a future definition using a propositions API which determines available features and carriers. --------- Co-authored-by: Joeri van Veen <joeri@myparcel.nl> Co-authored-by: jochemgravendeel <jochem.gravendeel@myparcel.nl>
…tion (#377) replace PHP platform config with JSON proposition config files, and map it to existing definitions. This prepares the PDK for a future definition using a propositions API which determines available features and carriers. --------- Co-authored-by: Joeri van Veen <joeri@myparcel.nl> Co-authored-by: jochemgravendeel <jochem.gravendeel@myparcel.nl>
adds a new concept for a proposition config, to replace existing platform functionality in the future
related to INT-1084
needs #379