Fix FieldError trying to sort the reviews datagrid on review_summary.
Review Request #14966 — Created March 26, 2026 and submitted
The
ReviewSummaryColumnwas marked as sortable, but that was a
mistake. This change removes that flag so we don't trigger FieldError
due to the lack of aget_sort_field.
Opened a reviews datagrid with ?sort=review_summary and verified that it
didn't crash.
| Summary | ID |
|---|---|
| nlytvypuxskokyptnnzqxtuukwmuqynp |
| Description | From | Last Updated |
|---|---|---|
|
Being sortable was a mistake. This would be an expensive sort, so I think we should just disable sorting here. |
|
- Description:
-
~ The
ReviewSummaryColumnnow lists itself as sortable, but it does not~ map directly to a field name and did not define get_sort_field. This~ was causing crashes when it was included in the sort list for the ~ The
ReviewSummaryColumnwas marked as sortable, but that was a~ mistake. This change removes that flag so we don't trigger FieldError ~ due to the lack of a get_sort_field.- datagrid. - - This change adds a
get_sort_fieldimplementation that properly maps to- the review request summary. - Testing Done:
-
~ Sorted by "Review Request Summary" in a reviews datagrid and saw that it
~ no longer crashed, and that ascending/descending sort worked as ~ Opened a reviews datagrid with ?sort=review_summary and verified that it
~ didn't crash. - expected. - Commits:
-
Summary ID nlytvypuxskokyptnnzqxtuukwmuqynp nlytvypuxskokyptnnzqxtuukwmuqynp