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

Add missing API to fetch the history of a document

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.5
    • Fix Version/s: 5.6-RC1, 5.6
    • Component/s: Audit
    • Impact type:
      API added
    • Upgrade notes:
      Hide

      The default definition of the DOCUMENT_HISTORY_PROVIDER provider has been replaced, but the old one is still accessible under name DOCUMENT_HISTORY_PROVIDER_OLD.
      The default contentview has been updated accordingly.

      Show
      The default definition of the DOCUMENT_HISTORY_PROVIDER provider has been replaced, but the old one is still accessible under name DOCUMENT_HISTORY_PROVIDER_OLD. The default contentview has been updated accordingly.

      Description

      AuditLog stores the event for the "live" document.
      Direct access to audit logs for proxies or version don't return full document history.

      In order to have full document history we need to merge : audit of the version/proxy + audit of the associated live document before proxy/version was created.
      This logic was previously managed by the Seam Bean for audit, but this is really not the right place.

      The problem is not really visible in 5.5, since we don't show history tab on proxies ...

      The point here is :

      • create a hight level DocumentHistoryReader service that can be used for that
      • create a PageProvider
      • add an history view on proxies for Administrator

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tdelprat Thierry Delprat
                Reporter:
                tdelprat Thierry Delprat
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: