Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
140 commits
Select commit Hold shift + click to select a range
1d543e6
MAGETWO-90049: Static test failed on phtml files
nathanjosiah Apr 9, 2018
e151f20
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 7, 2018
e19b7f4
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
May 16, 2018
5105d01
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 16, 2018
27c0269
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 16, 2018
f83f857
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 16, 2018
44ed7b8
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 16, 2018
14ae834
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 16, 2018
8248a66
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 16, 2018
5c81d45
merge magento/2.3-develop into magento-trigger/MAGETWO-91034
May 16, 2018
169926a
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 16, 2018
8c9df08
Merge remote-tracking branch 'origin/MAGETWO-91034' into MAGETWO-91034
May 16, 2018
5a9ff46
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
May 17, 2018
ab2c8ef
MAGETWO-88603: Invalid Video Uploader Link
May 17, 2018
31da9d5
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
May 17, 2018
1470eee
Merge branch '2.3-develop' into MAGETWO-88603
May 31, 2018
f3e15f2
MAGETWO-72021: Wysiwyg editor incorrectly processes attributes of HTM…
Jun 11, 2018
cd0524e
Merge branch '2.3-develop' into MAGETWO-72021
Jun 14, 2018
1288659
Small image URL added to the product data
rogyar Jul 19, 2018
ca13aa8
API-functional tests added
rogyar Jul 26, 2018
f41eb3e
Use current store id instead of admin store id
rogyar Jul 31, 2018
79ef4a4
MAGETWO-88597: Varnish Config Access List
Aug 15, 2018
3d7e76d
MAGETWO-88597: Varnish Config Access List
Aug 15, 2018
579981a
Merge branch '2.3-develop' into MAGETWO-88597
Aug 27, 2018
3e63d7b
MAGETWO-72048: Wrong file upload behavior
Aug 28, 2018
fb8bf58
Merge branch '2.3-develop' of github.com:magento/magento2ce into MAGE…
Aug 28, 2018
1bc94b2
Merge branch '2.3-develop' into MAGETWO-72048
Aug 29, 2018
76714c5
Merge branch '2.3-develop' into MAGETWO-88597
Aug 30, 2018
2a4520c
Merge branch '2.3-develop' into MAGETWO-88597
Aug 31, 2018
59518ce
Merge branch '2.3-develop' into MAGETWO-72048
Aug 31, 2018
73fb7e8
MC-2379: CMS content containing widget directives is not updated when…
nathanjosiah Aug 31, 2018
65426ce
MC-2379: CMS content containing widget directives is not updated when…
nathanjosiah Aug 31, 2018
9d959fa
Merge remote-tracking branch 'origin' into MAGETWO-90049
nathanjosiah Sep 4, 2018
5586e2b
MC-2379: CMS content containing widget directives is not updated when…
nathanjosiah Sep 4, 2018
4603628
MC-1284: Random failure of AdminAddWidgetToWYSIWYGWithRecentlyCompare…
anthoula Sep 4, 2018
fe6d7f8
API-functional test improvements
rogyar Sep 5, 2018
a60e55d
Added parameter type in DocBlock
rogyar Sep 5, 2018
f19643e
Merge branch 'MC-2379' into nathan-bug-delivery
nathanjosiah Sep 5, 2018
e0ac310
Merge branch 'MAGETWO-90049' into nathan-bug-delivery
nathanjosiah Sep 5, 2018
43215c2
MC-2379: CMS content containing widget directives is not updated when…
nathanjosiah Sep 5, 2018
6877798
Removed area simulation. Resolver improvements
rogyar Sep 12, 2018
646f248
Declared new type for product images
rogyar Sep 12, 2018
f8b59e7
DocBlock comment adjustments
rogyar Sep 12, 2018
a027ae7
Removed debug parts
rogyar Sep 13, 2018
c53bb4f
Removed placeholder test
rogyar Sep 13, 2018
5a674c7
Making the resolver universal
rogyar Sep 14, 2018
4de3a9e
Merge branch '2.3-develop' into 88-small-image-url
rogyar Sep 14, 2018
0ea7d50
Return scalar type instead of deferred
rogyar Sep 14, 2018
18c9aa7
merge magento/2.3-develop into magento-obsessive-owls/MC-1284-test-fa…
Sep 14, 2018
3707da5
MAGETWO-72064: Fix tinymce flash player issue
omiroshnichenko Sep 14, 2018
3b4f913
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
Sep 16, 2018
2597d6c
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
Sep 16, 2018
b0dd3dd
Merge branch '2.3-develop' of github.com:magento-qwerty/magento2ce in…
Sep 17, 2018
ed9f348
MAGETWO-72048: Wrong file upload behavior
Sep 17, 2018
e2b2927
Merge branch '2.3-develop' of github.com:magento-qwerty/magento2ce in…
Sep 17, 2018
9ec6db2
add support HTTP DELETE method for async bulk request by adding mergi…
Sep 17, 2018
a4c941e
GraphQL-88: Small image URL added to the product data
Sep 17, 2018
a6d7d45
GraphQL-88: Small image URL added to the product data
Sep 17, 2018
a0bb394
ENGCOM-2992: add support HTTP DELETE method for async bulk request by…
magento-engcom-team Sep 17, 2018
ca8c7fc
Fixed failing tests
rogyar Sep 17, 2018
d860874
Merge branch '88-small-image-url' of github.com:magento/graphql-ce in…
rogyar Sep 17, 2018
8012b44
merge magento/2.3-develop into magento-obsessive-owls/MC-1284-test-fa…
Sep 17, 2018
4bae85e
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-9103…
dthampy Sep 17, 2018
46a9884
MC-2379: CMS content containing widget directives is not updated
cpartica Sep 17, 2018
b6af9bb
Replace sort callbacks to spaceship operator
mage2pratik Sep 17, 2018
430084d
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
cpartica Sep 17, 2018
dfffe34
MAGETWO-72064: Fix tinymce flash player issue
omiroshnichenko Sep 17, 2018
e0cf3f7
Merge remote-tracking branch 'obsessive-owls/MC-1284-test-failure-cms…
cpartica Sep 17, 2018
2e385e1
Merge remote-tracking branch 'trigger/nathan-bug-delivery' into bug_f…
cpartica Sep 17, 2018
c9b9cc0
Merge remote-tracking branch 'mainline/2.3.0-release' into bug_fixes_…
cpartica Sep 18, 2018
53c0151
MC-2379: CMS content containing widget directives is not updated when…
cpartica Sep 18, 2018
14fa96d
Merge remote-tracking branch 'trigger/nathan-bug-delivery' into bug_f…
cpartica Sep 18, 2018
5d7f1cd
ENGCOM-2996: Replace sort callbacks to spaceship operator #18102
magento-engcom-team Sep 18, 2018
bed8e88
Merge branch '2.3-develop' of github.com:magento-qwerty/magento2ce in…
Sep 18, 2018
648d7d8
MAGETWO-72048: Wrong file upload behavior
Sep 18, 2018
e52c764
MAGETWO-72048: Wrong file upload behavior
Sep 18, 2018
568fa46
Change sort order for customer group options #18101
dmytro-ch Sep 18, 2018
f4ec334
MAGETWO-72048: Wrong file upload behavior
Sep 18, 2018
33b00be
Merge remote-tracking branch 'mainline/2.3.0-release' into bug_fixes_…
cpartica Sep 18, 2018
6d6158e
MAGETWO-88591: Deleting Stores
Sep 18, 2018
12e3287
Merge branch '2.3-develop' of https://github.com/magento/magento2ce i…
Sep 18, 2018
baf00ca
MAGETWO-88591: Deleting Stores
Sep 18, 2018
932fcb9
Merge branch '2.3.0-release' of github.com:magento/magento2ce into MA…
omiroshnichenko Sep 18, 2018
ed99490
Minor code style fixes
rogyar Sep 19, 2018
bef544c
ENGCOM-3014: Change sort order for customer group options #18117
magento-engcom-team Sep 19, 2018
de61c15
MAGETWO-72048: Wrong file upload behavior
Sep 19, 2018
f5e0bda
Updated labels section in README.md
Sep 19, 2018
062f586
Updated labels section in README.md
Sep 19, 2018
563bfc4
ENGCOM-3016: Update labels section in README.md #18136
magento-engcom-team Sep 19, 2018
bbf1c0c
Replace intval() function by using direct type casting to (int) where…
mage2pratik Sep 19, 2018
d7cfbdb
MAGETWO-95105: [2.3] URL Key column with accented characters not conv…
vprohorov Sep 19, 2018
8d722a1
ENGCOM-3019: Replace intval() function by using direct type casting t…
magento-engcom-team Sep 20, 2018
d9b7615
ENGCOM-3019: Replace intval() function by using direct type casting t…
Sep 20, 2018
201a340
ENGCOM-3016: Update labels section in README.md #18136
Sep 20, 2018
6539c5f
ENGCOM-3014: Change sort order for customer group options #18117
Sep 20, 2018
5c578ed
ENGCOM-2996: Replace sort callbacks to spaceship operator #18102
Sep 20, 2018
e5b60a5
ENGCOM-2992: add support HTTP DELETE method for async bulk request by…
Sep 20, 2018
b6e2a77
magento-engcom/magento2ce#2193: Fixed static test failures
Sep 20, 2018
45cc658
Merge remote-tracking branch 'origin/2.3-develop' into 88-small-image…
Sep 20, 2018
e19cf15
MQE-1263: Deliver flaky fixes and unskipped tests
tomreece Sep 20, 2018
dad6575
GraphQL-88: 'small_image' in 'ProductInterface' does not have enough …
Sep 20, 2018
60902d9
ENGCOM-2948: Small image URL added to the product data #132
magento-engcom-team Sep 20, 2018
c5c8ea5
ENGCOM-2948: Small image URL added to the product data #132
Sep 20, 2018
a1c8093
MSI-1650: Fix CE integration test
IvanPletnyov Sep 21, 2018
7e8b881
MAGETWO-95105: [2.3] URL Key column with accented characters not conv…
vprohorov Sep 21, 2018
8d9890f
MSI-1650 contains: MSI-1674: Adapt Static Test which checks DevBlocks…
IvanPletnyov Sep 21, 2018
6362c4b
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
cpartica Sep 21, 2018
5f6a980
Merge remote-tracking branch 'trigger/MAGETWO-72064' into bug_fixes_b…
cpartica Sep 21, 2018
ac9d4c8
Merge remote-tracking branch 'pangolin/flaky-fixes-pr' into bug_fixes…
cpartica Sep 21, 2018
813209e
MAGEDOC-3150: Add link to release notes in magento2 CHANGELOG.md
jcalcaben Sep 21, 2018
fcf9e3c
Merge remote-tracking branch 'remotes/github/MAGETWO-95105' into EPAM…
VeronikaYarats Sep 21, 2018
6efdce8
Fix Custom Magento coding standard. Exclude Inventory modules
maghamed Sep 21, 2018
503cec4
Merge branch 'MAGEDOC-3150_add-release-notes-link' into bug_fixes_bet…
cpartica Sep 21, 2018
7263e4e
Merge pull request #3180 from magento-honey-badgers/bug_fixes_beta_bugs
cpartica Sep 21, 2018
b4503ec
MSI-1650: Fix CE integration test.
okolesnyk Sep 21, 2018
42ad538
Merge branch '2.3.0-release' of github.com:magento/magento2ce into MS…
okolesnyk Sep 21, 2018
0a42696
MAGETWO-91034: Renaming of new setup commands and setup:install/setup…
cpartica Sep 21, 2018
40bd9c6
merge magento/2.3.0-release into magento-honey-badgers/bug_fixes_beta…
Sep 21, 2018
16a59db
MSI-1650: Fix CE integration test.
okolesnyk Sep 23, 2018
e1533b0
Merge pull request #3200 from magento-engcom/MSI-1650
cpartica Sep 24, 2018
13c5dd8
merge magento/2.3.0-release into magento-honey-badgers/bug_fixes_beta…
Sep 24, 2018
49c17cf
Merge MAGETWO-88603 into 2.3-bugfixes-240918
dvoskoboinikov Sep 24, 2018
d66cf04
Merge MAGETWO-88597 into 2.3-bugfixes-240918
dvoskoboinikov Sep 24, 2018
17a4355
Merge MAGETWO-88591 into 2.3-bugfixes-240918
dvoskoboinikov Sep 24, 2018
cce6671
Merge MAGETWO-72048 into 2.3-bugfixes-240918
dvoskoboinikov Sep 24, 2018
3fceee4
Merge MAGETWO-72021 into 2.3-bugfixes-240918
dvoskoboinikov Sep 24, 2018
cf81fdc
GraphQL-88: 'small_image' in 'ProductInterface' does not have enough …
Sep 24, 2018
669375c
Merge branch 'ENGCOM-2948-magento-graphql-ce-132' of github.com:magen…
Sep 24, 2018
34cc53c
Merge pull request #3201 from magento-honey-badgers/bug_fixes_beta_bugs
cpartica Sep 24, 2018
2bfc225
Merge branch 'ENGCOM-2948-magento-graphql-ce-132' into graphql-develo…
Sep 24, 2018
9c4e95d
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
slavvka Sep 25, 2018
540c786
Merge branch '2.3-develop' of github.com:magento/magento2ce into EPAM…
rganin Sep 25, 2018
8487750
merge magento/2.3.0-release into magento-qwerty/2.3-bugfixes-240918
Sep 25, 2018
ad124d3
[EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team Sep 25, 2018
b9b7c9c
Merge pull request #3208 from magento-epam/EPAM-PR-13
rganin Sep 25, 2018
e2c0d0f
merge magento/2.3-develop into magento/2.3.0-release
Sep 25, 2018
547ad4a
Merge pull request #3210 from magento-qwerty/2.3-bugfixes-240918
cpartica Sep 25, 2018
25285a3
[EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team Sep 25, 2018
76e18b9
Merge pull request #3195 from magento-engcom/graphql-develop-prs
Sep 26, 2018
4719a6e
Module Catalog: fix issue with custom option price conversion for dif…
Sep 24, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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 @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
*/
namespace Magento\Catalog\Controller\Adminhtml\Category\Image;

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

/**
* Class Upload
*/
class Upload extends \Magento\Backend\App\Action
class Upload extends \Magento\Backend\App\Action implements HttpPostActionInterface
{
/**
* Image uploader
Expand Down Expand Up @@ -54,14 +55,6 @@ public function execute()

try {
$result = $this->imageUploader->saveFileToTmpDir($imageId);

$result['cookie'] = [
'name' => $this->_getSession()->getName(),
'value' => $this->_getSession()->getSessionId(),
'lifetime' => $this->_getSession()->getCookieLifetime(),
'path' => $this->_getSession()->getCookiePath(),
'domain' => $this->_getSession()->getCookieDomain(),
];
} catch (\Exception $e) {
$result = ['error' => $e->getMessage(), 'errorcode' => $e->getCode()];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,19 +160,22 @@ protected function _saveValuePrices(AbstractModel $object)
&& isset($objectPrice)
&& $object->getStoreId() != Store::DEFAULT_STORE_ID
) {
$baseCurrency = $this->_config->getValue(
$website = $this->_storeManager->getStore($object->getStoreId())->getWebsite();

$websiteBaseCurrency = $this->_config->getValue(
Currency::XML_PATH_CURRENCY_BASE,
'default'
ScopeInterface::SCOPE_WEBSITE,
$website
);

$storeIds = $this->_storeManager->getStore($object->getStoreId())->getWebsite()->getStoreIds();
$storeIds = $website->getStoreIds();
if (is_array($storeIds)) {
foreach ($storeIds as $storeId) {
if ($priceType == 'fixed') {
$storeCurrency = $this->_storeManager->getStore($storeId)->getBaseCurrencyCode();
/** @var $currencyModel Currency */
$currencyModel = $this->_currencyFactory->create();
$currencyModel->load($baseCurrency);
$currencyModel->load($websiteBaseCurrency);
$rate = $currencyModel->getRate($storeCurrency);
if (!$rate) {
$rate = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
<element name="Height" type="input" selector=".mce-textbox.mce-abs-layout-item.mce-first" />
<element name="UploadImage" type="file" selector=".fileupload" />
<element name="OkBtn" type="button" selector="//span[text()='Ok']"/>
<element name="InsertFile" type="text" selector="#insert_files"/>
<element name="InsertFile" type="text" selector="#insert_files" timeout="30"/>
<element name="CreateFolder" type="button" selector="#new_folder" />
<element name="DeleteSelectedBtn" type="text" selector="#delete_files"/>
<element name="CancelBtn" type="button" selector="#cancel" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,33 +17,25 @@
<severity value="CRITICAL"/>
<testCaseId value="MC-194"/>
<group value="Catalog"/>
<skip>
<issueId value="MAGETWO-92780"/>
</skip>
</annotations>
<before>
<createData entity="productDropDownAttribute" stepKey="attribute"/>

<createData entity="productAttributeOption1" stepKey="option1">
<requiredEntity createDataKey="attribute"/>
</createData>
<createData entity="productAttributeOption2" stepKey="option2">
<requiredEntity createDataKey="attribute"/>
</createData>

<createData entity="AddToDefaultSet" stepKey="addToDefaultSet">
<requiredEntity createDataKey="attribute"/>
</createData>

<createData entity="ApiProductWithDescription" stepKey="product"/>

<actionGroup ref="LoginAsAdmin" stepKey="loginAsAdmin"/>
</before>
<after>
<deleteData createDataKey="attribute" stepKey="deleteAttribute"/>
<actionGroup ref="logout" stepKey="logout"/>
</after>

<!-- Assert attribute presence in storefront product additional information -->
<amOnPage url="/$$product.custom_attributes[url_key]$$.html" stepKey="onProductPage1"/>
<waitForPageLoad stepKey="wait1"/>
Expand All @@ -64,6 +56,8 @@
<see userInput="$$attribute.attribute_code$$" selector="{{AdminProductAttributeSetEditSection.unassignedAttributesTree}}" stepKey="seeAttributeInUnassigned"/>
<!-- Save attribute set -->
<actionGroup ref="SaveAttributeSet" stepKey="SaveAttributeSet"/>
<!-- Clear cache -->
<actionGroup ref="ClearPageCacheActionGroup" stepKey="clearPageCacheActionGroup"/>
<!-- Go to create new product page -->
<amOnPage url="{{AdminProductCreatePage.url(AddToDefaultSet.attributeSetId, 'simple')}}" stepKey="navigateToNewProduct"/>
<waitForPageLoad stepKey="wait2"/>
Expand All @@ -72,8 +66,7 @@
<!-- Assert removed attribute not presence in storefront product additional information -->
<amOnPage url="/$$product.custom_attributes[url_key]$$.html" stepKey="onProductPage2"/>
<waitForPageLoad stepKey="wait3"/>
<actionGroup ref="checkAttributeNotInMoreInformationTab" stepKey="checkAttributeNotInMoreInformationTab">
<argument name="attributeLabel" value="$$attribute.attribute[frontend_labels][0][label]$$"/>
</actionGroup>
<dontSeeElement selector="{{StorefrontProductMoreInformationSection.moreInformation}}" stepKey="dontSeeProductAttribute"/>
<dontSee userInput="$$attribute.attribute[frontend_labels][0][label]$$" selector="{{StorefrontProductMoreInformationSection.moreInformationTextArea}}" stepKey="dontSeeAttributeLabel"/>
</test>
</tests>
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,6 @@
<severity value="CRITICAL"/>
<group value="product"/>
<testCaseId value="MAGETWO-92384"/>
<group value="skip"/>
<skip>
<issueId value="MAGETWO-93261"/>
</skip>
</annotations>
<before>
<createData entity="_defaultCategory" stepKey="createCategory"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
<description value="Admin should be able to see the full title of the selected custom option value in the order"/>
<severity value="MAJOR"/>
<testCaseId value="MC-3043"/>
<group value="skip"/>
<!-- Skip due to MQE-1128 -->
<skip>
<issueId value="MQE-1128"/>
</skip>
</annotations>
<before>
<!--Create Simple Product with Custom Options-->
Expand Down Expand Up @@ -106,6 +101,6 @@
</assertEquals>
<moveMouseOver selector="{{AdminOrderItemsOrderedSection.productNameOptions}} dd" stepKey="hoverProduct"/>
<waitForElementVisible selector="{{AdminOrderItemsOrderedSection.productNameOptions}} dd:nth-child(2)" stepKey="waitForCustomOptionValueFullName"/>
<see selector="{{AdminOrderItemsOrderedSection.productNameOptions}}" userInput="{{ProductOptionValueDropdownLongTitle1.title}}" stepKey="seeAdminOrderProductOptionValueDropdown1"/>
<see selector="{{AdminOrderItemsOrderedSection.productNameOptions}}" userInput="Optisfvdklvfnkljvnfdklpvnfdjklfdvnjkvfdkjnvfdjkfvndj111 11Optisfvdklvfnkljvnfdklpvnfdjklfdvnjkvfdkjnvfdjkfvndj11111" stepKey="seeAdminOrderProductOptionValueDropdown1"/>
</test>
</tests>
65 changes: 65 additions & 0 deletions app/code/Magento/CatalogGraphQl/Model/Resolver/Product/Image.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<?php
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
declare(strict_types=1);

namespace Magento\CatalogGraphQl\Model\Resolver\Product;

use Magento\Catalog\Model\Product;
use Magento\Catalog\Model\Product\ImageFactory;
use Magento\Framework\GraphQl\Config\Element\Field;
use Magento\Framework\GraphQl\Query\ResolverInterface;
use Magento\Framework\GraphQl\Schema\Type\ResolveInfo;

/**
* Returns product's image. If the image is not set, returns a placeholder
*/
class Image implements ResolverInterface
{
/**
* Product image factory
*
* @var ImageFactory
*/
private $productImageFactory;

/**
* @param ImageFactory $productImageFactory
*/
public function __construct(
ImageFactory $productImageFactory
) {
$this->productImageFactory = $productImageFactory;
}

/**
* @inheritdoc
*/
public function resolve(
Field $field,
$context,
ResolveInfo $info,
array $value = null,
array $args = null
): array {
if (!isset($value['model'])) {
throw new \LogicException(__('"model" value should be specified'));
}
/** @var Product $product */
$product = $value['model'];
$imageType = $field->getName();
$path = $product->getData($imageType);

$image = $this->productImageFactory->create();
$image->setDestinationSubdir($imageType)
->setBaseFile($path);
$imageUrl = $image->getUrl();

return [
'url' => $imageUrl,
'path' => $path,
];
}
}
7 changes: 6 additions & 1 deletion app/code/Magento/CatalogGraphQl/etc/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ interface ProductInterface @typeResolver(class: "Magento\\CatalogGraphQl\\Model\
meta_keyword: String @doc(description: "A comma-separated list of keywords that are visible only to search engines")
meta_description: String @doc(description: "A brief overview of the product for search results listings, maximum 255 characters")
image: String @doc(description: "The relative path to the main image on the product page")
small_image: String @doc(description: "The relative path to the small image, which is used on catalog pages")
small_image: ProductImage @doc(description: "The relative path to the small image, which is used on catalog pages") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\Image")
thumbnail: String @doc(description: "The relative path to the product's thumbnail image")
new_from_date: String @doc(description: "The beginning date for new product listings, and determines if the product is featured as a new product") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\NewFromTo")
new_to_date: String @doc(description: "The end date for new product listings") @resolver(class: "Magento\\CatalogGraphQl\\Model\\Resolver\\Product\\NewFromTo")
Expand Down Expand Up @@ -352,6 +352,11 @@ type CustomizableFileValue @doc(description: "CustomizableFileValue defines the
image_size_y: Int @doc(description: "The maximum height of an image")
}

type ProductImage @doc(description: "Product image information. Contains image relative path and URL") {
url: String
path: String
}

interface CustomizableOptionInterface @typeResolver(class: "Magento\\CatalogGraphQl\\Model\\CustomizableOptionTypeResolver") @doc(description: "The CustomizableOptionInterface contains basic information about a customizable option. It can be implemented by several types of configurable options.") {
title: String @doc(description: "The display name for this option")
required: Boolean @doc(description: "Indicates whether the option is required")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2839,7 +2839,7 @@ protected function getProductUrlSuffix($storeId = null)
protected function getUrlKey($rowData)
{
if (!empty($rowData[self::URL_KEY])) {
return strtolower($rowData[self::URL_KEY]);
return $this->productUrl->formatUrlKey($rowData[self::URL_KEY]);
}

if (!empty($rowData[self::COL_NAME])) {
Expand Down
Loading