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

Allow bare document references without repository name

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.2
    • Component/s: Core
    • Release Notes Description:
      Hide

      No Mention of the Repository on a Document Reference

      – When referencing a document in a property, we don't need anymore to store the repository id. If the repository id is not there, the same as the referencing document is chosen.

      Show
      No Mention of the Repository on a Document Reference – When referencing a document in a property, we don't need anymore to store the repository id. If the repository id is not there, the same as the referencing document is chosen.
    • Backlog priority:
      700
    • Upgrade notes:
      Hide

      The following two documentResolver restrictions with idOnly and pathOnly are now possible:

      <xs:restriction base="xs:string" ref:resolver="documentResolver" ref:store="idOnly" />
      
      <xs:restriction base="xs:string" ref:resolver="documentResolver" ref:store="pathOnly" />
      

      Their semantics is to store only the id or only the path, without any prefixed repository. When fetching the constraint, the document of the given id or path is resolved in the same repository as the current document.

      Show
      The following two documentResolver restrictions with idOnly and pathOnly are now possible: <xs:restriction base= "xs:string" ref:resolver= "documentResolver" ref:store= "idOnly" /> <xs:restriction base= "xs:string" ref:resolver= "documentResolver" ref:store= "pathOnly" /> Their semantics is to store only the id or only the path, without any prefixed repository. When fetching the constraint, the document of the given id or path is resolved in the same repository as the current document.
    • Sprint:
      nxcore 10.1.6, nxFG 10.2.3, nxFG 10.2.4, nxFG 10.2.5, nxFG 10.2.6
    • Story Points:
      3

      Description

      When defining a schema field with the constraint that it must be a document,

              <xs:element name="mydocidprop">
                <xs:simpleType>
                  <xs:restriction base="xs:string" ref:resolver="documentResolver" ref:store="id" />
                </xs:simpleType>
              </xs:element>
      

      the expected format for the string is repositoryName:docId.

      There are cases where it would be useful to have just the docId in order to do JOINs, or to use the result as documents in the same repository directly.

      To do so, we could create a ref:store="idOnly".

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 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 - 1 day
                  1d