Extend Organizations::Organization#empty? to all attached resources

What does this MR do and why?

Extends Organizations::Organization#empty? to verify that snippets, topics, integrations, and system_hooks are also empty in addition to groups and projects before allowing organization deletion to proceed.

References

How to set up and validate locally

bundle exec rspec spec/models/organizations/organization_spec.rb -e '#empty?'

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist.

Merge request reports

Loading
Loading