Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-24818

Fetch hierarchical directory entry's parent in order to be able to display all parents labels

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 9.10
    • Fix Version/s: 9.10-HF06, 10.2
    • Component/s: Core IO, Directory
    • Release Notes Summary:
      The WebUI resolves the parent field of hierarchical directory entries.
    • Tags:
    • Browser:
    • Sprint:
      nxGang Sprint 10.2.2, nxGang Sprint 10.2.3
    • Story Points:
      0

      Description

      The Web UI does not resolve the parent field of hierarchical directory entries, we should add NXfetch.directoryEntry": "parent", "depth": "max" in the http header when retrieving the document.

      m3 fox@fox-laptop:~/workspace/nuxeo-web-ui$ git diff
      diff --git i/elements/nuxeo-app.html w/elements/nuxeo-app.html
      index 9ae70200..5b51a613 100644
      --- i/elements/nuxeo-app.html
      +++ w/elements/nuxeo-app.html
      @@ -255,7 +255,7 @@ limitations under the License.
           <nuxeo-document id="doc" doc-id="[[docId]]" doc-path="[[docPath]]"
                           response="{{currentDocument}}"
                           enrichers="firstAccessibleAncestor, permissions, breadcrumb, preview, favorites, subscribedNotifications, thumbnail, renditions, pendingTasks, runnableWorkflows, runningWorkflows, collection
      -                    headers='{"X-NXfetch.document": "lock,properties", "X-NXtranslate.directoryEntry": "label", "X-NXfetch.task": "actors"}'>
      +                    headers='{"X-NXfetch.document": "lock,properties", "X-NXfetch.directoryEntry": "parent", "depth": "max", "X-NXtranslate.directoryEntry": "label", "X-NXfetch.task": "actors"}'>
           </nuxeo-document>
       
           <nuxeo-operation id="userWorkspace" op="User.GetUserWorkspace"></nuxeo-operation>
      

      However, the "depth": "max" will not only apply to the directory entry's parent resolution but to all references such as users, groups, documents and this will badly impact default performances.

      While marsahlling a directory entry and fetching a field we should simply use the default max value to make sure we fetch all the ancestors (parents

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 hours
                  3h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.