4741: Negative number of open issues


What version are you running?


What's the URL of the page containing the problem?


What steps will reproduce the problem?

Exact steps unknown, problem has appeared after lots of issues being created and resolved

What is the expected output? What do you see instead?

0 open issues. API returns -1 open issues.

What operating system are you using? What browser?

Firefox on Ubuntu 18.04

Please provide any additional information below.

Issue summary table shows correct open issues count, problem emerges when trying to fetch open issue count from API. API fetches issue count directly from DB, issue summary table doesn't, maybe there is a problem with CounterField class?

#1 mykhailo.bloshko

What's the status with this bug? Fix is really necessary.

#2 david

Many of the bugs that can cause this have been fixed if you're running the latest release, but it's possible there are still lingering ones. You can temporarily fix the display by running rb-site manage /path/to/site reset-issue-counts <review-request-id> (or use --all to reset for all review requests, which may take a while). If you can come up with a specific reproduction case, we can investigate, but without knowing what steps caused the bugs it's very difficult to track these down.

  • -New
#3 cyran.norbert

Thank you for workaround, we'll check if problem persists in 3.0.10.

We can't come up with reproduction case, as I said, it seems to happen randomly, and to this day, it has happened twice

#4 lesb

I am seeing this issue as well on 3.0.13. See attached screenshot

#5 lesb

Not that this is with Chrome on Windows 10. (BTW, you have to click the screenshot above to see the whole thing)

#6 lesb

The previous comment should begin with "Note", not "Not".

#7 david

There was one additional instance of this fixed in 3.0.16. Can you upgrade to the latest release, run fixreviewcounts (https://www.reviewboard.org/docs/manual/1.7/admin/sites/management-commands/#resetting-review-request-counters), and see if you can still cause this?

#8 david
  • -NeedInfo