• 
      

    Add unit tests for nearly all datagrid columns.

    Review Request #14843 — Created Feb. 20, 2026 and submitted

    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).
    177b35f8fe69492b431f5813630a3f4d8e4fd649
    Description From Last Updated

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

    reviewbot reviewbot

    Can we have the class docstrings match what the module docstring says ("Unit tests for ...")? Same for the others.

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

    flake8

    chipx86
    david
    1. 
        
    2. Show all issues

      Can we have the class docstrings match what the module docstring says ("Unit tests for ...")? Same for the others.

      1. Yeah, not sure how I ended up with that format. Bad start and copy/paste.

    3. 
        
    chipx86
    david
    1. Ship It!
    2. 
        
    maubin
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.1.x (483cc23)