Skip to content

Commit

Permalink
0.1.0-alpha104
Browse files Browse the repository at this point in the history
* Various improvements:
    * Merge SQL and Data Upgrades for the Sales and SalesRule modules
    * Add getDefaultBilling and getDefaultShipping to Customer Interface
    * Stabilized the Bundle module
    * Stabilized the CatalogSearch module
    * Stabilized the Cms module
    * Stabilized the SalesRule module
* Performance improvements:
    * Introduced CatalogRule indexers based on Mview
    * Significantly decreased the amount of unused objects, mostly in category and product view scenarios:
		* Got rid of non-shared indexer instances all over the code introducing Magento\Indexer\Model\IndexerRegistry
		* Magento\Catalog\Pricing\Price\BasePrice being created on demand only, instead of unconditioned creation in constructor
		* Created proxies for unused objects with big amount of dependencies
		* Fixed \Magento\Review\Block\Product\Review block which injected backend block context by mistake
		* A customer model in \Magento\Customer\Model\Layout\DepersonalizePlugin being created on demand only, instead of constructor
    * Introduced caching for product attribute metadata loading procedure
    * Improved SavePayment Checkout step to save only payment related data
    * Speed up all Checkout steps of the One Page Checkout
    * Updated the benchmark.jmx jmeter script in the performance toolkit
* Fixed bugs:
    * Fixed an issue where performance toolkit generator created Products/Categories without URL rewrites due to install area elimination
    * Fixed an issue where the Custom Options fieldset on Product Information page was collapsible
    * Fixed an issue where the Base URL was added to target path for Custom UrlRewrite
    * Fixed an issue where an invalid Cross-sells amount was displayed in the Shopping Cart
    * Fixed an issue where the Mage_Catalog_Model_Product_Type_AbstractTest::testBeforeSave integration test failed when Mage_Downloadable module was not available
    * Fixed an issue where the custom URL rewrite redirected to sub-folder when Request Path contained slash
    * Fixed an issue where it was impossible to place an order if registering during checkout
    * Fixed an issue where there was no possibility to save default billing and shipping addresses for customer on the store front
    * Fixed an issue where a widget of Catalog Category Link type was not displayed on the store front
    * Fixed an issue where the Versions tab was absent on the CMS page with version control
    * Fixed an issue where it was impossible to insert Widgets and Images to a CMS page
* Added the following functional tests:
    * Create widget
    * Print order from guest on frontend
* Framework Improvements:
    * Removed duplicated logic from API Builders and Builder generators. Added support for populating builders from the objects, implementing data interface
* Processed GitHub requests:
    * [#674](#674) -- Widgets in content pages
  • Loading branch information
magento-team committed Nov 18, 2014
1 parent 86f7776 commit 02a9a0e
Show file tree
Hide file tree
Showing 575 changed files with 10,761 additions and 6,193 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,17 @@ atlassian*

/pub/media/*.*
!/pub/media/.htaccess
/pub/media/catalog/*
!/pub/media/catalog/.htaccess
/pub/media/customer/*
!/pub/media/customer/.htaccess
/pub/media/downloadable/*
!/pub/media/downloadable/.htaccess
/pub/media/theme/*
/pub/media/theme_customization/*
!/pub/media/theme_customization/.htaccess
/pub/media/tmp/*
!/pub/media/tmp/.htaccess
/pub/static/*
!/pub/static/.htaccess

Expand Down
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
0.1.0-alpha104
=============
* Various improvements:
* Merge SQL and Data Upgrades for the Sales and SalesRule modules
* Add getDefaultBilling and getDefaultShipping to Customer Interface
* Stabilized the Bundle module
* Stabilized the CatalogSearch module
* Stabilized the Cms module
* Stabilized the SalesRule module
* Performance improvements:
* Introduced CatalogRule indexers based on Mview
* Significantly decreased the amount of unused objects, mostly in category and product view scenarios:
* Got rid of non-shared indexer instances all over the code introducing Magento\Indexer\Model\IndexerRegistry
* Magento\Catalog\Pricing\Price\BasePrice being created on demand only, instead of unconditioned creation in constructor
* Created proxies for unused objects with big amount of dependencies
* Fixed \Magento\Review\Block\Product\Review block which injected backend block context by mistake
* A customer model in \Magento\Customer\Model\Layout\DepersonalizePlugin being created on demand only, instead of constructor
* Introduced caching for product attribute metadata loading procedure
* Improved SavePayment Checkout step to save only payment related data
* Speed up all Checkout steps of the One Page Checkout
* Updated the benchmark.jmx jmeter script in the performance toolkit
* Fixed bugs:
* Fixed an issue where performance toolkit generator created Products/Categories without URL rewrites due to install area elimination
* Fixed an issue where the Custom Options fieldset on Product Information page was collapsible
* Fixed an issue where the Base URL was added to target path for Custom UrlRewrite
* Fixed an issue where an invalid Cross-sells amount was displayed in the Shopping Cart
* Fixed an issue where the Mage_Catalog_Model_Product_Type_AbstractTest::testBeforeSave integration test failed when Mage_Downloadable module was not available
* Fixed an issue where the custom URL rewrite redirected to sub-folder when Request Path contained slash
* Fixed an issue where it was impossible to place an order if registering during checkout
* Fixed an issue where there was no possibility to save default billing and shipping addresses for customer on the store front
* Fixed an issue where a widget of Catalog Category Link type was not displayed on the store front
* Fixed an issue where the Versions tab was absent on the CMS page with version control
* Fixed an issue where it was impossible to insert Widgets and Images to a CMS page
* Added the following functional tests:
* Create widget
* Print order from guest on frontend
* Framework Improvements:
* Removed duplicated logic from API Builders and Builder generators. Added support for populating builders from the objects, implementing data interface
* Processed GitHub requests:
* [#674](https://github.com/magento/magento2/issues/674) -- Widgets in content pages

0.1.0-alpha103
=============
* Fixed bugs:
Expand Down
84 changes: 65 additions & 19 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Before you install Magento 2, make sure your system meets or exceeds the followi

* <a href="https://getcomposer.org/download/" >Composer</a> (latest stable version)
* <a href="http://httpd.apache.org/download.cgi" >Apache 2.2</a> or later
* PHP 5.4.11 or 5.5.x (<a href="http://php.net/downloads.php" >installation</a> instructions, <a href="http://phpave.com/upgrade-php-5-3-php-5-5-ubuntu-12-04-lts/" >upgrade</a> instructions)
* PHP 5.4.11 or 5.5.x
* Required PHP extensions:

* PDO/MySQL
Expand All @@ -37,15 +37,13 @@ Before you install Magento 2, make sure your system meets or exceeds the followi
* gd2, ImageMagick 6.3.7 (or later) or both
* soap

* <a href="http://dev.mysql.com/doc/refman/5.5/en/installing.html" >MySQL 5.5</a> or later
* <a href="http://dev.mysql.com/doc/refman/5.6/en/installing.html" >MySQL 5.6.x</a>
* Mail Transfer Agent (MTA) or an SMTP server
* Optional but recommended:

* <a href="http://xdebug.org/download.php" >php_xdebug2.2.0</a> or later (development environments only; can have an adverse effect on performance)
* PHPUnit (as a command-line tool) 3.7 or later
* PHPUnit (as a command-line tool) 4.1 or later



<h2 id="instgde-overview-composer">Composer and Magento</h2>

We now use <a href="https://getcomposer.org/" >Composer</a> to install the Magento 2 software. Composer enables us to manage Magento 2, extensions, and their dependencies.
Expand Down Expand Up @@ -87,7 +85,7 @@ Use the following table to verify you have the correct prerequisites to install
<td><code>php -v</code></td>
<td><a href="#php" >PHP</a></td>
</tr>
<tr><td>MySQL 5.5 or later</td>
<tr><td>MySQL 5.6.x</td>
<td><code>mysql -u [root user name] -p</code></td>
<td><a href="#mysql" >MySQL</a></td>
</tr>
Expand Down Expand Up @@ -142,7 +140,7 @@ Before you install Magento, you must do all of the following:
</li>
<li>Specify the type of directives that can be used in <code>.htaccess</code>. Magento uses <code>.htaccess</code> for redirects. For guidelines, see:
<ul><li>Apache 2.2: The <a href="http://httpd.apache.org/docs/2.2/mod/core.html#allowoverride" target="_blank">Apache 2.2 documentation</a>.</li>
<li>Apache 2.4: The <a href="http://httpd.apache.org/docs/current/mod/mod_rewrite.html" target="_blank">Apache 2.4 documentation</a>.<br>
<li>Apache 2.4: The <a href="http://httpd.apache.org/docs/current/mod/core.html#allowoverride" target="_blank">Apache 2.4 documentation</a>.<br>
Note that in Apache 2.4, the server's default site configuration file is <code>/etc/apache2/sites-available/000-default.conf</code><br>
For example, you can add the following to the bottom of <code>000-default.conf</code>:<br>
<pre>&lt;Directory "/var/www">
Expand Down Expand Up @@ -172,13 +170,27 @@ AllowOverride [value from Apache site]

<h4>Installing MySQL on Ubuntu</h4>

1. Use the guidelines on the <a href="https://help.ubuntu.com/12.04/serverguide/mysql.html" target="_blank">Ubuntu site</a>.
1. Install MySQL on <a href="https://rtcamp.com/tutorials/mysql/mysql-5-6-ubuntu-12-04/" target="_blank">Ubuntu 12</a> or <a href="http://www.tocker.ca/2014/04/21/installing-mysql-5-6-on-ubuntu-14-04-trusty-tahr.html" target="_blank">Ubuntu 14</a>.
2. Configure the database instance.

<h4>Installing and configuring MySQL on CentOS</h4>

1. Install and configure MySQL as discussed on the <a href="http://centoshelp.org/servers/database/installing-configuring-mysql-server/" target="_blank">CentOS help site</a>.
2. Configure the database instance as discussed in the next section.
The following procedure is based on <a href="http://sharadchhetri.com/2013/12/26/install-mysql-server-5-6-in-centos-6-x-and-red-hat-6-x-linux/" target="_blank">Install MySQL Server 5.6 in CentOS 6.x and Red Hat 6.x Linux</a>.

1. Install the MySQL database:

<pre>cd /tmp
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh mysql-community-release-el6-5.noarch.rpm
yum -y install mysql-server</pre>

2. Start MySQL.

`service mysqld start`

3. Set a password for the <tt>root</tt> user and set other security-related options. Enter the following command and follow the prompts on your screen to complete the configuration.

`mysql_secure_installation`

<h4>Configuring the Magento database instance</h4>

Expand All @@ -194,21 +206,19 @@ To configure a MySQL database instance:
3. Enter the MySQL `root` user's password when prompted.
4. Enter the following commands in the order shown to create a database instance named `magento` with user name `magento`:
<pre>create database magento;
CREATE USER 'magento'@'localhost' IDENTIFIED BY 'magento';
GRANT USAGE ON *.* TO magento@localhost IDENTIFIED BY 'magento';
GRANT ALL ON magento.* TO magento@localhost;</pre>
GRANT ALL ON magento.* TO magento@localhost IDENTIFIED BY 'magento';</pre>

5. Enter `exit` to quit the command prompt.

<h3>PHP</h3>

Magento 2 requires PHP 5.4.11 or later or PHP 5.5.x.

**Note**: Magento 2 does not support PHP 5.6.
**Note**: Magento 2 does *not* support PHP 5.6.

<h3>PHP on Ubuntu</h3>
<h3>PHP 5.5 or 5.4 on Ubuntu</h3>

<h4>Install PHP 5.5 on Ubuntu 14</h4>
<h5>Install PHP 5.5 on Ubuntu 14</h5>

To install PHP 5.5 on Ubuntu 14:

Expand All @@ -223,7 +233,22 @@ To install PHP 5.5 on Ubuntu 14:
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies</pre>

<h4>Install PHP 5.4 on Ubuntu 12</h4>
<h5>Install PHP 5.5 on Ubuntu 12</h5>

1. Use the following commands from <a href="http://www.dev-metal.com/how-to-setup-latest-version-of-php-5-5-on-ubuntu-12-04-lts/" target="_blank">dev-metal</a>:

<pre>add-apt-repository ppa:ondrej/php5
apt-get update
sudo apt-get install php5</pre>

2. Verify the PHP version by entering `php -v`. Messages similar to the following should display:

<pre>PHP 5.5.18-1+deb.sury.org~precise+1 (cli) (built: Oct 17 2014 15:11:34)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies
with Zend OPcache v7.0.4-dev, Copyright (c) 1999-2014, by Zend Technologies</pre>

<h5>Install PHP 5.4 on Ubuntu 12</h5>

To install PHP 5.4 on Ubuntu 12:

Expand All @@ -242,7 +267,7 @@ To install PHP 5.4 on Ubuntu 12:

3. Restart Apache: `service apache2 restart`

<h4>Upgrade to PHP 5.4 on Ubuntu</h4>
<h5>Upgrade to PHP 5.4 on Ubuntu</h5>

To upgrade to PHP 5.4 on Ubuntu:

Expand All @@ -265,7 +290,7 @@ Enter the following command to install required PHP extensions:

There is a <a href="https://bugs.launchpad.net/ubuntu/+source/php-mcrypt/+bug/1240590" target="_blank">known issue</a> in Ubuntu 14 with the `mcrypt` PHP extension. To work around the issue, see <a href="http://askubuntu.com/questions/450825/ubuntu-14-04-phpmyadmin-cant-find-mcrypt-extension" target="_blank">askubuntu</a>.

<h4>Upgrade to PHP 5.4 on CentOS</h4>
<h4>PHP 5.5 or 5.4 on CentOS</h4>

PHP 5.3 is the default PHP version on CentOS distributions. Upgrade to PHP 5.4 using a repository like <a href="http://blog.famillecollet.com/pages/Config-en" target="_blank">remi</a>.

Expand All @@ -275,6 +300,27 @@ The following resources are also available:
* <a href="http://stackoverflow.com/questions/21502656/upgrading-php-on-centos-6-5-final" target="_blank">stackoverflow</a>
* <a href="http://rpms.famillecollet.com/" target="_blank">remi repository</a>

To verify if PHP is installed already, enter `php -v`. If PHP is *not* installed, install it by entering the following command:

<pre>yum -y install php php-xml</pre>

<h5>PHP 5.5 on CentOS</h5>

To upgrade to PHP 5.5:

There is more than one way to upgrade CentOS 6.5 to PHP 5.5; the following is a suggestion only. Consult a reference for additional options.

Enter the following commands in the order shown.

<pre>cd /tmp
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
yum -y remove php-common-5.3.3-40.el6_6.x86_64
yum -y install php55w php55w-opcache</pre>

Restart Apache: `service httpd restart`

<h5>PHP 5.4 on CentOS</h5>

To upgrade to PHP 5.4:

1. Enter the following commands:
Expand Down
10 changes: 5 additions & 5 deletions app/code/Magento/AdminNotification/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/module-store": "0.1.0-alpha103",
"magento/module-core": "0.1.0-alpha103",
"magento/module-backend": "0.1.0-alpha103",
"magento/framework": "0.1.0-alpha103",
"magento/module-store": "0.1.0-alpha104",
"magento/module-core": "0.1.0-alpha104",
"magento/module-backend": "0.1.0-alpha104",
"magento/framework": "0.1.0-alpha104",
"lib-libxml": "*",
"magento/magento-composer-installer": "*"
},
"type": "magento2-module",
"version": "0.1.0-alpha103",
"version": "0.1.0-alpha104",
"extra": {
"map": [
[
Expand Down
6 changes: 3 additions & 3 deletions app/code/Magento/Authorization/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
"description": "Authorization module provides access to Magento ACL functionality.",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/module-backend": "0.1.0-alpha103",
"magento/framework": "0.1.0-alpha103",
"magento/module-backend": "0.1.0-alpha104",
"magento/framework": "0.1.0-alpha104",
"magento/magento-composer-installer": "*"
},
"type": "magento2-module",
"version": "0.1.0-alpha103",
"version": "0.1.0-alpha104",
"extra": {
"map": [
[
Expand Down
18 changes: 9 additions & 9 deletions app/code/Magento/Authorizenet/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/module-sales": "0.1.0-alpha103",
"magento/module-checkout": "0.1.0-alpha103",
"magento/module-backend": "0.1.0-alpha103",
"magento/module-core": "0.1.0-alpha103",
"magento/module-payment": "0.1.0-alpha103",
"magento/module-centinel": "0.1.0-alpha103",
"magento/module-catalog": "0.1.0-alpha103",
"magento/framework": "0.1.0-alpha103",
"magento/module-sales": "0.1.0-alpha104",
"magento/module-checkout": "0.1.0-alpha104",
"magento/module-backend": "0.1.0-alpha104",
"magento/module-core": "0.1.0-alpha104",
"magento/module-payment": "0.1.0-alpha104",
"magento/module-centinel": "0.1.0-alpha104",
"magento/module-catalog": "0.1.0-alpha104",
"magento/framework": "0.1.0-alpha104",
"magento/magento-composer-installer": "*"
},
"type": "magento2-module",
"version": "0.1.0-alpha103",
"version": "0.1.0-alpha104",
"extra": {
"map": [
[
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Authorizenet/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Magento_Authorizenet" schema_version="1.5.0.0" active="true">
<module name="Magento_Authorizenet" schema_version="2.0.0" active="true">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Checkout"/>
Expand Down
34 changes: 17 additions & 17 deletions app/code/Magento/Backend/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/module-store": "0.1.0-alpha103",
"magento/module-directory": "0.1.0-alpha103",
"magento/module-core": "0.1.0-alpha103",
"magento/module-eav": "0.1.0-alpha103",
"magento/module-cron": "0.1.0-alpha103",
"magento/module-theme": "0.1.0-alpha103",
"magento/module-reports": "0.1.0-alpha103",
"magento/module-sales": "0.1.0-alpha103",
"magento/module-catalog": "0.1.0-alpha103",
"magento/module-user": "0.1.0-alpha103",
"magento/module-backup": "0.1.0-alpha103",
"magento/module-email": "0.1.0-alpha103",
"magento/module-customer": "0.1.0-alpha103",
"magento/module-translation": "0.1.0-alpha103",
"magento/module-require-js": "0.1.0-alpha103",
"magento/framework": "0.1.0-alpha103",
"magento/module-store": "0.1.0-alpha104",
"magento/module-directory": "0.1.0-alpha104",
"magento/module-core": "0.1.0-alpha104",
"magento/module-eav": "0.1.0-alpha104",
"magento/module-cron": "0.1.0-alpha104",
"magento/module-theme": "0.1.0-alpha104",
"magento/module-reports": "0.1.0-alpha104",
"magento/module-sales": "0.1.0-alpha104",
"magento/module-catalog": "0.1.0-alpha104",
"magento/module-user": "0.1.0-alpha104",
"magento/module-backup": "0.1.0-alpha104",
"magento/module-email": "0.1.0-alpha104",
"magento/module-customer": "0.1.0-alpha104",
"magento/module-translation": "0.1.0-alpha104",
"magento/module-require-js": "0.1.0-alpha104",
"magento/framework": "0.1.0-alpha104",
"magento/magento-composer-installer": "*"
},
"type": "magento2-module",
"version": "0.1.0-alpha103",
"version": "0.1.0-alpha104",
"extra": {
"map": [
[
Expand Down
12 changes: 6 additions & 6 deletions app/code/Magento/Backup/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
"description": "N/A",
"require": {
"php": "~5.4.11|~5.5.0",
"magento/module-store": "0.1.0-alpha103",
"magento/module-core": "0.1.0-alpha103",
"magento/module-backend": "0.1.0-alpha103",
"magento/module-cron": "0.1.0-alpha103",
"magento/framework": "0.1.0-alpha103",
"magento/module-store": "0.1.0-alpha104",
"magento/module-core": "0.1.0-alpha104",
"magento/module-backend": "0.1.0-alpha104",
"magento/module-cron": "0.1.0-alpha104",
"magento/framework": "0.1.0-alpha104",
"magento/magento-composer-installer": "*"
},
"type": "magento2-module",
"version": "0.1.0-alpha103",
"version": "0.1.0-alpha104",
"extra": {
"map": [
[
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Bundle/Model/Resource/Bundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public function dropAllQuoteChildItems($productId)
{
$quoteItemIds = $this->_getReadAdapter()->fetchCol(
$this->_getReadAdapter()->select()->from(
$this->getTable('sales_flat_quote_item'),
$this->getTable('sales_quote_item'),
array('item_id')
)->where(
'product_id = :product_id'
Expand All @@ -113,7 +113,7 @@ public function dropAllQuoteChildItems($productId)

if ($quoteItemIds) {
$this->_getWriteAdapter()->delete(
$this->getTable('sales_flat_quote_item'),
$this->getTable('sales_quote_item'),
array('parent_item_id IN(?)' => $quoteItemIds)
);
}
Expand Down
Loading

0 comments on commit 02a9a0e

Please sign in to comment.