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

Fields 'ratings', 'visible' and 'viewCount' are not updated in index when they are updated in database (AssetEntry / Ratings) without modification of own object (JournalArticle, DLFileEntry...)

    Details

      Description

      Fields 'ratings', 'visible' and 'viewCount' are not updated in index when they are updated in database:

      • com.liferay.portlet.ratings.service.impl.RatingsStatsLocalServiceImpl
      • com.liferay.portlet.asset.service.impl.AssetEntryLocalServiceImpl

      ... without modification of own object (JournalArticle, DLFilEntry...)

      Steps to reproduce

      1. Create a JournalArticle and a DLFileEntry
      2. Add them to a AssetPublisher and configure it to view ratings
      3. Check viewCount and ratings of both objects in Database and index ElasticSearch (master) / Lucene (6.2.x)
      4. Update ratings of both objects
      5. Download DLFileEntry (in order to update viewCount)
      6. Check viewCount and ratings of both objects in Database and ElasticSearch (master) / Lucene (6.2.x):
        • Wrong behaviour: values are updated only in database
        • Expected behaviour: values are updated in both sides (index and database)

        Attachments

        1. fix_1.png
          fix_1.png
          70 kB
        2. fix_62.png
          fix_62.png
          91 kB
        3. fix_ee-7.0.x.png
          fix_ee-7.0.x.png
          16 kB
        4. fix.png
          fix.png
          74 kB
        5. reproduce.png
          reproduce.png
          38 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 19 weeks, 4 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP1
                  7.0.2 CE GA3
                  7.0.0 DXP SP1
                  7.0.3 CE GA4
                  Master