app/models/manager_refresh/inventory_collection.rb
# True if processing of this InventoryCollection object would lead to no operations. Then we use this marker to
# stop processing of the InventoryCollector object very soon, to avoid a lot of unnecessary Db queries, etc.
#
# @return [Boolean] true if processing of this InventoryCollection object would lead to no operations.
True if processing of this InventoryCollection object would lead to no operations. Then we use this marker to
stop processing of the InventoryCollector object very soon, to avoid a lot of unnecessary Db queries, etc.
True if processing of this InventoryCollection object would lead to no operations . Then we use this marker to stop processing of the InventoryCollector object very soon to avoid a lot of unnecessary Db queries etc .
def noop?
      if targeted?
        if parent_inventory_collections.nil? && targeted_scope.blank? &&
           all_manager_uuids.nil? && parent_inventory_collections.blank? && custom_save_block.nil? &&
           skeletal_primary_index.blank?
          true
        elsif !parent_inventory_collections.nil? && parent_inventory_collections.all? { |x| x.targeted_scope.blank? } &&
              skeletal_primary_index.blank?
          true
        else
          false
        end
      elsif data.blank? && !delete_allowed? && skeletal_primary_index.blank?
        true
      else
        false
      end
    end
def noop? if targeted? if parent_inventory_collections . nil? && targeted_scope . blank? && all_manager_uuids . nil? && parent_inventory_collections . blank? && custom_save_block . nil? && skeletal_primary_index . blank? true elsif ! parent_inventory_collections . nil? && parent_inventory_collections . all? { | x | x . targeted_scope . blank? } && skeletal_primary_index . blank? true else false end elsif data . blank? && ! delete_allowed? && skeletal_primary_index . blank? true else false end end
True if processing of this InventoryCollection object would lead to no operations.
True if processing of this InventoryCollection object would lead to no operations .
# If this InventoryCollection doesn't do anything. it can easily happen for targeted/batched strategies. # It's a noop Parent targeted InventoryCollection # It's a noop Child targeted InventoryCollection # If we have no data to save and delete is not allowed, we can just skip
true if processing of this InventoryCollection object would lead to no operations.
true if processing of this InventoryCollection object would lead to no operations .
Boolean