Skip to content

Commit 9c5adc0

Browse files
committed
Merge branch 'develop' of github.corp.ebay.com:magento2/magento2ce into MAGETWO-36037
2 parents 26c7b7a + 4cec5b0 commit 9c5adc0

File tree

220 files changed

+3939
-1542
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

220 files changed

+3939
-1542
lines changed

CHANGELOG.md

Lines changed: 58 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,72 @@
1+
0.74.0-beta5
2+
=============
3+
* Various
4+
* Added the new methods/fields in the Catalog Product Data Object
5+
* Improved the Nginx configuration sample file for better web-server responsiveness and security
6+
* Implemented the new look & feel for Create New Order page
7+
* Removed the redundant DB constraints for cascade operations related to order management
8+
* Implemented the mechanism of asynchronous email notifications after creation of Orders, Invoices, Shipments and Credit Memos
9+
* Moved the join logic on application level in order to make DB separation possible in Reports component
10+
* Implemented the TTL and event approaches of cache invalidation, introduced the full and the partial Varnish Cache flush
11+
* Moved all Setup commands to Magento CLI
12+
* Exposed CMS API as Web API
13+
* Fixed bugs:
14+
* Unexpected response for API "/V1/customers/password" service
15+
* Can’t include a third-party link to frontend section via layout
16+
* Specified details for Grouped product are lost after adding to wishlist
17+
* Impossible to configure products in customer wishlist in Admin Panel
18+
* Adding the product from wishlist to cart if more than one store view exists
19+
* Specified product field custom options is not displayed in wishlist in Admin Panel
20+
* Checkout doesn't work with JS bundling enabled in production mode
21+
* Issue with price excluding tax when selecting downloadable links
22+
* Undefined index warning in case the frontend cache information is missing in configuration file
23+
* "New Order" email is not sent to customer after placing order via API service
24+
* 503 error when placing order with multiple shipping addresses if mail transport doesn't exist
25+
* Broken words for fields with long labels all over the Admin Panel
26+
* Issue with saving 'is_virtual' flag in quote
27+
* "Void" button available after "Deny Payment" operation
28+
* Uninstall logic did not clean cache properly
29+
* Obsolete code tests did not cover Tests folders
30+
* Random fail of Magento\Log\Test\Unit\Model\VisitorTest
31+
* GitHub issues:
32+
* [#1149] (https://github.com/magento/magento2/issues/1149) -- Checkout Grand Total amount miscalculation
33+
* [#1165] (https://github.com/magento/magento2/pull/1165) -- Fix typos
34+
* [#1182] (https://github.com/magento/magento2/pull/1182) -- Update system.xml for 'fix' sortOrder in adminhtml
35+
* [#1186] (https://github.com/magento/magento2/pull/1186) -- SalesSequence: Fixed composer installer dependency
36+
137
0.74.0-beta4
238
=============
339
* Various
4-
* Implemented the getDefaultResult method, to be able to catch exceptions in FrontController and redirect user to the correct page
5-
* The getDefaultResult method is invoked to return default result of action execution within controllers. It can be used to generate the ‘execute’ method result in action controllers
6-
* Eliminated the unused exceptions. Exceptions that weren't linked to any logic were also eliminated and replaced with LocalizedException or its child classes
7-
* Refactored all controllers where possible: the default exception handling logic moved to FrontController. Controllers that cannot be refactored do not conflict with the new logic
40+
* Implemented the getDefaultResult method, to be able to catch exceptions in FrontController and redirect user to the correct page
41+
* The getDefaultResult method is invoked to return default result of action execution within controllers. It can be used to generate the ‘execute’ method result in action controllers
42+
* Eliminated the unused exceptions. Exceptions that weren't linked to any logic were also eliminated and replaced with LocalizedException or its child classes
43+
* Refactored all controllers where possible: the default exception handling logic moved to FrontController. Controllers that cannot be refactored do not conflict with the new logic
844
* Framework:
9-
* Created Magento Console to perform CLI actions
10-
* Introduced a new SalesSequence module that is responsible for documents numeration management across the Order Management System
11-
* Implemented the mechanism of asynchronous indexing of sales entities grids
45+
* Created Magento Console to perform CLI actions
46+
* Introduced a new SalesSequence module that is responsible for documents numeration management across the Order Management System
47+
* Implemented the mechanism of asynchronous indexing of sales entities grids
1248
* Setup
13-
* Added the ConfigOption and ConfigOptionsList classes to be used by modules to manage deployment configuration
14-
* Moved all existing segments logic to new classes
15-
* Added the config:set command, which enables deployment configuration management
16-
* Removed the old 'install-configuration' tool
49+
* Added the ConfigOption and ConfigOptionsList classes to be used by modules to manage deployment configuration
50+
* Moved all existing segments logic to new classes
51+
* Added the config:set command, which enables deployment configuration management
52+
* Removed the old 'install-configuration' tool
1753
* Functional tests:
18-
* Fixed functional test for order placement from backend
19-
* Replaced the end-to-end test for a product with MAP with an injectable test
54+
* Fixed functional test for order placement from backend
55+
* Replaced the end-to-end test for a product with MAP with an injectable test
2056
* Design
21-
* Updated the Blank and Luma themes to enable theme (not only library) variables overriding in the _theme.less file of any inherited theme. Included LESS code standards to the UI Library documentation
57+
* Updated the Blank and Luma themes to enable theme (not only library) variables overriding in the _theme.less file of any inherited theme. Included LESS code standards to the UI Library documentation
2258
* Fixed bugs:
23-
* Fixed an issue where composite products could not be added to the order from the Recently Viewed Products section
24-
* Fixed an issue where not all .js files were added to a bundle
25-
* Fixed an issue where it was possible to save an incorrect IP value in the Developer Client Restriction field
26-
* Fixed an issue where a raw DB error was thrown when trying to enter a custom variable with duplicated variable code
59+
* Fixed an issue where composite products could not be added to the order from the Recently Viewed Products section
60+
* Fixed an issue where not all .js files were added to a bundle
61+
* Fixed an issue where it was possible to save an incorrect IP value in the Developer Client Restriction field
62+
* Fixed an issue where a raw DB error was thrown when trying to enter a custom variable with duplicated variable code
2763

2864
0.74.0-beta3
2965
=============
3066
* API
31-
* The orders were extended with the gift messages
32-
* The page and block data and repository interfaces
33-
* Updated the public API list
67+
* The orders were extended with the gift messages
68+
* The page and block data and repository interfaces
69+
* Updated the public API list
3470
* Framework improvements
3571
* Improved the profile generator
3672
* Introduced the new environment for Jasmine tests
@@ -54,7 +90,7 @@
5490
* Fixed the Navigation Menu items on Admin Area
5591
* Various unit and integration tests bugs
5692
* GitHub issues and requests
57-
[#675] (https://github.com/magento/magento2/issues/675) -- Fix for Textarea element cols and rows #675
93+
* [#675] (https://github.com/magento/magento2/issues/675) -- Fix for Textarea element cols and rows #675
5894

5995
0.74.0-beta2
6096
=============

app/code/Magento/AdminNotification/Setup/InstallSchema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
4545
'date_added',
4646
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
4747
null,
48-
['nullable' => false],
48+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
4949
'Create date'
5050
)->addColumn(
5151
'title',
@@ -112,7 +112,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con
112112
'created_at',
113113
\Magento\Framework\DB\Ddl\Table::TYPE_TIMESTAMP,
114114
null,
115-
['nullable' => false],
115+
['nullable' => false, 'default' => \Magento\Framework\DB\Ddl\Table::TIMESTAMP_INIT],
116116
'Create date'
117117
)->setComment(
118118
'Admin System Messages'

app/code/Magento/AdminNotification/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta4",
7-
"magento/module-backend": "0.74.0-beta4",
8-
"magento/module-media-storage": "0.74.0-beta4",
9-
"magento/framework": "0.74.0-beta4",
6+
"magento/module-store": "0.74.0-beta5",
7+
"magento/module-backend": "0.74.0-beta5",
8+
"magento/module-media-storage": "0.74.0-beta5",
9+
"magento/framework": "0.74.0-beta5",
1010
"lib-libxml": "*",
1111
"magento/magento-composer-installer": "*"
1212
},
1313
"type": "magento2-module",
14-
"version": "0.74.0-beta4",
14+
"version": "0.74.0-beta5",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"

app/code/Magento/Authorization/composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"description": "Authorization module provides access to Magento ACL functionality.",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-backend": "0.74.0-beta4",
7-
"magento/framework": "0.74.0-beta4",
6+
"magento/module-backend": "0.74.0-beta5",
7+
"magento/framework": "0.74.0-beta5",
88
"magento/magento-composer-installer": "*"
99
},
1010
"type": "magento2-module",
11-
"version": "0.74.0-beta4",
11+
"version": "0.74.0-beta5",
1212
"license": [
1313
"OSL-3.0",
1414
"AFL-3.0"

app/code/Magento/Backend/composer.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,27 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta4",
7-
"magento/module-directory": "0.74.0-beta4",
8-
"magento/module-developer": "0.74.0-beta4",
9-
"magento/module-eav": "0.74.0-beta4",
10-
"magento/module-cron": "0.74.0-beta4",
11-
"magento/module-theme": "0.74.0-beta4",
12-
"magento/module-reports": "0.74.0-beta4",
13-
"magento/module-sales": "0.74.0-beta4",
14-
"magento/module-quote": "0.74.0-beta4",
15-
"magento/module-catalog": "0.74.0-beta4",
16-
"magento/module-user": "0.74.0-beta4",
17-
"magento/module-backup": "0.74.0-beta4",
18-
"magento/module-customer": "0.74.0-beta4",
19-
"magento/module-translation": "0.74.0-beta4",
20-
"magento/module-require-js": "0.74.0-beta4",
21-
"magento/module-config": "0.74.0-beta4",
22-
"magento/framework": "0.74.0-beta4",
6+
"magento/module-store": "0.74.0-beta5",
7+
"magento/module-directory": "0.74.0-beta5",
8+
"magento/module-developer": "0.74.0-beta5",
9+
"magento/module-eav": "0.74.0-beta5",
10+
"magento/module-cron": "0.74.0-beta5",
11+
"magento/module-theme": "0.74.0-beta5",
12+
"magento/module-reports": "0.74.0-beta5",
13+
"magento/module-sales": "0.74.0-beta5",
14+
"magento/module-quote": "0.74.0-beta5",
15+
"magento/module-catalog": "0.74.0-beta5",
16+
"magento/module-user": "0.74.0-beta5",
17+
"magento/module-backup": "0.74.0-beta5",
18+
"magento/module-customer": "0.74.0-beta5",
19+
"magento/module-translation": "0.74.0-beta5",
20+
"magento/module-require-js": "0.74.0-beta5",
21+
"magento/module-config": "0.74.0-beta5",
22+
"magento/framework": "0.74.0-beta5",
2323
"magento/magento-composer-installer": "*"
2424
},
2525
"type": "magento2-module",
26-
"version": "0.74.0-beta4",
26+
"version": "0.74.0-beta5",
2727
"license": [
2828
"OSL-3.0",
2929
"AFL-3.0"

app/code/Magento/Backup/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta4",
7-
"magento/module-backend": "0.74.0-beta4",
8-
"magento/module-cron": "0.74.0-beta4",
9-
"magento/framework": "0.74.0-beta4",
6+
"magento/module-store": "0.74.0-beta5",
7+
"magento/module-backend": "0.74.0-beta5",
8+
"magento/module-cron": "0.74.0-beta5",
9+
"magento/framework": "0.74.0-beta5",
1010
"magento/magento-composer-installer": "*"
1111
},
1212
"type": "magento2-module",
13-
"version": "0.74.0-beta4",
13+
"version": "0.74.0-beta5",
1414
"license": [
1515
"OSL-3.0",
1616
"AFL-3.0"

app/code/Magento/Bundle/Api/Data/LinkInterface.php

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,24 @@
99

1010
interface LinkInterface extends \Magento\Framework\Api\ExtensibleDataInterface
1111
{
12+
const PRICE_TYPE_FIXED = 0;
13+
const PRICE_TYPE_PERCENT = 1;
14+
15+
/**
16+
* Get the identifier
17+
*
18+
* @return string|null
19+
*/
20+
public function getId();
21+
22+
/**
23+
* Set id
24+
*
25+
* @param string $id
26+
* @return $this
27+
*/
28+
public function setId($id);
29+
1230
/**
1331
* Get linked product sku
1432
*
@@ -69,21 +87,6 @@ public function getPosition();
6987
*/
7088
public function setPosition($position);
7189

72-
/**
73-
* Get is defined
74-
*
75-
* @return bool|null
76-
*/
77-
public function getIsDefined();
78-
79-
/**
80-
* Set is defined
81-
*
82-
* @param bool $isDefined
83-
* @return $this
84-
*/
85-
public function setIsDefined($isDefined);
86-
8790
/**
8891
* Get is default
8992
*

app/code/Magento/Bundle/Api/ProductLinkManagementInterface.php

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ interface ProductLinkManagementInterface
1111
/**
1212
* Get all children for Bundle product
1313
*
14-
* @param string $productId
14+
* @param string $productSku
15+
* @param int $optionId
1516
* @return \Magento\Bundle\Api\Data\LinkInterface[]
1617
* @throws \Magento\Framework\Exception\NoSuchEntityException
1718
* @throws \Magento\Framework\Exception\InputException
1819
*/
19-
public function getChildren($productId);
20+
public function getChildren($productSku, $optionId = null);
2021

2122
/**
2223
* Add child product to specified Bundle option by product sku
@@ -31,10 +32,23 @@ public function getChildren($productId);
3132
*/
3233
public function addChildByProductSku($sku, $optionId, \Magento\Bundle\Api\Data\LinkInterface $linkedProduct);
3334

35+
/**
36+
* @param string $sku
37+
* @param \Magento\Bundle\Api\Data\LinkInterface $linkedProduct
38+
* @throws \Magento\Framework\Exception\NoSuchEntityException
39+
* @throws \Magento\Framework\Exception\CouldNotSaveException
40+
* @throws \Magento\Framework\Exception\InputException
41+
* @return bool
42+
*/
43+
public function saveChild(
44+
$sku,
45+
\Magento\Bundle\Api\Data\LinkInterface $linkedProduct
46+
);
47+
3448
/**
3549
* @param \Magento\Catalog\Api\Data\ProductInterface $product
3650
* @param int $optionId
37-
* @param Data\LinkInterface $linkedProduct
51+
* @param \Magento\Bundle\Api\Data\LinkInterface $linkedProduct
3852
* @throws \Magento\Framework\Exception\NoSuchEntityException
3953
* @throws \Magento\Framework\Exception\CouldNotSaveException
4054
* @throws \Magento\Framework\Exception\InputException

app/code/Magento/Bundle/Model/Link.php

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,34 @@ class Link extends \Magento\Framework\Model\AbstractExtensibleModel implements
1616
/**#@+
1717
* Constants
1818
*/
19+
const KEY_ID = 'id';
1920
const KEY_SKU = 'sku';
2021
const KEY_OPTION_ID = 'option_id';
2122
const KEY_QTY = 'qty';
2223
const KEY_POSITION = 'position';
23-
const KEY_IS_DEFINED = 'is_defined';
2424
const KEY_IS_DEFAULT = 'is_default';
2525
const KEY_PRICE = 'price';
2626
const KEY_PRICE_TYPE = 'price_type';
27-
const KEY_CAN_CHANGE_QUANTITY = 'can_change_quantity';
27+
const KEY_CAN_CHANGE_QUANTITY = 'selection_can_change_quantity';
2828
/**#@-*/
2929

30+
/**
31+
* {@inheritdoc}
32+
*/
33+
public function getId()
34+
{
35+
return $this->getData(self::KEY_ID);
36+
}
37+
38+
/**
39+
* {@inheritdoc}
40+
*/
41+
public function setId($id)
42+
{
43+
return $this->setData(self::KEY_ID, $id);
44+
}
45+
46+
3047
/**
3148
* {@inheritdoc}
3249
*/
@@ -59,14 +76,6 @@ public function getPosition()
5976
return $this->getData(self::KEY_POSITION);
6077
}
6178

62-
/**
63-
* {@inheritdoc}
64-
*/
65-
public function getIsDefined()
66-
{
67-
return $this->getData(self::KEY_IS_DEFINED);
68-
}
69-
7079
/**
7180
* {@inheritdoc}
7281
*/
@@ -143,17 +152,6 @@ public function setPosition($position)
143152
return $this->setData(self::KEY_POSITION, $position);
144153
}
145154

146-
/**
147-
* Set is defined
148-
*
149-
* @param bool $isDefined
150-
* @return $this
151-
*/
152-
public function setIsDefined($isDefined)
153-
{
154-
return $this->setData(self::KEY_IS_DEFINED, $isDefined);
155-
}
156-
157155
/**
158156
* Set is default
159157
*

0 commit comments

Comments
 (0)