Skip to content

Forum stats not shown when only deleted posts exist #12706

Description

@not-so-shubh

Describe the issue

On the discussion forum statistics page, when there are no visible (non-deleted) threads/posts, no statistics rows are displayed, even if deleted posts exist.

Since the stats table includes a "Total Deleted Posts" column, deleted posts are tracked but not shown in this scenario.

Expected behavior

If deleted posts exist, the stats page should still display rows showing how many posts each user has deleted, even if there are no non-deleted threads/posts.

To Reproduce
Steps to reproduce the behavior:

  1. Go to the Discussion Forum stats page (/forum/stats)
  2. Ensure there are only deleted posts (no visible threads/posts)
  3. Observe that no statistics rows are shown

Configuration

  • OS: macOS
  • Browser: Chrome

Screenshots

A screen recording is attached showing:

  • the stats page when only deleted posts exist
  • no statistics rows being displayed despite deleted posts being tracked
Screen.Recording.2026-03-30.at.20.50.29.2.mov

Additional context

Discussed with a maintainer, and it was noted that since deleted posts are tracked, they should likely be visible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting TriageBrand New Issue - not yet reviewed & prioritized by the Submitty Project Managersbug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions