";
+ $content .= $this->escaper->escapeHtml($contentArea['text']);
+ $content .= "
";
+ if ($contentArea != $lastContentArea) {
+ $content .= "";
+ } else {
+ $content .= "
";
+ }
+
+ $content .= "
";
+ $content .= $this->escaper->escapeHtml($subHeading['title']);
+ $content .= " ";
+ $content .= "
";
+ $content .= $this->formatContentWithLinks($subHeading['content']);
+ $content .= "
";
+ $content .= "
";
+ }
+
+ return $content;
+ }
+
+ /**
+ * Builds the HTML for the footer content in the notification ui component
+ *
+ * @param array $footer
+ * @return string
+ */
+ private function buildFooter(array $footer)
+ {
+ $content = "
";
+ $content .= $this->escaper->escapeHtml($footer['content']);
+ $content .= "
";
+
+ return $this->formatContentWithLinks($content);
+ }
+
+ /**
+ * Searches a given string for a URL, formats it to an HTML anchor tag, and returns the original string in the
+ * correct HTML format.
+ *
+ * @param string $content
+ * @returns string
+ */
+ private function formatContentWithLinks($content)
+ {
+ $urlRegex = '#\bhttps?://[^,\s()<>]+(?:\([\w\d]+\)|([^,[:punct:]\s]|/))#';
+ $urlTextRegex = '/\[(.*?)\]/';
+
+ preg_match_all($urlRegex, $content, $urlMatches);
+ preg_match_all($urlTextRegex, $content, $urlTextMatches);
+
+ foreach ($urlMatches[0] as $key => $urlMatch) {
+ if (!empty($urlTextMatches[0])) {
+ $linkMatch = $urlMatch . " " . $urlTextMatches[0][$key];
+ $content = str_replace(
+ $linkMatch,
+ "
+ {$this->escaper->escapeHtml($urlTextMatches[1][$key])} ",
+ $content
+ );
+ } else {
+ $content = str_replace(
+ $urlMatch,
+ "
+ {$this->escaper->escapeUrl($urlMatch)} ",
+ $content
+ );
+ }
+ }
+
+ return $content;
+ }
+}
diff --git a/app/code/Magento/ReleaseNotification/composer.json b/app/code/Magento/ReleaseNotification/composer.json
new file mode 100644
index 0000000000000..9e728b1e01729
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/composer.json
@@ -0,0 +1,28 @@
+{
+ "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.3.*",
+ "magento/module-ui": "100.3.*",
+ "magento/framework": "101.0.*"
+ },
+ "suggest": {
+ "magento/module-config": "100.3.*"
+ },
+ "type": "magento2-module",
+ "version": "100.3.0-dev",
+ "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/config.xml b/app/code/Magento/ReleaseNotification/etc/config.xml
new file mode 100644
index 0000000000000..8ceeb59b5415e
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/etc/config.xml
@@ -0,0 +1,17 @@
+
+
+
+
+
+
+ raw.githubusercontent.com/magento-arcticfoxes/release-notification/master
+ 1
+
+
+
+
diff --git a/app/code/Magento/ReleaseNotification/etc/di.xml b/app/code/Magento/ReleaseNotification/etc/di.xml
new file mode 100644
index 0000000000000..1404a6adb0a10
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/etc/di.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+ - 1
+ - 1
+
+
+
+
+
+
+ -
+
- Magento\ReleaseNotification\Ui\DataProvider\Modifier\Notifications
+ - 10
+
+
+
+
+
+
+ notificationPool
+
+
+
diff --git a/app/code/Magento/ReleaseNotification/etc/module.xml b/app/code/Magento/ReleaseNotification/etc/module.xml
new file mode 100644
index 0000000000000..a57bf26c0bf87
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/etc/module.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
+
+
+
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..426cdc0e863d2
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/i18n/en_US.csv
@@ -0,0 +1,15 @@
+"Next >","Next >"
+"< Back","< Back"
+"Done","Done"
+"Sorry, we had a problem loading our “What’s new” content.","Sorry, we had a problem loading our “What’s new” content."
+"We’ll try to show it again the next time you sign in to Magento Admin.
+
To learn more about new features, see our latest Release Notes in
+ DevDocs' Release Information .
+
]]>","We’ll try to show it again the next time you sign in to Magento Admin.
+
To learn more about new features, see our latest Release Notes in
+ DevDocs' Release Information .
+
]]>"
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..3134b2a8af21e
--- /dev/null
+++ b/app/code/Magento/ReleaseNotification/view/adminhtml/ui_component/release_notification.xml
@@ -0,0 +1,345 @@
+
+
+
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..9f0b58b529a25
--- /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.3.*",
+ "magento/module-review": "100.3.*"
+ },
+ "type": "magento2-module",
+ "version": "100.3.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..e9d1eb7084925
--- /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.3.*",
+ "magento/module-sales": "100.3.*"
+ },
+ "type": "magento2-module",
+ "version": "100.3.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..8a3fb3a5189d0
--- /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.3.*",
+ "magento/module-wishlist": "100.3.*"
+ },
+ "type": "magento2-module",
+ "version": "100.3.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..a7b6f553f1ff8
--- /dev/null
+++ b/app/design/adminhtml/Magento/backend/Magento_ReleaseNotification/web/css/source/_module.less
@@ -0,0 +1,118 @@
+// /**
+// * Copyright © Magento, Inc. All rights reserved.
+// * See COPYING.txt for license details.
+// */
+
+//
+// Magento_ReleaseNotification Modal on dashboard
+// ---------------------------------------------
+
+.release-notification-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-title-with-image {
+ padding: 1.5rem 0 2rem 7rem;
+ background-size: 55px 49.08px;
+ background-repeat: no-repeat;
+}
+
+.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;
+ vertical-align: middle;
+ position: relative;
+ left: 1rem;
+ }
+ }
+ }
+}
+
+.release-notification-button-next, .release-notification-button-back {
+ display: inline-block;
+ vertical-align: top;
+ float: right;
+ position: absolute;
+ bottom: 4rem;
+}
+
+.release-notification-button-next {
+ .lib-button-as-link();
+ right: 4rem;
+ font-weight: 400;
+}
+
+.release-notification-button-back {
+ .lib-button-as-link();
+ left: 4rem;
+ font-weight: 400;
+}
+
+.highlight-item {
+ padding: 0 0 2rem 8.5rem;
+ margin-left: 1rem;
+ background-size: 65px 58px;
+ background-repeat: no-repeat;
+
+ h3 {
+ margin: 0;
+
+ span {
+ font-style: @font-style__emphasis;
+ font-size: @font-size__s;
+ font-weight: @font-weight__light;
+ }
+ }
+}
+
+.highlight-item-no-image {
+ padding: 0 0 2rem 0;
+
+ h3 {
+ margin: 0;
+ }
+}
+
+.hide-release-notification {
+ display: none;
+}
diff --git a/composer.json b/composer.json
index 7cc2f0b69a5c7..d19c44c9afe7c 100644
--- a/composer.json
+++ b/composer.json
@@ -91,6 +91,7 @@
"magento/module-marketplace": "100.3.0-dev",
"magento/module-admin-notification": "100.3.0-dev",
"magento/module-advanced-pricing-import-export": "100.3.0-dev",
+ "magento/module-analytics": "100.3.0-dev",
"magento/module-authorization": "100.3.0-dev",
"magento/module-authorizenet": "100.3.0-dev",
"magento/module-backend": "100.3.0-dev",
@@ -101,6 +102,7 @@
"magento/module-cache-invalidate": "100.3.0-dev",
"magento/module-captcha": "100.3.0-dev",
"magento/module-catalog": "101.2.0-dev",
+ "magento/module-catalog-analytics": "100.3.0-dev",
"magento/module-catalog-import-export": "100.3.0-dev",
"magento/module-catalog-inventory": "100.3.0-dev",
"magento/module-catalog-rule": "100.3.0-dev",
@@ -121,6 +123,7 @@
"magento/module-cron": "100.3.0-dev",
"magento/module-currency-symbol": "100.3.0-dev",
"magento/module-customer": "100.3.0-dev",
+ "magento/module-customer-analytics": "100.3.0-dev",
"magento/module-customer-import-export": "100.3.0-dev",
"magento/module-deploy": "100.3.0-dev",
"magento/module-developer": "100.3.0-dev",
@@ -162,13 +165,17 @@
"magento/module-product-alert": "100.3.0-dev",
"magento/module-product-video": "100.3.0-dev",
"magento/module-quote": "100.3.0-dev",
+ "magento/module-quote-analytics": "100.3.0-dev",
+ "magento/module-release-notification": "100.3.0",
"magento/module-reports": "100.3.0-dev",
"magento/module-require-js": "100.3.0-dev",
"magento/module-review": "100.3.0-dev",
+ "magento/module-review-analytics": "100.3.0-dev",
"magento/module-robots": "100.3.0-dev",
"magento/module-rss": "100.3.0-dev",
"magento/module-rule": "100.3.0-dev",
"magento/module-sales": "100.3.0-dev",
+ "magento/module-sales-analytics": "100.3.0-dev",
"magento/module-sales-inventory": "100.3.0-dev",
"magento/module-sales-rule": "100.3.0-dev",
"magento/module-sales-sequence": "100.3.0-dev",
@@ -199,6 +206,7 @@
"magento/module-weee": "100.3.0-dev",
"magento/module-widget": "100.3.0-dev",
"magento/module-wishlist": "100.3.0-dev",
+ "magento/module-wishlist-analytics": "100.3.0-dev",
"magento/theme-adminhtml-backend": "100.3.0-dev",
"magento/theme-frontend-blank": "100.3.0-dev",
"magento/theme-frontend-luma": "100.3.0-dev",
diff --git a/composer.lock b/composer.lock
index fb2a030454ef4..f098ccc201000 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": "b742366a441550e91997d35bd6aa8d12",
+ "hash": "17cb7438ef1ede96decc0ba375c2b7b1",
+ "content-hash": "99b8883924a448591e08d02aac62b7a5",
"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",
@@ -162,7 +163,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": "2015-11-28T01:20:04+00:00"
+ "time": "2015-11-28 01:20:04"
},
{
"name": "colinmollenhour/php-redis-session-abstract",
@@ -199,7 +200,7 @@
],
"description": "A Redis-based session handler with optimistic locking",
"homepage": "https://github.com/colinmollenhour/php-redis-session-abstract",
- "time": "2017-04-19T14:21:43+00:00"
+ "time": "2017-04-19 14:21:43"
},
{
"name": "composer/ca-bundle",
@@ -255,7 +256,7 @@
"ssl",
"tls"
],
- "time": "2017-11-29T09:37:33+00:00"
+ "time": "2017-11-29 09:37:33"
},
{
"name": "composer/composer",
@@ -332,7 +333,7 @@
"dependency",
"package"
],
- "time": "2017-03-10T08:29:45+00:00"
+ "time": "2017-03-10 08:29:45"
},
{
"name": "composer/semver",
@@ -394,7 +395,7 @@
"validation",
"versioning"
],
- "time": "2016-08-30T16:08:34+00:00"
+ "time": "2016-08-30 16:08:34"
},
{
"name": "composer/spdx-licenses",
@@ -455,7 +456,7 @@
"spdx",
"validator"
],
- "time": "2017-04-03T19:08:52+00:00"
+ "time": "2017-04-03 19:08:52"
},
{
"name": "container-interop/container-interop",
@@ -486,7 +487,7 @@
],
"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",
@@ -552,7 +553,7 @@
"json",
"schema"
],
- "time": "2017-10-21T13:15:38+00:00"
+ "time": "2017-10-21 13:15:38"
},
{
"name": "league/climate",
@@ -601,7 +602,7 @@
"php",
"terminal"
],
- "time": "2015-01-18T14:31:58+00:00"
+ "time": "2015-01-18 14:31:58"
},
{
"name": "magento/composer",
@@ -637,7 +638,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",
@@ -716,7 +717,7 @@
"composer-installer",
"magento"
],
- "time": "2016-10-06T16:05:07+00:00"
+ "time": "2016-10-06 16:05:07"
},
{
"name": "magento/zendframework1",
@@ -763,7 +764,7 @@
"ZF1",
"framework"
],
- "time": "2017-06-21T14:56:23+00:00"
+ "time": "2017-06-21 14:56:23"
},
{
"name": "monolog/monolog",
@@ -841,7 +842,7 @@
"logging",
"psr-3"
],
- "time": "2017-06-19T01:22:40+00:00"
+ "time": "2017-06-19 01:22:40"
},
{
"name": "oyejorge/less.php",
@@ -903,7 +904,7 @@
"php",
"stylesheet"
],
- "time": "2017-03-28T22:19:25+00:00"
+ "time": "2017-03-28 22:19:25"
},
{
"name": "paragonie/random_compat",
@@ -951,7 +952,7 @@
"pseudorandom",
"random"
],
- "time": "2017-09-27T21:40:39+00:00"
+ "time": "2017-09-27 21:40:39"
},
{
"name": "pelago/emogrifier",
@@ -1011,7 +1012,7 @@
],
"description": "Converts CSS styles into inline style attributes in your HTML code",
"homepage": "http://www.pelagodesign.com/sidecar/emogrifier/",
- "time": "2017-03-02T12:51:48+00:00"
+ "time": "2017-03-02 12:51:48"
},
{
"name": "phpseclib/phpseclib",
@@ -1103,7 +1104,7 @@
"x.509",
"x509"
],
- "time": "2017-11-29T06:38:08+00:00"
+ "time": "2017-11-29 06:38:08"
},
{
"name": "psr/container",
@@ -1152,7 +1153,7 @@
"container-interop",
"psr"
],
- "time": "2017-02-14T16:28:37+00:00"
+ "time": "2017-02-14 16:28:37"
},
{
"name": "psr/log",
@@ -1199,7 +1200,7 @@
"psr",
"psr-3"
],
- "time": "2016-10-10T12:19:37+00:00"
+ "time": "2016-10-10 12:19:37"
},
{
"name": "ramsey/uuid",
@@ -1281,7 +1282,7 @@
"identifier",
"uuid"
],
- "time": "2017-03-26T20:37:53+00:00"
+ "time": "2017-03-26 20:37:53"
},
{
"name": "seld/cli-prompt",
@@ -1329,7 +1330,7 @@
"input",
"prompt"
],
- "time": "2017-03-18T11:32:45+00:00"
+ "time": "2017-03-18 11:32:45"
},
{
"name": "seld/jsonlint",
@@ -1378,7 +1379,7 @@
"parser",
"validator"
],
- "time": "2017-11-30T15:34:22+00:00"
+ "time": "2017-11-30 15:34:22"
},
{
"name": "seld/phar-utils",
@@ -1422,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,7 +1477,7 @@
],
"description": "An extendable framework for version control hooks.",
"abandoned": "phpro/grumphp",
- "time": "2014-09-22T08:40:36+00:00"
+ "time": "2014-09-22 08:40:36"
},
{
"name": "symfony/console",
@@ -1537,7 +1538,7 @@
],
"description": "Symfony Console Component",
"homepage": "https://symfony.com",
- "time": "2017-11-29T09:33:18+00:00"
+ "time": "2017-11-29 09:33:18"
},
{
"name": "symfony/debug",
@@ -1594,7 +1595,7 @@
],
"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",
@@ -1654,7 +1655,7 @@
],
"description": "Symfony EventDispatcher Component",
"homepage": "https://symfony.com",
- "time": "2017-11-05T15:25:56+00:00"
+ "time": "2017-11-05 15:25:56"
},
{
"name": "symfony/filesystem",
@@ -1703,7 +1704,7 @@
],
"description": "Symfony Filesystem Component",
"homepage": "https://symfony.com",
- "time": "2017-12-14T19:40:10+00:00"
+ "time": "2017-12-14 19:40:10"
},
{
"name": "symfony/finder",
@@ -1752,7 +1753,7 @@
],
"description": "Symfony Finder Component",
"homepage": "https://symfony.com",
- "time": "2017-11-05T16:10:10+00:00"
+ "time": "2017-11-05 16:10:10"
},
{
"name": "symfony/polyfill-mbstring",
@@ -1811,7 +1812,7 @@
"portable",
"shim"
],
- "time": "2017-10-11T12:05:26+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/process",
@@ -1860,7 +1861,7 @@
],
"description": "Symfony Process Component",
"homepage": "https://symfony.com",
- "time": "2017-11-05T15:25:56+00:00"
+ "time": "2017-11-05 15:25:56"
},
{
"name": "tedivm/jshrink",
@@ -1906,7 +1907,7 @@
"javascript",
"minifier"
],
- "time": "2015-07-04T07:35:09+00:00"
+ "time": "2015-07-04 07:35:09"
},
{
"name": "tubalmartin/cssmin",
@@ -1959,7 +1960,7 @@
"minify",
"yui"
],
- "time": "2017-05-16T13:45:26+00:00"
+ "time": "2017-05-16 13:45:26"
},
{
"name": "webonyx/graphql-php",
@@ -2006,7 +2007,7 @@
"api",
"graphql"
],
- "time": "2017-12-12T09:03:21+00:00"
+ "time": "2017-12-12 09:03:21"
},
{
"name": "zendframework/zend-captcha",
@@ -2063,7 +2064,7 @@
"captcha",
"zf2"
],
- "time": "2017-02-23T08:09:44+00:00"
+ "time": "2017-02-23 08:09:44"
},
{
"name": "zendframework/zend-code",
@@ -2116,7 +2117,7 @@
"code",
"zf2"
],
- "time": "2016-10-24T13:23:32+00:00"
+ "time": "2016-10-24 13:23:32"
},
{
"name": "zendframework/zend-config",
@@ -2172,7 +2173,7 @@
"config",
"zf2"
],
- "time": "2016-02-04T23:01:10+00:00"
+ "time": "2016-02-04 23:01:10"
},
{
"name": "zendframework/zend-console",
@@ -2224,7 +2225,7 @@
"console",
"zf2"
],
- "time": "2016-02-09T17:15:12+00:00"
+ "time": "2016-02-09 17:15:12"
},
{
"name": "zendframework/zend-crypt",
@@ -2274,7 +2275,7 @@
"crypt",
"zf2"
],
- "time": "2016-02-03T23:46:30+00:00"
+ "time": "2016-02-03 23:46:30"
},
{
"name": "zendframework/zend-db",
@@ -2332,7 +2333,7 @@
"db",
"zf"
],
- "time": "2017-12-11T14:57:52+00:00"
+ "time": "2017-12-11 14:57:52"
},
{
"name": "zendframework/zend-di",
@@ -2379,7 +2380,7 @@
"di",
"zf2"
],
- "time": "2016-04-25T20:58:11+00:00"
+ "time": "2016-04-25 20:58:11"
},
{
"name": "zendframework/zend-escaper",
@@ -2423,7 +2424,7 @@
"escaper",
"zf2"
],
- "time": "2016-06-30T19:48:38+00:00"
+ "time": "2016-06-30 19:48:38"
},
{
"name": "zendframework/zend-eventmanager",
@@ -2470,7 +2471,7 @@
"eventmanager",
"zf2"
],
- "time": "2017-12-12T17:48:56+00:00"
+ "time": "2017-12-12 17:48:56"
},
{
"name": "zendframework/zend-filter",
@@ -2530,7 +2531,7 @@
"filter",
"zf2"
],
- "time": "2017-05-17T20:56:17+00:00"
+ "time": "2017-05-17 20:56:17"
},
{
"name": "zendframework/zend-form",
@@ -2608,7 +2609,7 @@
"form",
"zf"
],
- "time": "2017-12-06T21:09:08+00:00"
+ "time": "2017-12-06 21:09:08"
},
{
"name": "zendframework/zend-http",
@@ -2661,7 +2662,7 @@
"zend",
"zf"
],
- "time": "2017-10-13T12:06:24+00:00"
+ "time": "2017-10-13 12:06:24"
},
{
"name": "zendframework/zend-hydrator",
@@ -2719,7 +2720,7 @@
"hydrator",
"zf2"
],
- "time": "2016-02-18T22:38:26+00:00"
+ "time": "2016-02-18 22:38:26"
},
{
"name": "zendframework/zend-i18n",
@@ -2786,7 +2787,7 @@
"i18n",
"zf2"
],
- "time": "2017-05-17T17:00:12+00:00"
+ "time": "2017-05-17 17:00:12"
},
{
"name": "zendframework/zend-inputfilter",
@@ -2842,7 +2843,7 @@
"inputfilter",
"zf"
],
- "time": "2017-12-04T21:24:25+00:00"
+ "time": "2017-12-04 21:24:25"
},
{
"name": "zendframework/zend-json",
@@ -2897,7 +2898,7 @@
"json",
"zf2"
],
- "time": "2016-02-04T21:20:26+00:00"
+ "time": "2016-02-04 21:20:26"
},
{
"name": "zendframework/zend-loader",
@@ -2941,7 +2942,7 @@
"loader",
"zf2"
],
- "time": "2015-06-03T14:05:47+00:00"
+ "time": "2015-06-03 14:05:47"
},
{
"name": "zendframework/zend-log",
@@ -3012,7 +3013,7 @@
"logging",
"zf2"
],
- "time": "2017-05-17T16:03:26+00:00"
+ "time": "2017-05-17 16:03:26"
},
{
"name": "zendframework/zend-mail",
@@ -3074,7 +3075,7 @@
"mail",
"zf2"
],
- "time": "2017-06-08T20:03:58+00:00"
+ "time": "2017-06-08 20:03:58"
},
{
"name": "zendframework/zend-math",
@@ -3124,7 +3125,7 @@
"math",
"zf2"
],
- "time": "2016-04-07T16:29:53+00:00"
+ "time": "2016-04-07 16:29:53"
},
{
"name": "zendframework/zend-mime",
@@ -3175,7 +3176,7 @@
"mime",
"zf"
],
- "time": "2017-11-28T15:02:22+00:00"
+ "time": "2017-11-28 15:02:22"
},
{
"name": "zendframework/zend-modulemanager",
@@ -3235,7 +3236,7 @@
"modulemanager",
"zf"
],
- "time": "2017-12-02T06:11:18+00:00"
+ "time": "2017-12-02 06:11:18"
},
{
"name": "zendframework/zend-mvc",
@@ -3322,7 +3323,7 @@
"mvc",
"zf2"
],
- "time": "2016-02-23T15:24:59+00:00"
+ "time": "2016-02-23 15:24:59"
},
{
"name": "zendframework/zend-serializer",
@@ -3380,7 +3381,7 @@
"serializer",
"zf2"
],
- "time": "2017-11-20T22:21:04+00:00"
+ "time": "2017-11-20 22:21:04"
},
{
"name": "zendframework/zend-server",
@@ -3426,7 +3427,7 @@
"server",
"zf2"
],
- "time": "2016-06-20T22:27:55+00:00"
+ "time": "2016-06-20 22:27:55"
},
{
"name": "zendframework/zend-servicemanager",
@@ -3478,7 +3479,7 @@
"servicemanager",
"zf2"
],
- "time": "2017-12-05T16:27:36+00:00"
+ "time": "2017-12-05 16:27:36"
},
{
"name": "zendframework/zend-session",
@@ -3548,7 +3549,7 @@
"session",
"zf"
],
- "time": "2017-12-01T17:35:04+00:00"
+ "time": "2017-12-01 17:35:04"
},
{
"name": "zendframework/zend-soap",
@@ -3600,7 +3601,7 @@
"soap",
"zf2"
],
- "time": "2016-04-21T16:06:27+00:00"
+ "time": "2016-04-21 16:06:27"
},
{
"name": "zendframework/zend-stdlib",
@@ -3659,7 +3660,7 @@
"stdlib",
"zf2"
],
- "time": "2016-04-12T21:17:31+00:00"
+ "time": "2016-04-12 21:17:31"
},
{
"name": "zendframework/zend-text",
@@ -3706,7 +3707,7 @@
"text",
"zf2"
],
- "time": "2016-02-08T19:03:52+00:00"
+ "time": "2016-02-08 19:03:52"
},
{
"name": "zendframework/zend-uri",
@@ -3753,7 +3754,7 @@
"uri",
"zf2"
],
- "time": "2016-02-17T22:38:51+00:00"
+ "time": "2016-02-17 22:38:51"
},
{
"name": "zendframework/zend-validator",
@@ -3824,7 +3825,7 @@
"validator",
"zf2"
],
- "time": "2017-08-22T14:19:23+00:00"
+ "time": "2017-08-22 14:19:23"
},
{
"name": "zendframework/zend-view",
@@ -3911,7 +3912,7 @@
"view",
"zf2"
],
- "time": "2017-03-21T15:05:56+00:00"
+ "time": "2017-03-21 15:05:56"
}
],
"packages-dev": [
@@ -3967,7 +3968,7 @@
"constructor",
"instantiate"
],
- "time": "2015-06-14T21:17:01+00:00"
+ "time": "2015-06-14 21:17:01"
},
{
"name": "friendsofphp/php-cs-fixer",
@@ -4037,7 +4038,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",
@@ -4079,7 +4080,7 @@
"hashing",
"password"
],
- "time": "2014-11-20T16:49:30+00:00"
+ "time": "2014-11-20 16:49:30"
},
{
"name": "lusitanian/oauth",
@@ -4146,7 +4147,7 @@
"oauth",
"security"
],
- "time": "2016-07-12T22:15:40+00:00"
+ "time": "2016-07-12 22:15:40"
},
{
"name": "myclabs/deep-copy",
@@ -4191,7 +4192,7 @@
"object",
"object graph"
],
- "time": "2017-10-19T19:58:43+00:00"
+ "time": "2017-10-19 19:58:43"
},
{
"name": "pdepend/pdepend",
@@ -4231,7 +4232,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",
@@ -4286,7 +4287,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",
@@ -4333,7 +4334,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",
@@ -4387,7 +4388,7 @@
"reflection",
"static analysis"
],
- "time": "2017-09-11T18:02:19+00:00"
+ "time": "2017-09-11 18:02:19"
},
{
"name": "phpdocumentor/reflection-docblock",
@@ -4438,7 +4439,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-11-27T17:38:31+00:00"
+ "time": "2017-11-27 17:38:31"
},
{
"name": "phpdocumentor/type-resolver",
@@ -4485,7 +4486,7 @@
"email": "me@mikevanriel.com"
}
],
- "time": "2017-07-14T14:27:02+00:00"
+ "time": "2017-07-14 14:27:02"
},
{
"name": "phpmd/phpmd",
@@ -4551,7 +4552,7 @@
"phpmd",
"pmd"
],
- "time": "2017-01-20T14:41:10+00:00"
+ "time": "2017-01-20 14:41:10"
},
{
"name": "phpspec/prophecy",
@@ -4614,7 +4615,7 @@
"spy",
"stub"
],
- "time": "2017-11-24T13:59:53+00:00"
+ "time": "2017-11-24 13:59:53"
},
{
"name": "phpunit/php-code-coverage",
@@ -4677,7 +4678,7 @@
"testing",
"xunit"
],
- "time": "2017-12-06T09:29:45+00:00"
+ "time": "2017-12-06 09:29:45"
},
{
"name": "phpunit/php-file-iterator",
@@ -4724,7 +4725,7 @@
"filesystem",
"iterator"
],
- "time": "2017-11-27T13:52:08+00:00"
+ "time": "2017-11-27 13:52:08"
},
{
"name": "phpunit/php-text-template",
@@ -4765,7 +4766,7 @@
"keywords": [
"template"
],
- "time": "2015-06-21T13:50:34+00:00"
+ "time": "2015-06-21 13:50:34"
},
{
"name": "phpunit/php-timer",
@@ -4814,7 +4815,7 @@
"keywords": [
"timer"
],
- "time": "2017-02-26T11:10:40+00:00"
+ "time": "2017-02-26 11:10:40"
},
{
"name": "phpunit/php-token-stream",
@@ -4863,7 +4864,7 @@
"keywords": [
"tokenizer"
],
- "time": "2017-11-27T05:48:46+00:00"
+ "time": "2017-11-27 05:48:46"
},
{
"name": "phpunit/phpunit",
@@ -4947,7 +4948,7 @@
"testing",
"xunit"
],
- "time": "2017-08-03T13:59:28+00:00"
+ "time": "2017-08-03 13:59:28"
},
{
"name": "phpunit/phpunit-mock-objects",
@@ -5006,7 +5007,7 @@
"mock",
"xunit"
],
- "time": "2017-08-03T14:08:16+00:00"
+ "time": "2017-08-03 14:08:16"
},
{
"name": "sebastian/code-unit-reverse-lookup",
@@ -5051,7 +5052,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",
@@ -5115,7 +5116,7 @@
"compare",
"equality"
],
- "time": "2017-03-03T06:26:08+00:00"
+ "time": "2017-03-03 06:26:08"
},
{
"name": "sebastian/diff",
@@ -5167,7 +5168,7 @@
"keywords": [
"diff"
],
- "time": "2017-05-22T07:24:03+00:00"
+ "time": "2017-05-22 07:24:03"
},
{
"name": "sebastian/environment",
@@ -5217,7 +5218,7 @@
"environment",
"hhvm"
],
- "time": "2017-07-01T08:51:00+00:00"
+ "time": "2017-07-01 08:51:00"
},
{
"name": "sebastian/exporter",
@@ -5284,7 +5285,7 @@
"export",
"exporter"
],
- "time": "2017-04-03T13:19:02+00:00"
+ "time": "2017-04-03 13:19:02"
},
{
"name": "sebastian/finder-facade",
@@ -5323,7 +5324,7 @@
],
"description": "FinderFacade is a convenience wrapper for Symfony's Finder component.",
"homepage": "https://github.com/sebastianbergmann/finder-facade",
- "time": "2017-11-18T17:31:49+00:00"
+ "time": "2017-11-18 17:31:49"
},
{
"name": "sebastian/global-state",
@@ -5374,7 +5375,7 @@
"keywords": [
"global state"
],
- "time": "2017-04-27T15:39:26+00:00"
+ "time": "2017-04-27 15:39:26"
},
{
"name": "sebastian/object-enumerator",
@@ -5421,7 +5422,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",
@@ -5466,7 +5467,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",
@@ -5517,7 +5518,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",
@@ -5570,7 +5571,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",
@@ -5612,7 +5613,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",
@@ -5655,7 +5656,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",
@@ -5706,7 +5707,7 @@
"phpcs",
"standards"
],
- "time": "2017-06-14T01:23:49+00:00"
+ "time": "2017-06-14 01:23:49"
},
{
"name": "symfony/config",
@@ -5768,7 +5769,7 @@
],
"description": "Symfony Config Component",
"homepage": "https://symfony.com",
- "time": "2017-12-14T19:40:10+00:00"
+ "time": "2017-12-14 19:40:10"
},
{
"name": "symfony/dependency-injection",
@@ -5839,7 +5840,7 @@
],
"description": "Symfony DependencyInjection Component",
"homepage": "https://symfony.com",
- "time": "2017-12-14T19:40:10+00:00"
+ "time": "2017-12-14 19:40:10"
},
{
"name": "symfony/polyfill-php54",
@@ -5897,7 +5898,7 @@
"portable",
"shim"
],
- "time": "2017-10-11T12:05:26+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-php55",
@@ -5953,7 +5954,7 @@
"portable",
"shim"
],
- "time": "2017-10-11T12:05:26+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-php70",
@@ -6012,7 +6013,7 @@
"portable",
"shim"
],
- "time": "2017-10-11T12:05:26+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-php72",
@@ -6067,7 +6068,7 @@
"portable",
"shim"
],
- "time": "2017-10-11T12:05:26+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/polyfill-xml",
@@ -6115,7 +6116,7 @@
"portable",
"shim"
],
- "time": "2017-10-11T12:05:26+00:00"
+ "time": "2017-10-11 12:05:26"
},
{
"name": "symfony/stopwatch",
@@ -6164,7 +6165,7 @@
],
"description": "Symfony Stopwatch Component",
"homepage": "https://symfony.com",
- "time": "2017-11-07T14:28:09+00:00"
+ "time": "2017-11-07 14:28:09"
},
{
"name": "theseer/fdomdocument",
@@ -6204,7 +6205,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",
@@ -6244,7 +6245,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",
@@ -6294,7 +6295,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..fe2346b2a83f8
--- /dev/null
+++ b/dev/tests/functional/tests/app/Magento/Analytics/Test/TestCase/InstallTest.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+ 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..eaa7e98e8bd20
--- /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 an industry.
+
+
+
+
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/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/Controller/Adminhtml/Dashboard/IndexTest.php b/dev/tests/integration/testsuite/Magento/ReleaseNotification/Controller/Adminhtml/Dashboard/IndexTest.php
new file mode 100644
index 0000000000000..2f89f70a6c872
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/ReleaseNotification/Controller/Adminhtml/Dashboard/IndexTest.php
@@ -0,0 +1,92 @@
+objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
+ $this->contentProviderMock = $this->getMockBuilder(HttpContentProvider::class)
+ ->disableOriginalConstructor()
+ ->getMock();
+ $this->objectManager->addSharedInstance($this->contentProviderMock, HttpContentProvider::class);
+ }
+
+ protected function tearDown()
+ {
+ $this->objectManager->removeSharedInstance(ContentProviderInterface::class);
+ parent::tearDown();
+ }
+
+ /**
+ * @magentoAppArea adminhtml
+ */
+ public function testExecute()
+ {
+ $content = include __DIR__ . '/../../../_files/validContent.php';
+
+ CacheCleaner::cleanAll();
+ $this->contentProviderMock->expects($this->any())
+ ->method('getContent')
+ ->willReturn($content);
+
+ $this->dispatch('backend/admin/dashboard/index/');
+
+ $this->assertEquals(200, $this->getResponse()->getHttpResponseCode());
+
+ $actual = $this->getResponse()->getBody();
+ $this->assertContains('1-mainContent title', $actual);
+ $this->assertContains('2-mainContent title', $actual);
+ $this->assertContains('3-mainContent title', $actual);
+ $this->assertContains('4-mainContent title', $actual);
+ }
+
+ public function testExecuteEmptyContent()
+ {
+ CacheCleaner::cleanAll();
+ $this->contentProviderMock->expects($this->any())
+ ->method('getContent')
+ ->willReturn('[]');
+
+ $this->dispatch('backend/admin/dashboard/index/');
+
+ $this->assertEquals(200, $this->getResponse()->getHttpResponseCode());
+
+ $actual = $this->getResponse()->getBody();
+ $this->assertNotContains('"autoOpen":true', $actual);
+ }
+
+ public function testExecuteFalseContent()
+ {
+ CacheCleaner::cleanAll();
+ $this->contentProviderMock->expects($this->any())
+ ->method('getContent')
+ ->willReturn(false);
+
+ $this->dispatch('backend/admin/dashboard/index/');
+
+ $this->assertEquals(200, $this->getResponse()->getHttpResponseCode());
+
+ $actual = $this->getResponse()->getBody();
+ $this->assertNotContains('"autoOpen":true', $actual);
+ }
+}
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/ReleaseNotification/_files/validContent.php b/dev/tests/integration/testsuite/Magento/ReleaseNotification/_files/validContent.php
new file mode 100644
index 0000000000000..7d837ebce0cfb
--- /dev/null
+++ b/dev/tests/integration/testsuite/Magento/ReleaseNotification/_files/validContent.php
@@ -0,0 +1,131 @@
+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());
}
}
diff --git a/lib/internal/Magento/Framework/HTTP/ResponseFactory.php b/lib/internal/Magento/Framework/HTTP/ResponseFactory.php
new file mode 100644
index 0000000000000..43f27f51db70e
--- /dev/null
+++ b/lib/internal/Magento/Framework/HTTP/ResponseFactory.php
@@ -0,0 +1,23 @@
+