Uploaded image for project: 'External DAMs'
  1. External DAMs
  2. EXTDAM-138

Improve S3 rendering

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.2
    • Component/s: None
    • Labels:
      None
    • Epic Link:
    • Sprint:
      Add-Ons 47, Add-Ons 48
    • Story Points:
      5

      Description

      In S3 external dam we have an issue displaying the asset tree for the first time. When there are many buckets, it takes a very long time to render the tree for the first time. Then the assets are cached and we don’t have this issue anymore. Also opening other folders has no problem.

      The main issue is vaadin needs to know whether each folder has children or not. To do so, vaadin calls sequentially the hasChildren method in the corresponding HierarchicalDataProvider for the view. This is always translated into a remote API call. Thus, in case of having several buckets, rendering the tree when is not cached could take a long time.

      Solution

      • Verify whether a bucket has children or not within the getAllBuckets method. We do this in parallel instead of sequentially
      • Override HierarchicalS3DataProvider.hasChildren to use this new property when available.

      Notice it was not possible to override hasChildren, as it was never used. See MGNLUI-6229 for more details.

       

        Checklists

        Acceptance criteria

          Attachments

            Activity

              People

              Assignee:
              jalonso Jesus Alonso
              Reporter:
              ldelnevo Laura Delnevo
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Checklists

                  DoD

                    Time Tracking

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 1.5h
                    1.5h