• 
      

    Fix extra increments/decrements in the issue table after reloading.

    Review Request #9342 — Created Oct. 31, 2017 and submitted — Latest diff uploaded

    Information

    Review Board
    release-3.0.x
    653efd7...

    Reviewers

    When reloading the issue summary table from the server after a watched
    status update finished, resolving an issue would cause the counter on
    the tab to decrement twice. If the table had reloaded a third time, the
    count would be decremented a third time.

    This was due to an event handler being registered every time the view
    was reloaded, causing the issue status change handler to be called too
    many times. Old event handlers are now unregistered when rendering the
    view to ensure this doesn't happen.

    Triggered re-renders of the Issue Summary Table and resolved issues to
    reproduce the bug. After the fix, the counts were correct.