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

[Frontend] Handle requests unable or very slow to resolve (preview search, searchable types, and query contributors)

Details

    Description

      Background

      • Preventing “dead ends” requests taking very long
        • For example: When making a preview search and the request never resolves. Currently entire form is disabled, request never times out/can’t cancel the request
        • “This is taking longer than expected”, offer a button to cancel.
      • Server request 404 - response not able to resolve (searchable types and query contributors)
        • Show an error in the modal/sidebar "An unexpected error occurred and we were unable to retrieve the data"
          • Add opportunity to refresh
        • Check if the form saves property (searchable types and contributors should be untouched)

      Acceptance Criteria

      Preview Search Sidebar

      Currently remains on spinning loading icon when search takes a while to perform:

       

      • Acceptance Criteria: If data request takes >10 seconds, display “It looks like this is taking longer than expected.” Offer a button to cancel search process.

      Searchable Types Modal

      Currently does not display any information when there are no results:

      • Acceptance Criteria: If data request errors, display "An error has occurred and we were unable to load the results." Add an opportunity to refresh searchable types.

      Query Contributors Sidebar

      Currently only shows labels for contributor types when there are no results:

      • Acceptance Criteria: If data request errors, display "An error has occurred and we were unable to load the results." Add an opportunity to refresh contributors.

      Attachments

        Issue Links

          Activity

            People

              brian.lee Brian Lee
              olivia.yu Olivia Yu
              Olivia Yu Olivia Yu
              Tibor Lipusz Tibor Lipusz
              Olivia Yu
              Brian Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Packages

                  Version Package
                  7.3.X
                  7.4.13 DXP U19