Manage Discussion Storage
Description
We should aim to provide visibility and any associated management tools for Discussion uploads. For Discussion, there isn't significant cleanup opportunities without impacting functionality, as the majority of these files are associated with Issue uploads.
Proposal
Currently for a project administrator, there isn't a method to see how much space Discussion uploads are consuming. As part of the broader Usage tab, we should provide some basic information:
- Current Discussion storage usage, and a quick 30 day chart on growth.
- If more than one type (aside from issue uploads), display the breakdown
For cleanup, we should also consider a housekeeping option similar to Git. This could run periodically in the background, but also on-demand if needed (#32086). It can look at all uploads, determine which are still referenced by Issues, and delete any that are not. Currently I do not believe there is any cleanup occurring if I upload a file but do not reference it. (Or later edit my comment/issue)