Skip to content

Commit

Permalink
Merge branch '2.3-develop' into 2.3-develop-PR-port-18001
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Idolov authored Oct 4, 2018
2 parents 0e7f779 + 20f1162 commit 1133391
Show file tree
Hide file tree
Showing 240 changed files with 4,250 additions and 1,100 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.3.0
=============
To get detailed information about changes in Magento 2.3.0, see the [Release Notes](https://devdocs.magento.com/guides/v2.3/release-notes/bk-release-notes.html)

2.1.0
=============
To get detailed information about changes in Magento 2.1.0, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.0CE.html "Magento Community Edition (CE) Release Notes")
Expand Down
16 changes: 2 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,8 @@ Magento is thankful for any contribution that can improve our code base, documen
</a>

<h3>Labels applied by the Magento team</h3>

| Label | Description |
| ------------- |-------------|
| ![DOC](http://devdocs.magento.com/common/images/github_DOC.png) | Affects Documentation domain. |
| ![PROD](http://devdocs.magento.com/common/images/github_PROD.png) | Affects the Product team (mostly feature requests or business logic change). |
| ![TECH](http://devdocs.magento.com/common/images/github_TECH.png) | Affects Architect Group (mostly to make decisions around technology changes). |
| ![accept](http://devdocs.magento.com/common/images/github_accept.png) | The pull request has been accepted and will be merged into mainline code. |
| ![reject](http://devdocs.magento.com/common/images/github_reject.png) | The pull request has been rejected and will not be merged into mainline code. Possible reasons can include but are not limited to: issue has already been fixed in another code contribution, or there is an issue with the code contribution. |
| ![bug report](http://devdocs.magento.com/common/images/github_bug.png) | The Magento Team has confirmed that this issue contains the minimum required information to reproduce. |
| ![acknowledged](http://devdocs.magento.com/common/images/gitHub_acknowledged.png) | The Magento Team has validated the issue and an internal ticket has been created. |
| ![in progress](http://devdocs.magento.com/common/images/github_inProgress.png) | The internal ticket is currently in progress, fix is scheduled to be delivered. |
| ![needs update](http://devdocs.magento.com/common/images/github_needsUpdate.png) | The Magento Team needs additional information from the reporter to properly prioritize and process the issue or pull request. |

To learn more about issue gate labels click [here](https://github.com/magento/magento2/wiki/Magento-Issue-Gates)
We apply labels to public Pull Requests and Issues to help other participants retrieve additional information about current progress, component assignments, Magento release lines, and much more.
Please review the <a href="https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#labels">Code Contributions guide</a> for detailed information on labels used in Magento 2 repositories.

<h2>Reporting security issues</h2>

Expand Down
33 changes: 25 additions & 8 deletions app/code/Magento/Analytics/ReportXml/DB/SelectBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

/**
* Responsible for Select object creation, works as a builder. Returns Select as result;
*
* Used in SQL assemblers.
*/
class SelectBuilder
Expand Down Expand Up @@ -85,11 +86,13 @@ public function getJoins()
* Set joins conditions
*
* @param array $joins
* @return void
* @return $this
*/
public function setJoins($joins)
{
$this->joins = $joins;

return $this;
}

/**
Expand All @@ -106,11 +109,13 @@ public function getConnectionName()
* Set connection name
*
* @param string $connectionName
* @return void
* @return $this
*/
public function setConnectionName($connectionName)
{
$this->connectionName = $connectionName;

return $this;
}

/**
Expand All @@ -127,11 +132,13 @@ public function getColumns()
* Set columns
*
* @param array $columns
* @return void
* @return $this
*/
public function setColumns($columns)
{
$this->columns = $columns;

return $this;
}

/**
Expand All @@ -148,11 +155,13 @@ public function getFilters()
* Set filters
*
* @param array $filters
* @return void
* @return $this
*/
public function setFilters($filters)
{
$this->filters = $filters;

return $this;
}

/**
Expand All @@ -169,11 +178,13 @@ public function getFrom()
* Set from condition
*
* @param array $from
* @return void
* @return $this
*/
public function setFrom($from)
{
$this->from = $from;

return $this;
}

/**
Expand Down Expand Up @@ -236,11 +247,13 @@ public function getGroup()
* Set group
*
* @param array $group
* @return void
* @return $this
*/
public function setGroup($group)
{
$this->group = $group;

return $this;
}

/**
Expand All @@ -257,11 +270,13 @@ public function getParams()
* Set parameters
*
* @param array $params
* @return void
* @return $this
*/
public function setParams($params)
{
$this->params = $params;

return $this;
}

/**
Expand All @@ -278,10 +293,12 @@ public function getHaving()
* Set having condition
*
* @param array $having
* @return void
* @return $this
*/
public function setHaving($having)
{
$this->having = $having;

return $this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public function testCreate()
['link-type' => 'right', 'table' => 'attribute', 'condition' => 'neq'],
];
$groups = ['id', 'name'];
$this->selectBuilder->setConnectionName($connectionName);
$this->selectBuilder->setFrom($from);
$this->selectBuilder->setColumns($columns);
$this->selectBuilder->setFilters([$filter]);
$this->selectBuilder->setJoins($joins);
$this->selectBuilder->setGroup($groups);
$this->selectBuilder->setConnectionName($connectionName)
->setFrom($from)
->setColumns($columns)
->setFilters([$filter])
->setJoins($joins)
->setGroup($groups);
$this->resourceConnectionMock->expects($this->once())
->method('getConnection')
->with($connectionName)
Expand Down
10 changes: 3 additions & 7 deletions app/code/Magento/Backend/Block/Widget/Button/ButtonList.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
namespace Magento\Backend\Block\Widget\Button;

/**
* Button list widget
*
* @api
* @since 100.0.2
*/
Expand Down Expand Up @@ -127,12 +129,6 @@ public function getItems()
*/
public function sortButtons(Item $itemA, Item $itemB)
{
$sortOrderA = (int) $itemA->getSortOrder();
$sortOrderB = (int) $itemB->getSortOrder();

if ($sortOrderA == $sortOrderB) {
return 0;
}
return ($sortOrderA < $sortOrderB) ? -1 : 1;
return (int)$itemA->getSortOrder() <=> (int)$itemB->getSortOrder();
}
}
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;

class DeleteGroupPost extends \Magento\Backend\Controller\Adminhtml\System\Store
/**
* Delete store.
*/
class DeleteGroupPost extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpPostActionInterface
{
/**
* @inheritDoc
* @return \Magento\Backend\Model\View\Result\Redirect
*/
public function execute()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
<?php
/**
*
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
namespace Magento\Backend\Controller\Adminhtml\System\Store;

use Magento\Framework\App\Action\HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;

class DeleteStorePost extends \Magento\Backend\Controller\Adminhtml\System\Store
/**
* Delete store view.
*/
class DeleteStorePost extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpPostActionInterface
{
/**
* Delete store view post action
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@
use Magento\Framework\App\Action\HttpPostActionInterface as HttpPostActionInterface;
use Magento\Framework\Controller\ResultFactory;

/**
* Delete website.
*/
class DeleteWebsitePost extends \Magento\Backend\Controller\Adminhtml\System\Store implements HttpPostActionInterface
{
/**
* @inheritDoc
* @return \Magento\Backend\Model\View\Result\Redirect
*/
public function execute()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
data-validate="{required:true}"
value=""
placeholder="<?= /* @escapeNotVerified */ __('password') ?>"
autocomplete="new-password"
autocomplete="off"
/>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
<severity value="CRITICAL"/>
<testCaseId value="MAGETWO-94176"/>
<group value="backup"/>
<group value="skip"/>
<skip>
<issueId value="MQE-1187"/>
<issueId value="DEVOPS-3512"/>
</skip>
</annotations>

<!--Login to admin area-->
Expand Down
6 changes: 2 additions & 4 deletions app/code/Magento/Bundle/Model/Product/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -1014,10 +1014,8 @@ public function shakeSelections($firstItem, $secondItem)
$secondItem->getPosition(),
$secondItem->getSelectionId(),
];
if ($aPosition == $bPosition) {
return 0;
}
return $aPosition < $bPosition ? -1 : 1;

return $aPosition <=> $bPosition;
}

/**
Expand Down
Loading

0 comments on commit 1133391

Please sign in to comment.