diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-09 15:08:56 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-07-09 15:08:56 +0300 |
commit | fcda041fc06e7bad3e4f5b5cff921f91c7eba717 (patch) | |
tree | a7e935192b9f846fa9257daf85a1642fbaa0f01a /app/services/post_receive_service.rb | |
parent | c3b45354d720654215eb0e7b8e718ba6ea2d7a96 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/post_receive_service.rb')
-rw-r--r-- | app/services/post_receive_service.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/app/services/post_receive_service.rb b/app/services/post_receive_service.rb index 65e6ebc17d2..69c9868c75c 100644 --- a/app/services/post_receive_service.rb +++ b/app/services/post_receive_service.rb @@ -29,8 +29,6 @@ class PostReceiveService response.add_alert_message(message) end - response.add_alert_message(storage_size_limit_alert) - broadcast_message = BroadcastMessage.current_banner_messages&.last&.message response.add_alert_message(broadcast_message) @@ -76,19 +74,6 @@ class PostReceiveService ::MergeRequests::GetUrlsService.new(project).execute(params[:changes]) end - - private - - def storage_size_limit_alert - return unless repository&.repo_type&.project? - - payload = Namespaces::CheckStorageSizeService.new(project.namespace, user).execute.payload - return unless payload.present? - - alert_level = "##### #{payload[:alert_level].to_s.upcase} #####" - - [alert_level, payload[:usage_message], payload[:explanation_message]].join("\n") - end end PostReceiveService.prepend_if_ee('EE::PostReceiveService') |