Fix a bug with the Review Summary column.
Review Request #15015 — Created April 16, 2026 and submitted
In our recent datagrid updates, we gave the
ReviewSummaryColumna
link_css_classofreview-request-link. This is the class used for
review request info boxes, which takes the cell'shreftarget and uses
that to create the review request info box. Thehreftarget for review
summary cells is the review URL, but the review request info box
requires a review request URL to work properly. This was causing a bug
where the info box was populated with a poorly formatted review request
page.Previously we didn't set the
link_css_classfor the
ReviewSummaryColumn, which meant that the review request info box
wouldn't show up when hovering over the review request summary of the
column. This change fixes the bug and improves the behaviour, we now
supply the review request URL to the info box through the column's
render context and a custom template for the review summary cells.
- Ran unit tests.
- Hovered over review summary column cells, saw the bug was fixed.
- Hovered over review request summary column cells.
| Summary | ID |
|---|---|
| e27db99cdd21f4b40d3b2722ad7f9f8c19adf160 |
| Description | From | Last Updated |
|---|---|---|
|
Should be SafeString not str |
|
|
|
We're not expecting any exceptions from get_absolute_url, so this could be a bit simpler: render_context['review_request_url'] = \ obj.review_request.get_absolute_url() try: return … |
|
|
|
This needs "Args" and "Returns" |
|
|
|
Can we move this comment above the reviewRequestURL definition? |
|
|
|
This will need to be the full module path. |
|
|
|
Can you surround the data attribute name with double backticks? |
|
|
|
Since we're just computing the prefix, maybe we should do: const url = $target.data('review-request-url') || $target.attr('href'); return `${url}infobox/`; |
|
- Commits:
-
Summary ID fd5d0e2e0b207aac39dad28b28c74e89cf2bab78 7fe2edba1b28f94f169be92646272a944d5d4c93
Checks run (2 succeeded)
-
-
-
I think this will be okay, but just to note,
render_cell()does some caching based on a pre-set list of fields used for a key. This includesurlbut wouldn't includereview_request_url. I assume though that this is fine becauseurlshould be more unique thanreview_request_url. Just want to verify my assumption on that. -
-
Since we're just computing the prefix, maybe we should do:
const url = $target.data('review-request-url') || $target.attr('href'); return `${url}infobox/`;