apache / incubator-answer

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
https://answer.apache.org
Apache License 2.0
11.93k stars 872 forks source link

The review count in the Admin is not correct #958

Closed fenbox closed 2 weeks ago

fenbox commented 1 month ago

To Reproduce

Steps to reproduce the behavior:

  1. A new question in review queue
  2. Click Reject button
  3. The question is automatically deleted
  4. The review count still show "1" in Admin Dashboard

Expected behavior

There is no review tasks left. The review count should be "0".

Screenshots

image

image

Platform

LinkinStars commented 3 weeks ago

The reason for this issue is because the Dashboard data is cached. However, the review data should not be cached and should be queried in real-time. Otherwise, it may mislead users into thinking that there are pending review items.

sy-records commented 3 weeks ago

@LinkinStars Can you assign this to me?