Add unit tests for nearly all datagrid columns.

Review Request #14843 — Created Feb. 21, 2026 and updated

Information

Review Board
release-7.1.x

Reviewers

We were lacking tests for most datagrid columns, and this meant that we
didn't catch a series of implementation issues, such as a mixture of
safe and non-safe strings for HTML, non-string return types for
rendering (integers and a Repository instance in one case).

Upcoming work will be addressing these and adding support required for
a dashboard API resource. To prepare for that, and to provide a good
base for upcoming fixes, this change fleshes out our datagrid column
test suite to cover all columns but the Repository column (which can't
easily be tested without those fixes).

Unit tests pass.

Summary ID
Add unit tests for nearly all datagrid columns.
We were lacking tests for most datagrid columns, and this meant that we didn't catch a series of implementation issues, such as a mixture of safe and non-safe strings for HTML, non-string return types for rendering (integers and a `Repository` instance in one case). Upcoming work will be addressing these and adding support required for a dashboard API resource. To prepare for that, this change fleshes out our datagrid column test suite to cover all columns but the Repository column (which can't easily be tested without the upcoming fixes).
ce0bd5964a7b9232457f49bb6d313cc63739f7fa
Description From Last Updated

'django.utils.safestring.SafeString' imported but unused Column: 1 Error code: F401

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
Review request changed
Change Summary:

Removed an unused import.

Commits:
Summary ID
Add unit tests for nearly all datagrid columns.
We were lacking tests for most datagrid columns, and this meant that we didn't catch a series of implementation issues, such as a mixture of safe and non-safe strings for HTML, non-string return types for rendering (integers and a `Repository` instance in one case). Upcoming work will be addressing these and adding support required for a dashboard API resource. To prepare for that, this change fleshes out our datagrid column test suite to cover all columns but the Repository column (which can't easily be tested without the upcoming fixes).
7c40c1a9ebef05796c853f412d4b1db1cf32c573
Add unit tests for nearly all datagrid columns.
We were lacking tests for most datagrid columns, and this meant that we didn't catch a series of implementation issues, such as a mixture of safe and non-safe strings for HTML, non-string return types for rendering (integers and a `Repository` instance in one case). Upcoming work will be addressing these and adding support required for a dashboard API resource. To prepare for that, this change fleshes out our datagrid column test suite to cover all columns but the Repository column (which can't easily be tested without the upcoming fixes).
ce0bd5964a7b9232457f49bb6d313cc63739f7fa

Checks run (2 succeeded)

flake8 passed.
JSHint passed.