Skip to content

Add cache to storage_size DB hits

Ragnar Hardarson requested to merge cache-root-storage-size-limit into master

What does this MR do?

We're conditionally showing an alert for storage usage https://gitlab.com/groups/gitlab-org/-/epics/3942 on quite a few pages (group sub-pages and project overview). Let's save some DB hits by taking advantage of the Rails cache.

Background: !32999 (comment 351757509)

No changelog since this functionality sits behind a feature flag.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Michael Kozono

Merge request reports