app/models/harvest_event.rb
# NOTE: this logic IS repeated (there is no really elegant way to avoid this),
# so if you change this, change the _objects version!
this logic IS repeated (there is no really elegant way to avoid this),
so if you change this, change the _objects version!
this logic IS repeated ( there is no really elegant way to avoid this ) so if you change this change the _objects version!
def new_data_object_ids
    @new_data_object_ids ||= if previous_published_harvest
      these_dato_ids = Set.new(data_object_ids)
      old_dato_ids = Set.new(previous_published_harvest.data_object_ids)
      ((old_dato_ids - these_dato_ids) +
        data_object_ids_of_modified_entries).to_a
    else
      data_object_ids
    end
  end
def new_data_object_ids @new_data_object_ids ||= if previous_published_harvest these_dato_ids = Set . new ( data_object_ids ) old_dato_ids = Set . new ( previous_published_harvest . data_object_ids ) ( ( old_dato_ids - these_dato_ids ) + data_object_ids_of_modified_entries ) . to_a else data_object_ids end end
NOTE: this logic IS repeated (there is no really elegant way to avoid this),
so if you change this, change the _objects version!
NOTE : this logic IS repeated ( there is no really elegant way to avoid this ) so if you change this change the _objects version!