lib/inventory_refresh/persister.rb
Method add_collection
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def add_collection(collection_name, builder_class = inventory_collection_builder, extra_properties = {}, settings = {}, &block)
- Create a ticketCreate a ticket
Use filter_map
instead. Open
Open
collections_data = collections.map do |_, collection|
next if collection.data.blank? &&
collection.targeted_scope.primary_references.blank? &&
collection.all_manager_uuids.nil? &&
collection.skeletal_primary_index.index_data.blank?
- Create a ticketCreate a ticket
- Exclude checks