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

Bulk SetPropertiesAction - "VersioningOption" parameter does not take effect when Versioning Service is extended via XML Extension

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10.10-HF56, 2021.13
    • Component/s: Bulk
    • Release Notes Summary:
      The versioning policy order lower than 10 is enforced.
    • Upgrade notes:
      Hide

      As documented in the automatic versioning system, the versioning policy order should be higher than 10, order lower than 10 is reserved for internal purposes.
      This restriction is now enforced on LTS 2021, a server having a versioning policy contribution that doesn't respect this rule will NOT start.
      On LTS 2019, an ERROR message will be logged during Nuxeo startup.

      In addition to disable the automatic versioning system for setProperties action, we also have disabled the system for the following system related updates:

      • add/remove a document to/from a collection
      • recompute pictureViews
      • add/remove notifications subscriptions
      • add/remove tags
      • update quotas
      • recompute thumbnails
      • recompute transcodedVideos
      • recompute videoInfos

      In a more general way, the system has been disabled in the code paths where auto checkout was disabled.
      This can impact positively performance by avoiding version creation on the above low-level updates.

      Show
      As documented in the automatic versioning system , the versioning policy order should be higher than 10 , order lower than 10 is reserved for internal purposes. This restriction is now enforced on LTS 2021, a server having a versioning policy contribution that doesn't respect this rule will NOT start. On LTS 2019, an ERROR message will be logged during Nuxeo startup. In addition to disable the automatic versioning system for setProperties action, we also have disabled the system for the following system related updates: add/remove a document to/from a collection recompute pictureViews add/remove notifications subscriptions add/remove tags update quotas recompute thumbnails recompute transcodedVideos recompute videoInfos In a more general way, the system has been disabled in the code paths where auto checkout was disabled. This can impact positively performance by avoiding version creation on the above low-level updates.
    • Team:
      PLATFORM
    • Sprint:
      nxplatform #49

      Description

      The Bulk SetPropertiesAction as documented at https://doc.nuxeo.com/nxdoc/bulk-actions-directory/ has an optional parameter "VersioningOption" to improve performance by preventing versions from being created during document metadata updates.

      The "VersioningOption" parameter is "not used" when run in an implementation with a contribution to the VersioningService extension point.  For example, setting the "VersioningOption" parameter to "NONE" still creates new versions when the following XML Extension is defined in Studio:

      <extension target="org.nuxeo.ecm.core.api.versioning.VersioningService" point="policies">
       <policy id="asset-policy" order="1" beforeUpdate="true" increment="MAJOR">
       <filter-id>asset-filter</filter-id>
       </policy>
      </extension>

      Given the performance impact seen against large datasets when versions are created using the Bulk SetPropertiesAction, the "VersioningOption" parameter should take effect, even if a VersionService extension has been applied.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: