Comment 2 for bug 708841

Revision history for this message
Michael Vogt (mvo) wrote :

Thanks Michael for your reply. The problem that this bug describes is that even after the cache expired the data is still wrong (or appears to be wrong). It looks like a review in moderation is not affecting the stats. I did a moderation request on the reviews for 2vcard yesterday (~24h ago) and all of them are in the moderation queue currently. But the stats still count them today:
$ w3m -dump https://reviews.staging.ubuntu.com/reviews/api/1.0/review-stats/|grep -B4 -A1 2vcard
    {
        "ratings_total": 8,
        "ratings_average": "3.75",
        "app_name": "",
        "package_name": "2vcard"
    },

I agree that we need to provide the caching and that the client will have to do tricks in order ot update its data (its doing that to some extend already).