Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-122694

[Page versioning] Publishing a Page to Live hides the Draft versions that exist after the version marked as "Ready for Publication"

    Details

      Description

      Publishing a Page to Live hides the Draft versions that exist after the version marked as "Ready for Publication".

      This is caused because the publish operation changes the version that is consider the "Current Version" to the last "Ready for publication" version, hidding the Draft versions that are more recent.

      This problem is reproduced after LPS-78292 changes because that LPS adds this code block in the StagingImpl.getRecentLayoutRevisionId method:

      Having the head version during Staging operations, causes this other code to add a new RecentLayoutRevision record to database:

      Steps to Reproduce

      1. Create a new site with one page
      2. Activate Local Staging with page versioning
      3. Add a portlet to the page, mark as "ready for publication" and publish it to live
      4. The page will change to "In Live" status
      5. Add a portlet to the page and mark it as "ready for publication" (don't publish the page!)
      6. The page is in "ready for publication" state
      7. Add a new portlet in order to create a new version
      8. Check version history, you will have: (v1) Draft - Current Version (v2) Ready for publication (v3) In Live (v4) Approved
      9. Publish the page to Live
      10. Chech version history:
        • Expected behavior: Page version history is: (v1) Draft - Current Version (v2) In Live (v3) Approved (v4) Approved - Current version is the Draft one and you can continue working on it.
        • Wrong behavior: Page version history is: (v1) Draft (v2) In Live - Current Version (v3) Approved (v4) Approved - Current version is the "In Live" one and it is not possible to continue working on the Draft version as it is hidden by the "In Live" one.

        Attachments

          Activity

            People

            Assignee:
            joyce.wang Joyce Wang
            Reporter:
            jorge.diaz Jorge Diaz
            Participants of an Issue:
            Recent user:
            Yunlin "Steven" Sun
            Engineering Assignee:
            Jorge Diaz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              38 weeks, 2 days ago

                Packages

                Version Package
                7.2.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                Master