Skip to content

Pick repository storage based on weight

John Cai requested to merge jc-pick-weighted-repository into master

What does this MR do?

After !31645 (merged), we are now saving repository storages with a weight from 0-100. We also need to change application settings and the way it picks a repository. Currently it still uses repository_storages instead of repository_storages_weighted.

This mr fixes that.

fixes: #220852 (closed)

Screenshots

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

Merge request reports