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

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

What's the URL of the page containing the problem?
http://reviews.reviewboard.org/dashboard/?view=watched-groups

(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:
http://reviews.reviewboard.org/dashboard/?view=watched-groups

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):
  File
"/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/debug.py",
line 71, in render_node
    result = node.render(context)
  File
"/usr/lib/python2.5/site-packages/Django-1.1.1-py2.5.egg/django/template/__init__.py",
line 936, in render
    dict = func(*args)
  File
"/usr/lib/python2.5/site-packages/ReviewBoard-1.5beta1-py2.5.egg/reviewboard/reviews/templatetags/reviewtags.py",
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
chipx86
#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:
http://demo.reviewboard.org/dashboard/?view=watched-groups
(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.
chipx86
#3 chipx86
  • +Milestone-Release1.5
  • +chipx86
chipx86
#4 chipx86
Fixed on master (7245bed)
  • -Confirmed
    +Fixed