-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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 Shipping iterate over null #34187
base: 2.4-develop
Are you sure you want to change the base?
Conversation
Hi @thomas-kl1. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
\Magento\Store\Model\ScopeInterface::SCOPE_STORE, | ||
$storeId | ||
); | ||
$carriers = $this->_shippingConfig->getCarriersConfig($storeId); | ||
|
||
foreach ($carriers as $carrierCode => $carrierConfig) { | ||
$this->collectCarrierRates($carrierCode, $request); |
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.
just curious why not use method public getAllCarriers in app/code/Magento/Shipping/Model/Config.php
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.
seem i see some regression code here with change public to private method cc: @engcom-Charlie
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.
@mrtuvn you mean private to public, that's not a regression
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.
We don't use the getAllCarriers method because we don't need the carrier model to be instantiated
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento give me test instance |
Hi @thomas-kl1. Thank you for your request. I'm working on Magento instance for you. |
Hi @thomas-kl1, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Static tests failed because of B2B rules https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/34187/74e5c8be9cf860b0e732d57abdcfc27a/Statics/allure-report-b2b/index.html#categories/06c3f017895259e95d5c8f6dda658ef8/df5fd6119021e001/ |
@magento run Unit Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento give me 2.3 instance |
Hi @thomas-kl1. Thank you for your request. I'm working on Magento instance for you. |
Hi @thomas-kl1, here is your Magento Instance: https://79a626dd068562f05485604fb8dbd74b.instances.magento-community.engineering |
d598a72
to
ea014a2
Compare
@magento run Unit Tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
7445863
to
b58dbea
Compare
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
@magento run all tests |
The requested builds are added to the queue. You should be able to see them here within a few minutes. Please re-request them if they don't show in a reasonable amount of time. |
Description (*)
This is continuing the #30822 MR
If there is no carriers available on the store (no carriers modules), an iteration on null occurs.
Also there's a proposal to deprecate 'active flag' from shipping and carrier models. It turns out that the active method from the abstract carrier always looks for 'active' config field and the 'active flag' only adds unnecessary noise.
Related Pull Requests
#30822