Skip to content

Use different callout for repository

What does this MR do and why?

This MR closes:

https://gitlab.com/gitlab-org/gitlab/-/issues/408110

In this MR we: Add a new callout for repository alerts and use it instead of the general namespace callout.

Setup/Test

rails c

  1. ::Feature.enable(:namespace_storage_limit_show_preenforcement_banner)

  2. ::Gitlab::CurrentSettings.update(enforce_namespace_storage_limit: false)

  3. group = Group.find(<group id>) #Pick any group

  4. group.actual_limits.update(notification_limit: 100)

  5. Set the storage Size (Update group.root_storage_statistics.update(storage_size: 1000.megabytes) OR Create RootStorageStatistics with 1000.megabytes)

    Namespace::RootStorageStatistics.create(
      namespace: group,
      storage_size: 1000.megabytes
    )

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Mohamed Hamda

Merge request reports

Loading