Skip to content

Error displays multiple times on the main Site Kit dashboard #8970

@jamesozzie

Description

@jamesozzie

Bug Description

When reviewing a support topic, the plugin is outputting the same error message multiple times within the all traffic widget.

Image

image


Do not alter or remove anything below. The following sections will be managed by moderators only.

Acceptance criteria

  • Error messages caused by access token refresh issues are grouped, and only one is shown in the scope of a widget

Implementation Brief

  • In assets/js/components/ReportError.js:
    • Update the script that filters unique errors to remove the code argument from the reconnectURL values before comparing them.
    • The code parameter contains a session ID, and it can be different for different requests, thus we need to ignore it.

Test Coverage

  • Add a new test toReportError tests to verify the new functionality.

QA Brief

  • Follow the steps in this issue's QAB
  • Ensure that only one instance of the error is shown

Changelog entry

  • Improve error reporting in Site Kit widgets to not report duplicate errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Module: AnalyticsGoogle Analytics module related issuesP1Medium priorityTeam MIssues for Squad 2Type: EnhancementImprovement of an existing featureType: SupportSupport request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions