Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3295 by review_id in request columns user profile breaks reviewboard for some users when upgrading from 1.7.16 to 2.0rc1

*** You must complete this form in its entirety, or your bug report will be
*** For customer support, please post to
*** If you have a patch, please submit it to
*** Do not post confidential information in this bug report!

What version are you running?

1.7.16 (attempted to upgrade to 2.0rc1)

(I've now upgraded to 1.7.22, it looks like the same thing will happen when I upgrade.)

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

What steps will reproduce the problem?
1. Add review id as a column in the dashboard
2. Optionally sort on it
3. Upgrade to 2.0rc1

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

Expecting the dashboard, instead you get the following exception:

FieldError: Cannot resolve keyword u'review_id' into field. Choices are: blocks, branch, bugs_closed, changedescs, changenum, commit_id, depends_on, description, diffset_history, draft, draft_blocks, email_message_id, extra_data, file_attachments, id, inactive_file_attachments, inactive_screenshots, issue_dropped_count, issue_open_count, issue_resolved_count, last_review_activity_timestamp, last_updated, local_id, local_site, public, repository, reviews, rich_text, screenshots, shipit_count, starred_by, status, submitter, summary, target_groups, target_people, testing_done, time_added, time_emailed, visits

Stacktrace (most recent call first):

  File "django/db/models/sql/", line 1277, in names_to_path
    "Choices are: %s" % (name, ", ".join(available)))
  File "django/db/models/sql/", line 1357, in setup_joins
    names, opts, allow_many, allow_explicit_fk)
  File "django/db/models/sql/", line 466, in _setup_joins
    pieces, opts, alias)
  File "django/db/models/sql/", line 433, in find_ordering_name
    field, cols, alias, joins, opts = self._setup_joins(pieces, opts, alias)
  File "django/db/models/sql/", line 399, in get_ordering
    self.query.get_meta(), default_order=asc):
  File "django/db/models/sql/", line 83, in as_sql
    ordering, o_params, ordering_group_by = self.get_ordering()
  File "django/db/models/sql/", line 772, in execute_sql
    sql, params = self.as_sql()
  File "django/db/models/sql/", line 709, in results_iter
    for rows in self.execute_sql(MULTI):
  File "django/db/models/", line 1065, in iterator
    for row in self.query.get_compiler(self.db).results_iter():
  File "django/db/models/", line 854, in _fetch_all
    self._result_cache = list(self.iterator())
  File "django/db/models/", line 96, in __iter__
  File "djblets/datagrid/", line 797, in precompute_objects
    'pk', flat=True))
  File "djblets/datagrid/", line 727, in load_state
  File "djblets/datagrid/", line 921, in render_to_response
  File "reviewboard/datagrids/", line 59, in dashboard
    return grid.render_to_response(template_name)
  File "reviewboard/accounts/", line 44, in _check_valid_prefs
    return view_func(request, *args, **kwargs)
  File "reviewboard/site/", line 35, in _check
    return view_func(request, local_site=local_site, *args, **kwargs)
  File "django/contrib/auth/", line 22, in _wrapped_view
    return view_func(request, *args, **kwargs)
  File "django/core/handlers/", line 114, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)

What operating system are you using? What browser?

Server: Amazon Linux AMI
Client: OS X 10.9.2 + FireFox Aurora

Please provide any additional information below.

This looks like a possibly missing migration from 1.7.x to 2.0.

If I go into the admin dashboard and remove the review_id from the user profile request columns it works fine.

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to