Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into MAGETWO-31776-ad…
Browse files Browse the repository at this point in the history
…d-parent-element-theme
  • Loading branch information
Joan He committed Jan 6, 2015
2 parents 605e253 + a398195 commit e0bb974
Show file tree
Hide file tree
Showing 1,082 changed files with 35,386 additions and 3,302 deletions.
27 changes: 27 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
0.42.0-beta2
=============
* Framework improvements:
* Added composer.lock to the repository
* Various improvements:
* Magento PSR-3 compliance
* Updated file iterators to work with symlinks
* Replaced end-to-end test for advanced search with injectable test
* Replaced end-to-end test for quick search with injectable test
* Fixed bugs:
* Fixed an issue where an exception occurred when adding configurable products to cart from the wishlist
* Modify .gitignore CE according to new repos structure (MAGETWO-32095)
* Fixed an issue where the 'Not %Username%?' link was displayed for a logged in user while pages were loaded
* Fixed an issue where Shopping Cart Price Rules based on product attributes were not applied to configurable products
* 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
* Fixed an issue where the 'Credit Memo' button was absent on the Invoice page for payments
* Fixed an issue where incorrect totals were shown in the Coupon Usage report
* Fixed an issue where an error occurred and the "Append Comments" checkbox was cleared when submitting an order in the backend
* Fixed an issue where the Transactions tab appeared in the backend for orders where offline payment methods were used
* Fixed an issue with the extra empty line appearing in the Customer Address template
* Github requests:
* [#853](https://github.com/magento/magento2/pull/853) -- Fix spelling error in Customer module xml
* [#858](https://github.com/magento/magento2/pull/858) -- Clicking CMS page in backend takes you to the dashboard
* [#858](https://github.com/magento/magento2/issues/816) -- Clicking CMS page takes you to the dashboard
* [#859](https://github.com/magento/magento2/pull/859) -- Fix email template creation date not being persisted
* [#860](https://github.com/magento/magento2/pull/860) -- Fix currency and price renderer

0.42.0-beta1
=============
* Fixed bugs:
Expand Down
41 changes: 22 additions & 19 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
# Contribution Guide
# Contributing to Magento 2 code

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.
Contributions to the Magento 2 codebase are done using the fork & pull model.
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”).

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

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”.

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.
2. Review the [Contributor License Agreement](https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html) if this is your first time contributing.
3. Create and test your work.
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).
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.
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.

### Contribution Acceptance Criteria

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.
2. New features or proposals must be supplied with documentation -- functional (how a feature works) or technical (how it is implemented/designed), or both.
## Contribution requirements

## Frequently Asked Questions
1. Contributions must adhere to [Magento coding standards](http://devdocs.magento.com/guides/v1.0/coding-standards/bk-coding-standards.html).
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.
3. Commits must be accompanied by meaningful commit messages.
4. PRs which include bug fixing, must be accompanied with step-by-step description of how to reproduce the bug.
3. PRs which include new logic or new features must be submitted along with:
* Unit/integration test coverage (we will be releasing more information on writing test coverage in the near future).
* Proposed [documentation](http://devdocs.magento.com) update. Documentation contributions can be submitted [here](https://github.com/magento/devdocs).
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.
5. All automated tests are passed successfully (all builds on [Travis CI](https://travis-ci.org/magento/magento2) must be green).

**Do I need to follow all requirements of the contribution process?**
## Contribution process

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.

**Do you accept all contributions?**
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”.

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.
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.
2. Review the [Contributor License Agreement](https://github.com/magento/magento2/blob/master/CONTRIBUTOR_LICENSE_AGREEMENT.html) if this is your first time contributing.
3. Create and test your work.
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).
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.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class Collection extends \Magento\Framework\Model\Resource\Db\Collection\Abstrac

/**
* @param \Magento\Core\Model\EntityFactory $entityFactory
* @param \Magento\Framework\Logger $logger
* @param \Psr\Log\LoggerInterface $logger
* @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
* @param \Magento\Framework\Event\ManagerInterface $eventManager
* @param \Magento\Framework\Notification\MessageList $messageList
Expand All @@ -31,7 +31,7 @@ class Collection extends \Magento\Framework\Model\Resource\Db\Collection\Abstrac
*/
public function __construct(
\Magento\Core\Model\EntityFactory $entityFactory,
\Magento\Framework\Logger $logger,
\Psr\Log\LoggerInterface $logger,
\Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
\Magento\Framework\Event\ManagerInterface $eventManager,
\Magento\Framework\Notification\MessageList $messageList,
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/AdminNotification/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/module-store": "0.42.0-beta1",
"magento/module-core": "0.42.0-beta1",
"magento/module-backend": "0.42.0-beta1",
"magento/framework": "0.42.0-beta1",
"magento/module-store": "0.42.0-beta2",
"magento/module-core": "0.42.0-beta2",
"magento/module-backend": "0.42.0-beta2",
"magento/framework": "0.42.0-beta2",
"lib-libxml": "*",
"magento/magento-composer-installer": "*"
},
"type": "magento2-module",
"version": "0.42.0-beta1",
"version": "0.42.0-beta2",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Authorization/Model/Acl/AclRetriever.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Magento\Framework\Acl\Builder as AclBuilder;
use Magento\Framework\Exception\AuthorizationException;
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Logger;
use Psr\Log\LoggerInterface as Logger;

/**
* Permission tree retriever
Expand Down Expand Up @@ -79,7 +79,7 @@ public function getAllowedResourcesByUser($userType, $userId)
} catch (AuthorizationException $e) {
throw $e;
} catch (\Exception $e) {
$this->logger->logException($e);
$this->logger->critical($e);
throw new LocalizedException(
'Error happened while getting a list of allowed resources. Check exception log for details.'
);
Expand Down
8 changes: 4 additions & 4 deletions app/code/Magento/Authorization/Model/Resource/Rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ class Rules extends \Magento\Framework\Model\Resource\Db\AbstractDb
protected $_aclBuilder;

/**
* @var \Magento\Framework\Logger
* @var \Psr\Log\LoggerInterface
*/
protected $_logger;

/**
* @param \Magento\Framework\App\Resource $resource
* @param \Magento\Framework\Acl\Builder $aclBuilder
* @param \Magento\Framework\Logger $logger
* @param \Psr\Log\LoggerInterface $logger
* @param \Magento\Framework\Acl\RootResource $rootResource
* @param \Magento\Framework\Acl\CacheInterface $aclCache
*/
public function __construct(
\Magento\Framework\App\Resource $resource,
\Magento\Framework\Acl\Builder $aclBuilder,
\Magento\Framework\Logger $logger,
\Psr\Log\LoggerInterface $logger,
\Magento\Framework\Acl\RootResource $rootResource,
\Magento\Framework\Acl\CacheInterface $aclCache
) {
Expand Down Expand Up @@ -116,7 +116,7 @@ public function saveRel(\Magento\Authorization\Model\Rules $rule)
throw $e;
} catch (\Exception $e) {
$adapter->rollBack();
$this->_logger->logException($e);
$this->_logger->critical($e);
}
}
}
6 changes: 3 additions & 3 deletions app/code/Magento/Authorization/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"description": "Authorization module provides access to Magento ACL functionality.",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/module-backend": "0.42.0-beta1",
"magento/framework": "0.42.0-beta1",
"magento/module-backend": "0.42.0-beta2",
"magento/framework": "0.42.0-beta2",
"magento/magento-composer-installer": "*"
},
"type": "magento2-module",
"version": "0.42.0-beta1",
"version": "0.42.0-beta2",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Block/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Context extends \Magento\Framework\View\Element\Context
* @param \Magento\Framework\View\Asset\Repository $assetRepo
* @param \Magento\Framework\View\ConfigInterface $viewConfig
* @param \Magento\Framework\App\Cache\StateInterface $cacheState
* @param \Magento\Framework\Logger $logger
* @param \Psr\Log\LoggerInterface $logger
* @param \Magento\Framework\Escaper $escaper
* @param \Magento\Framework\Filter\FilterManager $filterManager
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
Expand All @@ -55,7 +55,7 @@ public function __construct(
\Magento\Framework\View\Asset\Repository $assetRepo,
\Magento\Framework\View\ConfigInterface $viewConfig,
\Magento\Framework\App\Cache\StateInterface $cacheState,
\Magento\Framework\Logger $logger,
\Psr\Log\LoggerInterface $logger,
\Magento\Framework\Escaper $escaper,
\Magento\Framework\Filter\FilterManager $filterManager,
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Block/Template/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class Context extends \Magento\Framework\View\Element\Template\Context
* @param \Magento\Framework\View\Asset\Repository $assetRepo
* @param \Magento\Framework\View\ConfigInterface $viewConfig
* @param \Magento\Framework\App\Cache\StateInterface $cacheState
* @param \Magento\Framework\Logger $logger
* @param \Psr\Log\LoggerInterface $logger
* @param \Magento\Framework\Escaper $escaper
* @param \Magento\Framework\Filter\FilterManager $filterManager
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
Expand Down Expand Up @@ -89,7 +89,7 @@ public function __construct(
\Magento\Framework\View\Asset\Repository $assetRepo,
\Magento\Framework\View\ConfigInterface $viewConfig,
\Magento\Framework\App\Cache\StateInterface $cacheState,
\Magento\Framework\Logger $logger,
\Psr\Log\LoggerInterface $logger,
\Magento\Framework\Escaper $escaper,
\Magento\Framework\Filter\FilterManager $filterManager,
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Backend/Block/Widget/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class Context extends \Magento\Backend\Block\Template\Context
* @param \Magento\Framework\View\Asset\Repository $assetRepo
* @param \Magento\Framework\View\ConfigInterface $viewConfig
* @param \Magento\Framework\App\Cache\StateInterface $cacheState
* @param \Magento\Framework\Logger $logger
* @param \Psr\Log\LoggerInterface $logger
* @param \Magento\Framework\Escaper $escaper
* @param \Magento\Framework\Filter\FilterManager $filterManager
* @param \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate
Expand Down Expand Up @@ -74,7 +74,7 @@ public function __construct(
\Magento\Framework\View\Asset\Repository $assetRepo,
\Magento\Framework\View\ConfigInterface $viewConfig,
\Magento\Framework\App\Cache\StateInterface $cacheState,
\Magento\Framework\Logger $logger,
\Psr\Log\LoggerInterface $logger,
\Magento\Framework\Escaper $escaper,
\Magento\Framework\Filter\FilterManager $filterManager,
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public function __construct(
*/
public function render(\Magento\Framework\Object $row)
{
if ($data = (string)$row->getData($this->getColumn()->getIndex())) {
if ($data = (string)$this->_getValue($row)) {
$currency_code = $this->_getCurrencyCode($row);
$data = floatval($data) * $this->_getRate($row);
$sign = (bool)(int)$this->getColumn()->getShowNumberSign() && $data > 0 ? '+' : '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected function _getFormat()
\Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_MEDIUM
);
} catch (\Exception $e) {
$this->_logger->logException($e);
$this->_logger->critical($e);
}
}
$format = self::$_format;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected function _getFormat()
\Magento\Framework\Stdlib\DateTime\TimezoneInterface::FORMAT_TYPE_MEDIUM
);
} catch (\Exception $e) {
$this->_logger->logException($e);
$this->_logger->critical($e);
}
}
$format = self::$_format;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function __construct(
*/
public function render(\Magento\Framework\Object $row)
{
if ($data = $row->getData($this->getColumn()->getIndex())) {
if ($data = $this->_getValue($row)) {
$currencyCode = $this->_getCurrencyCode($row);

if (!$currencyCode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function execute()
->setContents($response->getBody());
return $resultRaw;
} catch (\Exception $e) {
$this->_objectManager->get('Magento\Framework\Logger')->logException($e);
$this->_objectManager->get('Psr\Log\LoggerInterface')->critical($e);
$error = __('see error log for details');
$httpCode = 503;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ public function execute()
) && $flagData['timeout_reached'])
) {
$this->_objectManager->get(
'Magento\Framework\Logger'
)->logException(
'Psr\Log\LoggerInterface'
)->critical(
new \Magento\Framework\Exception(
__('The timeout limit for response from synchronize process was reached.')
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function execute()
try {
$this->_getSyncSingleton()->synchronize($storage);
} catch (\Exception $e) {
$this->_objectManager->get('Magento\Framework\Logger')->logException($e);
$this->_objectManager->get('Psr\Log\LoggerInterface')->critical($e);
$flag->passError($e);
}

Expand Down
Loading

0 comments on commit e0bb974

Please sign in to comment.