1539: 'WatchedGroupDataGrid' object has no attribute 'counts'

lon***@gmai***** (Google Code) (Is this you? Claim this profile.)
July 4, 2010
What version are you running?
1.5 Beta1

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

(A user reported the issue on our system, but I could reproduce
on reviewboard.org)

What steps will reproduce the problem?
1. Click on link for Starred Groups if it exists)
2. Or go directly to:

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

Expected: Datagrid view.

Without debug:
Something broke! (Error 500)

It appears something broke when you tried to go to here. This is either a
bug in Review Board or a server configuration error. Please report this to
your administrator. 

With debug:

Request Method:	GET
Request URL:	http://reviews.reviewboard.org/dashboard/?view=watched-groups
Exception Type:	TemplateSyntaxError
Exception Value:	
Caught an exception while rendering: 'WatchedGroupDataGrid' object has no
attribute 'counts'

Original Traceback (most recent call last):
line 71, in render_node
    result = node.render(context)
line 936, in render
    dict = func(*args)
line 326, in dashboard_entry
    elif view in datagrid.counts:
AttributeError: 'WatchedGroupDataGrid' object has no attribute 'counts'

What operating system are you using? What browser?

Windows XP, Chrome, Firefox...

Please provide any additional information below.

Users are not able to star groups in the current version (see issue 1538)
but users who migrated from a previous version still see the link if they
previously starred so me groups.
I can see in reviewboard/reviews/datagrids.py that self.counts is only
defined for DashboardDataGrid
#1 chipx86
This should be fixed in the in-development beta 2. Will check soon.
  • +Confirmed
  • +Component-Dashboard
#2 lon***@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm still seeing the issue on 1.5 Beta 2:
(or my private installation).

From the main dashboard, you have to click on "Watched Groups" to trigger the error.
Clicking on any of the groups under Watched Groups looks OK.
#3 chipx86
  • +Milestone-Release1.5
  • +chipx86
#4 chipx86
Fixed on master (7245bed)
  • -Confirmed