Skip to content

Commit f954ca1

Browse files
committed
Merge remote-tracking branch 'mainline/develop' into MAGETWO-35379
Conflicts: app/code/Magento/ConfigurableProduct/view/frontend/web/js/configurable.js
2 parents 94bddf0 + 2382298 commit f954ca1

File tree

9,559 files changed

+431501
-147394
lines changed

Some content is hidden

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

9,559 files changed

+431501
-147394
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ atlassian*
1010
/.gitattributes
1111
/app/config_sandbox
1212
/app/etc/config.php
13+
/app/etc/env.php
1314
/app/code/Magento/TestModule*
1415
/lib/internal/flex/uploader/.actionScriptProperties
1516
/lib/internal/flex/uploader/.flexProperties
@@ -30,13 +31,16 @@ atlassian*
3031
!/pub/media/customer/.htaccess
3132
/pub/media/downloadable/*
3233
!/pub/media/downloadable/.htaccess
34+
/pub/media/import/*
35+
!/pub/media/import/.htaccess
3336
/pub/media/theme/*
3437
/pub/media/theme_customization/*
3538
!/pub/media/theme_customization/.htaccess
3639
/pub/media/wysiwyg/*
3740
!/pub/media/wysiwyg/.htaccess
3841
/pub/media/tmp/*
3942
!/pub/media/tmp/.htaccess
43+
/pub/media/captcha/*
4044
/pub/static/*
4145
!/pub/static/.htaccess
4246

.htaccess

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
############################################
3737
## adjust memory limit
3838

39-
# php_value memory_limit 64M
4039
php_value memory_limit 768M
4140
php_value max_execution_time 18000
4241

@@ -66,13 +65,6 @@
6665
SecFilterScanPOST Off
6766
</IfModule>
6867

69-
<IfModule mod_headers.c>
70-
############################################
71-
## prevent clickjacking
72-
73-
Header set X-Frame-Options SAMEORIGIN
74-
</IfModule>
75-
7668
<IfModule mod_deflate.c>
7769

7870
############################################

.php_cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ $finder = Symfony\CS\Finder\DefaultFinder::create()
1515
->exclude('dev/tests/functional/vendor')
1616
->exclude('dev/tests/integration/tmp')
1717
->exclude('dev/tests/integration/var')
18-
->exclude('lib/internal/CardinalCommerce')
1918
->exclude('lib/internal/Cm')
2019
->exclude('lib/internal/Credis')
2120
->exclude('lib/internal/JSMin')

.travis.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,16 @@ php:
44
- 5.6
55
env:
66
- TEST_SUITE=unit
7-
- TEST_SUITE=integration
7+
- TEST_SUITE=integration_part_1
8+
- TEST_SUITE=integration_part_2
89
- TEST_SUITE=integration_integrity
910
- TEST_SUITE=static_phpcs
1011
- TEST_SUITE=static_annotation
12+
cache:
13+
apt: true
14+
directories:
15+
- $HOME/.composer/cache
16+
- $HOME/.cache/bin
1117
matrix:
1218
exclude:
1319
- php: 5.6
@@ -17,6 +23,16 @@ matrix:
1723
before_install:
1824
- sudo apt-get update -qq
1925
- sudo apt-get install -y -qq postfix
26+
- sh -c 'if [ "$CASHER_DIR" ]; then
27+
if [ -x $HOME/.cache/bin/composer ]; then
28+
$HOME/.cache/bin/composer self-update; echo '';
29+
else
30+
mkdir -p $HOME/.cache/bin;
31+
curl --connect-timeout 30 -sS https://getcomposer.org/installer \
32+
| php -- --install-dir $HOME/.cache/bin/ --filename composer;
33+
fi
34+
fi'
35+
- export PATH="$HOME/.cache/bin:$PATH"
2036
before_script:
2137
# Mock mail
2238
- sudo service postfix stop
@@ -32,7 +48,7 @@ before_script:
3248
- echo '' > ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/xdebug.ini
3349
# Install MySQL 5.6, create DB for integration tests
3450
- >
35-
sh -c "if [ '$TEST_SUITE' = 'integration' ] || [ '$TEST_SUITE' = 'integration_integrity' ]; then
51+
sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ] || [ '$TEST_SUITE' = 'integration_part_2' ] || [ '$TEST_SUITE' = 'integration_integrity' ]; then
3652
sudo apt-get remove --purge mysql-common mysql-server-5.5 mysql-server-core-5.5 mysql-client-5.5 mysql-client-core-5.5;
3753
sudo apt-get autoremove;
3854
sudo apt-get autoclean;
@@ -45,12 +61,14 @@ before_script:
4561
# Change memory_limit for travis
4662
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
4763
- phpenv rehash;
48-
- composer install --no-interaction --dev
64+
- composer install --no-interaction --prefer-dist
4965
script:
5066
# Unit tests
5167
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist; fi"
5268
# Integration tests
53-
- sh -c "if [ '$TEST_SUITE' = 'integration' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.dist; fi"
69+
- sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ] || [ '$TEST_SUITE' = 'integration_part_2' ]; then cd dev/tests/integration/; bash IntegationTestsForTravis.sh 2; fi"
70+
- sh -c "if [ '$TEST_SUITE' = 'integration_part_1' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.travis1; fi"
71+
- sh -c "if [ '$TEST_SUITE' = 'integration_part_2' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.travis2; fi"
5472
# Integration integrity tests
5573
- sh -c "if [ '$TEST_SUITE' = 'integration_integrity' ]; then cd dev/tests/integration/; ./../../../vendor/bin/phpunit -c phpunit.xml.dist testsuite/Magento/Test/Integrity; fi"
5674
# Static tests [Code Style]

CHANGELOG.md

Lines changed: 820 additions & 43 deletions
Large diffs are not rendered by default.

Gruntfile.js

Lines changed: 38 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,32 @@ module.exports = function (grunt) {
88
'use strict';
99

1010
var _ = require('underscore'),
11-
path = require('path');
11+
path = require('path'),
12+
configDir = './dev/tools/grunt/configs',
13+
taskDir = './dev/tools/grunt/tasks';
1214

13-
require('./dev/tools/grunt/tasks/mage-minify')(grunt);
14-
require('time-grunt')(grunt);
15+
[
16+
taskDir + '/mage-minify',
17+
taskDir + '/deploy',
18+
'time-grunt'
19+
].forEach(function (task) {
20+
require(task)(grunt);
21+
});
1522

1623
require('load-grunt-config')(grunt, {
17-
configPath: path.join(process.cwd(), 'dev/tools/grunt/configs'),
24+
configPath: path.join(__dirname, configDir),
1825
init: true,
19-
loadGruntTasks: {
20-
pattern: [
21-
'grunt-*',
22-
'!grunt-template-jasmine-requirejs'
23-
]
26+
jitGrunt: {
27+
staticMappings: {
28+
usebanner: 'grunt-banner'
29+
}
2430
}
2531
});
2632

2733
_.each({
2834
/**
2935
* Assembling tasks.
30-
* ToDo UI: define default tasks.
36+
* ToDo: define default tasks.
3137
*/
3238
default: function () {
3339
grunt.log.subhead('I\'m default task and at the moment I\'m empty, sorry :/');
@@ -37,17 +43,19 @@ module.exports = function (grunt) {
3743
* Production preparation task.
3844
*/
3945
prod: function (component) {
40-
if (component === 'setup') {
41-
grunt.task.run([
42-
'less:' + component,
43-
'autoprefixer:' + component,
44-
'cssmin:' + component,
45-
'usebanner:' + component
46-
]);
47-
}
46+
var tasks = [
47+
'less',
48+
'autoprefixer',
49+
'cssmin',
50+
'usebanner'
51+
].map(function(task){
52+
return task + ':' + component;
53+
});
4854

4955
if (typeof component === 'undefined') {
5056
grunt.log.subhead('Tip: Please make sure that u specify prod subtask. By default prod task do nothing');
57+
} else {
58+
grunt.task.run(tasks);
5159
}
5260
},
5361

@@ -60,51 +68,32 @@ module.exports = function (grunt) {
6068
'less:luma',
6169
'less:backend'
6270
],
63-
/**
64-
* Styles for backend theme
65-
*/
66-
backend: [
67-
'less:backend',
68-
'replace:escapeCalc',
69-
'less:override'
70-
],
71+
7172
/**
7273
* Documentation
7374
*/
7475
documentation: [
76+
'replace:documentation',
7577
'less:documentation',
7678
'styledocco:documentation',
79+
'usebanner:documentationCss',
80+
'usebanner:documentationLess',
81+
'usebanner:documentationHtml',
7782
'clean:var',
7883
'clean:pub'
7984
],
8085

81-
spec: [
82-
'specRunner:lib',
83-
'specRunner:backend',
84-
'specRunner:frontend'
85-
],
86-
87-
unit: [
88-
'jasmine:lib-unit',
89-
'jasmine:backend-unit',
90-
'jasmine:frontend-unit'
91-
],
92-
93-
integration: [
94-
'jasmine:lib-integration',
95-
'jasmine:backend-integration',
96-
'jasmine:frontend-integration'
97-
],
98-
9986
'legacy-build': [
10087
'mage-minify:legacy'
10188
],
10289

103-
'documentation-banners': [
104-
'usebanner:documentationCss',
105-
'usebanner:documentationLess',
106-
'usebanner:documentationHtml'
107-
]
90+
spec: function (theme) {
91+
var runner = require('./dev/tests/js/jasmine/spec_runner');
92+
93+
runner.init(grunt, { theme: theme });
94+
95+
grunt.task.run(runner.getTasks());
96+
}
10897
}, function (task, name) {
10998
grunt.registerTask(name, task);
11099
});

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[![Build Status](https://travis-ci.org/magento/magento2.svg?branch=master)](https://travis-ci.org/magento/magento2)
2+
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/magento/magento2?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
23
<h2>Welcome</h2>
34
Welcome to Magento 2 installation! We're glad you chose to install Magento 2, a cutting edge, feature-rich eCommerce solution that gets results.
45

@@ -27,7 +28,7 @@ Use the following table to verify you have the correct prerequisites to install
2728
</tr>
2829
<tr>
2930
<td>Apache 2.2 or 2.4</td>
30-
<td>Ubuntu: <code>apache -v</code><br>
31+
<td>Ubuntu: <code>apache2 -v</code><br>
3132
CentOS: <code>httpd -v</code></td>
3233
<td><a href="http://devdocs.magento.com/guides/v1.0/install-gde/prereq/apache.html">Apache</a></td>
3334
</tr>
@@ -57,3 +58,17 @@ After verifying your prerequisites, perform the following tasks in order to prep
5758
* <a href="http://devdocs.magento.com/guides/v1.0/install-gde/install/install-web.html">Install Magento software using the web interface</a>
5859
* <a href="http://devdocs.magento.com/guides/v1.0/install-gde/install/install-cli.html">Install Magento software using the command line</a>
5960
2. <a href="http://devdocs.magento.com/guides/v1.0/install-gde/install/verify.html">Verify the installation</a>
61+
62+
<h2>Contributing to the Magento 2 code base</h2>
63+
Contributions can take the form of new components or features, changes to existing features, tests, documentation (such as developer guides, user guides, examples, or specifications), bug fixes, optimizations, or just good suggestions.
64+
65+
To learn about how to make a contribution, click [here][1].
66+
67+
To learn about issues, click [here][2]. To open an issue, click [here][3].
68+
69+
To suggest documentation improvements, click [here][4].
70+
71+
[1]: <http://devdocs.magento.com/guides/v1.0/contributor-guide/CONTRIBUTING.html>
72+
[2]: <http://devdocs.magento.com/guides/v1.0/contributor-guide/CONTRIBUTING.html#report>
73+
[3]: <https://github.com/magento/magento2/issues>
74+
[4]: <http://devdocs.magento.com>

app/code/Magento/AdminNotification/Block/System/Messages.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ public function getSystemMessageDialogJson()
123123
'autoOpen' => false,
124124
'width' => '75%',
125125
'modal' => true,
126+
'minHeight' => '0',
126127
'dialogClass' => 'ui-dialog-active ui-popup-message',
127128
'ajaxUrl' => $this->_getMessagesUrl()
128129
],

app/code/Magento/AdminNotification/Block/Window.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function _toHtml()
7676
if ($this->canShow()) {
7777
$this->setHeaderText($this->escapeHtml(__('Incoming Message')));
7878
$this->setCloseText($this->escapeHtml(__('close')));
79-
$this->setReadDetailsText($this->escapeHtml(__('Read details')));
79+
$this->setReadDetailsText($this->escapeHtml(__('Read Details')));
8080
$this->setNoticeMessageText($this->escapeHtml($this->_getLatestItem()->getTitle()));
8181
$this->setNoticeMessageUrl($this->escapeUrl($this->_getLatestItem()->getUrl()));
8282
$this->setSeverityText('critical');

app/code/Magento/AdminNotification/Controller/Adminhtml/Notification.php

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,6 @@ class Notification extends \Magento\Backend\App\AbstractAction
1414
*/
1515
protected function _isAllowed()
1616
{
17-
switch ($this->getRequest()->getActionName()) {
18-
case 'markAsRead':
19-
$acl = 'Magento_AdminNotification::mark_as_read';
20-
break;
21-
22-
case 'massMarkAsRead':
23-
$acl = 'Magento_AdminNotification::mark_as_read';
24-
break;
25-
26-
case 'remove':
27-
$acl = 'Magento_AdminNotification::adminnotification_remove';
28-
break;
29-
30-
case 'massRemove':
31-
$acl = 'Magento_AdminNotification::adminnotification_remove';
32-
break;
33-
34-
default:
35-
$acl = 'Magento_AdminNotification::show_list';
36-
}
37-
return $this->_authorization->isAllowed($acl);
17+
return $this->_authorization->isAllowed('Magento_AdminNotification::show_list');
3818
}
3919
}

0 commit comments

Comments
 (0)