" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
diff --git a/app/code/Magento/ReleaseNotification/Model/Condition/CanViewNotification.php b/app/code/Magento/ReleaseNotification/Model/Condition/CanViewNotification.php
new file mode 100644
index 0000000000000..07e26bb1a4d8d
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/Model/Condition/CanViewNotification.php
@@ -0,0 +1,106 @@
+viewerLogger = $viewerLogger;
+ $this->session = $session;
+ $this->productMetadata = $productMetadata;
+ $this->cacheStorage = $cacheStorage;
+ }
+
+ /**
+ * Validate if notification popup can be shown and set the notification flag
+ *
+ * @inheritdoc
+ */
+ public function isVisible(array $arguments)
+ {
+ $userId = $this->session->getUser()->getId();
+ $cacheKey = self::$cachePrefix . $userId;
+ $value = $this->cacheStorage->load($cacheKey);
+ if ($value === false) {
+ $value = version_compare(
+ $this->viewerLogger->get($userId)->getLastViewVersion(),
+ $this->productMetadata->getVersion(),
+ '<'
+ );
+ $this->cacheStorage->save(false, $cacheKey);
+ }
+ return (bool)$value;
+ }
+
+ /**
+ * Get condition name
+ *
+ * @return string
+ */
+ public function getName()
+ {
+ return self::$conditionName;
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/Model/ResourceModel/Viewer/Logger.php b/app/code/Magento/ReleaseNotification/Model/ResourceModel/Viewer/Logger.php
new file mode 100644
index 0000000000000..967ccabcdb49c
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/Model/ResourceModel/Viewer/Logger.php
@@ -0,0 +1,103 @@
+resource = $resource;
+ $this->logFactory = $logFactory;
+ }
+
+ /**
+ * Save (insert new or update existing) log.
+ *
+ * @param int $viewerId
+ * @param string $lastViewVersion
+ * @return bool
+ */
+ public function log(int $viewerId, string $lastViewVersion) : bool
+ {
+ /** @var \Magento\Framework\DB\Adapter\AdapterInterface $connection */
+ $connection = $this->resource->getConnection(ResourceConnection::DEFAULT_CONNECTION);
+ $connection->insertOnDuplicate(
+ $this->resource->getTableName(self::LOG_TABLE_NAME),
+ [
+ 'viewer_id' => $viewerId,
+ 'last_view_version' => $lastViewVersion
+ ],
+ [
+ 'last_view_version'
+ ]
+ );
+ return true;
+ }
+
+ /**
+ * Get log by viewer Id.
+ *
+ * @param int $viewerId
+ * @return Log
+ */
+ public function get(int $viewerId) : Log
+ {
+ return $this->logFactory->create(['data' => $this->loadLogData($viewerId)]);
+ }
+
+ /**
+ * Load release notification viewer log data by viewer id
+ *
+ * @param int $viewerId
+ * @return array
+ */
+ private function loadLogData(int $viewerId) : array
+ {
+ $connection = $this->resource->getConnection();
+ $select = $connection->select()
+ ->from($this->resource->getTableName(self::LOG_TABLE_NAME))
+ ->where('viewer_id = ?', $viewerId);
+
+ $data = $connection->fetchRow($select);
+ if (!$data) {
+ $data = [];
+ }
+ return $data;
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/Model/Viewer/Log.php b/app/code/Magento/ReleaseNotification/Model/Viewer/Log.php
new file mode 100644
index 0000000000000..27100b62fa798
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/Model/Viewer/Log.php
@@ -0,0 +1,46 @@
+getData('id');
+ }
+
+ /**
+ * Get viewer id
+ *
+ * @return int
+ */
+ public function getViewerId()
+ {
+ return $this->getData('viewer_id');
+ }
+
+ /**
+ * Get last viewed product version
+ *
+ * @return string
+ */
+ public function getLastViewVersion()
+ {
+ return $this->getData('last_view_version');
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/README.md b/app/code/Magento/ReleaseNotification/README.md
new file mode 100644
index 0000000000000..bb0a6e7f4cf80
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/README.md
@@ -0,0 +1,11 @@
+ # Magento_ReleaseNotification Module
+
+The **Release Notification Module** serves to provide a notification delivery platform for displaying new features of a Magento installation or upgrade as well as any other required release notifications.
+
+## Purpose and Content
+
+* Provides a method of notifying administrators of changes, features, and functionality being introduced in a Magento release
+* Displays a modal containing a high level overview of the features included in the installed or upgraded release of Magento upon the initial login of each administrator into the Admin Panel for a given Magento version
+* The modal is enabled with pagination functionality to allow for easy navigation between each modal page
+* Each modal page includes detailed information about a highlighted feature of the Magento release or other notification
+* Release Notification modal content is determined and provided by Magento Marketing
diff --git a/app/code/Magento/ReleaseNotification/Setup/InstallSchema.php b/app/code/Magento/ReleaseNotification/Setup/InstallSchema.php
new file mode 100644
index 0000000000000..a6a0f51befa3f
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/Setup/InstallSchema.php
@@ -0,0 +1,69 @@
+startSetup();
+
+ /**
+ * Create table 'release_notification_viewer_log'
+ */
+ $table = $setup->getConnection()->newTable(
+ $setup->getTable('release_notification_viewer_log')
+ )->addColumn(
+ 'id',
+ \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
+ null,
+ ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true],
+ 'Log ID'
+ )->addColumn(
+ 'viewer_id',
+ \Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
+ null,
+ ['unsigned' => true, 'nullable' => false],
+ 'Viewer admin user ID'
+ )->addColumn(
+ 'last_view_version',
+ \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
+ 16,
+ ['nullable' => false],
+ 'Viewer last view on product version'
+ )->addIndex(
+ $setup->getIdxName(
+ 'release_notification_viewer_log',
+ ['viewer_id'],
+ \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_UNIQUE
+ ),
+ ['viewer_id'],
+ ['type' => \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_UNIQUE]
+ )->addForeignKey(
+ $setup->getFkName('release_notification_viewer_log', 'viewer_id', 'admin_user', 'user_id'),
+ 'viewer_id',
+ $setup->getTable('admin_user'),
+ 'user_id',
+ Table::ACTION_CASCADE
+ )->setComment(
+ 'Release Notification Viewer Log Table'
+ );
+ $setup->getConnection()->createTable($table);
+
+ $setup->endSetup();
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/Test/Unit/Controller/Notification/MarkUserNotifiedTest.php b/app/code/Magento/ReleaseNotification/Test/Unit/Controller/Notification/MarkUserNotifiedTest.php
new file mode 100644
index 0000000000000..894368cbcba01
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/Test/Unit/Controller/Notification/MarkUserNotifiedTest.php
@@ -0,0 +1,189 @@
+storageMock = $this->getMockBuilder(StorageInterface::class)
+ ->setMethods(['getId'])
+ ->getMockForAbstractClass();
+ $this->authMock = $this->getMockBuilder(Auth::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $contextMock = $this->getMockBuilder(Context::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $contextMock->expects($this->once())
+ ->method('getAuth')
+ ->willReturn($this->authMock);
+ $this->productMetadataMock = $this->getMockBuilder(ProductMetadataInterface::class)
+ ->getMockForAbstractClass();
+ $this->notificationLoggerMock = $this->getMockBuilder(NotificationLogger::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $this->loggerMock = $this->getMockBuilder(LoggerInterface::class)
+ ->getMock();
+ $resultFactoryMock = $this->getMockBuilder(ResultFactory::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $this->resultMock = $this->getMockBuilder(Json::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $resultFactoryMock->expects($this->once())
+ ->method('create')
+ ->with(ResultFactory::TYPE_JSON)
+ ->willReturn($this->resultMock);
+ $objectManagerHelper = new ObjectManagerHelper($this);
+ $this->action = $objectManagerHelper->getObject(
+ MarkUserNotified::class,
+ [
+ 'resultFactory' => $resultFactoryMock,
+ 'productMetadata' => $this->productMetadataMock,
+ 'notificationLogger' => $this->notificationLoggerMock,
+ 'context' => $contextMock,
+ 'logger' => $this->loggerMock
+ ]
+ );
+ }
+
+ public function testExecuteSuccess()
+ {
+ $this->authMock->expects($this->once())
+ ->method('getUser')
+ ->willReturn($this->storageMock);
+ $this->storageMock->expects($this->once())
+ ->method('getId')
+ ->willReturn(1);
+ $this->productMetadataMock->expects($this->once())
+ ->method('getVersion')
+ ->willReturn('999.999.999-alpha');
+ $this->notificationLoggerMock->expects($this->once())
+ ->method('log')
+ ->with(1, '999.999.999-alpha')
+ ->willReturn(true);
+ $this->resultMock->expects($this->once())
+ ->method('setData')
+ ->with(
+ [
+ 'success' => true,
+ 'error_message' => ''
+ ],
+ false,
+ []
+ )->willReturnSelf();
+ $this->assertEquals($this->resultMock, $this->action->execute());
+ }
+
+ public function testExecuteFailedWithLocalizedException()
+ {
+ $this->authMock->expects($this->once())
+ ->method('getUser')
+ ->willReturn($this->storageMock);
+ $this->storageMock->expects($this->once())
+ ->method('getId')
+ ->willReturn(1);
+ $this->productMetadataMock->expects($this->once())
+ ->method('getVersion')
+ ->willReturn('999.999.999-alpha');
+ $this->notificationLoggerMock->expects($this->once())
+ ->method('log')
+ ->willThrowException(new LocalizedException(__('Error message')));
+ $this->resultMock->expects($this->once())
+ ->method('setData')
+ ->with(
+ [
+ 'success' => false,
+ 'error_message' => 'Error message'
+ ],
+ false,
+ []
+ )->willReturnSelf();
+ $this->assertEquals($this->resultMock, $this->action->execute());
+ }
+
+ public function testExecuteFailedWithException()
+ {
+ $this->authMock->expects($this->once())
+ ->method('getUser')
+ ->willReturn($this->storageMock);
+ $this->storageMock->expects($this->once())
+ ->method('getId')
+ ->willReturn(1);
+ $this->productMetadataMock->expects($this->once())
+ ->method('getVersion')
+ ->willReturn('999.999.999-alpha');
+ $this->notificationLoggerMock->expects($this->once())
+ ->method('log')
+ ->willThrowException(new \Exception('Any message'));
+ $this->resultMock->expects($this->once())
+ ->method('setData')
+ ->with(
+ [
+ 'success' => false,
+ 'error_message' => __('It is impossible to log user action')
+ ],
+ false,
+ []
+ )->willReturnSelf();
+ $this->assertEquals($this->resultMock, $this->action->execute());
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/Test/Unit/Model/Condition/CanViewNotificationTest.php b/app/code/Magento/ReleaseNotification/Test/Unit/Model/Condition/CanViewNotificationTest.php
new file mode 100644
index 0000000000000..3ec00697507c1
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/Test/Unit/Model/Condition/CanViewNotificationTest.php
@@ -0,0 +1,128 @@
+cacheStorageMock = $this->getMockBuilder(CacheInterface::class)
+ ->getMockForAbstractClass();
+ $this->logMock = $this->getMockBuilder(Log::class)
+ ->getMock();
+ $this->sessionMock = $this->getMockBuilder(Session::class)
+ ->disableOriginalConstructor()
+ ->setMethods(['getUser', 'getId'])
+ ->getMock();
+ $this->viewerLoggerMock = $this->getMockBuilder(Logger::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $this->productMetadataMock = $this->getMockBuilder(ProductMetadataInterface::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $objectManager = new ObjectManager($this);
+ $this->canViewNotification = $objectManager->getObject(
+ CanViewNotification::class,
+ [
+ 'viewerLogger' => $this->viewerLoggerMock,
+ 'session' => $this->sessionMock,
+ 'productMetadata' => $this->productMetadataMock,
+ 'cacheStorage' => $this->cacheStorageMock,
+ ]
+ );
+ }
+
+ public function testIsVisibleLoadDataFromCache()
+ {
+ $this->sessionMock->expects($this->once())
+ ->method('getUser')
+ ->willReturn($this->sessionMock);
+ $this->sessionMock->expects($this->once())
+ ->method('getId')
+ ->willReturn(1);
+ $this->cacheStorageMock->expects($this->once())
+ ->method('load')
+ ->with('release-notification-popup-1')
+ ->willReturn("0");
+ $this->assertEquals(false, $this->canViewNotification->isVisible([]));
+ }
+
+ /**
+ * @param bool $expected
+ * @param string $version
+ * @param string|null $lastViewVersion
+ * @dataProvider isVisibleProvider
+ */
+ public function testIsVisible($expected, $version, $lastViewVersion)
+ {
+ $this->cacheStorageMock->expects($this->once())
+ ->method('load')
+ ->with('release-notification-popup-1')
+ ->willReturn(false);
+ $this->sessionMock->expects($this->once())
+ ->method('getUser')
+ ->willReturn($this->sessionMock);
+ $this->sessionMock->expects($this->once())
+ ->method('getId')
+ ->willReturn(1);
+ $this->productMetadataMock->expects($this->once())
+ ->method('getVersion')
+ ->willReturn($version);
+ $this->logMock->expects($this->once())
+ ->method('getLastViewVersion')
+ ->willReturn($lastViewVersion);
+ $this->viewerLoggerMock->expects($this->once())
+ ->method('get')
+ ->with(1)
+ ->willReturn($this->logMock);
+ $this->cacheStorageMock->expects($this->once())
+ ->method('save')
+ ->with(false, 'release-notification-popup-1');
+ $this->assertEquals($expected, $this->canViewNotification->isVisible([]));
+ }
+
+ public function isVisibleProvider()
+ {
+ return [
+ [false, '2.2.1-dev', '999.999.999-alpha'],
+ [true, '2.2.1-dev', '2.0.0'],
+ [true, '2.2.1-dev', null],
+ [false, '2.2.1-dev', '2.2.1'],
+ [true, '2.2.1-dev', '2.2.0'],
+ [true, '2.3.0', '2.2.0'],
+ [false, '2.2.2', '2.2.2'],
+ ];
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/Ui/DataProvider/DataProvider.php b/app/code/Magento/ReleaseNotification/Ui/DataProvider/DataProvider.php
new file mode 100644
index 0000000000000..48f01b3b058e2
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/Ui/DataProvider/DataProvider.php
@@ -0,0 +1,198 @@
+name = $name;
+ $this->searchResult = $searchResult;
+ $this->searchCriteria = $searchCriteria;
+ $this->collection = $collection;
+ $this->data = $data;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getName()
+ {
+ return $this->name;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getConfigData()
+ {
+ return isset($this->data['config']) ? $this->data['config'] : [];
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function setConfigData($config)
+ {
+ $this->data['config'] = $config;
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getMeta()
+ {
+ return [];
+ }
+
+ /**
+ * {@inheritdoc}
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function getFieldMetaInfo($fieldSetName, $fieldName)
+ {
+ return [];
+ }
+
+ /**
+ * {@inheritdoc}
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function getFieldSetMetaInfo($fieldSetName)
+ {
+ return [];
+ }
+
+ /**
+ * {@inheritdoc}
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function getFieldsMetaInfo($fieldSetName)
+ {
+ return [];
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getPrimaryFieldName()
+ {
+ return 'release_notification';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getRequestFieldName()
+ {
+ return 'release_notification';
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getData()
+ {
+ return $this->collection->toArray();
+ }
+
+ /**
+ * {@inheritdoc}
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function addFilter(\Magento\Framework\Api\Filter $filter)
+ {
+ }
+
+ /**
+ * {@inheritdoc}
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function addOrder($field, $direction)
+ {
+ }
+
+ /**
+ * {@inheritdoc}
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
+ public function setLimit($offset, $size)
+ {
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getSearchCriteria()
+ {
+ return $this->searchCriteria;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function getSearchResult()
+ {
+ return $this->searchResult;
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/composer.json b/app/code/Magento/ReleaseNotification/composer.json
new file mode 100644
index 0000000000000..b338420a2c143
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/composer.json
@@ -0,0 +1,24 @@
+{
+ "name": "magento/module-release-notification",
+ "description": "N/A",
+ "require": {
+ "php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
+ "magento/module-user": "101.0.*",
+ "magento/module-backend": "100.2.*",
+ "magento/framework": "101.0.*"
+ },
+ "type": "magento2-module",
+ "version": "100.2.0",
+ "license": [
+ "OSL-3.0",
+ "AFL-3.0"
+ ],
+ "autoload": {
+ "files": [
+ "registration.php"
+ ],
+ "psr-4": {
+ "Magento\\ReleaseNotification\\": ""
+ }
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/etc/adminhtml/routes.xml b/app/code/Magento/ReleaseNotification/etc/adminhtml/routes.xml
new file mode 100644
index 0000000000000..4b1ddc69ce3bd
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/etc/adminhtml/routes.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/ReleaseNotification/etc/module.xml b/app/code/Magento/ReleaseNotification/etc/module.xml
new file mode 100644
index 0000000000000..134d82e4f5776
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/etc/module.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/ReleaseNotification/i18n/en_US.csv b/app/code/Magento/ReleaseNotification/i18n/en_US.csv
new file mode 100644
index 0000000000000..3fd0be63b4ab1
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/i18n/en_US.csv
@@ -0,0 +1,107 @@
+"Next >","Next >"
+"< Back","< Back"
+"Done","Done"
+"What's new for Magento 2.2.2","What's new for Magento 2.2.2"
+"Magento 2.2.2 offers an exciting set of features and enhancements, including:
+
+
+
Advanced Reporting
+
Gain valuable insights through a dynamic suite of product, order, and customer reports,
+ powered by Magento Business Intelligence.
+
+
+
Developer Experience
+
We've improved the entire development lifecycle - installation, development, and maintenance
+ - while ensuring Magento's commitment to quality.
+
+
+
Business-to-Business (B2B) Magento Commerce only
+
Features to manage your complex company accounts, rapid reordering, new buyers' roles and
+ permissions, and more.
+
+ Release notes and additional details can be found at
+ Magento DevDocs .
+
","Magento 2.2.2 offers an exciting set of features and enhancements, including:
+
+
+
Advanced Reporting
+
Gain valuable insights through a dynamic suite of product, order, and customer reports,
+ powered by Magento Business Intelligence.
+
+
+
Developer Experience
+
We've improved the entire development lifecycle - installation, development, and maintenance
+ - while ensuring Magento's commitment to quality.
+
+
+
Business-to-Business (B2B) Magento Commerce only
+
Features to manage your complex company accounts, rapid reordering, new buyers' roles and
+ permissions, and more.
+
+ Release notes and additional details can be found at
+ Magento DevDocs .
+
"
+"Advanced Reporting","Advanced Reporting"
+"Advanced Reporting
+ provides you with a dynamic suite of reports with rich insights about the health of your
+ business.
As part of the Advanced Reporting service, we may also use your customer
+ data for such purposes as benchmarking, improving our products and services, and providing you
+ with new and improved analytics.
By using Magento 2.2, you agree to the Advanced
+ Reporting Privacy Policy and
+ Terms
+ of Service . You may opt out at any time from the Stores Configuration page.
+ ","Advanced Reporting
+ provides you with a dynamic suite of reports with rich insights about the health of your
+ business.
As part of the Advanced Reporting service, we may also use your customer
+ data for such purposes as benchmarking, improving our products and services, and providing you
+ with new and improved analytics.
By using Magento 2.2, you agree to the Advanced
+ Reporting Privacy Policy and
+ Terms
+ of Service . You may opt out at any time from the Stores Configuration page.
+ "
+"Developer Experience","Developer Experience"
+"Magento's 2.2.2 release offers a set of improvements that were developed using increased
+ quality standards. The release includes these features, among others:
+
+
+ GitHub Community Moderator Team
+ GitHub Community Videos
+ DevDocs Enhancements
+
+ Find the 2.2.2 details and future plans in the
+ Magento DevBlog .
+
","Magento's 2.2.2 release offers a set of improvements that were developed using increased
+ quality standards. The release includes these features, among others:
+
+
+ GitHub Community Moderator Team
+ GitHub Community Videos
+ DevDocs Enhancements
+
+ Find the 2.2.2 details and future plans in the
+ Magento DevBlog .
+
"
+"Business-to-Business (B2B) Magento Commerce only ","Business-to-Business (B2B) Magento Commerce only "
+"Magento Commerce 2.2.2 offers rich new functionality that empowers B2B merchants to transform
+ their online purchasing experience to achieve greater operational efficiency, improved customer
+ service, and sales growth. New capabilities include:
+
+
+ Company accounts with multiple tiers of buyers
+ Buyer roles and permissions
+ Custom catalogs and pricing
+ Quoting support
+ Rapid reorder experience
+ Payments on credit
+ ","Magento Commerce 2.2.2 offers rich new functionality that empowers B2B merchants to transform
+ their online purchasing experience to achieve greater operational efficiency, improved customer
+ service, and sales growth. New capabilities include:
+
+
+ Company accounts with multiple tiers of buyers
+ Buyer roles and permissions
+ Custom catalogs and pricing
+ Quoting support
+ Rapid reorder experience
+ Payments on credit
+ "
diff --git a/app/code/Magento/ReleaseNotification/registration.php b/app/code/Magento/ReleaseNotification/registration.php
new file mode 100644
index 0000000000000..c5bce27f20387
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/registration.php
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/ReleaseNotification/view/adminhtml/ui_component/release_notification.xml b/app/code/Magento/ReleaseNotification/view/adminhtml/ui_component/release_notification.xml
new file mode 100644
index 0000000000000..708d366f455bf
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/view/adminhtml/ui_component/release_notification.xml
@@ -0,0 +1,375 @@
+
+
+
diff --git a/app/code/Magento/ReleaseNotification/view/adminhtml/web/js/modal/component.js b/app/code/Magento/ReleaseNotification/view/adminhtml/web/js/modal/component.js
new file mode 100644
index 0000000000000..b74ef2af1a04d
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/view/adminhtml/web/js/modal/component.js
@@ -0,0 +1,65 @@
+/**
+ * Copyright © Magento, Inc. All rights reserved.
+ * See COPYING.txt for license details.
+ */
+
+define([
+ 'jquery',
+ 'Magento_Ui/js/modal/modal-component',
+ 'Magento_Ui/js/modal/alert',
+ 'mage/translate'
+], function ($, Modal, alert, $t) {
+ 'use strict';
+
+ return Modal.extend({
+ defaults: {
+ imports: {
+ logAction: '${ $.provider }:data.logAction'
+ }
+ },
+
+ /**
+ * Error handler.
+ *
+ * @param {Object} xhr - request result.
+ */
+ onError: function (xhr) {
+ if (xhr.statusText === 'abort') {
+ return;
+ }
+
+ alert({
+ content: xhr.message || $t('An error occurred while logging process.')
+ });
+ },
+
+ /**
+ * Log release notes show
+ */
+ logReleaseNotesShow: function () {
+ var self = this,
+ data = {
+ 'form_key': window.FORM_KEY
+ };
+
+ $.ajax({
+ type: 'POST',
+ url: this.logAction,
+ data: data,
+ showLoader: true
+ }).done(function (xhr) {
+ if (xhr.error) {
+ self.onError(xhr);
+ }
+ }).fail(this.onError);
+ },
+
+ /**
+ * Close release notes
+ */
+ closeReleaseNotes: function () {
+ this.logReleaseNotesShow();
+ this.closeModal();
+ }
+ });
+});
diff --git a/app/code/Magento/ReviewAnalytics/LICENSE.txt b/app/code/Magento/ReviewAnalytics/LICENSE.txt
new file mode 100644
index 0000000000000..49525fd99da9c
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/LICENSE.txt
@@ -0,0 +1,48 @@
+
+Open Software License ("OSL") v. 3.0
+
+This Open Software License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
+
+Licensed under the Open Software License version 3.0
+
+ 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
+
+ 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
+
+ 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
+
+ 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, with the proviso that copies of Original Work or Derivative Works that You distribute or communicate shall be licensed under this Open Software License;
+
+ 4. to perform the Original Work publicly; and
+
+ 5. to display the Original Work publicly.
+
+ 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
+
+ 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
+
+ 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
+
+ 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
+
+ 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+
+ 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
+
+ 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
+
+ 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including 'fair use' or 'fair dealing'). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
+
+ 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
+
+ 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
+
+ 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+
+ 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+
+ 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+
+ 16. Modification of This License. This License is Copyright (C) 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Open Software License" or "OSL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
\ No newline at end of file
diff --git a/app/code/Magento/ReviewAnalytics/LICENSE_AFL.txt b/app/code/Magento/ReviewAnalytics/LICENSE_AFL.txt
new file mode 100644
index 0000000000000..f39d641b18a19
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/LICENSE_AFL.txt
@@ -0,0 +1,48 @@
+
+Academic Free License ("AFL") v. 3.0
+
+This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
+
+Licensed under the Academic Free License version 3.0
+
+ 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
+
+ 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
+
+ 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
+
+ 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor's reserved rights and remedies, in this Academic Free License;
+
+ 4. to perform the Original Work publicly; and
+
+ 5. to display the Original Work publicly.
+
+ 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
+
+ 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
+
+ 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
+
+ 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
+
+ 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+
+ 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
+
+ 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
+
+ 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
+
+ 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
+
+ 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
+
+ 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+
+ 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+
+ 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+
+ 16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
diff --git a/app/code/Magento/ReviewAnalytics/README.md b/app/code/Magento/ReviewAnalytics/README.md
new file mode 100644
index 0000000000000..b078083dfb7dc
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/README.md
@@ -0,0 +1,3 @@
+# Magento_ReviewAnalytics module
+
+The Magento_ReviewAnalytics module configures data definitions for a data collection related to the Review module entities to be used in [Advanced Reporting](http://devdocs.magento.com/guides/v2.2/advanced-reporting/modules.html).
diff --git a/app/code/Magento/ReviewAnalytics/composer.json b/app/code/Magento/ReviewAnalytics/composer.json
new file mode 100644
index 0000000000000..b31c420e181bf
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/composer.json
@@ -0,0 +1,23 @@
+{
+ "name": "magento/module-review-analytics",
+ "description": "N/A",
+ "require": {
+ "php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
+ "magento/framework": "100.2.*",
+ "magento/module-review": "100.2.*"
+ },
+ "type": "magento2-module",
+ "version": "100.2.0-dev",
+ "license": [
+ "OSL-3.0",
+ "AFL-3.0"
+ ],
+ "autoload": {
+ "files": [
+ "registration.php"
+ ],
+ "psr-4": {
+ "Magento\\ReviewAnalytics\\": ""
+ }
+ }
+}
diff --git a/app/code/Magento/ReviewAnalytics/etc/analytics.xml b/app/code/Magento/ReviewAnalytics/etc/analytics.xml
new file mode 100644
index 0000000000000..cd5d1b2c1af4c
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/etc/analytics.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+ reviews
+
+
+
+
+
+
+
+
+ rating_option_votes
+
+
+
+
+
diff --git a/app/code/Magento/ReviewAnalytics/etc/module.xml b/app/code/Magento/ReviewAnalytics/etc/module.xml
new file mode 100644
index 0000000000000..65df87bac4af1
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/etc/module.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/ReviewAnalytics/etc/reports.xml b/app/code/Magento/ReviewAnalytics/etc/reports.xml
new file mode 100644
index 0000000000000..8dd508983aced
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/etc/reports.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/ReviewAnalytics/registration.php b/app/code/Magento/ReviewAnalytics/registration.php
new file mode 100644
index 0000000000000..6b795ca04c61b
--- /dev/null
+++ b/app/code/Magento/ReviewAnalytics/registration.php
@@ -0,0 +1,11 @@
+" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
\ No newline at end of file
diff --git a/app/code/Magento/SalesAnalytics/LICENSE_AFL.txt b/app/code/Magento/SalesAnalytics/LICENSE_AFL.txt
new file mode 100644
index 0000000000000..f39d641b18a19
--- /dev/null
+++ b/app/code/Magento/SalesAnalytics/LICENSE_AFL.txt
@@ -0,0 +1,48 @@
+
+Academic Free License ("AFL") v. 3.0
+
+This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
+
+Licensed under the Academic Free License version 3.0
+
+ 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
+
+ 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
+
+ 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
+
+ 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor's reserved rights and remedies, in this Academic Free License;
+
+ 4. to perform the Original Work publicly; and
+
+ 5. to display the Original Work publicly.
+
+ 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
+
+ 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
+
+ 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
+
+ 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
+
+ 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+
+ 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
+
+ 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
+
+ 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
+
+ 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
+
+ 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
+
+ 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+
+ 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+
+ 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+
+ 16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
diff --git a/app/code/Magento/SalesAnalytics/README.md b/app/code/Magento/SalesAnalytics/README.md
new file mode 100644
index 0000000000000..70f456c97d4b3
--- /dev/null
+++ b/app/code/Magento/SalesAnalytics/README.md
@@ -0,0 +1,3 @@
+# Magento_SalesAnalytics module
+
+The Magento_SalesAnalytics module configures data definitions for a data collection related to the Sales module entities to be used in [Advanced Reporting](http://devdocs.magento.com/guides/v2.2/advanced-reporting/modules.html).
diff --git a/app/code/Magento/SalesAnalytics/composer.json b/app/code/Magento/SalesAnalytics/composer.json
new file mode 100644
index 0000000000000..7c9270a503b0d
--- /dev/null
+++ b/app/code/Magento/SalesAnalytics/composer.json
@@ -0,0 +1,23 @@
+{
+ "name": "magento/module-sales-analytics",
+ "description": "N/A",
+ "require": {
+ "php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
+ "magento/framework": "100.2.*",
+ "magento/module-sales": "100.2.*"
+ },
+ "type": "magento2-module",
+ "version": "100.2.0-dev",
+ "license": [
+ "OSL-3.0",
+ "AFL-3.0"
+ ],
+ "autoload": {
+ "files": [
+ "registration.php"
+ ],
+ "psr-4": {
+ "Magento\\SalesAnalytics\\": ""
+ }
+ }
+}
diff --git a/app/code/Magento/SalesAnalytics/etc/analytics.xml b/app/code/Magento/SalesAnalytics/etc/analytics.xml
new file mode 100644
index 0000000000000..be6c4dfde9b19
--- /dev/null
+++ b/app/code/Magento/SalesAnalytics/etc/analytics.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+ orders
+
+
+
+
+
+
+
+
+ order_items
+
+
+
+
+
+
+
+
+ order_addresses
+
+
+
+
+
diff --git a/app/code/Magento/SalesAnalytics/etc/module.xml b/app/code/Magento/SalesAnalytics/etc/module.xml
new file mode 100644
index 0000000000000..7a15075a4bc21
--- /dev/null
+++ b/app/code/Magento/SalesAnalytics/etc/module.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/SalesAnalytics/etc/reports.xml b/app/code/Magento/SalesAnalytics/etc/reports.xml
new file mode 100644
index 0000000000000..bb6bdb800e9bf
--- /dev/null
+++ b/app/code/Magento/SalesAnalytics/etc/reports.xml
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/SalesAnalytics/registration.php b/app/code/Magento/SalesAnalytics/registration.php
new file mode 100644
index 0000000000000..eff2c5b1a2c05
--- /dev/null
+++ b/app/code/Magento/SalesAnalytics/registration.php
@@ -0,0 +1,11 @@
+" or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
\ No newline at end of file
diff --git a/app/code/Magento/WishlistAnalytics/LICENSE_AFL.txt b/app/code/Magento/WishlistAnalytics/LICENSE_AFL.txt
new file mode 100644
index 0000000000000..f39d641b18a19
--- /dev/null
+++ b/app/code/Magento/WishlistAnalytics/LICENSE_AFL.txt
@@ -0,0 +1,48 @@
+
+Academic Free License ("AFL") v. 3.0
+
+This Academic Free License (the "License") applies to any original work of authorship (the "Original Work") whose owner (the "Licensor") has placed the following licensing notice adjacent to the copyright notice for the Original Work:
+
+Licensed under the Academic Free License version 3.0
+
+ 1. Grant of Copyright License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, for the duration of the copyright, to do the following:
+
+ 1. to reproduce the Original Work in copies, either alone or as part of a collective work;
+
+ 2. to translate, adapt, alter, transform, modify, or arrange the Original Work, thereby creating derivative works ("Derivative Works") based upon the Original Work;
+
+ 3. to distribute or communicate copies of the Original Work and Derivative Works to the public, under any license of your choice that does not contradict the terms and conditions, including Licensor's reserved rights and remedies, in this Academic Free License;
+
+ 4. to perform the Original Work publicly; and
+
+ 5. to display the Original Work publicly.
+
+ 2. Grant of Patent License. Licensor grants You a worldwide, royalty-free, non-exclusive, sublicensable license, under patent claims owned or controlled by the Licensor that are embodied in the Original Work as furnished by the Licensor, for the duration of the patents, to make, use, sell, offer for sale, have made, and import the Original Work and Derivative Works.
+
+ 3. Grant of Source Code License. The term "Source Code" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right to satisfy this obligation by placing a machine-readable copy of the Source Code in an information repository reasonably calculated to permit inexpensive and convenient access by You for as long as Licensor continues to distribute the Original Work.
+
+ 4. Exclusions From License Grant. Neither the names of Licensor, nor the names of any contributors to the Original Work, nor any of their trademarks or service marks, may be used to endorse or promote products derived from this Original Work without express prior permission of the Licensor. Except as expressly stated herein, nothing in this License grants any license to Licensor's trademarks, copyrights, patents, trade secrets or any other intellectual property. No patent license is granted to make, use, sell, offer for sale, have made, or import embodiments of any patent claims other than the licensed claims defined in Section 2. No license is granted to the trademarks of Licensor even if such marks are included in the Original Work. Nothing in this License shall be interpreted to prohibit Licensor from licensing under terms different from this License any Original Work that Licensor otherwise would have a right to license.
+
+ 5. External Deployment. The term "External Deployment" means the use, distribution, or communication of the Original Work or Derivative Works in any way such that the Original Work or Derivative Works may be used by anyone other than You, whether those works are distributed or communicated to those persons or made available as an application intended for use over a network. As an express condition for the grants of license hereunder, You must treat any External Deployment by You of the Original Work or a Derivative Work as a distribution under section 1(c).
+
+ 6. Attribution Rights. You must retain, in the Source Code of any Derivative Works that You create, all copyright, patent, or trademark notices from the Source Code of the Original Work, as well as any notices of licensing and any descriptive text identified therein as an "Attribution Notice." You must cause the Source Code for any Derivative Works that You create to carry a prominent Attribution Notice reasonably calculated to inform recipients that You have modified the Original Work.
+
+ 7. Warranty of Provenance and Disclaimer of Warranty. Licensor warrants that the copyright in and to the Original Work and the patent rights granted herein by Licensor are owned by the Licensor or are sublicensed to You under the terms of this License with the permission of the contributor(s) of those copyrights and patent rights. Except as expressly stated in the immediately preceding sentence, the Original Work is provided under this License on an "AS IS" BASIS and WITHOUT WARRANTY, either express or implied, including, without limitation, the warranties of non-infringement, merchantability or fitness for a particular purpose. THE ENTIRE RISK AS TO THE QUALITY OF THE ORIGINAL WORK IS WITH YOU. This DISCLAIMER OF WARRANTY constitutes an essential part of this License. No license to the Original Work is granted by this License except under this disclaimer.
+
+ 8. Limitation of Liability. Under no circumstances and under no legal theory, whether in tort (including negligence), contract, or otherwise, shall the Licensor be liable to anyone for any indirect, special, incidental, or consequential damages of any character arising as a result of this License or the use of the Original Work including, without limitation, damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses. This limitation of liability shall not apply to the extent applicable law prohibits such limitation.
+
+ 9. Acceptance and Termination. If, at any time, You expressly assented to this License, that assent indicates your clear and irrevocable acceptance of this License and all of its terms and conditions. If You distribute or communicate copies of the Original Work or a Derivative Work, You must make a reasonable effort under the circumstances to obtain the express assent of recipients to the terms of this License. This License conditions your rights to undertake the activities listed in Section 1, including your right to create Derivative Works based upon the Original Work, and doing so without honoring these terms and conditions is prohibited by copyright law and international treaty. Nothing in this License is intended to affect copyright exceptions and limitations (including "fair use" or "fair dealing"). This License shall terminate immediately and You may no longer exercise any of the rights granted to You by this License upon your failure to honor the conditions in Section 1(c).
+
+ 10. Termination for Patent Action. This License shall terminate automatically and You may no longer exercise any of the rights granted to You by this License as of the date You commence an action, including a cross-claim or counterclaim, against Licensor or any licensee alleging that the Original Work infringes a patent. This termination provision shall not apply for an action alleging patent infringement by combinations of the Original Work with other software or hardware.
+
+ 11. Jurisdiction, Venue and Governing Law. Any action or suit relating to this License may be brought only in the courts of a jurisdiction wherein the Licensor resides or in which Licensor conducts its primary business, and under the laws of that jurisdiction excluding its conflict-of-law provisions. The application of the United Nations Convention on Contracts for the International Sale of Goods is expressly excluded. Any use of the Original Work outside the scope of this License or after its termination shall be subject to the requirements and penalties of copyright or patent law in the appropriate jurisdiction. This section shall survive the termination of this License.
+
+ 12. Attorneys' Fees. In any action to enforce the terms of this License or seeking damages relating thereto, the prevailing party shall be entitled to recover its costs and expenses, including, without limitation, reasonable attorneys' fees and costs incurred in connection with such action, including any appeal of such action. This section shall survive the termination of this License.
+
+ 13. Miscellaneous. If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable.
+
+ 14. Definition of "You" in This License. "You" throughout this License, whether in upper or lower case, means an individual or a legal entity exercising rights under, and complying with all of the terms of, this License. For legal entities, "You" includes any entity that controls, is controlled by, or is under common control with you. For purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+ 15. Right to Use. You may use the Original Work in all ways not otherwise restricted or conditioned by this License or by law, and Licensor promises not to interfere with or be responsible for such uses by You.
+
+ 16. Modification of This License. This License is Copyright © 2005 Lawrence Rosen. Permission is granted to copy, distribute, or communicate this License without modification. Nothing in this License permits You to modify this License as applied to the Original Work or to Derivative Works. However, You may modify the text of this License and copy, distribute or communicate your modified version (the "Modified License") and apply it to other original works of authorship subject to the following conditions: (i) You may not indicate in any way that your Modified License is the "Academic Free License" or "AFL" and you may not use those names in the name of your Modified License; (ii) You must replace the notice specified in the first paragraph above with the notice "Licensed under " or with a notice of your own that is not confusingly similar to the notice in this License; and (iii) You may not claim that your original works are open source software unless your Modified License has been approved by Open Source Initiative (OSI) and You comply with its license review and certification process.
diff --git a/app/code/Magento/WishlistAnalytics/README.md b/app/code/Magento/WishlistAnalytics/README.md
new file mode 100644
index 0000000000000..999fc835626da
--- /dev/null
+++ b/app/code/Magento/WishlistAnalytics/README.md
@@ -0,0 +1,3 @@
+# Magento_WishlistAnalytics module
+
+The Magento_WishlistAnalytics module configures data definitions for a data collection related to the Wishlist module entities to be used in [Advanced Reporting](http://devdocs.magento.com/guides/v2.2/advanced-reporting/modules.html).
diff --git a/app/code/Magento/WishlistAnalytics/composer.json b/app/code/Magento/WishlistAnalytics/composer.json
new file mode 100644
index 0000000000000..20f414c00c320
--- /dev/null
+++ b/app/code/Magento/WishlistAnalytics/composer.json
@@ -0,0 +1,23 @@
+{
+ "name": "magento/module-wishlist-analytics",
+ "description": "N/A",
+ "require": {
+ "php": "7.0.2|7.0.4|~7.0.6|~7.1.0",
+ "magento/framework": "100.2.*",
+ "magento/module-wishlist": "100.2.*"
+ },
+ "type": "magento2-module",
+ "version": "100.2.0-dev",
+ "license": [
+ "OSL-3.0",
+ "AFL-3.0"
+ ],
+ "autoload": {
+ "files": [
+ "registration.php"
+ ],
+ "psr-4": {
+ "Magento\\WishlistAnalytics\\": ""
+ }
+ }
+}
diff --git a/app/code/Magento/WishlistAnalytics/etc/analytics.xml b/app/code/Magento/WishlistAnalytics/etc/analytics.xml
new file mode 100644
index 0000000000000..0b2531fe0df67
--- /dev/null
+++ b/app/code/Magento/WishlistAnalytics/etc/analytics.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+ wishlists
+
+
+
+
+
+
+
+
+ wishlist_items
+
+
+
+
+
diff --git a/app/code/Magento/WishlistAnalytics/etc/module.xml b/app/code/Magento/WishlistAnalytics/etc/module.xml
new file mode 100644
index 0000000000000..159ed86ee171a
--- /dev/null
+++ b/app/code/Magento/WishlistAnalytics/etc/module.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/WishlistAnalytics/etc/reports.xml b/app/code/Magento/WishlistAnalytics/etc/reports.xml
new file mode 100644
index 0000000000000..0125fa93f815a
--- /dev/null
+++ b/app/code/Magento/WishlistAnalytics/etc/reports.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/code/Magento/WishlistAnalytics/registration.php b/app/code/Magento/WishlistAnalytics/registration.php
new file mode 100644
index 0000000000000..eacf1e0d78bcb
--- /dev/null
+++ b/app/code/Magento/WishlistAnalytics/registration.php
@@ -0,0 +1,11 @@
+td.config-vertical-label {
+ >label.admin__field-label {
+ padding-right: 0;
+ }
+ }
+}
diff --git a/app/design/adminhtml/Magento/backend/Magento_Analytics/web/images/analytics-icon.svg b/app/design/adminhtml/Magento/backend/Magento_Analytics/web/images/analytics-icon.svg
new file mode 100644
index 0000000000000..fde91d775d444
--- /dev/null
+++ b/app/design/adminhtml/Magento/backend/Magento_Analytics/web/images/analytics-icon.svg
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/_module.less b/app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/_module.less
index f6e922fccb8c7..5ae2a458ad40d 100644
--- a/app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/_module.less
+++ b/app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/_module.less
@@ -19,3 +19,4 @@
@import 'module/pages/_dashboard.less';
@import 'module/pages/_login.less';
@import 'module/pages/_cache-management.less';
+@import 'module/pages/_access-denied.less';
diff --git a/app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/pages/_access-denied.less b/app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/pages/_access-denied.less
new file mode 100644
index 0000000000000..8597dac7147de
--- /dev/null
+++ b/app/design/adminhtml/Magento/backend/Magento_Backend/web/css/source/module/pages/_access-denied.less
@@ -0,0 +1,34 @@
+// /**
+// * Copyright © Magento, Inc. All rights reserved.
+// * See COPYING.txt for license details.
+// */
+
+//
+// Access Error Page
+// ---------------------------------------------
+
+.access-denied-hr {
+ height: 0.2rem;
+ border: 0;
+ box-shadow: 0 10px 10px -10px #b4b3b3 inset;
+}
+
+.access-denied-page {
+ margin: 3.5rem 0 10rem 0;
+
+ h2 {
+ margin-bottom: 3rem;
+ }
+
+ ul {
+ li {
+ font-size: @font-size__s;
+ margin: 2rem 0 2rem 3rem;
+
+ span {
+ font-size: @font-size__base;
+ margin-left: 1rem;
+ }
+ }
+ }
+}
diff --git a/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/css/source/_module.less b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/css/source/_module.less
new file mode 100644
index 0000000000000..81c9b70c71889
--- /dev/null
+++ b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/css/source/_module.less
@@ -0,0 +1,127 @@
+// /**
+// * Copyright © Magento, Inc. All rights reserved.
+// * See COPYING.txt for license details.
+// */
+
+//
+// Magento_ReleaseNotification Modal on dashboard
+// ---------------------------------------------
+
+.release-notification-modal, .analytics-subscription-modal, .developer-experience-modal, .b2b-modal {
+ -webkit-transition: visibility 0s .5s, opacity .5s ease;
+ transition: visibility 0s .5s, opacity .5s ease;
+
+ &._show {
+ visibility: visible;
+ opacity: 1;
+ -webkit-transition: opacity .5s ease;
+ transition: opacity .5s ease;
+ }
+
+ .modal-inner-wrap {
+ -webkit-transform: translateX(0);
+ transform: translateX(0);
+ -webkit-transition: -webkit-transform 0s;
+ transition: transform 0s;
+ height: 50rem;
+ max-width: 75rem;
+ margin-top: 13rem;
+
+ .modal-content, .modal-header {
+ padding-left: 4rem;
+ padding-right: 4rem;
+
+ .action-close {
+ display: none;
+ }
+ }
+ }
+
+ .admin__fieldset {
+ padding: 0;
+ }
+}
+
+.release-notification-text {
+ line-height: @line-height__l;
+
+ ul {
+ margin: 2rem 0 2rem 0;
+
+ li {
+ font-size: @font-size__xs;
+ margin: 1.5rem 0 1.5rem 2rem;
+
+ span {
+ font-size: @font-size__base;
+ margin-left: 2rem;
+ }
+ }
+ }
+}
+
+.release-notification-button-next, .release-notification-button-back {
+ display: inline-block;
+ vertical-align: top;
+ float: right;
+ position: absolute;
+ bottom: 4rem;
+}
+
+.release-notification-button-next {
+ right: 4rem;
+}
+
+.analytics-highlight {
+ background: url("Magento_ReleaseNotification::images/analytics-icon.svg") no-repeat;
+ background-size: 65px 58px;
+}
+
+.b2b-highlight {
+ background: url("Magento_ReleaseNotification::images/b2b-icon.svg") no-repeat;
+ background-size: 65px 53.37px;
+}
+
+.developer-experience-highlight {
+ background: url("Magento_ReleaseNotification::images/developer-experience-icon.svg") no-repeat;
+ background-size: 65px 59px;
+}
+
+.analytics-highlight, .b2b-highlight, .developer-experience-highlight {
+ padding: 0 0 2rem 8.5rem;
+ margin-left: 1rem;
+
+ h3 {
+ margin: 0;
+
+ span {
+ font-style: @font-style__emphasis;
+ font-size: @font-size__s;
+ font-weight: @font-weight__light;
+ }
+ }
+}
+
+.analytics-subscription-modal {
+ h1:first-of-type {
+ background: url("Magento_ReleaseNotification::images/analytics-icon.svg") no-repeat;
+ background-size: 55px 49.08px;
+ padding: 1.5rem 0 2rem 7rem;
+ }
+}
+
+.b2b-modal {
+ h1:first-of-type {
+ background: url("Magento_ReleaseNotification::images/b2b-icon.svg") no-repeat;
+ background-size: 55px 49.92px;
+ padding: 1.5rem 0 2rem 7rem;
+ }
+}
+
+.developer-experience-modal {
+ h1:first-of-type {
+ background: url("Magento_ReleaseNotification::images/developer-experience-icon.svg") no-repeat;
+ background-size: 55px 46px;
+ padding: 1.5rem 0 2rem 7rem;
+ }
+}
diff --git a/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/analytics-icon.svg b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/analytics-icon.svg
new file mode 100644
index 0000000000000..fde91d775d444
--- /dev/null
+++ b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/analytics-icon.svg
@@ -0,0 +1,84 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/b2b-icon.svg b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/b2b-icon.svg
new file mode 100644
index 0000000000000..20552d6178c25
--- /dev/null
+++ b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/b2b-icon.svg
@@ -0,0 +1,60 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/developer-experience-icon.svg b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/developer-experience-icon.svg
new file mode 100644
index 0000000000000..50d208118aedf
--- /dev/null
+++ b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/images/developer-experience-icon.svg
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+
+
diff --git a/composer.json b/composer.json
index b7826101376f4..c56278203ab21 100644
--- a/composer.json
+++ b/composer.json
@@ -85,6 +85,7 @@
"magento/module-marketplace": "100.2.0",
"magento/module-admin-notification": "100.2.0",
"magento/module-advanced-pricing-import-export": "100.2.0",
+ "magento/module-analytics": "100.2.0-dev",
"magento/module-authorization": "100.2.0",
"magento/module-authorizenet": "100.2.0",
"magento/module-backend": "100.2.0",
@@ -95,6 +96,7 @@
"magento/module-cache-invalidate": "100.2.0",
"magento/module-captcha": "100.2.0",
"magento/module-catalog": "102.0.0",
+ "magento/module-catalog-analytics": "100.2.0-dev",
"magento/module-catalog-import-export": "100.2.0",
"magento/module-catalog-inventory": "100.2.0",
"magento/module-catalog-rule": "101.0.0",
@@ -115,6 +117,7 @@
"magento/module-cron": "100.2.0",
"magento/module-currency-symbol": "100.2.0",
"magento/module-customer": "101.0.0",
+ "magento/module-customer-analytics": "100.2.0-dev",
"magento/module-customer-import-export": "100.2.0",
"magento/module-deploy": "100.2.0",
"magento/module-developer": "100.2.0",
@@ -151,13 +154,17 @@
"magento/module-product-alert": "100.2.0",
"magento/module-product-video": "100.2.0",
"magento/module-quote": "101.0.0",
+ "magento/module-quote-analytics": "100.2.0-dev",
+ "magento/module-release-notification": "100.2.0",
"magento/module-reports": "100.2.0",
"magento/module-require-js": "100.2.0",
"magento/module-review": "100.2.0",
+ "magento/module-review-analytics": "100.2.0-dev",
"magento/module-robots": "100.2.0",
"magento/module-rss": "100.2.0",
"magento/module-rule": "100.2.0",
"magento/module-sales": "101.0.0",
+ "magento/module-sales-analytics": "100.2.0-dev",
"magento/module-sales-inventory": "100.2.0",
"magento/module-sales-rule": "101.0.0",
"magento/module-sales-sequence": "100.2.0",
@@ -189,6 +196,7 @@
"magento/module-weee": "100.2.0",
"magento/module-widget": "101.0.0",
"magento/module-wishlist": "101.0.0",
+ "magento/module-wishlist-analytics": "100.2.0-dev",
"magento/theme-adminhtml-backend": "100.2.0",
"magento/theme-frontend-blank": "100.2.0",
"magento/theme-frontend-luma": "100.2.0",
diff --git a/composer.lock b/composer.lock
index 31307900a6bc2..32b3598bf0034 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
- "content-hash": "adc6c15c236190cb2759da1721a394e0",
+ "hash": "057bdfbdba89c00c7240cddfa78527c4",
+ "content-hash": "738943bccb2a2949bdf94f661823f6b4",
"packages": [
{
"name": "braintree/braintree_php",
@@ -51,7 +52,7 @@
}
],
"description": "Braintree PHP Client Library",
- "time": "2017-02-16T19:59:04+00:00"
+ "time": "2017-02-16 19:59:04"
},
{
"name": "colinmollenhour/cache-backend-file",
@@ -87,7 +88,7 @@
],
"description": "The stock Zend_Cache_Backend_File backend has extremely poor performance for cleaning by tags making it become unusable as the number of cached items increases. This backend makes many changes resulting in a huge performance boost, especially for tag cleaning.",
"homepage": "https://github.com/colinmollenhour/Cm_Cache_Backend_File",
- "time": "2016-05-02T16:24:47+00:00"
+ "time": "2016-05-02 16:24:47"
},
{
"name": "colinmollenhour/cache-backend-redis",
@@ -123,7 +124,7 @@
],
"description": "Zend_Cache backend using Redis with full support for tags.",
"homepage": "https://github.com/colinmollenhour/Cm_Cache_Backend_Redis",
- "time": "2017-03-25T04:54:24+00:00"
+ "time": "2017-03-25 04:54:24"
},
{
"name": "colinmollenhour/credis",
@@ -163,7 +164,7 @@
],
"description": "Credis is a lightweight interface to the Redis key-value store which wraps the phpredis library when available for better performance.",
"homepage": "https://github.com/colinmollenhour/credis",
- "time": "2017-07-05T15:32:38+00:00"
+ "time": "2017-07-05 15:32:38"
},
{
"name": "colinmollenhour/php-redis-session-abstract",
@@ -200,7 +201,7 @@
],
"description": "A Redis-based session handler with optimistic locking",
"homepage": "https://github.com/colinmollenhour/php-redis-session-abstract",
- "time": "2017-03-22T16:13:03+00:00"
+ "time": "2017-03-22 16:13:03"
},
{
"name": "composer/ca-bundle",
@@ -259,7 +260,7 @@
"ssl",
"tls"
],
- "time": "2017-09-11T07:24:36+00:00"
+ "time": "2017-09-11 07:24:36"
},
{
"name": "composer/composer",
@@ -336,7 +337,7 @@
"dependency",
"package"
],
- "time": "2017-03-10T08:29:45+00:00"
+ "time": "2017-03-10 08:29:45"
},
{
"name": "composer/semver",
@@ -398,7 +399,7 @@
"validation",
"versioning"
],
- "time": "2016-08-30T16:08:34+00:00"
+ "time": "2016-08-30 16:08:34"
},
{
"name": "composer/spdx-licenses",
@@ -459,7 +460,7 @@
"spdx",
"validator"
],
- "time": "2017-04-03T19:08:52+00:00"
+ "time": "2017-04-03 19:08:52"
},
{
"name": "container-interop/container-interop",
@@ -490,20 +491,20 @@
],
"description": "Promoting the interoperability of container objects (DIC, SL, etc.)",
"homepage": "https://github.com/container-interop/container-interop",
- "time": "2017-02-14T19:40:03+00:00"
+ "time": "2017-02-14 19:40:03"
},
{
"name": "justinrainbow/json-schema",
- "version": "5.2.1",
+ "version": "5.2.6",
"source": {
"type": "git",
"url": "https://github.com/justinrainbow/json-schema.git",
- "reference": "429be236f296ca249d61c65649cdf2652f4a5e80"
+ "reference": "d283e11b6e14c6f4664cf080415c4341293e5bbd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/429be236f296ca249d61c65649cdf2652f4a5e80",
- "reference": "429be236f296ca249d61c65649cdf2652f4a5e80",
+ "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/d283e11b6e14c6f4664cf080415c4341293e5bbd",
+ "reference": "d283e11b6e14c6f4664cf080415c4341293e5bbd",
"shasum": ""
},
"require": {
@@ -512,7 +513,6 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.1",
"json-schema/json-schema-test-suite": "1.2.0",
- "phpdocumentor/phpdocumentor": "^2.7",
"phpunit/phpunit": "^4.8.22"
},
"bin": [
@@ -557,7 +557,7 @@
"json",
"schema"
],
- "time": "2017-05-16T21:06:09+00:00"
+ "time": "2017-10-21 13:15:38"
},
{
"name": "league/climate",
@@ -606,7 +606,7 @@
"php",
"terminal"
],
- "time": "2015-01-18T14:31:58+00:00"
+ "time": "2015-01-18 14:31:58"
},
{
"name": "magento/composer",
@@ -642,7 +642,7 @@
"AFL-3.0"
],
"description": "Magento composer library helps to instantiate Composer application and run composer commands.",
- "time": "2017-04-24T09:57:02+00:00"
+ "time": "2017-04-24 09:57:02"
},
{
"name": "magento/magento-composer-installer",
@@ -721,7 +721,7 @@
"composer-installer",
"magento"
],
- "time": "2016-10-06T16:05:07+00:00"
+ "time": "2016-10-06 16:05:07"
},
{
"name": "magento/zendframework1",
@@ -768,7 +768,7 @@
"ZF1",
"framework"
],
- "time": "2017-06-21T14:56:23+00:00"
+ "time": "2017-06-21 14:56:23"
},
{
"name": "monolog/monolog",
@@ -846,7 +846,7 @@
"logging",
"psr-3"
],
- "time": "2017-06-19T01:22:40+00:00"
+ "time": "2017-06-19 01:22:40"
},
{
"name": "oyejorge/less.php",
@@ -908,20 +908,20 @@
"php",
"stylesheet"
],
- "time": "2017-03-28T22:19:25+00:00"
+ "time": "2017-03-28 22:19:25"
},
{
"name": "paragonie/random_compat",
- "version": "v2.0.10",
+ "version": "v2.0.11",
"source": {
"type": "git",
"url": "https://github.com/paragonie/random_compat.git",
- "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d"
+ "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/paragonie/random_compat/zipball/634bae8e911eefa89c1abfbf1b66da679ac8f54d",
- "reference": "634bae8e911eefa89c1abfbf1b66da679ac8f54d",
+ "url": "https://api.github.com/repos/paragonie/random_compat/zipball/5da4d3c796c275c55f057af5a643ae297d96b4d8",
+ "reference": "5da4d3c796c275c55f057af5a643ae297d96b4d8",
"shasum": ""
},
"require": {
@@ -956,7 +956,7 @@
"pseudorandom",
"random"
],
- "time": "2017-03-13T16:27:32+00:00"
+ "time": "2017-09-27 21:40:39"
},
{
"name": "pelago/emogrifier",
@@ -1012,20 +1012,20 @@
],
"description": "Converts CSS styles into inline style attributes in your HTML code",
"homepage": "http://www.pelagodesign.com/sidecar/emogrifier/",
- "time": "2015-05-15T11:37:51+00:00"
+ "time": "2015-05-15 11:37:51"
},
{
"name": "phpseclib/phpseclib",
- "version": "2.0.6",
+ "version": "2.0.7",
"source": {
"type": "git",
"url": "https://github.com/phpseclib/phpseclib.git",
- "reference": "34a7699e6f31b1ef4035ee36444407cecf9f56aa"
+ "reference": "f4b6a522dfa1fd1e477c9cfe5909d5b31f098c0b"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/34a7699e6f31b1ef4035ee36444407cecf9f56aa",
- "reference": "34a7699e6f31b1ef4035ee36444407cecf9f56aa",
+ "url": "https://api.github.com/repos/phpseclib/phpseclib/zipball/f4b6a522dfa1fd1e477c9cfe5909d5b31f098c0b",
+ "reference": "f4b6a522dfa1fd1e477c9cfe5909d5b31f098c0b",
"shasum": ""
},
"require": {
@@ -1104,7 +1104,7 @@
"x.509",
"x509"
],
- "time": "2017-06-05T06:31:10+00:00"
+ "time": "2017-10-23 05:04:54"
},
{
"name": "psr/container",
@@ -1153,7 +1153,7 @@
"container-interop",
"psr"
],
- "time": "2017-02-14T16:28:37+00:00"
+ "time": "2017-02-14 16:28:37"
},
{
"name": "psr/log",
@@ -1200,7 +1200,7 @@
"psr",
"psr-3"
],
- "time": "2016-10-10T12:19:37+00:00"
+ "time": "2016-10-10 12:19:37"
},
{
"name": "ramsey/uuid",
@@ -1282,7 +1282,7 @@
"identifier",
"uuid"
],
- "time": "2017-03-26T20:37:53+00:00"
+ "time": "2017-03-26 20:37:53"
},
{
"name": "seld/cli-prompt",
@@ -1330,7 +1330,7 @@
"input",
"prompt"
],
- "time": "2017-03-18T11:32:45+00:00"
+ "time": "2017-03-18 11:32:45"
},
{
"name": "seld/jsonlint",
@@ -1379,7 +1379,7 @@
"parser",
"validator"
],
- "time": "2017-06-18T15:11:04+00:00"
+ "time": "2017-06-18 15:11:04"
},
{
"name": "seld/phar-utils",
@@ -1423,7 +1423,7 @@
"keywords": [
"phra"
],
- "time": "2015-10-13T18:44:15+00:00"
+ "time": "2015-10-13 18:44:15"
},
{
"name": "sjparkinson/static-review",
@@ -1476,20 +1476,20 @@
}
],
"description": "An extendable framework for version control hooks.",
- "time": "2014-09-22T08:40:36+00:00"
+ "time": "2014-09-22 08:40:36"
},
{
"name": "symfony/console",
- "version": "v2.8.27",
+ "version": "v2.8.28",
"source": {
"type": "git",
"url": "https://github.com/symfony/console.git",
- "reference": "c0807a2ca978e64d8945d373a9221a5c35d1a253"
+ "reference": "f81549d2c5fdee8d711c9ab3c7e7362353ea5853"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/console/zipball/c0807a2ca978e64d8945d373a9221a5c35d1a253",
- "reference": "c0807a2ca978e64d8945d373a9221a5c35d1a253",
+ "url": "https://api.github.com/repos/symfony/console/zipball/f81549d2c5fdee8d711c9ab3c7e7362353ea5853",
+ "reference": "f81549d2c5fdee8d711c9ab3c7e7362353ea5853",
"shasum": ""
},
"require": {
@@ -1537,7 +1537,7 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
- "time": "2017-08-27T14:29:03+00:00"
+ "time": "2017-10-01 21:00:16"
},
{
"name": "symfony/debug",
@@ -1594,20 +1594,20 @@
],
"description": "Symfony Debug Component",
"homepage": "https://symfony.com",
- "time": "2016-07-30T07:22:48+00:00"
+ "time": "2016-07-30 07:22:48"
},
{
"name": "symfony/event-dispatcher",
- "version": "v2.8.27",
+ "version": "v2.8.28",
"source": {
"type": "git",
"url": "https://github.com/symfony/event-dispatcher.git",
- "reference": "1377400fd641d7d1935981546aaef780ecd5bf6d"
+ "reference": "7fe089232554357efb8d4af65ce209fc6e5a2186"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/1377400fd641d7d1935981546aaef780ecd5bf6d",
- "reference": "1377400fd641d7d1935981546aaef780ecd5bf6d",
+ "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7fe089232554357efb8d4af65ce209fc6e5a2186",
+ "reference": "7fe089232554357efb8d4af65ce209fc6e5a2186",
"shasum": ""
},
"require": {
@@ -1654,20 +1654,20 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
- "time": "2017-06-02T07:47:27+00:00"
+ "time": "2017-10-01 21:00:16"
},
{
"name": "symfony/filesystem",
- "version": "v3.3.9",
+ "version": "v3.3.10",
"source": {
"type": "git",
"url": "https://github.com/symfony/filesystem.git",
- "reference": "b32a0e5f928d0fa3d1dd03c78d020777e50c10cb"
+ "reference": "90bc45abf02ae6b7deb43895c1052cb0038506f1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/filesystem/zipball/b32a0e5f928d0fa3d1dd03c78d020777e50c10cb",
- "reference": "b32a0e5f928d0fa3d1dd03c78d020777e50c10cb",
+ "url": "https://api.github.com/repos/symfony/filesystem/zipball/90bc45abf02ae6b7deb43895c1052cb0038506f1",
+ "reference": "90bc45abf02ae6b7deb43895c1052cb0038506f1",
"shasum": ""
},
"require": {
@@ -1703,20 +1703,20 @@
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com",
- "time": "2017-07-29T21:54:42+00:00"
+ "time": "2017-10-03 13:33:10"
},
{
"name": "symfony/finder",
- "version": "v3.3.9",
+ "version": "v3.3.10",
"source": {
"type": "git",
"url": "https://github.com/symfony/finder.git",
- "reference": "b2260dbc80f3c4198f903215f91a1ac7fe9fe09e"
+ "reference": "773e19a491d97926f236942484cb541560ce862d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/finder/zipball/b2260dbc80f3c4198f903215f91a1ac7fe9fe09e",
- "reference": "b2260dbc80f3c4198f903215f91a1ac7fe9fe09e",
+ "url": "https://api.github.com/repos/symfony/finder/zipball/773e19a491d97926f236942484cb541560ce862d",
+ "reference": "773e19a491d97926f236942484cb541560ce862d",
"shasum": ""
},
"require": {
@@ -1752,20 +1752,20 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
- "time": "2017-07-29T21:54:42+00:00"
+ "time": "2017-10-02 06:42:24"
},
{
"name": "symfony/polyfill-mbstring",
- "version": "v1.5.0",
+ "version": "v1.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-mbstring.git",
- "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803"
+ "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/7c8fae0ac1d216eb54349e6a8baa57d515fe8803",
- "reference": "7c8fae0ac1d216eb54349e6a8baa57d515fe8803",
+ "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296",
+ "reference": "2ec8b39c38cb16674bbf3fea2b6ce5bf117e1296",
"shasum": ""
},
"require": {
@@ -1777,7 +1777,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.5-dev"
+ "dev-master": "1.6-dev"
}
},
"autoload": {
@@ -1811,20 +1811,20 @@
"portable",
"shim"
],
- "time": "2017-06-14T15:44:48+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/process",
- "version": "v2.8.27",
+ "version": "v2.8.28",
"source": {
"type": "git",
"url": "https://github.com/symfony/process.git",
- "reference": "57e52a0a6a80ea0aec4fc1b785a7920a95cb88a8"
+ "reference": "26c9fb02bf06bd6b90f661a5bd17e510810d0176"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/process/zipball/57e52a0a6a80ea0aec4fc1b785a7920a95cb88a8",
- "reference": "57e52a0a6a80ea0aec4fc1b785a7920a95cb88a8",
+ "url": "https://api.github.com/repos/symfony/process/zipball/26c9fb02bf06bd6b90f661a5bd17e510810d0176",
+ "reference": "26c9fb02bf06bd6b90f661a5bd17e510810d0176",
"shasum": ""
},
"require": {
@@ -1860,7 +1860,7 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
- "time": "2017-07-03T08:04:30+00:00"
+ "time": "2017-10-01 21:00:16"
},
{
"name": "tedivm/jshrink",
@@ -1906,7 +1906,7 @@
"javascript",
"minifier"
],
- "time": "2015-07-04T07:35:09+00:00"
+ "time": "2015-07-04 07:35:09"
},
{
"name": "tubalmartin/cssmin",
@@ -1959,7 +1959,7 @@
"minify",
"yui"
],
- "time": "2017-05-16T13:45:26+00:00"
+ "time": "2017-05-16 13:45:26"
},
{
"name": "zendframework/zend-captcha",
@@ -2016,7 +2016,7 @@
"captcha",
"zf2"
],
- "time": "2017-02-23T08:09:44+00:00"
+ "time": "2017-02-23 08:09:44"
},
{
"name": "zendframework/zend-code",
@@ -2069,7 +2069,7 @@
"code",
"zf2"
],
- "time": "2016-10-24T13:23:32+00:00"
+ "time": "2016-10-24 13:23:32"
},
{
"name": "zendframework/zend-config",
@@ -2125,7 +2125,7 @@
"config",
"zf2"
],
- "time": "2016-02-04T23:01:10+00:00"
+ "time": "2016-02-04 23:01:10"
},
{
"name": "zendframework/zend-console",
@@ -2177,7 +2177,7 @@
"console",
"zf2"
],
- "time": "2016-02-09T17:15:12+00:00"
+ "time": "2016-02-09 17:15:12"
},
{
"name": "zendframework/zend-crypt",
@@ -2227,7 +2227,7 @@
"crypt",
"zf2"
],
- "time": "2016-02-03T23:46:30+00:00"
+ "time": "2016-02-03 23:46:30"
},
{
"name": "zendframework/zend-db",
@@ -2284,7 +2284,7 @@
"db",
"zf2"
],
- "time": "2016-08-09T19:28:55+00:00"
+ "time": "2016-08-09 19:28:55"
},
{
"name": "zendframework/zend-di",
@@ -2331,7 +2331,7 @@
"di",
"zf2"
],
- "time": "2016-04-25T20:58:11+00:00"
+ "time": "2016-04-25 20:58:11"
},
{
"name": "zendframework/zend-escaper",
@@ -2375,7 +2375,7 @@
"escaper",
"zf2"
],
- "time": "2016-06-30T19:48:38+00:00"
+ "time": "2016-06-30 19:48:38"
},
{
"name": "zendframework/zend-eventmanager",
@@ -2422,7 +2422,7 @@
"eventmanager",
"zf2"
],
- "time": "2016-02-18T20:49:05+00:00"
+ "time": "2016-02-18 20:49:05"
},
{
"name": "zendframework/zend-filter",
@@ -2482,7 +2482,7 @@
"filter",
"zf2"
],
- "time": "2017-05-17T20:56:17+00:00"
+ "time": "2017-05-17 20:56:17"
},
{
"name": "zendframework/zend-form",
@@ -2559,39 +2559,39 @@
"form",
"zf2"
],
- "time": "2017-05-18T14:59:53+00:00"
+ "time": "2017-05-18 14:59:53"
},
{
"name": "zendframework/zend-http",
- "version": "2.6.0",
+ "version": "2.7.0",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-http.git",
- "reference": "09f4d279f46d86be63171ff62ee0f79eca878678"
+ "reference": "78aa510c0ea64bfb2aa234f50c4f232c9531acfa"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/zendframework/zend-http/zipball/09f4d279f46d86be63171ff62ee0f79eca878678",
- "reference": "09f4d279f46d86be63171ff62ee0f79eca878678",
+ "url": "https://api.github.com/repos/zendframework/zend-http/zipball/78aa510c0ea64bfb2aa234f50c4f232c9531acfa",
+ "reference": "78aa510c0ea64bfb2aa234f50c4f232c9531acfa",
"shasum": ""
},
"require": {
- "php": "^5.5 || ^7.0",
- "zendframework/zend-loader": "^2.5",
- "zendframework/zend-stdlib": "^2.5 || ^3.0",
- "zendframework/zend-uri": "^2.5",
- "zendframework/zend-validator": "^2.5"
+ "php": "^5.6 || ^7.0",
+ "zendframework/zend-loader": "^2.5.1",
+ "zendframework/zend-stdlib": "^3.1 || ^2.7.7",
+ "zendframework/zend-uri": "^2.5.2",
+ "zendframework/zend-validator": "^2.10.1"
},
"require-dev": {
- "phpunit/phpunit": "^4.0",
+ "phpunit/phpunit": "^6.4.1 || ^5.7.15",
"zendframework/zend-coding-standard": "~1.0.0",
- "zendframework/zend-config": "^2.5"
+ "zendframework/zend-config": "^3.1 || ^2.6"
},
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "2.6-dev",
- "dev-develop": "2.7-dev"
+ "dev-master": "2.7-dev",
+ "dev-develop": "2.8-dev"
}
},
"autoload": {
@@ -2606,10 +2606,13 @@
"description": "provides an easy interface for performing Hyper-Text Transfer Protocol (HTTP) requests",
"homepage": "https://github.com/zendframework/zend-http",
"keywords": [
+ "ZendFramework",
"http",
- "zf2"
+ "http client",
+ "zend",
+ "zf"
],
- "time": "2017-01-31T14:41:02+00:00"
+ "time": "2017-10-13 12:06:24"
},
{
"name": "zendframework/zend-hydrator",
@@ -2667,7 +2670,7 @@
"hydrator",
"zf2"
],
- "time": "2016-02-18T22:38:26+00:00"
+ "time": "2016-02-18 22:38:26"
},
{
"name": "zendframework/zend-i18n",
@@ -2734,7 +2737,7 @@
"i18n",
"zf2"
],
- "time": "2017-05-17T17:00:12+00:00"
+ "time": "2017-05-17 17:00:12"
},
{
"name": "zendframework/zend-inputfilter",
@@ -2789,7 +2792,7 @@
"inputfilter",
"zf2"
],
- "time": "2017-05-18T14:20:56+00:00"
+ "time": "2017-05-18 14:20:56"
},
{
"name": "zendframework/zend-json",
@@ -2844,7 +2847,7 @@
"json",
"zf2"
],
- "time": "2016-02-04T21:20:26+00:00"
+ "time": "2016-02-04 21:20:26"
},
{
"name": "zendframework/zend-loader",
@@ -2888,7 +2891,7 @@
"loader",
"zf2"
],
- "time": "2015-06-03T14:05:47+00:00"
+ "time": "2015-06-03 14:05:47"
},
{
"name": "zendframework/zend-log",
@@ -2959,7 +2962,7 @@
"logging",
"zf2"
],
- "time": "2017-05-17T16:03:26+00:00"
+ "time": "2017-05-17 16:03:26"
},
{
"name": "zendframework/zend-math",
@@ -3009,20 +3012,20 @@
"math",
"zf2"
],
- "time": "2016-04-07T16:29:53+00:00"
+ "time": "2016-04-07 16:29:53"
},
{
"name": "zendframework/zend-modulemanager",
- "version": "2.8.0",
+ "version": "2.8.1",
"source": {
"type": "git",
"url": "https://github.com/zendframework/zend-modulemanager.git",
- "reference": "c2c5b52ad9741e0b9a9c01a0ee72ab63e5b494b9"
+ "reference": "710c13353b1ff0975777dbeb39bbf1c85e3353a3"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/zendframework/zend-modulemanager/zipball/c2c5b52ad9741e0b9a9c01a0ee72ab63e5b494b9",
- "reference": "c2c5b52ad9741e0b9a9c01a0ee72ab63e5b494b9",
+ "url": "https://api.github.com/repos/zendframework/zend-modulemanager/zipball/710c13353b1ff0975777dbeb39bbf1c85e3353a3",
+ "reference": "710c13353b1ff0975777dbeb39bbf1c85e3353a3",
"shasum": ""
},
"require": {
@@ -3067,7 +3070,7 @@
"modulemanager",
"zf2"
],
- "time": "2017-07-11T19:39:57+00:00"
+ "time": "2017-11-01 18:30:41"
},
{
"name": "zendframework/zend-mvc",
@@ -3154,7 +3157,7 @@
"mvc",
"zf2"
],
- "time": "2016-02-23T15:24:59+00:00"
+ "time": "2016-02-23 15:24:59"
},
{
"name": "zendframework/zend-serializer",
@@ -3211,7 +3214,7 @@
"serializer",
"zf2"
],
- "time": "2016-06-21T17:01:55+00:00"
+ "time": "2016-06-21 17:01:55"
},
{
"name": "zendframework/zend-server",
@@ -3257,7 +3260,7 @@
"server",
"zf2"
],
- "time": "2016-06-20T22:27:55+00:00"
+ "time": "2016-06-20 22:27:55"
},
{
"name": "zendframework/zend-servicemanager",
@@ -3309,7 +3312,7 @@
"servicemanager",
"zf2"
],
- "time": "2016-12-19T19:14:29+00:00"
+ "time": "2016-12-19 19:14:29"
},
{
"name": "zendframework/zend-session",
@@ -3375,7 +3378,7 @@
"session",
"zf2"
],
- "time": "2017-06-19T21:31:39+00:00"
+ "time": "2017-06-19 21:31:39"
},
{
"name": "zendframework/zend-soap",
@@ -3427,7 +3430,7 @@
"soap",
"zf2"
],
- "time": "2016-04-21T16:06:27+00:00"
+ "time": "2016-04-21 16:06:27"
},
{
"name": "zendframework/zend-stdlib",
@@ -3486,7 +3489,7 @@
"stdlib",
"zf2"
],
- "time": "2016-04-12T21:17:31+00:00"
+ "time": "2016-04-12 21:17:31"
},
{
"name": "zendframework/zend-text",
@@ -3533,7 +3536,7 @@
"text",
"zf2"
],
- "time": "2016-02-08T19:03:52+00:00"
+ "time": "2016-02-08 19:03:52"
},
{
"name": "zendframework/zend-uri",
@@ -3580,7 +3583,7 @@
"uri",
"zf2"
],
- "time": "2016-02-17T22:38:51+00:00"
+ "time": "2016-02-17 22:38:51"
},
{
"name": "zendframework/zend-validator",
@@ -3651,7 +3654,7 @@
"validator",
"zf2"
],
- "time": "2017-08-22T14:19:23+00:00"
+ "time": "2017-08-22 14:19:23"
},
{
"name": "zendframework/zend-view",
@@ -3738,7 +3741,7 @@
"view",
"zf2"
],
- "time": "2017-03-21T15:05:56+00:00"
+ "time": "2017-03-21 15:05:56"
}
],
"packages-dev": [
@@ -3794,7 +3797,7 @@
"constructor",
"instantiate"
],
- "time": "2015-06-14T21:17:01+00:00"
+ "time": "2015-06-14 21:17:01"
},
{
"name": "friendsofphp/php-cs-fixer",
@@ -3864,7 +3867,7 @@
}
],
"description": "A tool to automatically fix PHP code style",
- "time": "2017-03-31T12:59:38+00:00"
+ "time": "2017-03-31 12:59:38"
},
{
"name": "ircmaxell/password-compat",
@@ -3906,7 +3909,7 @@
"hashing",
"password"
],
- "time": "2014-11-20T16:49:30+00:00"
+ "time": "2014-11-20 16:49:30"
},
{
"name": "lusitanian/oauth",
@@ -3973,41 +3976,44 @@
"oauth",
"security"
],
- "time": "2016-07-12T22:15:40+00:00"
+ "time": "2016-07-12 22:15:40"
},
{
"name": "myclabs/deep-copy",
- "version": "1.6.1",
+ "version": "1.7.0",
"source": {
"type": "git",
"url": "https://github.com/myclabs/DeepCopy.git",
- "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102"
+ "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/8e6e04167378abf1ddb4d3522d8755c5fd90d102",
- "reference": "8e6e04167378abf1ddb4d3522d8755c5fd90d102",
+ "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
+ "reference": "3b8a3a99ba1f6a3952ac2747d989303cbd6b7a3e",
"shasum": ""
},
"require": {
- "php": ">=5.4.0"
+ "php": "^5.6 || ^7.0"
},
"require-dev": {
- "doctrine/collections": "1.*",
- "phpunit/phpunit": "~4.1"
+ "doctrine/collections": "^1.0",
+ "doctrine/common": "^2.6",
+ "phpunit/phpunit": "^4.1"
},
"type": "library",
"autoload": {
"psr-4": {
"DeepCopy\\": "src/DeepCopy/"
- }
+ },
+ "files": [
+ "src/DeepCopy/deep_copy.php"
+ ]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"description": "Create deep copies (clones) of your objects",
- "homepage": "https://github.com/myclabs/DeepCopy",
"keywords": [
"clone",
"copy",
@@ -4015,7 +4021,7 @@
"object",
"object graph"
],
- "time": "2017-04-12T18:52:22+00:00"
+ "time": "2017-10-19 19:58:43"
},
{
"name": "pdepend/pdepend",
@@ -4055,7 +4061,7 @@
"BSD-3-Clause"
],
"description": "Official version of pdepend to be handled with Composer",
- "time": "2017-01-19T14:23:36+00:00"
+ "time": "2017-01-19 14:23:36"
},
{
"name": "phar-io/manifest",
@@ -4110,7 +4116,7 @@
}
],
"description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)",
- "time": "2017-03-05T18:14:27+00:00"
+ "time": "2017-03-05 18:14:27"
},
{
"name": "phar-io/version",
@@ -4157,7 +4163,7 @@
}
],
"description": "Library for handling version information and constraints",
- "time": "2017-03-05T17:38:23+00:00"
+ "time": "2017-03-05 17:38:23"
},
{
"name": "phpdocumentor/reflection-common",
@@ -4211,7 +4217,7 @@
"reflection",
"static analysis"
],
- "time": "2017-09-11T18:02:19+00:00"
+ "time": "2017-09-11 18:02:19"
},
{
"name": "phpdocumentor/reflection-docblock",
@@ -4256,7 +4262,7 @@
}
],
"description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.",
- "time": "2017-08-30T18:51:59+00:00"
+ "time": "2017-08-30 18:51:59"
},
{
"name": "phpdocumentor/type-resolver",
@@ -4303,7 +4309,7 @@
"email": "me@mikevanriel.com"
}
],
- "time": "2017-07-14T14:27:02+00:00"
+ "time": "2017-07-14 14:27:02"
},
{
"name": "phpmd/phpmd",
@@ -4369,7 +4375,7 @@
"phpmd",
"pmd"
],
- "time": "2017-01-20T14:41:10+00:00"
+ "time": "2017-01-20 14:41:10"
},
{
"name": "phpspec/prophecy",
@@ -4432,20 +4438,20 @@
"spy",
"stub"
],
- "time": "2017-09-04T11:05:03+00:00"
+ "time": "2017-09-04 11:05:03"
},
{
"name": "phpunit/php-code-coverage",
- "version": "5.2.2",
+ "version": "5.2.3",
"source": {
"type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git",
- "reference": "8ed1902a57849e117b5651fc1a5c48110946c06b"
+ "reference": "8e1d2397d8adf59a3f12b2878a3aaa66d1ab189d"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/8ed1902a57849e117b5651fc1a5c48110946c06b",
- "reference": "8ed1902a57849e117b5651fc1a5c48110946c06b",
+ "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/8e1d2397d8adf59a3f12b2878a3aaa66d1ab189d",
+ "reference": "8e1d2397d8adf59a3f12b2878a3aaa66d1ab189d",
"shasum": ""
},
"require": {
@@ -4454,7 +4460,7 @@
"php": "^7.0",
"phpunit/php-file-iterator": "^1.4.2",
"phpunit/php-text-template": "^1.2.1",
- "phpunit/php-token-stream": "^1.4.11 || ^2.0",
+ "phpunit/php-token-stream": "^2.0",
"sebastian/code-unit-reverse-lookup": "^1.0.1",
"sebastian/environment": "^3.0",
"sebastian/version": "^2.0.1",
@@ -4496,7 +4502,7 @@
"testing",
"xunit"
],
- "time": "2017-08-03T12:40:43+00:00"
+ "time": "2017-11-03 13:47:33"
},
{
"name": "phpunit/php-file-iterator",
@@ -4543,7 +4549,7 @@
"filesystem",
"iterator"
],
- "time": "2016-10-03T07:40:28+00:00"
+ "time": "2016-10-03 07:40:28"
},
{
"name": "phpunit/php-text-template",
@@ -4584,7 +4590,7 @@
"keywords": [
"template"
],
- "time": "2015-06-21T13:50:34+00:00"
+ "time": "2015-06-21 13:50:34"
},
{
"name": "phpunit/php-timer",
@@ -4633,7 +4639,7 @@
"keywords": [
"timer"
],
- "time": "2017-02-26T11:10:40+00:00"
+ "time": "2017-02-26 11:10:40"
},
{
"name": "phpunit/php-token-stream",
@@ -4682,7 +4688,7 @@
"keywords": [
"tokenizer"
],
- "time": "2017-08-20T05:47:52+00:00"
+ "time": "2017-08-20 05:47:52"
},
{
"name": "phpunit/phpunit",
@@ -4766,7 +4772,7 @@
"testing",
"xunit"
],
- "time": "2017-08-03T13:59:28+00:00"
+ "time": "2017-08-03 13:59:28"
},
{
"name": "phpunit/phpunit-mock-objects",
@@ -4825,7 +4831,7 @@
"mock",
"xunit"
],
- "time": "2017-08-03T14:08:16+00:00"
+ "time": "2017-08-03 14:08:16"
},
{
"name": "sebastian/code-unit-reverse-lookup",
@@ -4870,7 +4876,7 @@
],
"description": "Looks up which function or method a line of code belongs to",
"homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/",
- "time": "2017-03-04T06:30:41+00:00"
+ "time": "2017-03-04 06:30:41"
},
{
"name": "sebastian/comparator",
@@ -4934,7 +4940,7 @@
"compare",
"equality"
],
- "time": "2017-03-03T06:26:08+00:00"
+ "time": "2017-03-03 06:26:08"
},
{
"name": "sebastian/diff",
@@ -4986,7 +4992,7 @@
"keywords": [
"diff"
],
- "time": "2017-05-22T07:24:03+00:00"
+ "time": "2017-05-22 07:24:03"
},
{
"name": "sebastian/environment",
@@ -5036,7 +5042,7 @@
"environment",
"hhvm"
],
- "time": "2017-07-01T08:51:00+00:00"
+ "time": "2017-07-01 08:51:00"
},
{
"name": "sebastian/exporter",
@@ -5103,7 +5109,7 @@
"export",
"exporter"
],
- "time": "2017-04-03T13:19:02+00:00"
+ "time": "2017-04-03 13:19:02"
},
{
"name": "sebastian/finder-facade",
@@ -5142,7 +5148,7 @@
],
"description": "FinderFacade is a convenience wrapper for Symfony's Finder component.",
"homepage": "https://github.com/sebastianbergmann/finder-facade",
- "time": "2016-02-17T07:02:23+00:00"
+ "time": "2016-02-17 07:02:23"
},
{
"name": "sebastian/global-state",
@@ -5193,7 +5199,7 @@
"keywords": [
"global state"
],
- "time": "2017-04-27T15:39:26+00:00"
+ "time": "2017-04-27 15:39:26"
},
{
"name": "sebastian/object-enumerator",
@@ -5240,7 +5246,7 @@
],
"description": "Traverses array structures and object graphs to enumerate all referenced objects",
"homepage": "https://github.com/sebastianbergmann/object-enumerator/",
- "time": "2017-08-03T12:35:26+00:00"
+ "time": "2017-08-03 12:35:26"
},
{
"name": "sebastian/object-reflector",
@@ -5285,7 +5291,7 @@
],
"description": "Allows reflection of object attributes, including inherited and non-public ones",
"homepage": "https://github.com/sebastianbergmann/object-reflector/",
- "time": "2017-03-29T09:07:27+00:00"
+ "time": "2017-03-29 09:07:27"
},
{
"name": "sebastian/phpcpd",
@@ -5336,7 +5342,7 @@
],
"description": "Copy/Paste Detector (CPD) for PHP code.",
"homepage": "https://github.com/sebastianbergmann/phpcpd",
- "time": "2016-04-17T19:32:49+00:00"
+ "time": "2016-04-17 19:32:49"
},
{
"name": "sebastian/recursion-context",
@@ -5389,7 +5395,7 @@
],
"description": "Provides functionality to recursively process PHP variables",
"homepage": "http://www.github.com/sebastianbergmann/recursion-context",
- "time": "2017-03-03T06:23:57+00:00"
+ "time": "2017-03-03 06:23:57"
},
{
"name": "sebastian/resource-operations",
@@ -5431,7 +5437,7 @@
],
"description": "Provides a list of PHP built-in functions that operate on resources",
"homepage": "https://www.github.com/sebastianbergmann/resource-operations",
- "time": "2015-07-28T20:34:47+00:00"
+ "time": "2015-07-28 20:34:47"
},
{
"name": "sebastian/version",
@@ -5474,7 +5480,7 @@
],
"description": "Library that helps with managing the version number of Git-hosted PHP projects",
"homepage": "https://github.com/sebastianbergmann/version",
- "time": "2016-10-03T07:35:21+00:00"
+ "time": "2016-10-03 07:35:21"
},
{
"name": "squizlabs/php_codesniffer",
@@ -5525,20 +5531,20 @@
"phpcs",
"standards"
],
- "time": "2017-06-14T01:23:49+00:00"
+ "time": "2017-06-14 01:23:49"
},
{
"name": "symfony/config",
- "version": "v3.3.9",
+ "version": "v3.3.10",
"source": {
"type": "git",
"url": "https://github.com/symfony/config.git",
- "reference": "f9f19a39ee178f61bb2190f51ff7c517c2159315"
+ "reference": "4ab62407bff9cd97c410a7feaef04c375aaa5cfd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/config/zipball/f9f19a39ee178f61bb2190f51ff7c517c2159315",
- "reference": "f9f19a39ee178f61bb2190f51ff7c517c2159315",
+ "url": "https://api.github.com/repos/symfony/config/zipball/4ab62407bff9cd97c410a7feaef04c375aaa5cfd",
+ "reference": "4ab62407bff9cd97c410a7feaef04c375aaa5cfd",
"shasum": ""
},
"require": {
@@ -5587,20 +5593,20 @@
],
"description": "Symfony Config Component",
"homepage": "https://symfony.com",
- "time": "2017-09-04T16:28:07+00:00"
+ "time": "2017-10-04 18:56:58"
},
{
"name": "symfony/dependency-injection",
- "version": "v3.3.9",
+ "version": "v3.3.10",
"source": {
"type": "git",
"url": "https://github.com/symfony/dependency-injection.git",
- "reference": "e593f06dd90a81c7b70ac1c49862a061b0ec06d2"
+ "reference": "8ebad929aee3ca185b05f55d9cc5521670821ad1"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/e593f06dd90a81c7b70ac1c49862a061b0ec06d2",
- "reference": "e593f06dd90a81c7b70ac1c49862a061b0ec06d2",
+ "url": "https://api.github.com/repos/symfony/dependency-injection/zipball/8ebad929aee3ca185b05f55d9cc5521670821ad1",
+ "reference": "8ebad929aee3ca185b05f55d9cc5521670821ad1",
"shasum": ""
},
"require": {
@@ -5657,20 +5663,20 @@
],
"description": "Symfony DependencyInjection Component",
"homepage": "https://symfony.com",
- "time": "2017-09-05T20:39:38+00:00"
+ "time": "2017-10-04 17:15:30"
},
{
"name": "symfony/polyfill-php54",
- "version": "v1.5.0",
+ "version": "v1.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php54.git",
- "reference": "b7763422a5334c914ef0298ed21b253d25913a6e"
+ "reference": "d7810a14b2c6c1aff415e1bb755f611b3d5327bc"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/b7763422a5334c914ef0298ed21b253d25913a6e",
- "reference": "b7763422a5334c914ef0298ed21b253d25913a6e",
+ "url": "https://api.github.com/repos/symfony/polyfill-php54/zipball/d7810a14b2c6c1aff415e1bb755f611b3d5327bc",
+ "reference": "d7810a14b2c6c1aff415e1bb755f611b3d5327bc",
"shasum": ""
},
"require": {
@@ -5679,7 +5685,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.5-dev"
+ "dev-master": "1.6-dev"
}
},
"autoload": {
@@ -5715,20 +5721,20 @@
"portable",
"shim"
],
- "time": "2017-06-14T15:44:48+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-php55",
- "version": "v1.5.0",
+ "version": "v1.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php55.git",
- "reference": "29b1381d66f16e0581aab0b9f678ccf073288f68"
+ "reference": "b64e7f0c37ecf144ecc16668936eef94e628fbfd"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/29b1381d66f16e0581aab0b9f678ccf073288f68",
- "reference": "29b1381d66f16e0581aab0b9f678ccf073288f68",
+ "url": "https://api.github.com/repos/symfony/polyfill-php55/zipball/b64e7f0c37ecf144ecc16668936eef94e628fbfd",
+ "reference": "b64e7f0c37ecf144ecc16668936eef94e628fbfd",
"shasum": ""
},
"require": {
@@ -5738,7 +5744,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.5-dev"
+ "dev-master": "1.6-dev"
}
},
"autoload": {
@@ -5771,20 +5777,20 @@
"portable",
"shim"
],
- "time": "2017-06-14T15:44:48+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-php70",
- "version": "v1.5.0",
+ "version": "v1.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php70.git",
- "reference": "b6482e68974486984f59449ecea1fbbb22ff840f"
+ "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/b6482e68974486984f59449ecea1fbbb22ff840f",
- "reference": "b6482e68974486984f59449ecea1fbbb22ff840f",
+ "url": "https://api.github.com/repos/symfony/polyfill-php70/zipball/0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff",
+ "reference": "0442b9c0596610bd24ae7b5f0a6cdbbc16d9fcff",
"shasum": ""
},
"require": {
@@ -5794,7 +5800,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.5-dev"
+ "dev-master": "1.6-dev"
}
},
"autoload": {
@@ -5830,20 +5836,20 @@
"portable",
"shim"
],
- "time": "2017-06-14T15:44:48+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-php72",
- "version": "v1.5.0",
+ "version": "v1.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-php72.git",
- "reference": "8abc9097f5001d310f0edba727469c988acc6ea7"
+ "reference": "6de4f4884b97abbbed9f0a84a95ff2ff77254254"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/8abc9097f5001d310f0edba727469c988acc6ea7",
- "reference": "8abc9097f5001d310f0edba727469c988acc6ea7",
+ "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/6de4f4884b97abbbed9f0a84a95ff2ff77254254",
+ "reference": "6de4f4884b97abbbed9f0a84a95ff2ff77254254",
"shasum": ""
},
"require": {
@@ -5852,7 +5858,7 @@
"type": "library",
"extra": {
"branch-alias": {
- "dev-master": "1.5-dev"
+ "dev-master": "1.6-dev"
}
},
"autoload": {
@@ -5885,20 +5891,20 @@
"portable",
"shim"
],
- "time": "2017-07-11T13:25:55+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-xml",
- "version": "v1.5.0",
+ "version": "v1.6.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-xml.git",
- "reference": "7d536462e554da7b05600a926303bf9b99153275"
+ "reference": "d7bcb5c3bb1832c532379df50825c08f43a64134"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/polyfill-xml/zipball/7d536462e554da7b05600a926303bf9b99153275",
- "reference": "7d536462e554da7b05600a926303bf9b99153275",
+ "url": "https://api.github.com/repos/symfony/polyfill-xml/zipball/d7bcb5c3bb1832c532379df50825c08f43a64134",
+ "reference": "d7bcb5c3bb1832c532379df50825c08f43a64134",
"shasum": ""
},
"require": {
@@ -5908,7 +5914,7 @@
"type": "metapackage",
"extra": {
"branch-alias": {
- "dev-master": "1.5-dev"
+ "dev-master": "1.6-dev"
}
},
"notification-url": "https://packagist.org/downloads/",
@@ -5933,20 +5939,20 @@
"portable",
"shim"
],
- "time": "2017-06-14T15:44:48+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/stopwatch",
- "version": "v3.3.9",
+ "version": "v3.3.10",
"source": {
"type": "git",
"url": "https://github.com/symfony/stopwatch.git",
- "reference": "9a5610a8d6a50985a7be485c0ba745c22607beeb"
+ "reference": "170edf8b3247d7b6779eb6fa7428f342702ca184"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/symfony/stopwatch/zipball/9a5610a8d6a50985a7be485c0ba745c22607beeb",
- "reference": "9a5610a8d6a50985a7be485c0ba745c22607beeb",
+ "url": "https://api.github.com/repos/symfony/stopwatch/zipball/170edf8b3247d7b6779eb6fa7428f342702ca184",
+ "reference": "170edf8b3247d7b6779eb6fa7428f342702ca184",
"shasum": ""
},
"require": {
@@ -5982,7 +5988,7 @@
],
"description": "Symfony Stopwatch Component",
"homepage": "https://symfony.com",
- "time": "2017-07-29T21:54:42+00:00"
+ "time": "2017-10-02 06:42:24"
},
{
"name": "theseer/fdomdocument",
@@ -6022,7 +6028,7 @@
],
"description": "The classes contained within this repository extend the standard DOM to use exceptions at all occasions of errors instead of PHP warnings or notices. They also add various custom methods and shortcuts for convenience and to simplify the usage of DOM.",
"homepage": "https://github.com/theseer/fDOMDocument",
- "time": "2017-06-30T11:53:12+00:00"
+ "time": "2017-06-30 11:53:12"
},
{
"name": "theseer/tokenizer",
@@ -6062,7 +6068,7 @@
}
],
"description": "A small library for converting tokenized PHP source code into XML and potentially other formats",
- "time": "2017-04-07T12:08:54+00:00"
+ "time": "2017-04-07 12:08:54"
},
{
"name": "webmozart/assert",
@@ -6112,7 +6118,7 @@
"check",
"validate"
],
- "time": "2016-11-23T20:04:58+00:00"
+ "time": "2016-11-23 20:04:58"
}
],
"aliases": [],
diff --git a/dev/tests/api-functional/testsuite/Magento/Analytics/Api/LinkProviderTest.php b/dev/tests/api-functional/testsuite/Magento/Analytics/Api/LinkProviderTest.php
new file mode 100644
index 0000000000000..6fd7551676660
--- /dev/null
+++ b/dev/tests/api-functional/testsuite/Magento/Analytics/Api/LinkProviderTest.php
@@ -0,0 +1,100 @@
+objectManager = Bootstrap::getObjectManager();
+ }
+
+ /**
+ * @magentoApiDataFixture Magento/Analytics/_files/create_link.php
+ */
+ public function testGetAll()
+ {
+ $objectManager = Bootstrap::getObjectManager();
+
+ /**
+ * @var $fileInfoManager FileInfoManager
+ */
+ $fileInfoManager = $objectManager->create(FileInfoManager::class);
+
+ $storeManager = $objectManager->create(StoreManagerInterface::class);
+
+ $fileInfo = $fileInfoManager->load();
+
+ $serviceInfo = [
+ 'rest' => [
+ 'resourcePath' => static::RESOURCE_PATH,
+ 'httpMethod' => Request::HTTP_METHOD_GET,
+ ],
+ 'soap' => [
+ 'service' => static::SERVICE_NAME,
+ 'serviceVersion' => static::SERVICE_VERSION,
+ 'operation' => static::SERVICE_NAME . 'Get',
+ ],
+ ];
+ if (!$this->isTestBaseUrlSecure()) {
+ try {
+ $this->_webApiCall($serviceInfo);
+ } catch (\Exception $e) {
+ $this->assertContains(
+ 'Operation allowed only in HTTPS',
+ $e->getMessage()
+ );
+ return;
+ }
+ $this->fail("Exception 'Operation allowed only in HTTPS' should be thrown");
+ } else {
+ $response = $this->_webApiCall($serviceInfo);
+ $this->assertEquals(2, count($response));
+ $this->assertEquals(
+ base64_encode($fileInfo->getInitializationVector()),
+ $response['initialization_vector']
+ );
+ $this->assertEquals(
+ $storeManager->getStore()->getBaseUrl(
+ UrlInterface::URL_TYPE_MEDIA
+ ) . $fileInfo->getPath(),
+ $response['url']
+ );
+ }
+ }
+
+ /**
+ * @return bool
+ */
+ private function isTestBaseUrlSecure()
+ {
+ return strpos('https://', TESTS_BASE_URL) !== false;
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Block/Adminhtml/Dashboard/AdvancedReporting/ReportsSectionBlock.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Block/Adminhtml/Dashboard/AdvancedReporting/ReportsSectionBlock.php
new file mode 100644
index 0000000000000..1c7edaaac86f0
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Block/Adminhtml/Dashboard/AdvancedReporting/ReportsSectionBlock.php
@@ -0,0 +1,31 @@
+_rootElement->find($this->advancedReportingButton)->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Block/System/Config/AnalyticsForm.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Block/System/Config/AnalyticsForm.php
new file mode 100644
index 0000000000000..07b62a9518ae4
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Block/System/Config/AnalyticsForm.php
@@ -0,0 +1,158 @@
+ td.value > p > span';
+
+ /**
+ * @var string
+ */
+ private $submitButton = '#save';
+
+ /**
+ * @var string
+ */
+ private $analyticsVertical = '#analytics_general_vertical';
+
+ /**
+ * @var string
+ */
+ private $analyticsVerticalScope = '#row_analytics_general_vertical span[data-config-scope="[WEBSITE]"]';
+
+ /**
+ * @var string
+ */
+ private $sendDataTimeHh = '#row_analytics_general_collection_time > td.value > select:nth-child(2)';
+
+ /**
+ * @var string
+ */
+ private $sendDataTimeMm = '#row_analytics_general_collection_time > td.value > select:nth-child(3)';
+
+ /**
+ * @var string
+ */
+ private $sendDataTimeSs = '#row_analytics_general_collection_time > td.value > select:nth-child(4)';
+
+ /**
+ * @var string
+ */
+ private $timeZone =
+ '#row_analytics_general_collection_time > td.value > p > span';
+
+ /**
+ * @return array|string
+ */
+ public function isAnalyticsEnabled()
+ {
+ return $this->_rootElement->find($this->analyticsStatus, Locator::SELECTOR_CSS)->getValue();
+ }
+
+ /**
+ * @param string $state
+ * @return array|string
+ */
+ public function analyticsToggle($state = 'Enable')
+ {
+ return $this->_rootElement->find($this->analyticsStatus, Locator::SELECTOR_CSS, 'select')->setValue($state);
+ }
+
+ /**
+ * @return array|string
+ */
+ public function saveConfig()
+ {
+ return $this->browser->find($this->submitButton)->click();
+ }
+
+ /**
+ * @return array|string
+ */
+ public function getAnalyticsStatus()
+ {
+ return $this->_rootElement->find($this->analyticsStatusLabel, Locator::SELECTOR_CSS)->getText();
+ }
+
+ /**
+ * @param string $vertical
+ * @return array|string
+ */
+ public function setAnalyticsVertical($vertical)
+ {
+ return $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS, 'select')
+ ->setValue($vertical);
+ }
+
+ /**
+ * @param string $hh
+ * @param string $mm
+ * @return $this
+ */
+ public function setTimeOfDayToSendData($hh, $mm)
+ {
+ $this->_rootElement->find($this->sendDataTimeHh, Locator::SELECTOR_CSS, 'select')
+ ->setValue($hh);
+ $this->_rootElement->find($this->sendDataTimeMm, Locator::SELECTOR_CSS, 'select')
+ ->setValue($mm);
+ return $this;
+ }
+
+ /**
+ * @return string
+ */
+ public function getTimeOfDayToSendDate()
+ {
+ $hh = $this->_rootElement->find($this->sendDataTimeHh, Locator::SELECTOR_CSS, 'select')
+ ->getValue();
+ $mm = $this->_rootElement->find($this->sendDataTimeMm, Locator::SELECTOR_CSS, 'select')
+ ->getValue();
+ $ss = $this->_rootElement->find($this->sendDataTimeSs, Locator::SELECTOR_CSS, 'select')
+ ->getValue();
+ return sprintf('%s, %s, %s', $hh, $mm, $ss);
+ }
+
+ /**
+ * @return mixed
+ */
+ public function getTimeZone()
+ {
+ return $this->_rootElement->find($this->timeZone, Locator::SELECTOR_CSS)
+ ->getText();
+ }
+
+ /**
+ * @return array|string
+ */
+ public function getAnalyticsVertical()
+ {
+ return $this->_rootElement->find($this->analyticsVertical, Locator::SELECTOR_CSS)->getValue();
+ }
+
+ /**
+ * @return array|string
+ */
+ public function getAnalyticsVerticalScope()
+ {
+ return $this->_rootElement->find($this->analyticsVerticalScope, Locator::SELECTOR_CSS)->isVisible();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingPage.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingPage.php
new file mode 100644
index 0000000000000..de379aea85fa7
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingPage.php
@@ -0,0 +1,53 @@
+browser = $browser;
+ $this->browser->selectWindow();
+ \PHPUnit_Framework_Assert::assertTrue(
+ $this->browser->waitUntil(
+ function () use ($advancedReportingLink) {
+ return ($this->browser->getUrl() === $advancedReportingLink) ? true : null;
+ }
+ ),
+ 'Advanced Reporting Sign Up page was not opened by link.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Advanced Reporting Sign Up page is opened by link';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingSectionInvisible.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingSectionInvisible.php
new file mode 100644
index 0000000000000..d154ee275710a
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingSectionInvisible.php
@@ -0,0 +1,40 @@
+open();
+ \PHPUnit_Framework_Assert::assertFalse(
+ in_array('Advanced Reporting', $configEdit->getTabs()->getSubTabsNames('General')),
+ 'Advanced Reporting section is visible.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Advanced Reporting section is invisible.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingSectionVisible.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingSectionVisible.php
new file mode 100644
index 0000000000000..18ea93fee1ea3
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertAdvancedReportingSectionVisible.php
@@ -0,0 +1,40 @@
+open();
+ \PHPUnit_Framework_Assert::assertTrue(
+ in_array('Advanced Reporting', $configEdit->getTabs()->getSubTabsNames('General')),
+ 'Advanced Reporting section is not visible.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Advanced Reporting section is visible.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertBIEssentialsLink.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertBIEssentialsLink.php
new file mode 100644
index 0000000000000..010d9c446819d
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertBIEssentialsLink.php
@@ -0,0 +1,87 @@
+browser = $browser;
+ $count = 0;
+ $isVisible = false;
+ do {
+ try {
+ $this->browser->selectWindow();
+ $isVisible = $this->browser->waitUntil(function () use ($businessIntelligenceLink) {
+ return ($this->browser->getUrl() === $businessIntelligenceLink) ?: null;
+ });
+ break;
+ } catch (\Throwable $e) {
+ $dashboard->open();
+ $dashboard->getMenuBlock()->navigate($menuItem, $waitMenuItemNotVisible);
+ $count++;
+ }
+ } while ($count < self::MAX_TRY_COUNT);
+
+ \PHPUnit_Framework_Assert::assertTrue(
+ $isVisible,
+ "BI Essentials Sign Up page was not opened by link.\n
+ Actual link is '{$this->browser->getUrl()}'\n
+ Expected link is '$businessIntelligenceLink'"
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'BI Essentials Sign Up page is opened by link';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsDisabled.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsDisabled.php
new file mode 100644
index 0000000000000..0f65835a32aa7
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsDisabled.php
@@ -0,0 +1,48 @@
+run();
+
+ \PHPUnit_Framework_Assert::assertFalse(
+ (bool)$configAnalytics->getAnalyticsForm()->isAnalyticsEnabled(),
+ 'Magento Advanced Reporting service is not disabled.'
+ );
+ \PHPUnit_Framework_Assert::assertEquals(
+ $configAnalytics->getAnalyticsForm()->getAnalyticsStatus(),
+ 'Subscription status: Disabled',
+ 'Magento Advanced Reporting service subscription status is not disabled.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Magento Advanced Reporting service is disabled and has Disabled status.';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsEnabled.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsEnabled.php
new file mode 100644
index 0000000000000..8fd04e06b14bb
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsEnabled.php
@@ -0,0 +1,49 @@
+run();
+
+ \PHPUnit_Framework_Assert::assertTrue(
+ (bool)$configAnalytics->getAnalyticsForm()->isAnalyticsEnabled(),
+ 'Magento Advanced Reporting service is not enabled.'
+ );
+
+ \PHPUnit_Framework_Assert::assertEquals(
+ $configAnalytics->getAnalyticsForm()->getAnalyticsStatus(),
+ 'Subscription status: Pending',
+ 'Magento Advanced Reporting service subscription status is not pending.'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Magento Advanced Reporting service is enabled and has Pending status';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsIndustryScope.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsIndustryScope.php
new file mode 100644
index 0000000000000..bb208dbb379c8
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsIndustryScope.php
@@ -0,0 +1,39 @@
+getAnalyticsForm()->getAnalyticsVerticalScope(),
+ 'Magento Advanced Reporting industry scope is not website'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Magento Advanced Reporting industry scope is website';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsSendingTimeAndZone.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsSendingTimeAndZone.php
new file mode 100644
index 0000000000000..1de9405e61f21
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertConfigAnalyticsSendingTimeAndZone.php
@@ -0,0 +1,52 @@
+run();
+
+ \PHPUnit_Framework_Assert::assertEquals(
+ 'Eastern European Standard Time (Europe/Kiev)',
+ $configAnalytics->getAnalyticsForm()->getTimeZone()
+ );
+
+ \PHPUnit_Framework_Assert::assertEquals(
+ sprintf('%s, %s, 00', $hh, $mm),
+ $configAnalytics->getAnalyticsForm()->getTimeOfDayToSendDate()
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return 'Time and TimeZone are correct!';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertEmptyIndustryCanNotBeSaved.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertEmptyIndustryCanNotBeSaved.php
new file mode 100644
index 0000000000000..5e86c13b8bbae
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertEmptyIndustryCanNotBeSaved.php
@@ -0,0 +1,42 @@
+getMessages()->getErrorMessage(),
+ 'There is no error message when saving empty industry in configuration'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return
+ 'Empty Magento Advanced Reporting industry can not be saved';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertIndustryIsSet.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertIndustryIsSet.php
new file mode 100644
index 0000000000000..635c4b35324ed
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Constraint/AssertIndustryIsSet.php
@@ -0,0 +1,42 @@
+getAnalyticsForm()->getAnalyticsVertical(),
+ $industry . 'industry is not selected'
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return
+ 'Proper Magento Advanced Reporting industry is selected';
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Page/Adminhtml/ConfigAnalytics.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/Page/Adminhtml/ConfigAnalytics.xml
new file mode 100644
index 0000000000000..d4a96e588261f
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Page/Adminhtml/ConfigAnalytics.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Page/Adminhtml/Dashboard.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/Page/Adminhtml/Dashboard.xml
new file mode 100644
index 0000000000000..8c8e75c03d24d
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Page/Adminhtml/Dashboard.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/DefaultTimeZone.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/DefaultTimeZone.xml
new file mode 100644
index 0000000000000..80d142f8abd60
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/DefaultTimeZone.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ - 0
+ - Timezone
+ - Europe/Kiev
+
+
+ - 0
+ - Time of day to send data
+ - 01,00,00
+
+
+
+
+ - 0
+ - Timezone
+ - UTC
+
+
+ - 0
+ - Time of day to send data
+ - 02,00,00
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/Integration.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/Integration.xml
new file mode 100644
index 0000000000000..0b4f80512f197
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/Integration.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+ - Analytics
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/Role.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/Role.xml
new file mode 100644
index 0000000000000..77cc8b5fac038
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/Role.xml
@@ -0,0 +1,26 @@
+
+
+
+
+
+ RoleName%isolation%
+ Custom
+ %current_password%
+
+ - Magento_Backend::dashboard
+ - Magento_Backend::stores
+ - Magento_Config::config
+ - Magento_Config::config_general
+ - Magento_Backend::system
+ - Magento_Backend::system_other_settings
+ - Magento_AdminNotification::adminnotification
+ - Magento_AdminNotification::show_list
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/User.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/User.xml
new file mode 100644
index 0000000000000..13bbb4d1306c5
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/Repository/User.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ AdminUser%isolation%
+ FirstName%isolation%
+ LastName%isolation%
+ email%isolation%@example.com
+ 123123q
+ 123123q
+
+ - role::role_without_subscription_permissions
+
+ %current_password%
+ Active
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/AdvancedReportingButtonTest.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/AdvancedReportingButtonTest.php
new file mode 100644
index 0000000000000..970ce59ceb5bf
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/AdvancedReportingButtonTest.php
@@ -0,0 +1,36 @@
+open();
+ $dashboard->getReportsSectionBlock()->click();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/AdvancedReportingButtonTest.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/AdvancedReportingButtonTest.xml
new file mode 100644
index 0000000000000..a975d19ef8879
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/AdvancedReportingButtonTest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ https://advancedreporting.rjmetrics.com/report
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/CustomAclPermissionTest.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/CustomAclPermissionTest.xml
new file mode 100644
index 0000000000000..a7b00bac17d25
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/CustomAclPermissionTest.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ custom_admin_with_role_without_subscription_permissions
+
+
+
+ custom_admin_with_default_role
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/EnableDisableTest.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/EnableDisableTest.php
new file mode 100644
index 0000000000000..b52fa92ad6743
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/EnableDisableTest.php
@@ -0,0 +1,42 @@
+Configuration>General>Advanced Reporting->General
+ * 3. Set Option "Advanced Reporting Service"
+ * 4. Click "Save Config"
+ * 5. Perform assertions
+ *
+ * @ZephyrId MAGETWO-66465
+ */
+class EnableDisableTest extends Injectable
+{
+ /* tags */
+ const MVP = 'no';
+ const SEVERITY = 'S1';
+ /* end tags */
+
+ /**
+ * @param ConfigAnalytics $configAnalytics
+ * @param string $vertical
+ * @param string $state
+ * @return void
+ */
+ public function test(ConfigAnalytics $configAnalytics, $vertical, $state)
+ {
+ $configAnalytics->open();
+ $configAnalytics->getAnalyticsForm()->analyticsToggle($state);
+ $configAnalytics->getAnalyticsForm()->setAnalyticsVertical($vertical);
+ $configAnalytics->getAnalyticsForm()->saveConfig();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/EnableDisableTest.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/EnableDisableTest.xml
new file mode 100644
index 0000000000000..fdc92ed814a90
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/EnableDisableTest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ Apps and Games
+ Disable
+
+
+
+ Apps and Games
+ Enable
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/InstallTest.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/InstallTest.xml
new file mode 100644
index 0000000000000..28f861fce46d1
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/InstallTest.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+ severity:S1
+
+
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/NavigateMenuTest.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/NavigateMenuTest.xml
new file mode 100644
index 0000000000000..9c19f80e91d39
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/NavigateMenuTest.xml
@@ -0,0 +1,23 @@
+
+
+
+
+
+ Reports > BI Essentials
+ false
+ https://dashboard.rjmetrics.com/v2/magento/signup
+
+
+
+ Reports > Advanced Reporting
+ false
+ https://advancedreporting.rjmetrics.com/report
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetIndustryTest.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetIndustryTest.php
new file mode 100644
index 0000000000000..8b76df048b9a4
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetIndustryTest.php
@@ -0,0 +1,40 @@
+open();
+ $configAnalytics->getAnalyticsForm()->setAnalyticsVertical($industry);
+ $configAnalytics->getAnalyticsForm()->saveConfig();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetIndustryTest.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetIndustryTest.xml
new file mode 100644
index 0000000000000..3a04420ca9d64
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetIndustryTest.xml
@@ -0,0 +1,21 @@
+
+
+
+
+
+ Apps and Games
+
+
+
+
+ --Please Select--
+ Please select a vertical.
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetTimeToSendDataTest.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetTimeToSendDataTest.php
new file mode 100644
index 0000000000000..e05804c2bfcfb
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetTimeToSendDataTest.php
@@ -0,0 +1,75 @@
+Configuration>General>Advanced Reporting->General
+ * 3. Set Option "Time of day to send data"
+ * 4. Click "Save Config"
+ * 5. Perform assertions
+ *
+ * @ZephyrId MAGETWO-66464
+ */
+class SetTimeToSendDataTest extends Injectable
+{
+ /* tags */
+ const MVP = 'no';
+ const SEVERITY = 'S1';
+ /* end tags */
+
+ /**
+ * @var array
+ */
+ private $configData;
+
+ /**
+ * @param ConfigAnalytics $configAnalytics
+ * @param TestStepFactory $testStepFactory
+ * @param string $hh
+ * @param string $mm
+ * @param string $vertical
+ * @param string $configData
+ * @return void
+ */
+ public function test(
+ ConfigAnalytics $configAnalytics,
+ TestStepFactory $testStepFactory,
+ $hh,
+ $mm,
+ $vertical,
+ $configData
+ ) {
+ $this->configData = $configData;
+ $testStepFactory->create(
+ \Magento\Config\Test\TestStep\SetupConfigurationStep::class,
+ ['configData' => $this->configData]
+ )->run();
+
+ $configAnalytics->open();
+ $configAnalytics->getAnalyticsForm()->setAnalyticsVertical($vertical);
+ $configAnalytics->getAnalyticsForm()->setTimeOfDayToSendData($hh, $mm);
+ $configAnalytics->getAnalyticsForm()->saveConfig();
+ }
+
+ /**
+ * Clean data after running test.
+ *
+ * @return void
+ */
+ public function tearDown()
+ {
+ $this->objectManager->create(
+ \Magento\Config\Test\TestStep\SetupConfigurationStep::class,
+ ['configData' => $this->configData, 'rollback' => true]
+ )->run();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetTimeToSendDataTest.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetTimeToSendDataTest.xml
new file mode 100644
index 0000000000000..21cc1f732c1f8
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/SetTimeToSendDataTest.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+ Apps and Games
+ 11
+ 11
+ change_default_timezone
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/TestStep/OpenAnalyticsConfigStep.php b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestStep/OpenAnalyticsConfigStep.php
new file mode 100644
index 0000000000000..1f0a8ff4804a3
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestStep/OpenAnalyticsConfigStep.php
@@ -0,0 +1,54 @@
+Configuration->General->Analytics->General menu.
+ */
+class OpenAnalyticsConfigStep implements TestStepInterface
+{
+ /**
+ * Dashboard page.
+ *
+ * @var Dashboard
+ */
+ private $dashboard;
+
+ /**
+ * System Config page.
+ *
+ * @var SystemConfigEdit
+ */
+ private $systemConfigPage;
+
+ /**
+ * @param Dashboard $dashboard
+ * @param SystemConfigEdit $systemConfigPage
+ */
+ public function __construct(Dashboard $dashboard, SystemConfigEdit $systemConfigPage)
+ {
+ $this->dashboard = $dashboard;
+ $this->systemConfigPage = $systemConfigPage;
+ }
+
+ /**
+ * Navigate to Stores->Configuration->General->Analytics->General menu.
+ *
+ * @return void
+ */
+ public function run()
+ {
+ $this->dashboard->open();
+ $this->dashboard->getMenuBlock()->navigate('Stores > Configuration');
+ $this->systemConfigPage->getForm()->getGroup('analytics', 'general');
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/Analytics/Test/etc/di.xml b/dev/tests/functional/tests/app/Magento/Analytics/Test/etc/di.xml
new file mode 100644
index 0000000000000..ac51a3e2b6dd8
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/etc/di.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+ S1
+
+
+
+
+ S1
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Block/Adminhtml/Dashboard/ReleaseNotification/ReleaseNotificationBlock.php b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Block/Adminhtml/Dashboard/ReleaseNotification/ReleaseNotificationBlock.php
new file mode 100644
index 0000000000000..e090d66e06a90
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Block/Adminhtml/Dashboard/ReleaseNotification/ReleaseNotificationBlock.php
@@ -0,0 +1,28 @@
+waitModalAnimationFinished();
+ return parent::isVisible() && $this->_rootElement->find($this->releaseNotificationText)->isVisible();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertLoginAgainAfterFlushCacheReleaseNotificationPopupExist.php b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertLoginAgainAfterFlushCacheReleaseNotificationPopupExist.php
new file mode 100644
index 0000000000000..798c17cd1d608
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertLoginAgainAfterFlushCacheReleaseNotificationPopupExist.php
@@ -0,0 +1,57 @@
+open();
+ $adminCache->getActionsBlock()->flushMagentoCache();
+ $adminCache->getMessagesBlock()->waitSuccessMessage();
+
+ // Log out
+ $dashboard->getAdminPanelHeader()->logOut();
+
+ // Log in again
+ $this->objectManager->create(
+ \Magento\User\Test\TestStep\LoginUserOnBackendStep::class,
+ ['user' => $user]
+ )->run();
+
+ \PHPUnit_Framework_Assert::assertTrue(
+ $dashboard->getReleaseNotificationBlock()->isVisible(),
+ "Release Notification Popup is absent on dashboard."
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return "Release Notification Popup is visible on dashboard.";
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertLoginAgainReleaseNotificationPopupNotExist.php b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertLoginAgainReleaseNotificationPopupNotExist.php
new file mode 100644
index 0000000000000..2bf6453c43799
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertLoginAgainReleaseNotificationPopupNotExist.php
@@ -0,0 +1,49 @@
+objectManager->create(
+ \Magento\User\Test\TestStep\LogoutUserOnBackendStep::class
+ )->run();
+
+ $this->objectManager->create(
+ \Magento\User\Test\TestStep\LoginUserOnBackendStep::class,
+ ['user' => $user]
+ )->run();
+
+ \PHPUnit_Framework_Assert::assertFalse(
+ $dashboard->getReleaseNotificationBlock()->isVisible(),
+ "Release Notification Popup is visible on dashboard."
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return "Release Notification Popup is absent on dashboard.";
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertReleaseNotificationPopupExist.php b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertReleaseNotificationPopupExist.php
new file mode 100644
index 0000000000000..9882d5e19842a
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Constraint/AssertReleaseNotificationPopupExist.php
@@ -0,0 +1,39 @@
+getReleaseNotificationBlock()->isVisible(),
+ "Release Notification Popup is absent on dashboard."
+ );
+ }
+
+ /**
+ * Returns a string representation of the object.
+ *
+ * @return string
+ */
+ public function toString()
+ {
+ return "Release Notification Popup is visible on dashboard.";
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Page/Adminhtml/Dashboard.xml b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Page/Adminhtml/Dashboard.xml
new file mode 100644
index 0000000000000..5fc0122135a30
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/Page/Adminhtml/Dashboard.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/TestCase/NotificationTest.php b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/TestCase/NotificationTest.php
new file mode 100644
index 0000000000000..b1478e1ed223a
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/TestCase/NotificationTest.php
@@ -0,0 +1,37 @@
+executeScenario();
+ }
+}
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/TestCase/NotificationTest.xml b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/TestCase/NotificationTest.xml
new file mode 100644
index 0000000000000..d7ba91e2c958d
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/TestCase/NotificationTest.xml
@@ -0,0 +1,22 @@
+
+
+
+
+
+ custom_admin_with_role_without_subscription_permissions
+
+
+
+
+ custom_admin_with_default_role
+
+
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/etc/testcase.xml b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/etc/testcase.xml
new file mode 100644
index 0000000000000..4161d1432b7ea
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/ReleaseNotification/Test/etc/testcase.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
diff --git a/dev/tests/functional/tests/app/Magento/Search/Test/Constraint/AssertSynonymRestrictedAccess.php b/dev/tests/functional/tests/app/Magento/Search/Test/Constraint/AssertSynonymRestrictedAccess.php
index a61c1fc06ba3e..26de8e0c76923 100644
--- a/dev/tests/functional/tests/app/Magento/Search/Test/Constraint/AssertSynonymRestrictedAccess.php
+++ b/dev/tests/functional/tests/app/Magento/Search/Test/Constraint/AssertSynonymRestrictedAccess.php
@@ -18,7 +18,7 @@ class AssertSynonymRestrictedAccess extends AbstractConstraint
/**
* Access denied text.
*/
- const ACCESS_DENIED_TEXT = 'Access denied';
+ const ACCESS_DENIED_TEXT = 'Sorry, you need permissions to view this content.';
/**
* Assert that access to synonym group index page is restricted.
diff --git a/dev/tests/functional/tests/app/Magento/Setup/Test/TestCase/UpgradeSystemTest.php b/dev/tests/functional/tests/app/Magento/Setup/Test/TestCase/UpgradeSystemTest.php
index 04ac3eee83245..53c36e0a1e1b0 100644
--- a/dev/tests/functional/tests/app/Magento/Setup/Test/TestCase/UpgradeSystemTest.php
+++ b/dev/tests/functional/tests/app/Magento/Setup/Test/TestCase/UpgradeSystemTest.php
@@ -31,18 +31,23 @@ class UpgradeSystemTest extends Injectable
protected $adminDashboard;
/**
- * Injection data.
- *
+ * @var \Magento\Mtf\Util\Iterator\ApplicationState
+ */
+ private $applicationStateIterator;
+
+ /**
* @param Dashboard $adminDashboard
* @param SetupWizard $setupWizard
- * @return void
+ * @param \Magento\Mtf\Util\Iterator\ApplicationState $applicationStateIterator
*/
public function __inject(
Dashboard $adminDashboard,
- SetupWizard $setupWizard
+ SetupWizard $setupWizard,
+ \Magento\Mtf\Util\Iterator\ApplicationState $applicationStateIterator
) {
$this->adminDashboard = $adminDashboard;
$this->setupWizard = $setupWizard;
+ $this->applicationStateIterator = $applicationStateIterator;
}
/**
diff --git a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleRestrictedAccess.php b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleRestrictedAccess.php
index 558c1f224a1ee..138d4e8104581 100644
--- a/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleRestrictedAccess.php
+++ b/dev/tests/functional/tests/app/Magento/User/Test/Constraint/AssertUserRoleRestrictedAccess.php
@@ -16,7 +16,7 @@
*/
class AssertUserRoleRestrictedAccess extends AbstractConstraint
{
- const DENIED_ACCESS = 'Access denied';
+ const DENIED_ACCESS = 'Sorry, you need permissions to view this content.';
/**
* Asserts that user has only related permissions.
diff --git a/dev/tests/integration/testsuite/Magento/Analytics/Model/Connector/Http/ReSignUpResponseResolverTest.php b/dev/tests/integration/testsuite/Magento/Analytics/Model/Connector/Http/ReSignUpResponseResolverTest.php
new file mode 100644
index 0000000000000..91f2455c61d87
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Analytics/Model/Connector/Http/ReSignUpResponseResolverTest.php
@@ -0,0 +1,177 @@
+otpResponseResolver = $objectManager->get(
+ 'OtpResponseResolver'
+ );
+ $this->updateResponseResolver = $objectManager->get(
+ 'UpdateResponseResolver'
+ );
+ $this->notifyDataChangedResponseResolver = $objectManager->get(
+ 'NotifyDataChangedResponseResolver'
+ );
+ $this->converter = $objectManager->get(ConverterInterface::class);
+ $this->flagManager = $objectManager->get(FlagManager::class);
+ }
+
+ /**
+ * @magentoDataFixture Magento/Analytics/_files/enabled_subscription_with_invalid_token.php
+ * @magentoDbIsolation enabled
+ */
+ public function testReSignUpOnOtp()
+ {
+ $body = $this->converter->toBody(['test' => '42']);
+ $retryResponse = new \Zend_Http_Response(401, [$this->converter->getContentTypeHeader()], $body);
+ $this->otpResponseResolver->getResult($retryResponse);
+ $this->assertCronWasSet();
+ }
+
+ /**
+ * @magentoDataFixture Magento/Analytics/_files/enabled_subscription_with_invalid_token.php
+ * @magentoDbIsolation enabled
+ */
+ public function testReSignOnOtpWasNotCalled()
+ {
+ $body = $this->converter->toBody(['test' => '42']);
+ $successResponse = new \Zend_Http_Response(201, [$this->converter->getContentTypeHeader()], $body);
+ $this->otpResponseResolver->getResult($successResponse);
+ $this->assertCronWasNotSet();
+ }
+
+ /**
+ * @magentoDataFixture Magento/Analytics/_files/enabled_subscription_with_invalid_token.php
+ * @magentoDbIsolation enabled
+ */
+ public function testReSignUpOnUpdateWasCalled()
+ {
+ $body = $this->converter->toBody(['test' => '42']);
+ $retryResponse = new \Zend_Http_Response(401, [$this->converter->getContentTypeHeader()], $body);
+ $this->updateResponseResolver->getResult($retryResponse);
+ $this->assertCronWasSet();
+ }
+
+ /**
+ * @magentoDataFixture Magento/Analytics/_files/enabled_subscription_with_invalid_token.php
+ * @magentoDbIsolation enabled
+ */
+ public function testReSignUpOnUpdateWasNotCalled()
+ {
+ $body = $this->converter->toBody(['test' => '42']);
+ $successResponse = new \Zend_Http_Response(201, [$this->converter->getContentTypeHeader()], $body);
+ $this->updateResponseResolver->getResult($successResponse);
+ $this->assertCronWasNotSet();
+ }
+
+ /**
+ * @magentoDataFixture Magento/Analytics/_files/enabled_subscription_with_invalid_token.php
+ * @magentoDbIsolation enabled
+ */
+ public function testReSignUpOnNotifyDataChangedWasNotCalledWhenSubscriptionUpdateIsRunning()
+ {
+ $this->flagManager
+ ->saveFlag(
+ SubscriptionUpdateHandler::PREVIOUS_BASE_URL_FLAG_CODE,
+ 'https://previous.example.com/'
+ );
+ $body = $this->converter->toBody(['test' => '42']);
+ $retryResponse = new \Zend_Http_Response(401, [$this->converter->getContentTypeHeader()], $body);
+ $this->notifyDataChangedResponseResolver->getResult($retryResponse);
+ $this->assertCronWasNotSet();
+ }
+
+ /**
+ * @return string|null
+ */
+ private function getSubscribeSchedule()
+ {
+ $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
+ /**
+ * @var $scopeConfig ScopeConfigInterface
+ */
+ $scopeConfig = $objectManager->get(ScopeConfigInterface::class);
+
+ return $scopeConfig->getValue(
+ SubscriptionHandler::CRON_STRING_PATH,
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT,
+ 0
+ );
+ }
+
+ /**
+ * @return int|null
+ */
+ private function getAttemptFlag()
+ {
+ $objectManager = Bootstrap::getObjectManager();
+ /**
+ * @var $flagManager FlagManager
+ */
+ $flagManager = $objectManager->get(FlagManager::class);
+
+ return $flagManager->getFlagData(SubscriptionHandler::ATTEMPTS_REVERSE_COUNTER_FLAG_CODE);
+ }
+
+ /**
+ * @return void
+ */
+ private function assertCronWasSet()
+ {
+ $this->assertEquals('0 * * * *', $this->getSubscribeSchedule());
+ $this->assertGreaterThan(1, $this->getAttemptFlag());
+ }
+
+ /**
+ * @return void
+ */
+ private function assertCronWasNotSet()
+ {
+ $this->assertNull($this->getSubscribeSchedule());
+ $this->assertNull($this->getAttemptFlag());
+ }
+}
diff --git a/dev/tests/integration/testsuite/Magento/Analytics/Model/Plugin/BaseUrlConfigPluginTest.php b/dev/tests/integration/testsuite/Magento/Analytics/Model/Plugin/BaseUrlConfigPluginTest.php
new file mode 100644
index 0000000000000..b8933cb5ed3d2
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Analytics/Model/Plugin/BaseUrlConfigPluginTest.php
@@ -0,0 +1,207 @@
+objectManager = Bootstrap::getObjectManager();
+ $this->preparedValueFactory = $this->objectManager->get(PreparedValueFactory::class);
+ $this->configValueResourceModel = $this->objectManager->get(ConfigData::class);
+ $this->scopeConfig = $this->objectManager->get(ScopeConfigInterface::class);
+ $this->flagManager = $this->objectManager->get(FlagManager::class);
+ }
+
+ /**
+ * @magentoDbIsolation enabled
+ */
+ public function testAfterSaveNotSecureUrl()
+ {
+ $this->saveConfigValue(
+ Store::XML_PATH_UNSECURE_BASE_URL,
+ 'http://store.com/',
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT
+ );
+ $this->assertCronWasNotSet();
+ }
+
+ /**
+ * @magentoDbIsolation enabled
+ */
+ public function testAfterSaveSecureUrlNotInDefaultScope()
+ {
+ $this->saveConfigValue(
+ Store::XML_PATH_SECURE_BASE_URL,
+ 'https://store.com/',
+ ScopeInterface::SCOPE_STORES
+ );
+ $this->assertCronWasNotSet();
+ }
+
+ /**
+ * @magentoDbIsolation enabled
+ * @magentoAdminConfigFixture web/secure/base_url https://previous.example.com/
+ */
+ public function testAfterSaveSecureUrlInDefaultScopeOnDoesNotRegisteredInstance()
+ {
+ $this->saveConfigValue(
+ Store::XML_PATH_SECURE_BASE_URL,
+ 'https://store.com/',
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT
+ );
+ $this->assertCronWasNotSet();
+ }
+
+ /**
+ * @magentoDbIsolation enabled
+ * @magentoAdminConfigFixture web/secure/base_url https://previous.example.com/
+ * @magentoAdminConfigFixture analytics/general/token MBI_token
+ */
+ public function testAfterSaveSecureUrlInDefaultScopeOnRegisteredInstance()
+ {
+ $this->saveConfigValue(
+ Store::XML_PATH_SECURE_BASE_URL,
+ 'https://store.com/',
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT
+ );
+ $this->assertCronWasSet();
+ }
+
+ /**
+ * @magentoDbIsolation enabled
+ * @magentoAdminConfigFixture web/secure/base_url https://previous.example.com/
+ * @magentoAdminConfigFixture analytics/general/token MBI_token
+ */
+ public function testAfterSaveMultipleBaseUrlChanges()
+ {
+ $this->saveConfigValue(
+ Store::XML_PATH_SECURE_BASE_URL,
+ 'https://store.com/',
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT
+ );
+
+ $this->saveConfigValue(
+ Store::XML_PATH_SECURE_BASE_URL,
+ 'https://store10.com/',
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT
+ );
+ $this->assertCronWasSet();
+ }
+
+ /**
+ * @param string $path The configuration path in format section/group/field_name
+ * @param string $value The configuration value
+ * @param string $scope The configuration scope (default, website, or store)
+ * @return void
+ */
+ private function saveConfigValue(string $path, string $value, string $scope)
+ {
+ $value = $this->preparedValueFactory->create(
+ $path,
+ $value,
+ $scope
+ );
+ $this->configValueResourceModel->save($value);
+ }
+
+ /**
+ * @return void
+ */
+ private function assertCronWasNotSet()
+ {
+ $this->assertNull($this->getSubscriptionUpdateSchedule());
+ $this->assertNull($this->getPreviousUpdateUrl());
+ $this->assertNull($this->getUpdateReverseCounter());
+ }
+
+ /**
+ * @return void
+ */
+ private function assertCronWasSet()
+ {
+ $this->assertSame(
+ '0 * * * *',
+ $this->getSubscriptionUpdateSchedule(),
+ 'Subscription update schedule has not been set'
+ );
+ $this->assertSame(
+ 'https://previous.example.com/',
+ $this->getPreviousUpdateUrl(),
+ 'The previous URL stored for update is not correct'
+ );
+ $this->assertSame(48, $this->getUpdateReverseCounter());
+ }
+
+ /**
+ * @return mixed
+ */
+ private function getSubscriptionUpdateSchedule()
+ {
+ return $this->scopeConfig->getValue(
+ SubscriptionUpdateHandler::UPDATE_CRON_STRING_PATH,
+ ScopeConfigInterface::SCOPE_TYPE_DEFAULT
+ );
+ }
+
+ /**
+ * @return mixed
+ */
+ private function getPreviousUpdateUrl()
+ {
+ return $this->flagManager->getFlagData(SubscriptionUpdateHandler::PREVIOUS_BASE_URL_FLAG_CODE);
+ }
+
+ /**
+ * @return mixed
+ */
+ private function getUpdateReverseCounter()
+ {
+ return $this->flagManager
+ ->getFlagData(SubscriptionUpdateHandler::SUBSCRIPTION_UPDATE_REVERSE_COUNTER_FLAG_CODE);
+ }
+}
diff --git a/dev/tests/integration/testsuite/Magento/Analytics/Model/ReportUrlProviderTest.php b/dev/tests/integration/testsuite/Magento/Analytics/Model/ReportUrlProviderTest.php
new file mode 100644
index 0000000000000..0e2f8c4cc96a2
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Analytics/Model/ReportUrlProviderTest.php
@@ -0,0 +1,52 @@
+reportUrlProvider = $objectManager->get(ReportUrlProvider::class);
+ $this->flagManager = $objectManager->get(FlagManager::class);
+ }
+
+ /**
+ * @magentoDbIsolation enabled
+ */
+ public function testGetUrlWhenSubscriptionUpdateIsRunning()
+ {
+ $this->flagManager
+ ->saveFlag(
+ SubscriptionUpdateHandler::PREVIOUS_BASE_URL_FLAG_CODE,
+ 'https://previous.example.com/'
+ );
+ $this->expectException(SubscriptionUpdateException::class);
+ $this->reportUrlProvider->getUrl();
+ }
+}
diff --git a/dev/tests/integration/testsuite/Magento/Analytics/_files/create_link.php b/dev/tests/integration/testsuite/Magento/Analytics/_files/create_link.php
new file mode 100644
index 0000000000000..928bb6fb36a06
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Analytics/_files/create_link.php
@@ -0,0 +1,21 @@
+create(\Magento\Analytics\Model\FileInfoManager::class);
+
+/**
+ * @var $fileInfo \Magento\Analytics\Model\FileInfo
+ */
+$fileInfo = $objectManager->create(
+ \Magento\Analytics\Model\FileInfo::class,
+ ['path' => 'analytics/jsldjsfdkldf/data.tgz', 'initializationVector' => 'binaryDataisdodssds8iui']
+);
+
+$fileInfoManager->save($fileInfo);
diff --git a/dev/tests/integration/testsuite/Magento/Analytics/_files/enabled_subscription_with_invalid_token.php b/dev/tests/integration/testsuite/Magento/Analytics/_files/enabled_subscription_with_invalid_token.php
new file mode 100644
index 0000000000000..0106bf6f1bdac
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Analytics/_files/enabled_subscription_with_invalid_token.php
@@ -0,0 +1,29 @@
+get(\Magento\Framework\App\Config\Storage\WriterInterface::class);
+
+$configWriter->delete(SubscriptionHandler::CRON_STRING_PATH);
+$configWriter->save('analytics/subscription/enabled', 1);
+
+/**
+ * @var $analyticsToken \Magento\Analytics\Model\AnalyticsToken
+ */
+$analyticsToken = $objectManager->get(\Magento\Analytics\Model\AnalyticsToken::class);
+$analyticsToken->storeToken('42');
+
+/**
+ * @var $flagManager \Magento\Framework\FlagManager
+ */
+$flagManager = $objectManager->get(\Magento\Framework\FlagManager::class);
+
+$flagManager->deleteFlag(SubscriptionHandler::ATTEMPTS_REVERSE_COUNTER_FLAG_CODE);
diff --git a/dev/tests/integration/testsuite/Magento/Analytics/_files/enabled_subscription_with_invalid_token_rollback.php b/dev/tests/integration/testsuite/Magento/Analytics/_files/enabled_subscription_with_invalid_token_rollback.php
new file mode 100644
index 0000000000000..3fd3e21e282e0
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/Analytics/_files/enabled_subscription_with_invalid_token_rollback.php
@@ -0,0 +1,29 @@
+get(\Magento\Framework\App\Config\Storage\WriterInterface::class);
+
+$configWriter->delete(SubscriptionHandler::CRON_STRING_PATH);
+$configWriter->save('analytics/subscription/enabled', 0);
+
+/**
+ * @var $analyticsToken \Magento\Analytics\Model\AnalyticsToken
+ */
+$analyticsToken = $objectManager->get(\Magento\Analytics\Model\AnalyticsToken::class);
+$analyticsToken->storeToken(null);
+
+/**
+ * @var $flagManager \Magento\Framework\FlagManager
+ */
+$flagManager = $objectManager->get(\Magento\Framework\FlagManager::class);
+
+$flagManager->deleteFlag(SubscriptionHandler::ATTEMPTS_REVERSE_COUNTER_FLAG_CODE);
diff --git a/dev/tests/integration/testsuite/Magento/ReleaseNotification/Model/ResourceModel/Viewer/LoggerTest.php b/dev/tests/integration/testsuite/Magento/ReleaseNotification/Model/ResourceModel/Viewer/LoggerTest.php
new file mode 100644
index 0000000000000..930e7fe5317f8
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/ReleaseNotification/Model/ResourceModel/Viewer/LoggerTest.php
@@ -0,0 +1,62 @@
+logger = $objectManager->get(Logger::class);
+ }
+
+ /**
+ * @magentoDataFixture Magento/User/_files/user_with_role.php
+ */
+ public function testLogAndGet()
+ {
+ $userModel = Bootstrap::getObjectManager()->get(\Magento\User\Model\User::class);
+ $adminUserNameFromFixture = 'adminUser';
+ $adminUserId = $userModel->loadByUsername($adminUserNameFromFixture)->getId();
+ $this->assertEmpty($this->logger->get($adminUserId)->getId());
+ $firstLogVersion = '2.2.2';
+ $this->logger->log($adminUserId, $firstLogVersion);
+ $firstLog = $this->logger->get($adminUserId);
+ $this->assertInstanceOf(Log::class, $firstLog);
+ $this->assertEquals($firstLogVersion, $firstLog->getLastViewVersion());
+ $this->assertEquals($adminUserId, $firstLog->getViewerId());
+
+ $secondLogVersion = '2.3.0';
+ $this->logger->log($adminUserId, $secondLogVersion);
+ $secondLog = $this->logger->get($adminUserId);
+ $this->assertInstanceOf(Log::class, $secondLog);
+ $this->assertEquals($secondLogVersion, $secondLog->getLastViewVersion());
+ $this->assertEquals($adminUserId, $secondLog->getViewerId());
+ $this->assertEquals($firstLog->getId(), $secondLog->getId());
+ }
+
+ /**
+ * @expectedException \Zend_Db_Statement_Exception
+ */
+ public function testLogNonExistUser()
+ {
+ $this->logger->log(200, '2.2.2');
+ }
+}
diff --git a/dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Iframe/ShowTest.php b/dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Iframe/ShowTest.php
index 0bd2a74e0d373..415ea79be9f07 100644
--- a/dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Iframe/ShowTest.php
+++ b/dev/tests/integration/testsuite/Magento/Swatches/Controller/Adminhtml/Iframe/ShowTest.php
@@ -25,7 +25,7 @@ public function testAclAccess()
$this->dispatch('backend/swatches/iframe/show/');
$this->assertEquals(200, $this->getResponse()->getHttpResponseCode());
- $this->assertNotContains('Access denied', $this->getResponse()->getBody());
+ $this->assertNotContains('Sorry, you need permissions to view this content.', $this->getResponse()->getBody());
}
/**
@@ -43,6 +43,6 @@ public function testAclAccessDenied()
$this->dispatch('backend/swatches/iframe/show/');
$this->assertEquals(403, $this->getResponse()->getHttpResponseCode());
- $this->assertContains('Access denied', $this->getResponse()->getBody());
+ $this->assertContains('Sorry, you need permissions to view this content.', $this->getResponse()->getBody());
}
}