Skip to content

Commit 3b35bc5

Browse files
author
Stanislav Idolov
authored
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #15460: Improvements to the CONTRIBUTING.md document (by @RebeccaBrocton) - #15421: Updated font-size variable and standardize #ToDo UI (by @vgelani) - #15422: Refactor JavsScript for UrlRewrite module edit page (by @patelnimesh1988) - #15435: [Backport] Removed redundant else statement (by @rogyar) - #15409: Prevent multiple add-to-cart initializations in case of ajax loaded product listing (by @vovayatsyuk) - #15211: Error 500 in Module Manager (by @flancer64) - #15340: Submitting search form (mini) with enter key fires event handlers bound by jquery twice (by @amjadm61) - #15364: Added language translation for comment tag (by @yogeshks) - #15371: Added language translation in template files (by @rahul-kachhadiya) - #15258: [backport] fixes for instant purchase module from #15257 (by @mhauri) - #15010: [BUGFIX] Added row_id to the flat action indexer so the value isn't s� (by @lewisvoncken) Fixed GitHub Issues: - #15356: Refactore javascript for module URL rewrite (reported by @vgelani) has been fixed in #15422 by @patelnimesh1988 in 2.2-develop branch Related commits: 1. 28642a6 - #15192: Module Manager module grid is not working Magento 2.2.4 (reported by @jignesh-baldha) has been fixed in #15211 by @flancer64 in 2.2-develop branch Related commits: 1. a95034a 2. 131a458 - #13793: Submitting search form (mini) with enter key fires event handlers bound by jquery twice (reported by @koenner01) has been fixed in #15340 by @amjadm61 in 2.2-develop branch Related commits: 1. 153faa6 - #15361: Comments are not translated for Signifyd module. (reported by @yogeshks) has been fixed in #15364 by @yogeshks in 2.2-develop branch Related commits: 1. f295906
2 parents 83ecea7 + 1b8d099 commit 3b35bc5

File tree

20 files changed

+72
-45
lines changed

20 files changed

+72
-45
lines changed

.github/CONTRIBUTING.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
# Contributing to Magento 2 code
22

33
Contributions to the Magento 2 codebase are done using the fork & pull model.
4-
This contribution model has contributors maintaining their own copy of the forked codebase (which can easily be synced with the main copy). The forked repository is then used to submit a request to the base repository to “pull” a set of changes (hence the phrase “pull request”).
4+
This contribution model has contributors maintaining their own copy of the forked codebase (which can easily be synced with the main copy). The forked repository is then used to submit a request to the base repository to “pull” a set of changes. For more information on pull requests please refer to [GitHub Help](https://help.github.com/articles/about-pull-requests/).
55

6-
Contributions can take the form of new components/features, changes to existing features, tests, documentation (such as developer guides, user guides, examples, or specifications), bug fixes, optimizations or just good suggestions.
6+
Contributions can take the form of new components or features, changes to existing features, tests, documentation (such as developer guides, user guides, examples, or specifications), bug fixes or optimizations.
77

8-
The Magento 2 development team will review all issues and contributions submitted by the community of developers in the first in, first out order. During the review we might require clarifications from the contributor. If there is no response from the contributor for two weeks, the issue is closed.
8+
The Magento 2 development team will review all issues and contributions submitted by the community of developers in the first in, first out order. During the review we might require clarifications from the contributor. If there is no response from the contributor within two weeks, the pull request will be closed.
99

1010

1111
## Contribution requirements
1212

13-
1. Contributions must adhere to [Magento coding standards](http://devdocs.magento.com/guides/v2.0/coding-standards/bk-coding-standards.html).
14-
2. Pull requests (PRs) must be accompanied by a meaningful description of their purpose. Comprehensive descriptions increase the chances of a pull request to be merged quickly and without additional clarification requests.
15-
3. Commits must be accompanied by meaningful commit messages.
16-
4. PRs which include bug fixing, must be accompanied with step-by-step description of how to reproduce the bug.
13+
1. Contributions must adhere to the [Magento coding standards](https://devdocs.magento.com/guides/v2.2/coding-standards/bk-coding-standards.html).
14+
2. Pull requests (PRs) must be accompanied by a meaningful description of their purpose. Comprehensive descriptions increase the chances of a pull request being merged quickly and without additional clarification requests.
15+
3. Commits must be accompanied by meaningful commit messages. Please see the [Magento Pull Request Template](https://github.com/magento/magento2/blob/2.2-develop/.github/PULL_REQUEST_TEMPLATE.md) for more information.
16+
4. PRs which include bug fixes must be accompanied with a step-by-step description of how to reproduce the bug.
1717
3. PRs which include new logic or new features must be submitted along with:
18-
* Unit/integration test coverage (we will be releasing more information on writing test coverage in the near future).
19-
* Proposed [documentation](http://devdocs.magento.com) update. Documentation contributions can be submitted [here](https://github.com/magento/devdocs).
20-
4. For large features or changes, please [open an issue](https://github.com/magento/magento2/issues) and discuss first. This may prevent duplicate or unnecessary effort, and it may gain you some additional contributors.
21-
5. All automated tests are passed successfully (all builds on [Travis CI](https://travis-ci.org/magento/magento2) must be green).
18+
* Unit/integration test coverage
19+
* Proposed [documentation](http://devdocs.magento.com) updates. Documentation contributions can be submitted via the [devdocs GitHub](https://github.com/magento/devdocs).
20+
4. For larger features or changes, please [open an issue](https://github.com/magento/magento2/issues) to discuss the proposed changes prior to development. This may prevent duplicate or unnecessary effort and allow other contributors to provide input.
21+
5. All automated tests must pass (all builds on [Travis CI](https://travis-ci.org/magento/magento2) must be green).
2222

2323
## Contribution process
2424

25-
If you are a new GitHub user, we recommend that you create your own [free github account](https://github.com/signup/free). By doing that, you will be able to collaborate with the Magento 2 development team, fork the Magento 2 project and be able to easily send pull requests.
25+
If you are a new GitHub user, we recommend that you create your own [free github account](https://github.com/signup/free). This will allow you to collaborate with the Magento 2 development team, fork the Magento 2 project and send pull requests.
2626

2727
1. Search current [listed issues](https://github.com/magento/magento2/issues) (open or closed) for similar proposals of intended contribution before starting work on a new contribution.
2828
2. Review the [Contributor License Agreement](https://magento.com/legaldocuments/mca) if this is your first time contributing.
2929
3. Create and test your work.
30-
4. Fork the Magento 2 repository according to [Fork a repository instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#fork) and when you are ready to send us a pull request – follow [Create a pull request instructions](http://devdocs.magento.com/guides/v2.0/contributor-guide/contributing.html#pull_request).
31-
5. Once your contribution is received, Magento 2 development team will review the contribution and collaborate with you as needed to improve the quality of the contribution.
30+
4. Fork the Magento 2 repository according to the [Fork A Repository instructions](http://devdocs.magento.com/guides/v2.2/contributor-guide/contributing.html#fork) and when you are ready to send us a pull request – follow the [Create A Pull Request instructions](http://devdocs.magento.com/guides/v2.2/contributor-guide/contributing.html#pull_request).
31+
5. Once your contribution is received the Magento 2 development team will review the contribution and collaborate with you as needed.
3232

3333
## Code of Conduct
3434

app/code/Magento/Braintree/view/adminhtml/templates/form/cc.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ $ccType = $block->getInfoData('cc_type');
8484
name="payment[is_active_payment_token_enabler]"
8585
class="admin__control-checkbox"/>
8686
<label class="label" for="<?= /* @noEscape */ $code ?>_vault">
87-
<span><?= $block->escapeHtml('Save for later use.') ?></span>
87+
<span><?= $block->escapeHtml(__('Save for later use.')) ?></span>
8888
</label>
8989
</div>
9090
<?php endif; ?>

app/code/Magento/Catalog/Model/Indexer/Product/Flat/Action/Indexer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public function write($storeId, $productId, $valueFieldSuffix = '')
175175

176176
if (!empty($updateData)) {
177177
$updateData += ['entity_id' => $productId];
178+
$updateData += ['row_id' => $productId];
178179
$updateFields = [];
179180
foreach ($updateData as $key => $value) {
180181
$updateFields[$key] = $key;

app/code/Magento/Catalog/view/frontend/web/js/catalog-add-to-cart.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ define([
3838
_bindSubmit: function () {
3939
var self = this;
4040

41+
if (this.element.data('catalog-addtocart-initialized')) {
42+
return;
43+
}
44+
45+
this.element.data('catalog-addtocart-initialized', 1);
4146
this.element.on('submit', function (e) {
4247
e.preventDefault();
4348
self.submitForm($(this));

app/code/Magento/ConfigurableImportExport/Model/Import/Product/Type/Configurable.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,8 @@ protected function _getSuperAttributeId($productId, $attributeId)
258258
{
259259
if (isset($this->_productSuperAttrs["{$productId}_{$attributeId}"])) {
260260
return $this->_productSuperAttrs["{$productId}_{$attributeId}"];
261-
} else {
262-
return null;
263261
}
262+
return null;
264263
}
265264

266265
/**

app/code/Magento/InstantPurchase/Model/InstantPurchaseOption.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@
1919
class InstantPurchaseOption
2020
{
2121
/**
22-
* @var PaymentTokenInterface
22+
* @var PaymentTokenInterface|null
2323
*/
2424
private $paymentToken;
2525

2626
/**
27-
* @var AddressIn
27+
* @var Address|null
2828
*/
2929
private $shippingAddress;
3030

3131
/**
32-
* @var Address
32+
* @var Address|null
3333
*/
3434
private $billingAddress;
3535

3636
/**
37-
* @var ShippingMethodInterface
37+
* @var ShippingMethodInterface|null
3838
*/
3939
private $shippingMethod;
4040

app/code/Magento/InstantPurchase/Model/InstantPurchaseOptionLoadingFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function create(
100100
/**
101101
* Loads customer address model by identifier.
102102
*
103-
* @param $addressId
103+
* @param int $addressId
104104
* @return Address
105105
*/
106106
private function getAddress($addressId): Address

app/code/Magento/InstantPurchase/Model/ShippingMethodChoose/DeferredShippingMethodChooserPool.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function get($type) : DeferredShippingMethodChooserInterface
3232
{
3333
if (!isset($this->choosers[$type])) {
3434
throw new \InvalidArgumentException(sprintf(
35-
'Deferred shipping method chooser is not registered.',
35+
'Deferred shipping method %s is not registered.',
3636
$type
3737
));
3838
}

app/code/Magento/InstantPurchase/PaymentMethodIntegration/IntegrationsManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function findIntegrations(int $storeId): array
146146
* </instant_purchase>
147147
*
148148
* @param VaultPaymentInterface $paymentMethod
149-
* @param $storeId
149+
* @param int|string|null|\Magento\Store\Model\Store $storeId
150150
* @return bool
151151
*/
152152
private function isIntegrationAvailable(VaultPaymentInterface $paymentMethod, $storeId): bool

app/code/Magento/Multishipping/i18n/en_US.csv

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,5 @@ Options,Options
8888
"Review Order","Review Order"
8989
"Select Shipping Method","Select Shipping Method"
9090
"We received your order!","We received your order!"
91+
"Ship to:","Ship to:"
92+
"Error:","Error:"

0 commit comments

Comments
 (0)