Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30573

As a Developer I want to filter by status when using ContentService::loadVersions method.

    XMLWordPrintable

Details

    Description

      The current implementation of Handler and Gateway for Content contains a method for listing versions which has an argument which allows specifying the particular status of the content.

      https://github.com/ezsystems/ezpublish-kernel/blob/6.7/eZ/Publish/SPI/Persistence/Content/Handler.php#L214
      https://github.com/ezsystems/ezpublish-kernel/blob/6.7/eZ/Publish/Core/Persistence/Legacy/Content/TreeHandler.php#L125

      Even though, ContentService::loadVesions() doesn't use it and loads all versions.

      I would like to change it since it should help a lot for improving CleanupVersionsCommand performance, which has been reported by the customer as an issue recently.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kamil.madejski@ibexa.co Kamil Madejski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: