Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-15987

Ratings average is not updated if the ratings are installed on multiple wikis

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • 12.7-rc-1
    • 9.11.3
    • Ratings
    • Unknown
    • N/A
    • N/A

    Description

      How to reproduce:

      • on a wiki, install the ratings application on the main wiki
      • [create a subwiki]
      • install the ratings application on the subwiki
      • back on the main wiki:
        • using the RatingsConfig class, configure the ratings on a space to store the average of the ratings (without separate space ratings storage)
        • rate a page
        • login with another user
        • add another rating - the average rating is displayed on the screen
        • reload the page

      Expected result:

      • the average rating is still displayed properly

      Actual result

      • the average rating is not displayed properly anymore: only one vote is displayed, the first one
      • if at this point the page objects are checked, the average rating object is not updated to reflect the new number of ratings and the average value

      Important note: when used with the standard UI, the way this issue is perceived by the user is that their rating is not properly registered (upon page reload after adding the new vote, the displayed rating still displays only 1 vote and the old value).

      Attachments

        Issue Links

          Activity

            People

              mleduc Manuel Leduc
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: