Actions
Bug #12925
openNeed to break up Repository model to smaller size
Description
Repository model is close to breaking the max class length rubo cop limit.
According to our rubocop metrics, max length per class is 500 lines. Repository.rb is very close to crossing that.
https://github.com/Katello/katello/blob/master/app/models/katello/repository.rb
One approach is to split functionality to different modules and include it in the main model.
Updated by The Foreman Bot over 9 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/5685 added
Updated by Eric Helms over 9 years ago
- Translation missing: en.field_release set to 114
Updated by Partha Aji over 9 years ago
So the suggestion for this is to use Single Table Inheritance.
Remove the rubocop class length directive.
Actions