Draft: Usage Quotas: Repository Health Details

Why Draft?

What does this MR do and why?

Closes #509253

This change is behind the feature flag (:project_repositories_health)

This change adds a new section to the Project usage quotas view that allows users to dig deeper into their Repository's health through the Repository Health Report.

Screenshots or screen recordings

Demo User_Flow

Expanded Collapsed Empty State
Screenshot_2025-12-08_at_12.32.33_PM Screenshot_2025-12-08_at_12.32.24_PM Screenshot_2025-12-12_at_9.27.05_AM
Expand for the API response used for this UI
{
  "size": 11450842,
  "references": {
    "loose_count": 10,
    "packed_size": 9612,
    "reference_backend": "REFERENCE_BACKEND_FILES"
  },
  "objects": {
    "size": 11298281,
    "recent_size": 11296301,
    "stale_size": 1980,
    "keep_size": 0,
    "packfile_count": 2,
    "reverse_index_count": 2,
    "cruft_count": 1,
    "keep_count": 0,
    "loose_objects_count": 0,
    "stale_loose_objects_count": 0,
    "loose_objects_garbage_count": 0
  },
  "commit_graph": {
    "commit_graph_chain_length": 1,
    "has_bloom_filters": true,
    "has_generation_data": true,
    "has_generation_data_overflow": false
  },
  "bitmap": null,
  "multi_pack_index": {
    "packfile_count": 2,
    "version": 1
  },
  "multi_pack_index_bitmap": {
    "has_hash_cache": true,
    "has_lookup_table": true,
    "version": 1
  },
  "alternates": null,
  "is_object_pool": false,
  "last_full_repack": {
    "seconds": 1764612001,
    "nanos": 0
  },
  "updated_at": "2025-12-08T17:48:56.612Z"
}

How to set up and validate locally

  1. Enable feature flag Feature.enable(:project_repositories_health)
  2. Navigate to the Project -> Settings -> Usage Quotas
  3. Ensure Repository has a expandable chevron on it
  4. When clicked you can generate a new Health report
  5. Data is presented once report is generated
  6. You can click Regenerate Report button to regenerate the report with fresh data

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #509253

Edited by Zack Cuddy

Merge request reports

Loading