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

Social activity should only increment counters for visible assets

Details

    Description

      There is no need to increment asset counters when an asset is not visible. This restriction not just makes sense but also enables us to put some boilerplate code into the asset service and the social activity counter service, namely the one responsible for enabling/disabling the counters for assets when they are trashed/restored or set invisible/visible.

      To test this, you can do the following:

      1. Turn on social activities for wiki
      2. Create a new wiki page and add it to the welcome page
      3. Create a new user
      4. Log in with the new user, go to the new wiki page and comment on it
      5. Log back to the original user and add the User Statistics portlet to the page
        • You should now see that the original user has some contribution points
      6. Move the created page to the trash

      When the page is refreshed, you should see those contribution points gone.

      Attachments

        Issue Links

          Activity

            People

              linda.sui Linda Sui
              zsolt.berentey Zsolt Berentey (Inactive)
              Kiyoshi Lee Kiyoshi Lee
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                8 years, 50 weeks, 4 days ago

                Packages

                  Version Package
                  6.2.0 CE B2