app/controllers/program_controller.rb
#
# Report back on what has changed. This is used to generate the pink sheets.
#
# Item time and room changes
# New Items
# Dropped Items
# Participants Added
# Participants Dropped
#
# Title and Description changes
#
# Person add
# Person roleChange
# Person remove
#
#
Report back on what has changed. This is used to generate the pink sheets.
Item time and room changes
New Items
Dropped Items
Participants Added
Participants Dropped

Title and Description changes


Report back on what has changed . This is used to generate the pink sheets . Item time and room changes New Items Dropped Items Participants Added Participants Dropped Title and Description changes
def updates
    @scale = params[:scale].to_f
    @changes = nil
    first_date = PublicationDate.order('id desc').first
    if first_date
      pubIndex = params[:pubidx] ? params[:pubidx].to_i : first_date.id
    else
      pubIndex = 0
    end
    @extra_item_json = [] if ! @extra_item_json
    @cloudinaryURI = get_base_image_url
    @partition_val = /upload/
    if pubIndex > 0
      since_date = PublishedProgramItemsService.determineChangeDate(pubIndex)
      @changes = PublishedProgramItemsService.getUpdates(since_date)
    end
  end
def updates @scale = params [ :scale ] . to_f @changes = nil first_date = PublicationDate . order ( 'id desc' ) . first if first_date pubIndex = params [ :pubidx ] ? params [ :pubidx ] . to_i : first_date . id else pubIndex = 0 end @extra_item_json = [ ] if ! @extra_item_json @cloudinaryURI = get_base_image_url @partition_val = / upload / if pubIndex > 0 since_date = PublishedProgramItemsService . determineChangeDate ( pubIndex ) @changes = PublishedProgramItemsService . getUpdates ( since_date ) end end
Report back on what has changed.
Report back on what has changed .