Uploaded image for project: 'Nuxeo Web UI'
  1. Nuxeo Web UI
  2. WEBUI-801

Fix increasing load time of listing when adding multiple 'bulk edit' buttons

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.0.11
    • Fix Version/s: None
    • Component/s: Web UI
    • Backlog priority:
      800
    • Team:
      UI
    • Sprint:
      UI - 2022-06, UI - 2022-7, UI - 2022-10, UI COOLDOWN - 2022-06, UI COOLDOWN - 2022-09

      Description

      When adding bulk edit buttons to WebUI using guide HOWTO: Create a Bulk Edit Form Using Nuxeo Studio - Create a Bulk Edit Layout the loading time of the page increases dramatically for each button added.

      How to reproduce:

      • in Studio Modeler, define the Contract document type as explained in HOWTO: Customize Document Layouts - Create a Contract Document Type
      • in Studio Designer, define its corresponding layouts, especially the edit layout
      • define 6 to 10 bulk edit buttons as explained in HOWTO: Create a Bulk Edit Form Using Nuxeo Studio - Create a Bulk Edit Layout
      • fire up a 2021 instance with addon nuxeo-web-ui-3.0.11 and the Studio customizations
      • Add 400 documents to a workspace:
        DOCTYPE=File
        for ((i=0; i<400; i++))
        do
            printf -v idx "%09d" $i
            docname=${DOCTYPE}_${idx}
            curl -XPOST -su Administrator:Administrator \
        -H'content-type: application/json' -H'properties:*' -H'Repository:default' \
        http://localhost:8080/nuxeo/api/v1/path/default-domain/workspaces/ws1 \
        -d '{
          "entity-type": "document",
          "type": "'${DOCTYPE}'",
          "name": "'${docname}'",
          "properties": {
            "dc:title": "'${docname}'"
          }
        }' \
        | jq -r '.path // .stacktrace'
        done
        
      • navigate to the workspace ws1

      Expected result: listing of the 400 documents with 6 to 10 bulk edit buttons takes as much time as if there was only 1
      Actual result: load time increases (probably geometrically) for each bulk edit button added

        Attachments

        1. 10button400doc.png
          10button400doc.png
          546 kB
        2. 1Button400doc.png
          1Button400doc.png
          640 kB
        3. 29s.png
          29s.png
          96 kB
        4. 30s.png
          30s.png
          108 kB
        5. no-bulk-edit-button.png
          no-bulk-edit-button.png
          641 kB
        6. several-bulk-edit-buttons.png
          several-bulk-edit-buttons.png
          607 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 weeks, 3 hours, 50 minutes
                  2w 3h 50m