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

          1.
          [Front] Refactor Chart component LPS-110548 Technical Task Closed Brian Chan  
          2.
          Test Scenarios Coverage | Test Creation LPS-111426 Technical Testing Closed Carlos Brichete Báez  
          3.
          Test Scenarios Coverage | Backend LPS-111427 Technical Testing Closed Cristina Gonzalez  
          4.
          Test Scenarios Coverage | Frontend LPS-111428 Technical Testing Closed Brian Chan  
          5.
          Traffic sources error handling LPS-111527 Technical Task Closed Brian Chan  
          6.
          [Back & Front] Total views error handling LPS-111528 Technical Task Closed Sarai Diaz (Inactive)  
          7.
          [Back] Inject Analytics Cloud connection status LPS-111589 Technical Task Closed Brian Chan  
          8.
          [Back] Handle organic/paid search separately in AC LPS-111591 Technical Task Closed Brian Chan  
          9.
          [Front] Check if there is a valid connection to AC and show an alert if not LPS-111595 Technical Task Closed Brian Chan  
          10.
          [Front] Propagate not valid connection all over the components LPS-111652 Technical Task Closed Brian Chan  
          11.
          [Front] Historical views and historical reads error handling LPS-111943 Technical Task Closed Brian Chan  
          12.
          [Back] replace Apache Http Client with liferay Http Util LPS-111948 Technical Task Closed Cristina Gonzalez  
          13.
          [Back] [Bug] Fix helpMessage LPS-112032 Impedibug Closed Brian Chan  
          14.
          [Front] Console log error: Failed prop type `validAnalyticsConnection` LPS-112047 Impedibug Closed Brian Chan  
          15.
          [Front] Fix keywords table header LPS-112048 Impedibug Closed Brian Chan  
          16.
          [Back] return error when a error is found in total views. LPS-112179 Technical Task Closed Cristina Gonzalez  
          17.
          [Back] Extract common patterns for MockLiferayRequest and MockLiferayResponse LPS-112190 Technical Task Closed Brian Chan  
          18.
          [Back & Front] Send startDate and endDate to frontend to use when there is no valid connection LPS-112304 Technical Task Closed Brian Chan  
          19.
          [Back] Review Historical Reads error handling LPS-112754 Technical Task Closed Cristina Gonzalez  
          20.
          [Front] Don't show views number if the content was published today LPS-112924 Technical Task Closed Sarai Diaz (Inactive)  
          21.
          Product QA | Test Validation - Round 1 LPS-112966 Technical Testing Closed Carlos Brichete Báez  
          22.
          Product QA | UX Validation - Round 1 LPS-112967 Technical Testing Closed Susana Vázquez  
          23.
          Traffic sources (organic and paid) don't have value LPS-113009 Impedibug Closed Product Team Tango  
          24.
          Product QA | Test Validation - Round 2 LPS-113113 Technical Testing Closed Carlos Brichete Báez  

            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