Sha256: 8421e0b6567a87766573f810ea72c477d76e466a9547f8cd323b63f33260e7bb

Contents?: true

Size: 875 Bytes

Versions: 30

Compression:

Stored size: 875 Bytes

Contents

module CanvasSync
  module Jobs
    class SyncAssignmentGroupsJob < ReportStarter
      # Syncs AssignmentGroups
      #
      # Starts a report processor for the assignment_groups report
      # (the proserv_assignment_group_export_csv report must be enabled)
      #
      # @param job_chain [Hash]
      # @param options [Hash]
      def perform(job_chain, _options)
        report_params = if job_chain[:global_options][:canvas_term_id].present?
                          { "parameters[enrollment_term_id]" => job_chain[:global_options][:canvas_term_id] }
                        else
                          {}
                        end

        super(
          job_chain,
          "proserv_assignment_group_export_csv",
          report_params,
          CanvasSync::Processors::AssignmentGroupsProcessor.to_s,
          {},
        )
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
canvas_sync-0.10.3 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.10.2 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.10.0 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.9.4 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.9.3 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.9.2 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.9.1 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.9.0 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.8.4 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.8.3 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.8.2 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.8.1 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.8.0 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.7.3 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.7.2 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.7.1 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.7.0 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.6.4 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.6.3 lib/canvas_sync/jobs/sync_assignment_groups_job.rb
canvas_sync-0.6.2 lib/canvas_sync/jobs/sync_assignment_groups_job.rb