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

Allow merged contributions for the repository config

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.9.3
    • Component/s: Core VCS
    • Impact type:
      Configuration Change
    • Upgrade notes:
      Hide

      Configuration for repositories is now of the form:

      <extension target="org.nuxeo.ecm.core.storage.sql.RepositoryService" point="repository">
      <repository name="default"
      factory="org.nuxeo.ecm.core.storage.sql.ra.PoolingRepositoryFactory">
      <schema> ... </schema>
      <indexing> ... </indexing>
      ... (see http://doc.nuxeo.com/x/hwQz)
      </repository>
      </extension>

      When several contributions are made to the same repository name, they are merged.

      The old syntax that contributed to two extension points, org.nuxeo.ecm.core.api.repository.RepositoryManager (repositories) and org.nuxeo.ecm.core.repository.RepositoryService (repository) is still supported for backward compatibility but will emit a WARN message.

      The two nested <repository> elements on the old extension point org.nuxeo.ecm.core.repository.RepositoryService can be merged, and the label="..." that was previously on the org.nuxeo.ecm.core.api.repository.RepositoryManager extension point can be added as an attribute to the new <repository> element.

      Show
      Configuration for repositories is now of the form: <extension target="org.nuxeo.ecm.core.storage.sql.RepositoryService" point="repository"> <repository name="default" factory="org.nuxeo.ecm.core.storage.sql.ra.PoolingRepositoryFactory"> <schema> ... </schema> <indexing> ... </indexing> ... (see http://doc.nuxeo.com/x/hwQz ) </repository> </extension> When several contributions are made to the same repository name, they are merged. The old syntax that contributed to two extension points, org.nuxeo.ecm.core.api.repository.RepositoryManager (repositories) and org.nuxeo.ecm.core.repository.RepositoryService (repository) is still supported for backward compatibility but will emit a WARN message. The two nested <repository> elements on the old extension point org.nuxeo.ecm.core.repository.RepositoryService can be merged, and the label="..." that was previously on the org.nuxeo.ecm.core.api.repository.RepositoryManager extension point can be added as an attribute to the new <repository> element.

      Description

      It would be useful to allow partial contributions to the repository config (extending default-repository-config.xml) using the standard extension point mechanism.

      This is useful for instance in custom plugins to:

      • add or change fulltext indexes,
      • add SQL init configuration files,
      • etc.

        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 - 2 days
                  2d
                  Remaining:
                  Remaining Estimate - 1 day
                  1d
                  Logged:
                  Time Spent - Not Specified Time Not Required
                  Not Specified