Commit f5b8fd0e authored by Nikola Milojevic's avatar Nikola Milojevic

Merge branch 'report-zero-orpahned-commit-statuses' into 'master'

Log orphaned commit statuses even if there are none

See merge request gitlab-org/gitlab!74136
parents e43f717a 7b2ca2ce
......@@ -152,7 +152,6 @@ module Projects
deleted_count = project.commit_statuses.delete_all
if deleted_count > 0
Gitlab::AppLogger.info(
class: 'Projects::DestroyService',
project_id: project.id,
......@@ -160,7 +159,6 @@ module Projects
orphaned_commit_status_count: deleted_count
)
end
end
# The project can have multiple webhooks with hundreds of thousands of web_hook_logs.
# By default, they are removed with "DELETE CASCADE" option defined via foreign_key.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment