Skip to content

Commit b413ea7

Browse files
author
Joan He
committed
Merge remote-tracking branch 'upstream/develop' into MAGETWO-30808-remove-include-path
2 parents 8f09065 + a398195 commit b413ea7

File tree

1,082 files changed

+35386
-3302
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,082 files changed

+35386
-3302
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,30 @@
1+
0.42.0-beta2
2+
=============
3+
* Framework improvements:
4+
* Added composer.lock to the repository
5+
* Various improvements:
6+
* Magento PSR-3 compliance
7+
* Updated file iterators to work with symlinks
8+
* Replaced end-to-end test for advanced search with injectable test
9+
* Replaced end-to-end test for quick search with injectable test
10+
* Fixed bugs:
11+
* Fixed an issue where an exception occurred when adding configurable products to cart from the wishlist
12+
* Modify .gitignore CE according to new repos structure (MAGETWO-32095)
13+
* Fixed an issue where the 'Not %Username%?' link was displayed for a logged in user while pages were loaded
14+
* Fixed an issue where Shopping Cart Price Rules based on product attributes were not applied to configurable products
15+
* Fixed an issue where the Tax Class drop-down field on New Customer Group page contained the 'none' value when a tax class already existed
16+
* Fixed an issue where the 'Credit Memo' button was absent on the Invoice page for payments
17+
* Fixed an issue where incorrect totals were shown in the Coupon Usage report
18+
* Fixed an issue where an error occurred and the "Append Comments" checkbox was cleared when submitting an order in the backend
19+
* Fixed an issue where the Transactions tab appeared in the backend for orders where offline payment methods were used
20+
* Fixed an issue with the extra empty line appearing in the Customer Address template
21+
* Github requests:
22+
* [#853](https://github.com/magento/magento2/pull/853) -- Fix spelling error in Customer module xml
23+
* [#858](https://github.com/magento/magento2/pull/858) -- Clicking CMS page in backend takes you to the dashboard
24+
* [#858](https://github.com/magento/magento2/issues/816) -- Clicking CMS page takes you to the dashboard
25+
* [#859](https://github.com/magento/magento2/pull/859) -- Fix email template creation date not being persisted
26+
* [#860](https://github.com/magento/magento2/pull/860) -- Fix currency and price renderer
27+
128
0.42.0-beta1
229
=============
330
* Fixed bugs:

CONTRIBUTING.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
1-
# Contribution Guide
1+
# Contributing to Magento 2 code
22

3-
The Magento 2 development team will review all issues and contributions submitted by the community of developers. 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. To assist in the expediency of the review process, we strongly encourage you to follow all the proper requirements stated below in Definition of Done, before submitting any code for consideration.
3+
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”).
45

5-
## Contribution Process
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.
67

7-
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”.
8-
9-
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.
10-
2. Review the [Contributor License Agreement](https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html) if this is your first time contributing.
11-
3. Create and test your work.
12-
4. Fork the Magento 2 repository according to [github's Fork A Repo instructions](https://help.github.com/articles/fork-a-repo) and when you are ready to send us a Pull Request – follow [github's Using Pull Requests instructions](https://help.github.com/articles/using-pull-requests).
13-
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.
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.
149

15-
### Contribution Acceptance Criteria
1610

17-
1. Code changes must be covered with automated tests and supplied along with the patch (or fork). Author chooses the best approach for testing as deemed necessary. See [Magento Automated Testing Standard](https://github.com/magento/magento2/wiki/Magento-Automated-Testing-Standard) for additional guidance.
18-
2. New features or proposals must be supplied with documentation -- functional (how a feature works) or technical (how it is implemented/designed), or both.
11+
## Contribution requirements
1912

20-
## Frequently Asked Questions
13+
1. Contributions must adhere to [Magento coding standards](http://devdocs.magento.com/guides/v1.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.
17+
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).
2122

22-
**Do I need to follow all requirements of the contribution process?**
23+
## Contribution process
2324

24-
Yes. We strongly encourage that you follow the requirements as stated, before submitting your code or patch for Magento 2 development team's review. Properly submitted contributions will help the Magento 2 development team to quickly assess your contribution and incorporate it into the Magento 2 project if deemed beneficial.
25-
26-
**Do you accept all contributions?**
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”.
2726

28-
Not all contributions will be used or incorporated into the code for the project. The decision to incorporate the code or not is at the discretion of the Magento 2 development team.
27+
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.
28+
2. Review the [Contributor License Agreement](https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html) if this is your first time contributing.
29+
3. Create and test your work.
30+
4. Fork the Magento 2 repository according to [Fork a repository instructions](http://devdocs.magento.com/guides/v1.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/v1.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.

app/code/Magento/AdminNotification/Model/Resource/System/Message/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Collection extends \Magento\Framework\Model\Resource\Db\Collection\Abstrac
2222

2323
/**
2424
* @param \Magento\Core\Model\EntityFactory $entityFactory
25-
* @param \Magento\Framework\Logger $logger
25+
* @param \Psr\Log\LoggerInterface $logger
2626
* @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
2727
* @param \Magento\Framework\Event\ManagerInterface $eventManager
2828
* @param \Magento\Framework\Notification\MessageList $messageList
@@ -31,7 +31,7 @@ class Collection extends \Magento\Framework\Model\Resource\Db\Collection\Abstrac
3131
*/
3232
public function __construct(
3333
\Magento\Core\Model\EntityFactory $entityFactory,
34-
\Magento\Framework\Logger $logger,
34+
\Psr\Log\LoggerInterface $logger,
3535
\Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
3636
\Magento\Framework\Event\ManagerInterface $eventManager,
3737
\Magento\Framework\Notification\MessageList $messageList,

app/code/Magento/AdminNotification/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.4.11|~5.5.0",
6-
"magento/module-store": "0.42.0-beta1",
7-
"magento/module-core": "0.42.0-beta1",
8-
"magento/module-backend": "0.42.0-beta1",
9-
"magento/framework": "0.42.0-beta1",
6+
"magento/module-store": "0.42.0-beta2",
7+
"magento/module-core": "0.42.0-beta2",
8+
"magento/module-backend": "0.42.0-beta2",
9+
"magento/framework": "0.42.0-beta2",
1010
"lib-libxml": "*",
1111
"magento/magento-composer-installer": "*"
1212
},
1313
"type": "magento2-module",
14-
"version": "0.42.0-beta1",
14+
"version": "0.42.0-beta2",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"

app/code/Magento/Authorization/Model/Acl/AclRetriever.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Framework\Acl\Builder as AclBuilder;
1313
use Magento\Framework\Exception\AuthorizationException;
1414
use Magento\Framework\Exception\LocalizedException;
15-
use Magento\Framework\Logger;
15+
use Psr\Log\LoggerInterface as Logger;
1616

1717
/**
1818
* Permission tree retriever
@@ -79,7 +79,7 @@ public function getAllowedResourcesByUser($userType, $userId)
7979
} catch (AuthorizationException $e) {
8080
throw $e;
8181
} catch (\Exception $e) {
82-
$this->logger->logException($e);
82+
$this->logger->critical($e);
8383
throw new LocalizedException(
8484
'Error happened while getting a list of allowed resources. Check exception log for details.'
8585
);

app/code/Magento/Authorization/Model/Resource/Rules.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ class Rules extends \Magento\Framework\Model\Resource\Db\AbstractDb
2929
protected $_aclBuilder;
3030

3131
/**
32-
* @var \Magento\Framework\Logger
32+
* @var \Psr\Log\LoggerInterface
3333
*/
3434
protected $_logger;
3535

3636
/**
3737
* @param \Magento\Framework\App\Resource $resource
3838
* @param \Magento\Framework\Acl\Builder $aclBuilder
39-
* @param \Magento\Framework\Logger $logger
39+
* @param \Psr\Log\LoggerInterface $logger
4040
* @param \Magento\Framework\Acl\RootResource $rootResource
4141
* @param \Magento\Framework\Acl\CacheInterface $aclCache
4242
*/
4343
public function __construct(
4444
\Magento\Framework\App\Resource $resource,
4545
\Magento\Framework\Acl\Builder $aclBuilder,
46-
\Magento\Framework\Logger $logger,
46+
\Psr\Log\LoggerInterface $logger,
4747
\Magento\Framework\Acl\RootResource $rootResource,
4848
\Magento\Framework\Acl\CacheInterface $aclCache
4949
) {
@@ -116,7 +116,7 @@ public function saveRel(\Magento\Authorization\Model\Rules $rule)
116116
throw $e;
117117
} catch (\Exception $e) {
118118
$adapter->rollBack();
119-
$this->_logger->logException($e);
119+
$this->_logger->critical($e);
120120
}
121121
}
122122
}

app/code/Magento/Authorization/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"description": "Authorization module provides access to Magento ACL functionality.",
44
"require": {
55
"php": "~5.4.11|~5.5.0",
6-
"magento/module-backend": "0.42.0-beta1",
7-
"magento/framework": "0.42.0-beta1",
6+
"magento/module-backend": "0.42.0-beta2",
7+
"magento/framework": "0.42.0-beta2",
88
"magento/magento-composer-installer": "*"
99
},
1010
"type": "magento2-module",
11-
"version": "0.42.0-beta1",
11+
"version": "0.42.0-beta2",
1212
"license": [
1313
"OSL-3.0",
1414
"AFL-3.0"

app/code/Magento/Backend/Block/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Context extends \Magento\Framework\View\Element\Context
3232
* @param \Magento\Framework\View\Asset\Repository $assetRepo
3333
* @param \Magento\Framework\View\ConfigInterface $viewConfig
3434
* @param \Magento\Framework\App\Cache\StateInterface $cacheState
35-
* @param \Magento\Framework\Logger $logger
35+
* @param \Psr\Log\LoggerInterface $logger
3636
* @param \Magento\Framework\Escaper $escaper
3737
* @param \Magento\Framework\Filter\FilterManager $filterManager
3838
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
@@ -55,7 +55,7 @@ public function __construct(
5555
\Magento\Framework\View\Asset\Repository $assetRepo,
5656
\Magento\Framework\View\ConfigInterface $viewConfig,
5757
\Magento\Framework\App\Cache\StateInterface $cacheState,
58-
\Magento\Framework\Logger $logger,
58+
\Psr\Log\LoggerInterface $logger,
5959
\Magento\Framework\Escaper $escaper,
6060
\Magento\Framework\Filter\FilterManager $filterManager,
6161
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,

app/code/Magento/Backend/Block/Template/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class Context extends \Magento\Framework\View\Element\Template\Context
5656
* @param \Magento\Framework\View\Asset\Repository $assetRepo
5757
* @param \Magento\Framework\View\ConfigInterface $viewConfig
5858
* @param \Magento\Framework\App\Cache\StateInterface $cacheState
59-
* @param \Magento\Framework\Logger $logger
59+
* @param \Psr\Log\LoggerInterface $logger
6060
* @param \Magento\Framework\Escaper $escaper
6161
* @param \Magento\Framework\Filter\FilterManager $filterManager
6262
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
@@ -89,7 +89,7 @@ public function __construct(
8989
\Magento\Framework\View\Asset\Repository $assetRepo,
9090
\Magento\Framework\View\ConfigInterface $viewConfig,
9191
\Magento\Framework\App\Cache\StateInterface $cacheState,
92-
\Magento\Framework\Logger $logger,
92+
\Psr\Log\LoggerInterface $logger,
9393
\Magento\Framework\Escaper $escaper,
9494
\Magento\Framework\Filter\FilterManager $filterManager,
9595
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,

app/code/Magento/Backend/Block/Widget/Context.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class Context extends \Magento\Backend\Block\Template\Context
3939
* @param \Magento\Framework\View\Asset\Repository $assetRepo
4040
* @param \Magento\Framework\View\ConfigInterface $viewConfig
4141
* @param \Magento\Framework\App\Cache\StateInterface $cacheState
42-
* @param \Magento\Framework\Logger $logger
42+
* @param \Psr\Log\LoggerInterface $logger
4343
* @param \Magento\Framework\Escaper $escaper
4444
* @param \Magento\Framework\Filter\FilterManager $filterManager
4545
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
@@ -74,7 +74,7 @@ public function __construct(
7474
\Magento\Framework\View\Asset\Repository $assetRepo,
7575
\Magento\Framework\View\ConfigInterface $viewConfig,
7676
\Magento\Framework\App\Cache\StateInterface $cacheState,
77-
\Magento\Framework\Logger $logger,
77+
\Psr\Log\LoggerInterface $logger,
7878
\Magento\Framework\Escaper $escaper,
7979
\Magento\Framework\Filter\FilterManager $filterManager,
8080
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Currency.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct(
8080
*/
8181
public function render(\Magento\Framework\Object $row)
8282
{
83-
if ($data = (string)$row->getData($this->getColumn()->getIndex())) {
83+
if ($data = (string)$this->_getValue($row)) {
8484
$currency_code = $this->_getCurrencyCode($row);
8585
$data = floatval($data) * $this->_getRate($row);
8686
$sign = (bool)(int)$this->getColumn()->getShowNumberSign() && $data > 0 ? '+' : '';

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Date.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function _getFormat()
4545
\Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_MEDIUM
4646
);
4747
} catch (\Exception $e) {
48-
$this->_logger->logException($e);
48+
$this->_logger->critical($e);
4949
}
5050
}
5151
$format = self::$_format;

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Datetime.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected function _getFormat()
3232
\Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_MEDIUM
3333
);
3434
} catch (\Exception $e) {
35-
$this->_logger->logException($e);
35+
$this->_logger->critical($e);
3636
}
3737
}
3838
$format = self::$_format;

app/code/Magento/Backend/Block/Widget/Grid/Column/Renderer/Price.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(
4848
*/
4949
public function render(\Magento\Framework\Object $row)
5050
{
51-
if ($data = $row->getData($this->getColumn()->getIndex())) {
51+
if ($data = $this->_getValue($row)) {
5252
$currencyCode = $this->_getCurrencyCode($row);
5353

5454
if (!$currencyCode) {

app/code/Magento/Backend/Controller/Adminhtml/Dashboard/Tunnel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function execute()
6868
->setContents($response->getBody());
6969
return $resultRaw;
7070
} catch (\Exception $e) {
71-
$this->_objectManager->get('Magento\Framework\Logger')->logException($e);
71+
$this->_objectManager->get('Psr\Log\LoggerInterface')->critical($e);
7272
$error = __('see error log for details');
7373
$httpCode = 503;
7474
}

app/code/Magento/Backend/Controller/Adminhtml/System/Config/System/Storage/Status.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,8 @@ public function execute()
7979
) && $flagData['timeout_reached'])
8080
) {
8181
$this->_objectManager->get(
82-
'Magento\Framework\Logger'
83-
)->logException(
82+
'Psr\Log\LoggerInterface'
83+
)->critical(
8484
new \Magento\Framework\Exception(
8585
__('The timeout limit for response from synchronize process was reached.')
8686
)

app/code/Magento/Backend/Controller/Adminhtml/System/Config/System/Storage/Synchronize.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function execute()
4343
try {
4444
$this->_getSyncSingleton()->synchronize($storage);
4545
} catch (\Exception $e) {
46-
$this->_objectManager->get('Magento\Framework\Logger')->logException($e);
46+
$this->_objectManager->get('Psr\Log\LoggerInterface')->critical($e);
4747
$flag->passError($e);
4848
}
4949

0 commit comments

Comments
 (0)