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.

Home Page:https://answer.apache.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question view counter keeps increasing when viewing self question with browser refresh

prithvidasgupta opened this issue · comments

Describe the bug

A user can keep revisiting their own question and the view counter keeps increasing.

It may lead to potential scenarios where an anxious user can keep revisiting their question and reach thousands of views (when in reality no one other than them has actually viewed the question).

To Reproduce

Steps to reproduce the behavior:

  1. Log in
  2. Ask a question
  3. Notice the view counter
  4. Keep refreshing the question detail page
  5. Notice view counter keeps increasing

Expected behavior

Ability to not count own views.

Yes, you're right. The function here is to count page views (PV) rather than unique visitors (UV). We could ask @fenbox whether it's necessary to track one's own visits to their questions.

commented

I think pageviews should count the total number of visits, including those made by the author.