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
-
::Feature.enable(:namespace_storage_limit_show_preenforcement_banner)
-
::Gitlab::CurrentSettings.update(enforce_namespace_storage_limit: false)
-
group = Group.find(<group id>)
#Pick any group -
group.actual_limits.update(notification_limit: 100)
-
Set the storage Size (Update
group.root_storage_statistics.update(storage_size: 1000.megabytes)
OR Create RootStorageStatistics with1000.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.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Mohamed Hamda