Skip to content

Commit

Permalink
🔃 [Magento Community Engineering] Community Contributions - 2.3-devel…
Browse files Browse the repository at this point in the history
…op expedited

Accepted Community Pull Requests:
 - #23393: Fixed issue #21974 (by @geet07)
 - #23394: Fixed issue #23377 (by @geet07)
 - #23403: Remove rogue closing tag from store-switcher template (by @sta1r)
 - #23353: Get review entity id by code instead hard-coded. (by @DaniloEmpire)
 - #23234: [Ui] Calling the always action on opening and closing the modal. (by @eduard13)
 - #22116: Fix magento root package identification for metapackage installation (by @oleksii-lisovyi)


Fixed GitHub Issues:
 - #21974: Changes for PayPal affect core config fields with tooltip  (reported by @AndreasMueller75) has been fixed in #23393 by @geet07 in 2.3-develop branch
   Related commits:
     1. eb28f14

 - #23377: Mini cart loader not working first time magento2 (reported by @iamckindia) has been fixed in #23394 by @geet07 in 2.3-develop branch
   Related commits:
     1. 3d6b783

 - #23233: Alert widget doesn't trigger always method on showing the message (reported by @eduard13) has been fixed in #23234 by @eduard13 in 2.3-develop branch
   Related commits:
     1. 0c402ae
     2. 10c89f7
     3. 07590d9
     4. 92adfeb

 - #21136: Magento installation via metapackage: checkExtensions fails (reported by @oleksii-lisovyi) has been fixed in #22116 by @oleksii-lisovyi in 2.3-develop branch
   Related commits:
     1. 2c91e5a
  • Loading branch information
magento-engcom-team authored Jun 27, 2019
2 parents 21b3caf + 7ca8861 commit 355b6ff
Show file tree
Hide file tree
Showing 12 changed files with 40,789 additions and 10,394 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<element name="advancedReportingIndustry" type="select" selector="#analytics_general_vertical"/>
<element name="advancedReportingIndustryLabel" type="text" selector=".config-vertical-label>label>span"/>
<element name="advancedReportingHour" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(2)"/>
<element name="advancedReportingMinute" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(3)"/>
<element name="advancedReportingSeconds" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(4)"/>
<element name="advancedReportingMinute" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(4)"/>
<element name="advancedReportingSeconds" type="select" selector="#row_analytics_general_collection_time>td:nth-child(2)>select:nth-child(6)"/>
<element name="advancedReportingBlankIndustryError" type="text" selector=".message-error>div"/>
</section>
</sections>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
data-bind="scope: 'minicart_content'">
<span class="text"><?= $block->escapeHtml(__('My Cart')) ?></span>
<span class="counter qty empty"
data-bind="css: { empty: !!getCartParam('summary_count') == false }, blockLoader: isLoading">
data-bind="css: { empty: !!getCartParam('summary_count') == false && !isLoading() }, blockLoader: isLoading">
<span class="counter-number"><!-- ko text: getCartParam('summary_count') --><!-- /ko --></span>
<span class="counter-label">
<!-- ko if: getCartParam('summary_count') -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,16 @@
use Magento\Framework\Controller\ResultFactory;
use Magento\Store\Model\Store;
use Magento\Framework\Exception\LocalizedException;
use Magento\Review\Model\Review;

/**
* Review admin controller for POST request.
*/
class Post extends ProductController implements HttpPostActionInterface
{
/**
* Create a product review.
*
* @return \Magento\Backend\Model\View\Result\Redirect
*/
public function execute()
Expand All @@ -33,7 +39,7 @@ public function execute()
}
$review = $this->reviewFactory->create()->setData($data);
try {
$review->setEntityId(1) // product
$review->setEntityId($review->getEntityIdByCode(Review::ENTITY_PRODUCT_CODE))
->setEntityPkValue($productId)
->setStoreId(Store::DEFAULT_STORE_ID)
->setStatusId($data['status_id'])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
namespace Magento\Review\Test\Unit\Controller\Adminhtml\Product;

use Magento\Framework\Controller\ResultFactory;
use Magento\Review\Model\Review;

/**
* @SuppressWarnings(PHPMD.TooManyFields)
Expand Down Expand Up @@ -109,7 +110,7 @@ protected function _prepareMockObjects()
$this->storeModelMock = $this->createPartialMock(\Magento\Store\Model\Store::class, ['__wakeup', 'getId']);
$this->reviewMock = $this->createPartialMock(
\Magento\Review\Model\Review::class,
['__wakeup', 'create', 'save', 'getId', 'getResource', 'aggregate']
['__wakeup', 'create', 'save', 'getId', 'getResource', 'aggregate', 'getEntityIdByCode']
);
$this->reviewFactoryMock = $this->createPartialMock(\Magento\Review\Model\ReviewFactory::class, ['create']);
$this->ratingMock = $this->createPartialMock(
Expand Down Expand Up @@ -174,6 +175,10 @@ public function testPostAction()
$this->reviewMock->expects($this->once())
->method('aggregate')
->willReturn($this->reviewMock);
$this->reviewMock->expects($this->once())
->method('getEntityIdByCode')
->with(Review::ENTITY_PRODUCT_CODE)
->willReturn(1);
$this->ratingMock->expects($this->once())
->method('setRatingId')
->willReturnSelf();
Expand Down
9 changes: 8 additions & 1 deletion app/code/Magento/Ui/view/base/web/js/modal/alert.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,18 @@ define([
}]
},

/**
* Create widget.
*/
_create: function () {
this.options.actions.always();
this._super();
},

/**
* Close modal window.
*/
closeModal: function () {
this.options.actions.always();
this.element.bind('alertclosed', _.bind(this._remove, this));

return this._super();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@
right: 0;
top: 0;
}

.time-separator {
font-size: 14px;
padding-left: 5px;
}

.tooltip-content {
background: @color-very-dark-gray-black2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function testGetRequiredPhpVersion($composerDir)
['composerFactory' => $this->composerFactory]
);

$this->assertEquals("~5.5.0|~5.6.0|~7.0.0", $composerInfo->getRequiredPhpVersion());
$this->assertEquals("~7.1.3||~7.2.0", $composerInfo->getRequiredPhpVersion());
}

/**
Expand All @@ -92,7 +92,7 @@ public function testGetRequiredPhpVersion($composerDir)
public function testGetRequiredExtensions($composerDir)
{
$this->setupDirectory($composerDir);
$expectedExtensions = ['ctype', 'gd', 'spl', 'dom', 'simplexml', 'mcrypt', 'hash', 'curl', 'iconv', 'intl'];
$expectedExtensions = ['ctype', 'gd', 'spl', 'dom', 'simplexml', 'hash', 'curl', 'iconv', 'intl'];

/** @var \Magento\Framework\Composer\ComposerInformation $composerInfo */
$composerInfo = $this->objectManager->create(
Expand Down
Loading

0 comments on commit 355b6ff

Please sign in to comment.