Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-108068

As a user, I want to be aware of the system status when I check the content performance panel (error handling)

    Details

      Description

      Motivation

      We want to keep users informed when there's some kind of error with data retrieving, or there are no data.

      Persona

      Content author.

      Design

      https://www.figma.com/file/5AJwZQPjbthb2wgK7ij0T0/LPS-108068-system-status-content-performance-panel-error-handling?node-id=0%3A1

      Requirements

      No data because an API error - time out in all the graphics (this error will be handled in DXP when there’s no response of all endpoints)

      When the user access to the default view, and there is a timeout/error in all the API's responses, or an unexpected error or no valid connection with AC, then the panel shows the message: "An unexpected error occurred". Note that none of the data will be available (total views, total reads, historical views, historical reads or traffic sources). It will display a dash instead ("-"). The user cannot change the tame range and the time period.

      No data because an unexpected error in at least one of the graphics (this error will be handled in DXP when there’s no response of at least one of the endpoints)

      When the user selects a time range, or in the default view, and there is a timeout/error in one of the API's responses (or total views, or total reads, or historical views, or historical reads or traffic sources), then the panel shows the message: “Some data is temporarily unavailable”. It will display a dash instead ("-").

      No visits ("0" results) in the Search Engines Traffic Chart

      When there are 0 visits coming from search engines (0 organic traffic and 0 paid traffic), then absolute numbers will show, and the graphic will show a void/placeholder graphic with a message: "Your page has no incoming traffic from search engines yet.".
      When an API error occurs from search engines, then "-" character will show, and the panel shows the message: “Some data is temporarily unavailable”.

      No visits ("0" results) in the Views or Reads Chart

      When results for views or reads equals 0, then a flat line (values=0) will show. Also, it will display a 0 in the legend of the chart.

      No data because recent publication

      When content has been published today, the default view "Last 7 days" will show the message "No data is available yet" until the first 24h have passed and it is possible to show data for the first day of publication. The totals and the legend values will display a dash instead of 0 ("-"). Also, if there is an error in the Chart, and the content was published today, the message "No data is available yet" is not displayed and “Some data is temporarily unavailable” appears.

      Acceptance Criteria

      When no data is available, the panel has to show some information:

      NO DATA BECAUSE AN API ERROR IN ALL OF THE GRAPHICS

      • Given the content performance panel
      • When the user selects a time range or in the default view and there is a timeout/error in all the API's responses, or an unexpected error
      • Then the panel shows the message: "An unexpected error occurred"
      • And the panel is not capable of fill any data (neither the totals, nor the historical, nor the traffic sources)

      NO DATA BECAUSE AN API ERROR IN ONE OF THE GRAPHICS

      • Given the content performance panel
      • When the user selects a time range or in the default view and there is a timeout/error in one of the APIs response
      • Then the panel shows the message: “Some data is temporarily unavailable”

      NO VIEWS & READS

      • Given the content performance panel
      • When the user selects a time range or in the default view and there are no views & reads (=0)
      • Then a flat line (values=0) will show.

      NO VISITS ("0" results) in the Search Engines Traffic Chart

      • Given the content performance panel
      • When there are 0 visits coming from search engines (0 organic traffic and 0 paid traffic)
      • Then absolute numbers will show, and the graphic will show a void graphic (TBD) with a message: "Your page has no incoming traffic from search engines yet."

      NO DATA BECAUSE RECENT PUBLICATION

      • Given a content that was published today
      • When the Last 7 days default view shows
      • Then the message "No data available yet" shows until the first 24h have passed and t is possible to show data for the first day of publication.

      Test Scenarios

      AC ID Test Strategy Test Scenarios Is it covered by FrontEnd ? (JS-Unit) Is it covered by BackEnd? (unit or integration) Poshi?
      01 Smoke When an API error occurs in all the graphics, the message "An unexpected error occurred" is displayed but any data is displayed in the panel YES NO NO
      02 Smoke When an API error occurs in one of the graphics, the message “Some data is temporarily unavailable” is displayed YES NO NO 
      03 Sanity When there is no views nor reads in the selected range or in the default view, the line of the graphic will be at 0 NO NO YES 
      04 Sanity If the content was created today, the graphic will display "No data is available yet" until the first 24h have passed YES NO NO 
      05 Sanity When there is no visits coming from the Organic search engines and the Paid search engines, the message “Your page has no incoming traffic from search engines yet.” is displayed, and the Organic number is 0 and the Paid number is 0 YES   NO NO
      06 Sanity When an API error occurs from the Organic search engines, the message “Some data is temporarily unavailable” is displayed, and the Organic number is "-" YES  NO  NO
      07 Sanity When an API error occurs from the Paid search engines, the message “Some data is temporarily unavailable” is displayed, and the Paid number is "-"  YES NO  NO 

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              Assignee:
              support-qa Support QA
              Reporter:
              julia.molano Julia Molano
              Engineering Assignee:
              Sarai Diaz (Inactive)
              Recent user:
              Kiyoshi Lee
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  Master