Use proper STI names in code for various namespace types
Convert usage of hardcoded namespace types such as Group
and User
into their STI equivalent names. For example,
type: 'Group'
would become type: Group.sti_name
This is because we are now overriding the STI name for namespaces (for example https://gitlab.com/gitlab-org/gitlab/-/blob/master/app/models/namespaces/user_namespace.rb). So we should really use those values rather than hardcoding them.
Edited by Brett Walker