Skip to content
This repository has been archived by the owner on Dec 19, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from magento/2.3-develop
Browse files Browse the repository at this point in the history
merge request
  • Loading branch information
ravi-chandra3197 authored Nov 12, 2018
2 parents 499cdd7 + 072ef37 commit 78b694f
Show file tree
Hide file tree
Showing 930 changed files with 17,581 additions and 7,595 deletions.
8 changes: 4 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ To get detailed information about changes in Magento 2.1.0, please visit [Magent
* Updated styles
* Sample Data:
* Improved sample data installation UX
* Updated sample data with Product Heros, color swatches, MAP and rule based product relations
* Updated sample data with Product Heroes, color swatches, MAP and rule based product relations
* Improved sample data upgrade flow
* Added the ability to log errors and set the error flag during sample data installation
* Various improvements:
Expand Down Expand Up @@ -2284,7 +2284,7 @@ Tests:
* Fixed an issue where no results were found for Coupons reports
* Fixed an issue with incremental Qty setting
* Fixed an issue with allowing importing of negative weight values
* Fixed an issue with Inventory - Only X left Treshold being not dependent on Qty for Item's Status to Become Out of Stock
* Fixed an issue with Inventory - Only X left Threshold being not dependent on Qty for Item's Status to Become Out of Stock
* Fixed an issue where the "Catalog Search Index index was rebuilt." message was displayed when reindexing the Catalog Search index
* Search module:
* Integrated the Search library to the advanced search functionality
Expand Down Expand Up @@ -2706,7 +2706,7 @@ Tests:
* Ability to support extensible service data objects
* No Code Duplication in Root Templates
* Fixed bugs:
* Persistance session application. Loggin out the customer
* Persistence session application. Logging out the customer
* Placing the order with two terms and conditions
* Saving of custom option by service catalogProductCustomOptionsWriteServiceV1
* Placing the order on frontend if enter in the street address line 1 and 2 255 symbols
Expand Down Expand Up @@ -2965,7 +2965,7 @@ Tests:
* Fixed an issue with incorrect items label for the cases when there are more than one item in the category
* Fixed an issue when configurable product was out of stock in Google Shopping while being in stock in the Magento backend
* Fixed an issue when swipe gesture in menu widget was not supported on mobile
* Fixed an issue when it was impossible to enter alpha-numeric zip code on the stage of estimating shipping and tax rates
* Fixed an issue when it was impossible to enter alphanumeric zip code on the stage of estimating shipping and tax rates
* Fixed an issue when custom price was not applied when editing an order
* Fixed an issue when items were not returned to stock after unsuccessful order was placed
* Fixed an issue when error message appeared "Cannot save the credit memo” while creating credit memo
Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting-edge, feature-rich eCommerce solution that gets results.

## Magento system requirements
[Magento system requirements](http://devdocs.magento.com/guides/v2.3/install-gde/system-requirements2.html).
[Magento system requirements](https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements2.html).

## Install Magento

* [Installation guide](http://devdocs.magento.com/guides/v2.3/install-gde/bk-install-guide.html).
* [Installation guide](https://devdocs.magento.com/guides/v2.3/install-gde/bk-install-guide.html).

<h2>Contributing to the Magento 2 code base</h2>
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, optimizations, or just good suggestions.
Expand All @@ -21,10 +21,10 @@ To learn about issues, click [here][2]. To open an issue, click [here][3].

To suggest documentation improvements, click [here][4].

[1]: <http://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html>
[2]: <http://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#report>
[1]: <https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html>
[2]: <https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#report>
[3]: <https://github.com/magento/magento2/issues>
[4]: <http://devdocs.magento.com>
[4]: <https://devdocs.magento.com>

<h3>Community Maintainers</h3>
The members of this team have been recognized for their outstanding commitment to maintaining and improving Magento. Magento has granted them permission to accept, merge, and reject pull requests, as well as review issues, and thanks these Community Maintainers for their valuable contributions.
Expand Down Expand Up @@ -53,9 +53,9 @@ Stay up-to-date on the latest security news and patches for Magento by signing u

Each Magento source file included in this distribution is licensed under OSL 3.0 or the Magento Enterprise Edition (MEE) license.

http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
Please see LICENSE.txt for the full text of the OSL 3.0 license or contact license@magentocommerce.com for a copy.
[Open Software License (OSL 3.0)](https://opensource.org/licenses/osl-3.0.php).
Please see [LICENSE.txt](https://github.com/magento/magento2/blob/2.3-develop/LICENSE.txt) for the full text of the OSL 3.0 license or contact license@magentocommerce.com for a copy.

Subject to Licensee's payment of fees and compliance with the terms and conditions of the MEE License, the MEE License supersedes the OSL 3.0 license for each source file.
Please see LICENSE_EE.txt for the full text of the MEE License or visit http://magento.com/legal/terms/enterprise.
Please see LICENSE_EE.txt for the full text of the MEE License or visit https://magento.com/legal/terms/enterprise.

6 changes: 4 additions & 2 deletions app/code/Magento/AdminNotification/Block/Window.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
namespace Magento\AdminNotification\Block;

/**
* Admin notification window block
*
* @api
* @since 100.0.2
*/
Expand Down Expand Up @@ -40,7 +42,7 @@ class Window extends \Magento\Backend\Block\Template
protected $_criticalCollection;

/**
* @var \Magento\Adminnotification\Model\Inbox
* @var \Magento\AdminNotification\Model\Inbox
*/
protected $_latestItem;

Expand Down Expand Up @@ -92,7 +94,7 @@ protected function _toHtml()
/**
* Retrieve latest critical item
*
* @return bool|\Magento\Adminnotification\Model\Inbox
* @return bool|\Magento\AdminNotification\Model\Inbox
*/
protected function _getLatestItem()
{
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/AdminNotification/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@
default="0" comment="Flag if notification read"/>
<column xsi:type="smallint" name="is_remove" padding="5" unsigned="true" nullable="false" identity="false"
default="0" comment="Flag if notification might be removed"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="notification_id"/>
</constraint>
<index name="ADMINNOTIFICATION_INBOX_SEVERITY" indexType="btree">
<index referenceId="ADMINNOTIFICATION_INBOX_SEVERITY" indexType="btree">
<column name="severity"/>
</index>
<index name="ADMINNOTIFICATION_INBOX_IS_READ" indexType="btree">
<index referenceId="ADMINNOTIFICATION_INBOX_IS_READ" indexType="btree">
<column name="is_read"/>
</index>
<index name="ADMINNOTIFICATION_INBOX_IS_REMOVE" indexType="btree">
<index referenceId="ADMINNOTIFICATION_INBOX_IS_REMOVE" indexType="btree">
<column name="is_remove"/>
</index>
</table>
Expand All @@ -40,7 +40,7 @@
default="0" comment="Problem type"/>
<column xsi:type="timestamp" name="created_at" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
comment="Create date"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="identity"/>
</constraint>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ public function testGetAllWebsitesValue()
$this->webSiteModel->expects($this->once())->method('getBaseCurrency')->willReturn($currency);

$expectedResult = AdvancedPricing::VALUE_ALL_WEBSITES . ' [' . $currencyCode . ']';
$this->websiteString = $this->getMockBuilder(
$websiteString = $this->getMockBuilder(
\Magento\AdvancedPricingImportExport\Model\Import\AdvancedPricing\Validator\Website::class
)
->setMethods(['_clearMessages', '_addMessages'])
->setConstructorArgs([$this->storeResolver, $this->webSiteModel])
->getMock();
$result = $this->websiteString->getAllWebsitesValue();
$result = $websiteString->getAllWebsitesValue();

$this->assertEquals($expectedResult, $result);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
use Magento\Search\Model\QueryInterface;
use Magento\AdvancedSearch\Model\SuggestedQueriesInterface;

/**
* Class DataProvider
*/
class DataProvider implements SuggestedQueriesInterface
{
/**
Expand Down Expand Up @@ -51,6 +54,8 @@ class DataProvider implements SuggestedQueriesInterface
private $recommendationsFactory;

/**
* DataProvider constructor.
*
* @param ScopeConfigInterface $scopeConfig
* @param \Magento\Catalog\Model\Layer\Resolver $layerResolver
* @param \Magento\AdvancedSearch\Model\ResourceModel\RecommendationsFactory $recommendationsFactory
Expand All @@ -69,18 +74,20 @@ public function __construct(
}

/**
* Is Results Count Enabled
*
* @return bool
*/
public function isResultsCountEnabled()
{
return (bool)$this->scopeConfig->getValue(
return $this->scopeConfig->isSetFlag(
self::CONFIG_RESULTS_COUNT_ENABLED,
ScopeInterface::SCOPE_STORE
);
}

/**
* {@inheritdoc}
* @inheritdoc
*/
public function getItems(QueryInterface $query)
{
Expand All @@ -102,6 +109,8 @@ public function getItems(QueryInterface $query)
}

/**
* Return Search Recommendations
*
* @param QueryInterface $query
* @return array
*/
Expand All @@ -126,17 +135,21 @@ private function getSearchRecommendations(\Magento\Search\Model\QueryInterface $
}

/**
* Is Search Recommendations Enabled
*
* @return bool
*/
private function isSearchRecommendationsEnabled()
{
return (bool)$this->scopeConfig->getValue(
return $this->scopeConfig->isSetFlag(
self::CONFIG_IS_ENABLED,
ScopeInterface::SCOPE_STORE
);
}

/**
* Return Search Recommendations Count
*
* @return int
*/
private function getSearchRecommendationsCount()
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/AdvancedSearch/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
default="0" comment="Query Id"/>
<column xsi:type="int" name="relation_id" padding="10" unsigned="true" nullable="false" identity="false"
default="0" comment="Relation Id"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" name="CATALOGSEARCH_RECOMMENDATIONS_QUERY_ID_SEARCH_QUERY_QUERY_ID"
<constraint xsi:type="foreign" referenceId="CATALOGSEARCH_RECOMMENDATIONS_QUERY_ID_SEARCH_QUERY_QUERY_ID"
table="catalogsearch_recommendations" column="query_id" referenceTable="search_query"
referenceColumn="query_id" onDelete="CASCADE"/>
<constraint xsi:type="foreign" name="CATALOGSEARCH_RECOMMENDATIONS_RELATION_ID_SEARCH_QUERY_QUERY_ID"
<constraint xsi:type="foreign" referenceId="CATALOGSEARCH_RECOMMENDATIONS_RELATION_ID_SEARCH_QUERY_QUERY_ID"
table="catalogsearch_recommendations" column="relation_id" referenceTable="search_query"
referenceColumn="query_id" onDelete="CASCADE"/>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<severity value="MAJOR"/>
<testCaseId value="MAGETWO-63898"/>
<group value="analytics"/>
<skip>
<issueId value="MAGETWO-96223"/>
</skip>
</annotations>

<actionGroup ref="LoginActionGroup" stepKey="loginAsAdmin"/>
Expand Down
3 changes: 3 additions & 0 deletions app/code/Magento/Analytics/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<source_model>Magento\Analytics\Model\Config\Source\Vertical</source_model>
<backend_model>Magento\Analytics\Model\Config\Backend\Vertical</backend_model>
<frontend_model>Magento\Analytics\Block\Adminhtml\System\Config\Vertical</frontend_model>
<depends>
<field id="analytics/general/enabled">1</field>
</depends>
</field>
<field id="additional_comment" translate="label comment" type="label" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0">
<label><![CDATA[<strong>Get more insights from Magento Business Intelligence</strong>]]></label>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
namespace Magento\AsynchronousOperations\Controller\Adminhtml\Bulk;

/**
* Class View Opertion Details Controller
* Class View Operation Details Controller
*/
class Details extends \Magento\Backend\App\Action
class Details extends \Magento\Backend\App\Action implements \Magento\Framework\App\Action\HttpGetActionInterface
{
/**
* @var \Magento\Framework\View\Result\PageFactory
Expand Down
18 changes: 9 additions & 9 deletions app/code/Magento/AsynchronousOperations/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@
comment="Total number of operations scheduled within this bulk"/>
<column xsi:type="timestamp" name="start_time" on_update="false" nullable="false" default="CURRENT_TIMESTAMP"
comment="Bulk start time"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="unique" name="MAGENTO_BULK_UUID">
<constraint xsi:type="unique" referenceId="MAGENTO_BULK_UUID">
<column name="uuid"/>
</constraint>
<index name="MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID" indexType="btree">
<index referenceId="MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID" indexType="btree">
<column name="user_id"/>
</index>
</table>
Expand All @@ -47,12 +47,12 @@
comment="Code of the error that appeared during operation execution (used to aggregate related failed operations)"/>
<column xsi:type="varchar" name="result_message" nullable="true" length="255"
comment="Operation result message"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" name="MAGENTO_OPERATION_BULK_UUID_MAGENTO_BULK_UUID" table="magento_operation"
<constraint xsi:type="foreign" referenceId="MAGENTO_OPERATION_BULK_UUID_MAGENTO_BULK_UUID" table="magento_operation"
column="bulk_uuid" referenceTable="magento_bulk" referenceColumn="uuid" onDelete="CASCADE"/>
<index name="MAGENTO_OPERATION_BULK_UUID_ERROR_CODE" indexType="btree">
<index referenceId="MAGENTO_OPERATION_BULK_UUID_ERROR_CODE" indexType="btree">
<column name="bulk_uuid"/>
<column name="error_code"/>
</index>
Expand All @@ -62,13 +62,13 @@
<column xsi:type="int" name="id" padding="10" unsigned="true" nullable="false" identity="true"
comment="Internal ID"/>
<column xsi:type="varbinary" name="bulk_uuid" nullable="true" length="39" comment="Related Bulk UUID"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="id"/>
</constraint>
<constraint xsi:type="foreign" name="MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID_MAGENTO_BULK_UUID"
<constraint xsi:type="foreign" referenceId="MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID_MAGENTO_BULK_UUID"
table="magento_acknowledged_bulk" column="bulk_uuid" referenceTable="magento_bulk"
referenceColumn="uuid" onDelete="CASCADE"/>
<constraint xsi:type="unique" name="MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID">
<constraint xsi:type="unique" referenceId="MAGENTO_ACKNOWLEDGED_BULK_BULK_UUID">
<column name="bulk_uuid"/>
</constraint>
</table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
},
"constraint": {
"PRIMARY": true,
"MAGENTO_BULK_UUID": true
"MAGENTO_BULK_UUID": true,
"MAGENTO_BULK_USER_ID_ADMIN_USER_USER_ID": true
}
},
"magento_operation": {
Expand Down
14 changes: 7 additions & 7 deletions app/code/Magento/Authorization/etc/db_schema.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@
comment="User ID"/>
<column xsi:type="varchar" name="user_type" nullable="true" length="16" comment="User Type"/>
<column xsi:type="varchar" name="role_name" nullable="true" length="50" comment="Role Name"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="role_id"/>
</constraint>
<index name="AUTHORIZATION_ROLE_PARENT_ID_SORT_ORDER" indexType="btree">
<index referenceId="AUTHORIZATION_ROLE_PARENT_ID_SORT_ORDER" indexType="btree">
<column name="parent_id"/>
<column name="sort_order"/>
</index>
<index name="AUTHORIZATION_ROLE_TREE_LEVEL" indexType="btree">
<index referenceId="AUTHORIZATION_ROLE_TREE_LEVEL" indexType="btree">
<column name="tree_level"/>
</index>
</table>
Expand All @@ -40,17 +40,17 @@
<column xsi:type="varchar" name="resource_id" nullable="true" length="255" comment="Resource ID"/>
<column xsi:type="varchar" name="privileges" nullable="true" length="20" comment="Privileges"/>
<column xsi:type="varchar" name="permission" nullable="true" length="10" comment="Permission"/>
<constraint xsi:type="primary" name="PRIMARY">
<constraint xsi:type="primary" referenceId="PRIMARY">
<column name="rule_id"/>
</constraint>
<constraint xsi:type="foreign" name="AUTHORIZATION_RULE_ROLE_ID_AUTHORIZATION_ROLE_ROLE_ID"
<constraint xsi:type="foreign" referenceId="AUTHORIZATION_RULE_ROLE_ID_AUTHORIZATION_ROLE_ROLE_ID"
table="authorization_rule" column="role_id" referenceTable="authorization_role"
referenceColumn="role_id" onDelete="CASCADE"/>
<index name="AUTHORIZATION_RULE_RESOURCE_ID_ROLE_ID" indexType="btree">
<index referenceId="AUTHORIZATION_RULE_RESOURCE_ID_ROLE_ID" indexType="btree">
<column name="resource_id"/>
<column name="role_id"/>
</index>
<index name="AUTHORIZATION_RULE_ROLE_ID_RESOURCE_ID" indexType="btree">
<index referenceId="AUTHORIZATION_RULE_ROLE_ID_RESOURCE_ID" indexType="btree">
<column name="role_id"/>
<column name="resource_id"/>
</index>
Expand Down
6 changes: 5 additions & 1 deletion app/code/Magento/Backend/App/Request/BackendValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public function __construct(
}

/**
* Validate request
*
* @param RequestInterface $request
* @param ActionInterface $action
*
Expand Down Expand Up @@ -115,6 +117,8 @@ private function validateRequest(
}

/**
* Create exception
*
* @param RequestInterface $request
* @param ActionInterface $action
*
Expand Down Expand Up @@ -166,7 +170,7 @@ public function validate(
ActionInterface $action
): void {
if ($action instanceof AbstractAction) {
//Abstract Action has build-in validation.
//Abstract Action has built-in validation.
if (!$action->_processUrlKeys()) {
throw new InvalidRequestException($action->getResponse());
}
Expand Down
Loading

0 comments on commit 78b694f

Please sign in to comment.