[Step 4] Include personal snippets in RootStorageStatistics
At the moment, in the RootStorageStatistics
class, we gather the snippet size from every snippet create in a project belonging to a namespace. Nevertheless, we need to include the personal snippet size when the namespace belongs to a user and not a group.
For that, we need to extend RootStorageStatistics
and, when the namespace belongs to a user, the value inside snippets_size
will be the sum of all project snippets associated to the namespace plus all the personal snippets of the namespace user.
Edited by Francisco Javier López (ex-Gitlab)