Skip to content

Can't Disable Advanced Reporting #12866

@nfourteen

Description

@nfourteen

Preconditions

  1. Magento 2.2.2

Steps to reproduce

  1. After a fresh install of version 2.2.2, a system message was received that Synchronization Failed with Magento Business Intelligence (I don't remember the exact message).
  2. To prevent further synchronization error messages, go to Stores > Configuration > General > Advanced Reporting and change Advanced Reporting Service to Disable
  3. Press Save Config

Expected result

  1. The advanced reporting capabilities should be disabled.

Actual result

  1. The following weird error message is received: Please select a vertical.
  2. The advanced reporting capabilities revert back to being enabled.

Reason and Proposed Solutions

The error is thrown from Magento\Analytics\Model\Config\Backend\Vertical::beforeSave() method because I did not select an Industry under Industry Data. That defaults to --Please Select-- and is an empty value, so beforeSave() behaves as it should.

Since the Advanced Reporting needs an external account and service, it should default to Disable on new installs. However, if it was Magento's intention to have it enabled for all new installs, then 1) the logic should be changed so an empty value for the Industry can be provided when Advanced Reporting Service is set to Disable and Save Config is pressed or 2) a more detailed error message should be displayed so merchants understand that an Industry must be provided, even to Disable the Advanced Reporting Service.

Metadata

Metadata

Assignees

Labels

Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions