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

As a site administrator, I can publish to live deleted assets as part of the publication process.

    Details

      Description

      The goal of this task is to implement clear and efficient mechanism so that when a content is deleted in staging this operation can be propagated to live as part of the publication to live.

      It should also be possible to export delete-asset operations so that on import they are deleted in the target site. This is very useful for complex environments where publication to live is done manually through LAR files.

      TECHNICAL DETAILS

      (1) Update all portlet data handlers to not delete social activity when entity is deleted
      (2) When entity is deleted, add SocialActivity entry for event
      (3) When deleting entire site, delete social activity.

      For (3), look in GroupLocalServiceImpl: we are using PortletDataHandlers for deletions now.

      Need to make sure any changes to Activities do not break activities portlet.

      STEPS TO TEST:

      1. Create two sites: SiteA and SiteB
      2. In SiteA go to Site Administration > Content > Bookmarks and add two bookmarks: Liferay (http://www.liferay.com) and AlloyUI (http://alloyui.com)
      3. Click the wrench icon and select Export/Import > Leave options unchanged > Click Export > Download the LAR
      4. In SiteB go to Site Administration > Content > Bookmarks > Click the wrench icon and select Export/Import > Select the import tab > drop the LAR from previous and complete the process. Check that the two bookmarks have been imported in Site B
      5. Go back to Bookmarks in Site A and send the Liferay bookmark to the Recycle Bin. Go to Recycle Bin and empty it.
      6. Go back to Bookmarks, click the wrench icon and select Export/Import. In the Content section, click the change link under "Comments, Ratings and Deletions". Check the Deletions option and Save. Notice that a badge with "1 Deletion" message is display next to the Content checkbox. Click Export and download the LAR file.
      7. Now go to Site B > Bookmarks > Export/Import > Import. Drop the file from previous step and click Continue. Under "Comments, Ratings and Deletions" check the Deletions option and click save. Notice that a badge with "1 Deletion" message is display next to the Content checkbox, meaning that the LAR to import contains one deletion operation. Continue with the import process.
      8. Finally, check that the Liferay bookmark has been removed from Site B.

      The integration test testExportImportDeletions at BaseExportImportPortletTestCase.java has been added to test this feature.

        Attachments

        1.
        Remove social activities only when group is deleted [Reverted] LPS-35226 Technical Task Closed Evan Nagayama (Inactive)  
        2.
        Add system event when entity is deleted LPS-35229 Technical Task Closed Evan Nagayama (Inactive)  
        3.
        Implement and use a hierarchy stack to avoid storing delete events for child entities LPS-35256 Technical Task Closed Evan Nagayama (Inactive)  
        4.
        Export deleted entities to a new file in the LAR called deletions.xml LPS-35257 Technical Task Closed Evan Nagayama (Inactive)  
        5.
        Implement parent-child relationship between activities LPS-35373 Technical Task Closed Evan Nagayama (Inactive)  
        6.
        Add deletions to the manifest summary LPS-35598 Technical Task Closed Evan Nagayama (Inactive)  
        7.
        Add information to the export and publish to live UIs showing the user the number of deletions that will be included in the operation LPS-35791 Technical Task Closed Evan Nagayama (Inactive)  
        8.
        Add information to the import LAR UI showing the number of deletions that will occur if the import is performed LPS-35792 Technical Task Closed Evan Nagayama (Inactive)  
        9.
        Update SocialActivityPermission to be callable from outside of core portal LPS-36005 Technical Task Closed Evan Nagayama (Inactive)  
        10.
        Create a SystemEventEntry model to store system events (used for deletions for now) LPS-36037 Technical Task Closed Evan Nagayama (Inactive)  
        11.
        Create a StagedModelType class to hold classNameIds for staged models LPS-36407 Technical Task Closed Evan Nagayama (Inactive)  
        12.
        Add filter by company id in export dynamic queries LPS-36457 Technical Task Closed Daniel Kocsis (Inactive)  
        13.
        Revert to leaving the social activity stream intact when an entity is deleted LPS-36572 Technical Task Closed Evan Nagayama (Inactive)  

          Activity

            People

            Assignee:
            maria.kispal Mária Kispál (Inactive)
            Reporter:
            michael.han Michael Han (Inactive)
            Recent user:
            Kiyoshi Lee
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package
                7.0.0 M6