Skip to content

Introduce HashedPath class

Max Orefice requested to merge mo-introduce-hashed-path into master

Following up the great suggestion made by @iamricecake.

What does this MR do?

This MR refactors the way we generated disk_path for our uploaders.

The way we generate our uploader storage directory is not very DRY.

This MR aims to centralize common business logic used across several uploaders.

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 Max Orefice

Merge request reports

Loading