Skip to content

Conversation

@FreekVR
Copy link
Contributor

@FreekVR FreekVR commented Aug 4, 2025

adds a new concept for a proposition config, to replace existing platform functionality in the future

related to INT-1084

needs #379

@FreekVR FreekVR force-pushed the feat/proposition-config branch 2 times, most recently from 58bd5b8 to 5a7f7e5 Compare August 5, 2025 14:26
@FreekVR FreekVR force-pushed the feat/proposition-config branch from b6157fc to 3cf3314 Compare August 15, 2025 09:51
@FreekVR FreekVR force-pushed the feat/proposition-config branch from b553fc3 to f5e4aaa Compare September 10, 2025 14:03
@codecov
Copy link

codecov bot commented Sep 17, 2025

Codecov Report

❌ Patch coverage is 94.90566% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.41%. Comparing base (0cff271) to head (4bba719).

Files with missing lines Patch % Lines
src/Frontend/View/CarrierSettingsItemView.php 96.24% 5 Missing ⚠️
src/Frontend/Service/FrontendRenderService.php 0.00% 4 Missing ⚠️
...p/Options/Definition/CountryOfOriginDefinition.php 0.00% 2 Missing ⚠️
...c/App/Options/Definition/CustomsCodeDefinition.php 0.00% 2 Missing ⚠️
...ns/Definition/DisableDeliveryOptionsDefinition.php 0.00% 2 Missing ⚠️
...Options/Definition/FitInDigitalStampDefinition.php 0.00% 2 Missing ⚠️
.../App/Options/Definition/FitInMailboxDefinition.php 0.00% 2 Missing ⚠️
...c/App/Options/Definition/PackageTypeDefinition.php 0.00% 2 Missing ⚠️
src/Shipment/Model/CustomsDeclarationItem.php 75.00% 2 Missing ⚠️
...p/Order/Calculator/General/InsuranceCalculator.php 75.00% 1 Missing ⚠️
... and 3 more
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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@FreekVR FreekVR force-pushed the feat/proposition-config branch from b940479 to 8cfe8b4 Compare September 23, 2025 14:56
@FreekVR FreekVR marked this pull request as ready for review September 24, 2025 14:22
@FreekVR FreekVR requested review from Copilot and removed request for Copilot September 24, 2025 14:22
@FreekVR FreekVR requested a review from a team as a code owner September 24, 2025 14:22
@FreekVR FreekVR requested a review from Copilot September 24, 2025 14:22
Copy link
Contributor

Copilot AI left a 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.

@FreekVR FreekVR changed the title feat(proposition): proof of concept for implementing a shared proposition config feat(proposition): prepare for fetching dynamic platform configuration Sep 24, 2025
@FreekVR FreekVR force-pushed the feat/proposition-config branch from ffb2990 to 3d348f1 Compare September 25, 2025 14:41
@FreekVR FreekVR requested a review from Copilot September 26, 2025 09:38
Copy link
Contributor

Copilot AI left a 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.

@myparcel-bot myparcel-bot bot force-pushed the feat/proposition-config branch 2 times, most recently from 639eaef to 8940626 Compare September 30, 2025 08:53
@joerivanveen joerivanveen force-pushed the feat/proposition-config branch from 8940626 to f246c1f Compare September 30, 2025 09:23
@FreekVR FreekVR force-pushed the feat/proposition-config branch from f246c1f to 0280ca6 Compare September 30, 2025 13:12
Copy link
Contributor

@NabDevs NabDevs left a comment

Choose a reason for hiding this comment

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

Awesome job!

Copy link
Contributor

@NabDevs NabDevs left a comment

Choose a reason for hiding this comment

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

Awesome job!

@myparcel-bot myparcel-bot bot added the changes requested (Auto) label Oct 2, 2025
Copy link
Contributor Author

@FreekVR FreekVR left a 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';
Copy link
Contributor Author

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
Copy link
Contributor Author

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)

@FreekVR FreekVR force-pushed the feat/proposition-config branch from 435c33f to 4bba719 Compare October 3, 2025 08:35
@FreekVR FreekVR requested a review from joerivanveen October 3, 2025 08:35
@FreekVR FreekVR changed the base branch from main to v3-proposition October 3, 2025 08:42
@FreekVR FreekVR force-pushed the feat/proposition-config branch from 0b07c5b to 2badbbd Compare October 10, 2025 07:59
@FreekVR FreekVR force-pushed the feat/proposition-config branch from 69051cb to 7f5a013 Compare October 13, 2025 13:15
@FreekVR FreekVR merged commit f3652e9 into v3-proposition Oct 24, 2025
1 check passed
@FreekVR FreekVR deleted the feat/proposition-config branch October 24, 2025 12:53
FreekVR added a commit that referenced this pull request Oct 31, 2025
…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>
FreekVR added a commit that referenced this pull request Nov 7, 2025
…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>
FreekVR added a commit that referenced this pull request Nov 11, 2025
…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>
FreekVR added a commit that referenced this pull request Nov 11, 2025
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved (Auto)

Development

Successfully merging this pull request may close these issues.

5 participants