Geo: Move RegistryClassEnum value transformation to a method in BaseRegistry
Summary
There is an opportunity to extract the transformation of registry_class.to_s.gsub('Geo::', '').underscore.upcase
to a dedicated method in BaseRegistry
.
We can remove that transformation using the new method in the following places:
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/spec/requests/api/graphql/mutations/geo/registries/update_spec.rb#L18
- https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/app/graphql/types/geo/registry_class_enum.rb#L16
More context: !121591 (comment 1413408929)
Edited by Javiera Tapia