canvas_sync 0.22.3 → 0.22.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (429) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -0
  3. data/Rakefile +0 -0
  4. data/app/controllers/canvas_sync/api/v1/health_check_controller.rb +0 -0
  5. data/app/controllers/canvas_sync/api/v1/live_events_controller.rb +0 -0
  6. data/app/models/canvas_sync/job_log.rb +5 -1
  7. data/app/models/canvas_sync/sync_batch.rb +0 -1
  8. data/config/initializers/apartment.rb +0 -0
  9. data/config/routes.rb +0 -0
  10. data/db/migrate/20170915210836_create_canvas_sync_job_log.rb +0 -0
  11. data/db/migrate/20180725155729_add_job_id_to_canvas_sync_job_logs.rb +0 -0
  12. data/db/migrate/20190916154829_add_fork_count_to_canvas_sync_job_logs.rb +0 -0
  13. data/db/migrate/20201018210836_create_canvas_sync_sync_batches.rb +0 -0
  14. data/db/migrate/20201030210836_add_full_sync_to_canvas_sync_sync_batch.rb +0 -0
  15. data/lib/canvas_sync/api_syncable.rb +0 -0
  16. data/lib/canvas_sync/batch_processor.rb +0 -0
  17. data/lib/canvas_sync/class_callback_executor.rb +0 -0
  18. data/lib/canvas_sync/concerns/ability_helper.rb +0 -0
  19. data/lib/canvas_sync/concerns/account/ancestry.rb +0 -0
  20. data/lib/canvas_sync/concerns/account/base.rb +0 -0
  21. data/lib/canvas_sync/concerns/api_syncable.rb +0 -0
  22. data/lib/canvas_sync/concerns/auto_relations.rb +0 -0
  23. data/lib/canvas_sync/concerns/legacy_columns.rb +0 -0
  24. data/lib/canvas_sync/concerns/live_event_sync.rb +0 -0
  25. data/lib/canvas_sync/concerns/role/base.rb +0 -0
  26. data/lib/canvas_sync/concerns/sync_mapping.rb +0 -0
  27. data/lib/canvas_sync/config.rb +0 -0
  28. data/lib/canvas_sync/engine.rb +0 -0
  29. data/lib/canvas_sync/generators/install_generator.rb +0 -0
  30. data/lib/canvas_sync/generators/install_live_events_generator.rb +0 -0
  31. data/lib/canvas_sync/generators/templates/migrations/create_accounts.rb +0 -0
  32. data/lib/canvas_sync/generators/templates/migrations/create_admins.rb +0 -0
  33. data/lib/canvas_sync/generators/templates/migrations/create_assignment_groups.rb +0 -0
  34. data/lib/canvas_sync/generators/templates/migrations/create_assignments.rb +0 -0
  35. data/lib/canvas_sync/generators/templates/migrations/create_content_migrations.rb +0 -0
  36. data/lib/canvas_sync/generators/templates/migrations/create_context_module_items.rb +0 -0
  37. data/lib/canvas_sync/generators/templates/migrations/create_context_modules.rb +2 -0
  38. data/lib/canvas_sync/generators/templates/migrations/create_course_nicknames.rb +0 -0
  39. data/lib/canvas_sync/generators/templates/migrations/create_course_progresses.rb +20 -0
  40. data/lib/canvas_sync/generators/templates/migrations/create_courses.rb +0 -0
  41. data/lib/canvas_sync/generators/templates/migrations/create_enrollments.rb +0 -0
  42. data/lib/canvas_sync/generators/templates/migrations/create_grading_period_groups.rb +0 -0
  43. data/lib/canvas_sync/generators/templates/migrations/create_grading_periods.rb +0 -0
  44. data/lib/canvas_sync/generators/templates/migrations/create_group_memberships.rb +0 -0
  45. data/lib/canvas_sync/generators/templates/migrations/create_groups.rb +0 -0
  46. data/lib/canvas_sync/generators/templates/migrations/create_learning_outcome_results.rb +0 -0
  47. data/lib/canvas_sync/generators/templates/migrations/create_learning_outcomes.rb +0 -0
  48. data/lib/canvas_sync/generators/templates/migrations/create_pseudonyms.rb +0 -0
  49. data/lib/canvas_sync/generators/templates/migrations/create_roles.rb +0 -0
  50. data/lib/canvas_sync/generators/templates/migrations/create_rubric_assessments.rb +0 -0
  51. data/lib/canvas_sync/generators/templates/migrations/create_rubric_associations.rb +0 -0
  52. data/lib/canvas_sync/generators/templates/migrations/create_rubrics.rb +0 -0
  53. data/lib/canvas_sync/generators/templates/migrations/create_sections.rb +0 -0
  54. data/lib/canvas_sync/generators/templates/migrations/create_submissions.rb +0 -0
  55. data/lib/canvas_sync/generators/templates/migrations/create_terms.rb +0 -0
  56. data/lib/canvas_sync/generators/templates/migrations/create_user_observers.rb +0 -0
  57. data/lib/canvas_sync/generators/templates/migrations/create_users.rb +0 -0
  58. data/lib/canvas_sync/generators/templates/models/account.rb +0 -0
  59. data/lib/canvas_sync/generators/templates/models/admin.rb +0 -0
  60. data/lib/canvas_sync/generators/templates/models/assignment.rb +0 -0
  61. data/lib/canvas_sync/generators/templates/models/assignment_group.rb +0 -0
  62. data/lib/canvas_sync/generators/templates/models/content_migration.rb +0 -0
  63. data/lib/canvas_sync/generators/templates/models/context_module.rb +36 -2
  64. data/lib/canvas_sync/generators/templates/models/context_module_item.rb +11 -3
  65. data/lib/canvas_sync/generators/templates/models/course.rb +0 -0
  66. data/lib/canvas_sync/generators/templates/models/course_nickname.rb +0 -0
  67. data/lib/canvas_sync/generators/templates/models/course_progress.rb +14 -0
  68. data/lib/canvas_sync/generators/templates/models/enrollment.rb +0 -0
  69. data/lib/canvas_sync/generators/templates/models/grading_period.rb +0 -0
  70. data/lib/canvas_sync/generators/templates/models/grading_period_group.rb +0 -0
  71. data/lib/canvas_sync/generators/templates/models/group.rb +0 -0
  72. data/lib/canvas_sync/generators/templates/models/group_membership.rb +0 -0
  73. data/lib/canvas_sync/generators/templates/models/learning_outcome.rb +0 -0
  74. data/lib/canvas_sync/generators/templates/models/learning_outcome_result.rb +0 -0
  75. data/lib/canvas_sync/generators/templates/models/pseudonym.rb +0 -0
  76. data/lib/canvas_sync/generators/templates/models/role.rb +0 -0
  77. data/lib/canvas_sync/generators/templates/models/rubric.rb +0 -0
  78. data/lib/canvas_sync/generators/templates/models/rubric_assessment.rb +0 -0
  79. data/lib/canvas_sync/generators/templates/models/rubric_association.rb +0 -0
  80. data/lib/canvas_sync/generators/templates/models/section.rb +0 -0
  81. data/lib/canvas_sync/generators/templates/models/submission.rb +0 -0
  82. data/lib/canvas_sync/generators/templates/models/term.rb +0 -0
  83. data/lib/canvas_sync/generators/templates/models/user.rb +0 -0
  84. data/lib/canvas_sync/generators/templates/models/user_observer.rb +0 -0
  85. data/lib/canvas_sync/generators/templates/services/live_events/assignment_event.rb +0 -0
  86. data/lib/canvas_sync/generators/templates/services/live_events/assignment_group_event.rb +0 -0
  87. data/lib/canvas_sync/generators/templates/services/live_events/course_event.rb +0 -0
  88. data/lib/canvas_sync/generators/templates/services/live_events/course_section_event.rb +0 -0
  89. data/lib/canvas_sync/generators/templates/services/live_events/enrollment_event.rb +0 -0
  90. data/lib/canvas_sync/generators/templates/services/live_events/grade_event.rb +0 -0
  91. data/lib/canvas_sync/generators/templates/services/live_events/module_event.rb +0 -0
  92. data/lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb +0 -0
  93. data/lib/canvas_sync/generators/templates/services/live_events/submission_event.rb +0 -0
  94. data/lib/canvas_sync/generators/templates/services/live_events/syllabus_event.rb +0 -0
  95. data/lib/canvas_sync/generators/templates/services/live_events/user_event.rb +0 -0
  96. data/lib/canvas_sync/importers/bulk_importer.rb +3 -0
  97. data/lib/canvas_sync/importers/legacy_importer.rb +0 -0
  98. data/lib/canvas_sync/job.rb +0 -0
  99. data/lib/canvas_sync/job_batches/batch.rb +0 -0
  100. data/lib/canvas_sync/job_batches/callback.rb +0 -0
  101. data/lib/canvas_sync/job_batches/chain_builder.rb +24 -3
  102. data/lib/canvas_sync/job_batches/compat/active_job.rb +0 -0
  103. data/lib/canvas_sync/job_batches/compat/sidekiq/web/batches_assets/css/styles.less +0 -0
  104. data/lib/canvas_sync/job_batches/compat/sidekiq/web/batches_assets/js/batch_tree.js +0 -0
  105. data/lib/canvas_sync/job_batches/compat/sidekiq/web/batches_assets/js/util.js +0 -0
  106. data/lib/canvas_sync/job_batches/compat/sidekiq/web/helpers.rb +0 -0
  107. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/_batch_tree.erb +0 -0
  108. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/_batches_table.erb +0 -0
  109. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/_common.erb +0 -0
  110. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/_jobs_table.erb +0 -0
  111. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/_pagination.erb +0 -0
  112. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/batch.erb +0 -0
  113. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/batches.erb +0 -0
  114. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/pool.erb +0 -0
  115. data/lib/canvas_sync/job_batches/compat/sidekiq/web/views/pools.erb +0 -0
  116. data/lib/canvas_sync/job_batches/compat/sidekiq/web.rb +0 -0
  117. data/lib/canvas_sync/job_batches/compat/sidekiq.rb +0 -0
  118. data/lib/canvas_sync/job_batches/compat.rb +0 -0
  119. data/lib/canvas_sync/job_batches/context_hash.rb +0 -0
  120. data/lib/canvas_sync/job_batches/hier_batch_ids.lua +0 -0
  121. data/lib/canvas_sync/job_batches/jobs/base_job.rb +0 -0
  122. data/lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb +0 -0
  123. data/lib/canvas_sync/job_batches/jobs/managed_batch_job.rb +4 -0
  124. data/lib/canvas_sync/job_batches/jobs/serial_batch_job.rb +0 -0
  125. data/lib/canvas_sync/job_batches/pool.rb +0 -0
  126. data/lib/canvas_sync/job_batches/pool_refill.lua +0 -0
  127. data/lib/canvas_sync/job_batches/redis_model.rb +0 -0
  128. data/lib/canvas_sync/job_batches/redis_script.rb +0 -0
  129. data/lib/canvas_sync/job_batches/schedule_callback.lua +0 -0
  130. data/lib/canvas_sync/job_batches/status.rb +1 -0
  131. data/lib/canvas_sync/job_uniqueness/compat/active_job.rb +0 -0
  132. data/lib/canvas_sync/job_uniqueness/compat/sidekiq.rb +0 -0
  133. data/lib/canvas_sync/job_uniqueness/compat.rb +0 -0
  134. data/lib/canvas_sync/job_uniqueness/configuration.rb +0 -0
  135. data/lib/canvas_sync/job_uniqueness/job_uniqueness.rb +0 -0
  136. data/lib/canvas_sync/job_uniqueness/lock_context.rb +15 -3
  137. data/lib/canvas_sync/job_uniqueness/locksmith.rb +0 -0
  138. data/lib/canvas_sync/job_uniqueness/on_conflict/base.rb +0 -0
  139. data/lib/canvas_sync/job_uniqueness/on_conflict/log.rb +0 -0
  140. data/lib/canvas_sync/job_uniqueness/on_conflict/null_strategy.rb +0 -0
  141. data/lib/canvas_sync/job_uniqueness/on_conflict/raise.rb +0 -0
  142. data/lib/canvas_sync/job_uniqueness/on_conflict/reject.rb +0 -0
  143. data/lib/canvas_sync/job_uniqueness/on_conflict/reschedule.rb +0 -0
  144. data/lib/canvas_sync/job_uniqueness/on_conflict.rb +0 -0
  145. data/lib/canvas_sync/job_uniqueness/strategy/base.rb +0 -0
  146. data/lib/canvas_sync/job_uniqueness/strategy/until_and_while_executing.rb +0 -0
  147. data/lib/canvas_sync/job_uniqueness/strategy/until_executed.rb +0 -0
  148. data/lib/canvas_sync/job_uniqueness/strategy/until_executing.rb +0 -0
  149. data/lib/canvas_sync/job_uniqueness/strategy/until_expired.rb +0 -0
  150. data/lib/canvas_sync/job_uniqueness/strategy/while_executing.rb +0 -0
  151. data/lib/canvas_sync/job_uniqueness/strategy.rb +0 -0
  152. data/lib/canvas_sync/job_uniqueness/unique_job_common.rb +0 -0
  153. data/lib/canvas_sync/jobs/begin_sync_chain_job.rb +0 -0
  154. data/lib/canvas_sync/jobs/canvas_process_waiter.rb +0 -0
  155. data/lib/canvas_sync/jobs/report_checker.rb +0 -0
  156. data/lib/canvas_sync/jobs/report_processor_job.rb +0 -0
  157. data/lib/canvas_sync/jobs/report_starter.rb +0 -0
  158. data/lib/canvas_sync/jobs/sync_accounts_job.rb +0 -0
  159. data/lib/canvas_sync/jobs/sync_admins_job.rb +0 -0
  160. data/lib/canvas_sync/jobs/sync_assignment_groups_job.rb +0 -0
  161. data/lib/canvas_sync/jobs/sync_assignments_job.rb +0 -0
  162. data/lib/canvas_sync/jobs/sync_content_migrations_job.rb +0 -0
  163. data/lib/canvas_sync/jobs/sync_context_module_items_job.rb +0 -0
  164. data/lib/canvas_sync/jobs/sync_context_modules_job.rb +0 -0
  165. data/lib/canvas_sync/jobs/sync_course_progresses_job.rb +21 -0
  166. data/lib/canvas_sync/jobs/sync_provisioning_report_job.rb +0 -0
  167. data/lib/canvas_sync/jobs/sync_roles_job.rb +0 -0
  168. data/lib/canvas_sync/jobs/sync_rubric_assessments_job.rb +0 -0
  169. data/lib/canvas_sync/jobs/sync_rubric_associations_job.rb +0 -0
  170. data/lib/canvas_sync/jobs/sync_rubrics_job.rb +0 -0
  171. data/lib/canvas_sync/jobs/sync_simple_table_job.rb +0 -0
  172. data/lib/canvas_sync/jobs/sync_submissions_job.rb +0 -0
  173. data/lib/canvas_sync/jobs/sync_terms_job.rb +0 -0
  174. data/lib/canvas_sync/jobs/term_batches_job.rb +4 -1
  175. data/lib/canvas_sync/live_events/base_handler.rb +0 -0
  176. data/lib/canvas_sync/live_events/process_event_job.rb +0 -0
  177. data/lib/canvas_sync/live_events.rb +0 -0
  178. data/lib/canvas_sync/misc_helper.rb +0 -0
  179. data/lib/canvas_sync/processors/assignment_groups_processor.rb +0 -0
  180. data/lib/canvas_sync/processors/assignments_processor.rb +0 -0
  181. data/lib/canvas_sync/processors/content_migrations_processor.rb +0 -0
  182. data/lib/canvas_sync/processors/context_module_items_processor.rb +0 -0
  183. data/lib/canvas_sync/processors/context_modules_processor.rb +0 -0
  184. data/lib/canvas_sync/processors/course_completion_report_processor.rb +20 -0
  185. data/lib/canvas_sync/processors/model_mappings.yml +27 -0
  186. data/lib/canvas_sync/processors/normal_processor.rb +0 -0
  187. data/lib/canvas_sync/processors/provisioning_report_processor.rb +0 -0
  188. data/lib/canvas_sync/processors/report_processor.rb +0 -0
  189. data/lib/canvas_sync/processors/rubric_assessments_processor.rb +0 -0
  190. data/lib/canvas_sync/processors/rubric_associations_processor.rb +0 -0
  191. data/lib/canvas_sync/processors/rubrics_processor.rb +0 -0
  192. data/lib/canvas_sync/processors/submissions_processor.rb +0 -0
  193. data/lib/canvas_sync/record.rb +0 -0
  194. data/lib/canvas_sync/sidekiq_job.rb +0 -0
  195. data/lib/canvas_sync/version.rb +1 -1
  196. data/lib/canvas_sync.rb +4 -0
  197. data/spec/canvas_sync/canvas_sync_spec.rb +59 -41
  198. data/spec/canvas_sync/jobs/canvas_process_waiter_spec.rb +0 -0
  199. data/spec/canvas_sync/jobs/job_spec.rb +0 -0
  200. data/spec/canvas_sync/jobs/report_checker_spec.rb +0 -0
  201. data/spec/canvas_sync/jobs/report_processor_job_spec.rb +0 -0
  202. data/spec/canvas_sync/jobs/report_starter_spec.rb +0 -0
  203. data/spec/canvas_sync/jobs/sync_admins_job_spec.rb +0 -0
  204. data/spec/canvas_sync/jobs/sync_assignment_groups_job_spec.rb +0 -0
  205. data/spec/canvas_sync/jobs/sync_assignments_job_spec.rb +0 -0
  206. data/spec/canvas_sync/jobs/sync_content_migrations_job_spec.rb +0 -0
  207. data/spec/canvas_sync/jobs/sync_context_module_items_job_spec.rb +0 -0
  208. data/spec/canvas_sync/jobs/sync_context_modules_job_spec.rb +0 -0
  209. data/spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb +0 -0
  210. data/spec/canvas_sync/jobs/sync_roles_job_spec.rb +0 -0
  211. data/spec/canvas_sync/jobs/sync_simple_table_job_spec.rb +0 -0
  212. data/spec/canvas_sync/jobs/sync_submissions_job_spec.rb +0 -0
  213. data/spec/canvas_sync/jobs/sync_terms_job_spec.rb +0 -0
  214. data/spec/canvas_sync/live_events/live_event_sync_spec.rb +0 -0
  215. data/spec/canvas_sync/live_events/live_events_controller_spec.rb +0 -0
  216. data/spec/canvas_sync/live_events/process_event_job_spec.rb +0 -0
  217. data/spec/canvas_sync/misc_helper_spec.rb +0 -0
  218. data/spec/canvas_sync/models/accounts_spec.rb +0 -0
  219. data/spec/canvas_sync/models/admins_spec.rb +0 -0
  220. data/spec/canvas_sync/models/assignment_group_spec.rb +0 -0
  221. data/spec/canvas_sync/models/assignment_spec.rb +0 -0
  222. data/spec/canvas_sync/models/context_module_item_spec.rb +0 -0
  223. data/spec/canvas_sync/models/context_module_spec.rb +0 -0
  224. data/spec/canvas_sync/models/course_spec.rb +0 -0
  225. data/spec/canvas_sync/models/enrollment_spec.rb +0 -0
  226. data/spec/canvas_sync/models/group_membership_spec.rb +0 -0
  227. data/spec/canvas_sync/models/group_spec.rb +0 -0
  228. data/spec/canvas_sync/models/roles_spec.rb +0 -0
  229. data/spec/canvas_sync/models/section_spec.rb +0 -0
  230. data/spec/canvas_sync/models/submission_spec.rb +0 -0
  231. data/spec/canvas_sync/models/term_spec.rb +0 -0
  232. data/spec/canvas_sync/models/user_spec.rb +0 -0
  233. data/spec/canvas_sync/processors/assignment_groups_processor_spec.rb +0 -0
  234. data/spec/canvas_sync/processors/assignments_processor_spec.rb +0 -0
  235. data/spec/canvas_sync/processors/content_migrations_processor_spec.rb +0 -0
  236. data/spec/canvas_sync/processors/context_module_items_processor_spec.rb +0 -0
  237. data/spec/canvas_sync/processors/context_modules_processor_spec.rb +14 -0
  238. data/spec/canvas_sync/processors/course_completion_report_processor_spec.rb +47 -0
  239. data/spec/canvas_sync/processors/normal_processor_spec.rb +0 -0
  240. data/spec/canvas_sync/processors/provisioning_report_processor_spec.rb +0 -0
  241. data/spec/canvas_sync/processors/rubric_assessments_spec.rb +0 -0
  242. data/spec/canvas_sync/processors/rubric_associations_spec.rb +0 -0
  243. data/spec/canvas_sync/processors/rubrics_processor_spec.rb +0 -0
  244. data/spec/canvas_sync/processors/submissions_processor_spec.rb +0 -0
  245. data/spec/canvas_sync/services/module_event_spec.rb +0 -0
  246. data/spec/canvas_sync/services/module_item_event_spec.rb +0 -0
  247. data/spec/dummy/README.rdoc +0 -0
  248. data/spec/dummy/Rakefile +0 -0
  249. data/spec/dummy/app/models/account.rb +0 -0
  250. data/spec/dummy/app/models/admin.rb +0 -0
  251. data/spec/dummy/app/models/application_record.rb +0 -0
  252. data/spec/dummy/app/models/assignment.rb +0 -0
  253. data/spec/dummy/app/models/assignment_group.rb +0 -0
  254. data/spec/dummy/app/models/content_migration.rb +0 -0
  255. data/spec/dummy/app/models/context_module.rb +36 -2
  256. data/spec/dummy/app/models/context_module_item.rb +11 -3
  257. data/spec/dummy/app/models/course.rb +0 -0
  258. data/spec/dummy/app/models/course_nickname.rb +0 -0
  259. data/spec/dummy/app/models/course_progress.rb +20 -0
  260. data/spec/dummy/app/models/enrollment.rb +0 -0
  261. data/spec/dummy/app/models/grading_period.rb +0 -0
  262. data/spec/dummy/app/models/grading_period_group.rb +0 -0
  263. data/spec/dummy/app/models/group.rb +0 -0
  264. data/spec/dummy/app/models/group_membership.rb +0 -0
  265. data/spec/dummy/app/models/learning_outcome.rb +0 -0
  266. data/spec/dummy/app/models/learning_outcome_result.rb +0 -0
  267. data/spec/dummy/app/models/pseudonym.rb +0 -0
  268. data/spec/dummy/app/models/role.rb +0 -0
  269. data/spec/dummy/app/models/rubric.rb +0 -0
  270. data/spec/dummy/app/models/rubric_assessment.rb +0 -0
  271. data/spec/dummy/app/models/rubric_association.rb +0 -0
  272. data/spec/dummy/app/models/section.rb +0 -0
  273. data/spec/dummy/app/models/submission.rb +0 -0
  274. data/spec/dummy/app/models/term.rb +0 -0
  275. data/spec/dummy/app/models/user.rb +0 -0
  276. data/spec/dummy/app/models/user_observer.rb +0 -0
  277. data/spec/dummy/app/services/live_events/assignment_created_event.rb +0 -0
  278. data/spec/dummy/app/services/live_events/assignment_event.rb +0 -0
  279. data/spec/dummy/app/services/live_events/assignment_updated_event.rb +0 -0
  280. data/spec/dummy/app/services/live_events/base_event.rb +0 -0
  281. data/spec/dummy/app/services/live_events/course_created_event.rb +0 -0
  282. data/spec/dummy/app/services/live_events/course_event.rb +0 -0
  283. data/spec/dummy/app/services/live_events/course_section_created_event.rb +0 -0
  284. data/spec/dummy/app/services/live_events/course_section_event.rb +0 -0
  285. data/spec/dummy/app/services/live_events/course_section_updated_event.rb +0 -0
  286. data/spec/dummy/app/services/live_events/course_updated_event.rb +0 -0
  287. data/spec/dummy/app/services/live_events/enrollment_created_event.rb +0 -0
  288. data/spec/dummy/app/services/live_events/enrollment_event.rb +0 -0
  289. data/spec/dummy/app/services/live_events/enrollment_updated_event.rb +0 -0
  290. data/spec/dummy/app/services/live_events/grade_changed_event.rb +0 -0
  291. data/spec/dummy/app/services/live_events/grade_event.rb +0 -0
  292. data/spec/dummy/app/services/live_events/module_created_event.rb +0 -0
  293. data/spec/dummy/app/services/live_events/module_event.rb +0 -0
  294. data/spec/dummy/app/services/live_events/module_item_created_event.rb +0 -0
  295. data/spec/dummy/app/services/live_events/module_item_event.rb +0 -0
  296. data/spec/dummy/app/services/live_events/module_item_updated_event.rb +0 -0
  297. data/spec/dummy/app/services/live_events/module_updated_event.rb +0 -0
  298. data/spec/dummy/app/services/live_events/submission_created_event.rb +0 -0
  299. data/spec/dummy/app/services/live_events/submission_event.rb +0 -0
  300. data/spec/dummy/app/services/live_events/submission_updated_event.rb +0 -0
  301. data/spec/dummy/app/services/live_events/syllabus_event.rb +0 -0
  302. data/spec/dummy/app/services/live_events/syllabus_updated_event.rb +0 -0
  303. data/spec/dummy/app/services/live_events/user_created_event.rb +0 -0
  304. data/spec/dummy/app/services/live_events/user_event.rb +0 -0
  305. data/spec/dummy/app/services/live_events/user_updated_event.rb +0 -0
  306. data/spec/dummy/config/application.rb +0 -0
  307. data/spec/dummy/config/boot.rb +0 -0
  308. data/spec/dummy/config/database.yml +0 -0
  309. data/spec/dummy/config/environment.rb +0 -0
  310. data/spec/dummy/config/environments/development.rb +0 -0
  311. data/spec/dummy/config/environments/test.rb +0 -0
  312. data/spec/dummy/config/initializers/assets.rb +0 -0
  313. data/spec/dummy/config/initializers/session_store.rb +0 -0
  314. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -0
  315. data/spec/dummy/config/routes.rb +0 -0
  316. data/spec/dummy/config/secrets.yml +0 -0
  317. data/spec/dummy/config.ru +0 -0
  318. data/spec/dummy/db/migrate/20190702203621_create_courses.rb +0 -0
  319. data/spec/dummy/db/migrate/20190702203622_create_accounts.rb +0 -0
  320. data/spec/dummy/db/migrate/20190702203623_create_terms.rb +0 -0
  321. data/spec/dummy/db/migrate/20190702203624_create_enrollments.rb +0 -0
  322. data/spec/dummy/db/migrate/20190702203625_create_sections.rb +0 -0
  323. data/spec/dummy/db/migrate/20190702203626_create_assignments.rb +0 -0
  324. data/spec/dummy/db/migrate/20190702203627_create_submissions.rb +0 -0
  325. data/spec/dummy/db/migrate/20190702203630_create_assignment_groups.rb +0 -0
  326. data/spec/dummy/db/migrate/20190702203631_create_context_modules.rb +2 -0
  327. data/spec/dummy/db/migrate/20190702203632_create_context_module_items.rb +0 -0
  328. data/spec/dummy/db/migrate/20190927204545_create_roles.rb +0 -0
  329. data/spec/dummy/db/migrate/20190927204546_create_admins.rb +0 -0
  330. data/spec/dummy/db/migrate/20200415171620_create_groups.rb +0 -0
  331. data/spec/dummy/db/migrate/20200416214248_create_group_memberships.rb +0 -0
  332. data/spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb +0 -0
  333. data/spec/dummy/db/migrate/20210907233329_create_user_observers.rb +0 -0
  334. data/spec/dummy/db/migrate/20210907233330_create_grading_periods.rb +0 -0
  335. data/spec/dummy/db/migrate/20211001184920_create_grading_period_groups.rb +0 -0
  336. data/spec/dummy/db/migrate/20220308072643_create_content_migrations.rb +0 -0
  337. data/spec/dummy/db/migrate/20220712210559_create_learning_outcomes.rb +0 -0
  338. data/spec/dummy/db/migrate/20220926221926_create_users.rb +0 -0
  339. data/spec/dummy/db/migrate/20240408223326_create_course_nicknames.rb +0 -0
  340. data/spec/dummy/db/migrate/20240509105100_create_rubrics.rb +0 -0
  341. data/spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb +0 -0
  342. data/spec/dummy/db/migrate/20240510101100_create_rubric_assessments.rb +0 -0
  343. data/spec/dummy/db/migrate/20240523101010_create_learning_outcome_results.rb +0 -0
  344. data/spec/dummy/db/migrate/20240828161300_create_course_progresses.rb +26 -0
  345. data/spec/dummy/db/schema.rb +15 -0
  346. data/spec/factories/account_factory.rb +0 -0
  347. data/spec/factories/admin_factory.rb +0 -0
  348. data/spec/factories/assignment_factory.rb +0 -0
  349. data/spec/factories/assignment_group_factory.rb +0 -0
  350. data/spec/factories/context_module_factory.rb +0 -0
  351. data/spec/factories/context_module_item_factory.rb +0 -0
  352. data/spec/factories/course_factory.rb +0 -0
  353. data/spec/factories/enrollment_factory.rb +0 -0
  354. data/spec/factories/group_factory.rb +0 -0
  355. data/spec/factories/group_membership_factory.rb +0 -0
  356. data/spec/factories/role_factory.rb +0 -0
  357. data/spec/factories/section_factory.rb +0 -0
  358. data/spec/factories/submission_factory.rb +0 -0
  359. data/spec/factories/term_factory.rb +0 -0
  360. data/spec/factories/user_factory.rb +0 -0
  361. data/spec/job_batching/batch_spec.rb +0 -0
  362. data/spec/job_batching/callback_spec.rb +0 -0
  363. data/spec/job_batching/compat/active_job_spec.rb +0 -0
  364. data/spec/job_batching/compat/sidekiq_spec.rb +0 -0
  365. data/spec/job_batching/context_hash_spec.rb +0 -0
  366. data/spec/job_batching/flow_spec.rb +0 -0
  367. data/spec/job_batching/integration/fail_then_succeed.rb +0 -0
  368. data/spec/job_batching/integration/integration.rb +0 -0
  369. data/spec/job_batching/integration/nested.rb +0 -0
  370. data/spec/job_batching/integration/simple.rb +0 -0
  371. data/spec/job_batching/integration/workflow.rb +0 -0
  372. data/spec/job_batching/integration_helper.rb +0 -0
  373. data/spec/job_batching/pool_spec.rb +0 -0
  374. data/spec/job_batching/status_spec.rb +0 -0
  375. data/spec/job_batching/support/base_job.rb +0 -0
  376. data/spec/job_batching/support/sample_callback.rb +0 -0
  377. data/spec/job_uniqueness/compat/active_job_spec.rb +0 -0
  378. data/spec/job_uniqueness/compat/sidekiq_spec.rb +0 -0
  379. data/spec/job_uniqueness/lock_context_spec.rb +0 -0
  380. data/spec/job_uniqueness/on_conflict/log_spec.rb +0 -0
  381. data/spec/job_uniqueness/on_conflict/raise_spec.rb +0 -0
  382. data/spec/job_uniqueness/on_conflict/reschedule_spec.rb +0 -0
  383. data/spec/job_uniqueness/on_conflict_spec.rb +0 -0
  384. data/spec/job_uniqueness/spec_helper.rb +0 -0
  385. data/spec/job_uniqueness/strategy/base_spec.rb +0 -0
  386. data/spec/job_uniqueness/strategy/until_and_while_executing_spec.rb +0 -0
  387. data/spec/job_uniqueness/strategy/until_executed_spec.rb +0 -0
  388. data/spec/job_uniqueness/strategy/until_executing_spec.rb +0 -0
  389. data/spec/job_uniqueness/strategy/until_expired_spec.rb +0 -0
  390. data/spec/job_uniqueness/strategy/while_executing_spec.rb +0 -0
  391. data/spec/job_uniqueness/support/lock_strategy.rb +0 -0
  392. data/spec/job_uniqueness/support/on_conflict.rb +0 -0
  393. data/spec/job_uniqueness/support/test_worker.rb +0 -0
  394. data/spec/job_uniqueness/unique_job_common_spec.rb +0 -0
  395. data/spec/spec_helper.rb +0 -0
  396. data/spec/support/fake_canvas.rb +0 -0
  397. data/spec/support/fixtures/canvas_responses/admins.json +0 -0
  398. data/spec/support/fixtures/canvas_responses/module.json +0 -0
  399. data/spec/support/fixtures/canvas_responses/module_item.json +0 -0
  400. data/spec/support/fixtures/canvas_responses/roles.json +0 -0
  401. data/spec/support/fixtures/canvas_responses/terms.json +0 -0
  402. data/spec/support/fixtures/reports/assignment_groups.csv +0 -0
  403. data/spec/support/fixtures/reports/assignments.csv +0 -0
  404. data/spec/support/fixtures/reports/content_migrations.csv +0 -0
  405. data/spec/support/fixtures/reports/context_module_items.csv +0 -0
  406. data/spec/support/fixtures/reports/context_modules.csv +3 -3
  407. data/spec/support/fixtures/reports/course_nicknames.csv +0 -0
  408. data/spec/support/fixtures/reports/course_progresses.csv +3 -0
  409. data/spec/support/fixtures/reports/course_progresses_conflict.csv +2 -0
  410. data/spec/support/fixtures/reports/courses.csv +0 -0
  411. data/spec/support/fixtures/reports/enrollments.csv +0 -0
  412. data/spec/support/fixtures/reports/grading_period_groups.csv +0 -0
  413. data/spec/support/fixtures/reports/grading_periods.csv +0 -0
  414. data/spec/support/fixtures/reports/group_memberships.csv +0 -0
  415. data/spec/support/fixtures/reports/groups.csv +0 -0
  416. data/spec/support/fixtures/reports/learning_outcome_results.csv +0 -0
  417. data/spec/support/fixtures/reports/learning_outcomes.csv +0 -0
  418. data/spec/support/fixtures/reports/provisioning_csv +0 -0
  419. data/spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv +0 -0
  420. data/spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv +0 -0
  421. data/spec/support/fixtures/reports/rubric_assessments.csv +0 -0
  422. data/spec/support/fixtures/reports/rubric_associations.csv +0 -0
  423. data/spec/support/fixtures/reports/rubrics.csv +0 -0
  424. data/spec/support/fixtures/reports/sections.csv +0 -0
  425. data/spec/support/fixtures/reports/submissions.csv +0 -0
  426. data/spec/support/fixtures/reports/user_observers.csv +0 -0
  427. data/spec/support/fixtures/reports/users.csv +0 -0
  428. data/spec/support/fixtures/reports/xlist.csv +0 -0
  429. metadata +202 -188
File without changes
File without changes
File without changes
data/spec/spec_helper.rb CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,3 +1,3 @@
1
- canvas_context_module_id,canvas_context_id,canvas_context_type,name,position,workflow_state,deleted_at,unlock_at,migration_id,require_sequential_progress,requirement_count
2
- 23,785,Course,New Mod,1,active,,,,false,
3
- 4,27,Course,Modules gonna module,1,unpublished,,,,false,
1
+ canvas_context_module_id,canvas_context_id,canvas_context_type,name,position,workflow_state,deleted_at,unlock_at,migration_id,require_sequential_progress,requirement_count,completion_requirements,prerequisites
2
+ 23,785,Course,New Mod,1,active,,,,false,,--- [],--- []
3
+ 4,27,Course,Modules gonna module,1,unpublished,,,,false,2,"---\n- :id: 1\n :type: must_view","---\n- :id: 1\n :type: context_module\n :name: 'Unit 1: Introduction'"
File without changes
@@ -0,0 +1,3 @@
1
+ student_id,course_id,requirement_count,requirement_completed_count,completion_date
2
+ 1,1,0,0,"2024-05-01 09:00:00"
3
+ 2,2,1,1,""
@@ -0,0 +1,2 @@
1
+ student_id,course_id,requirement_count,requirement_completed_count,completion_date
2
+ 1,1,10,10,"2028-05-01 09:00:00"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.22.3
4
+ version: 0.22.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Instructure CustomDev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-28 00:00:00.000000000 Z
11
+ date: 2024-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -475,6 +475,7 @@ files:
475
475
  - lib/canvas_sync/generators/templates/migrations/create_context_module_items.rb
476
476
  - lib/canvas_sync/generators/templates/migrations/create_context_modules.rb
477
477
  - lib/canvas_sync/generators/templates/migrations/create_course_nicknames.rb
478
+ - lib/canvas_sync/generators/templates/migrations/create_course_progresses.rb
478
479
  - lib/canvas_sync/generators/templates/migrations/create_courses.rb
479
480
  - lib/canvas_sync/generators/templates/migrations/create_enrollments.rb
480
481
  - lib/canvas_sync/generators/templates/migrations/create_grading_period_groups.rb
@@ -502,6 +503,7 @@ files:
502
503
  - lib/canvas_sync/generators/templates/models/context_module_item.rb
503
504
  - lib/canvas_sync/generators/templates/models/course.rb
504
505
  - lib/canvas_sync/generators/templates/models/course_nickname.rb
506
+ - lib/canvas_sync/generators/templates/models/course_progress.rb
505
507
  - lib/canvas_sync/generators/templates/models/enrollment.rb
506
508
  - lib/canvas_sync/generators/templates/models/grading_period.rb
507
509
  - lib/canvas_sync/generators/templates/models/grading_period_group.rb
@@ -599,6 +601,7 @@ files:
599
601
  - lib/canvas_sync/jobs/sync_content_migrations_job.rb
600
602
  - lib/canvas_sync/jobs/sync_context_module_items_job.rb
601
603
  - lib/canvas_sync/jobs/sync_context_modules_job.rb
604
+ - lib/canvas_sync/jobs/sync_course_progresses_job.rb
602
605
  - lib/canvas_sync/jobs/sync_provisioning_report_job.rb
603
606
  - lib/canvas_sync/jobs/sync_roles_job.rb
604
607
  - lib/canvas_sync/jobs/sync_rubric_assessments_job.rb
@@ -617,6 +620,7 @@ files:
617
620
  - lib/canvas_sync/processors/content_migrations_processor.rb
618
621
  - lib/canvas_sync/processors/context_module_items_processor.rb
619
622
  - lib/canvas_sync/processors/context_modules_processor.rb
623
+ - lib/canvas_sync/processors/course_completion_report_processor.rb
620
624
  - lib/canvas_sync/processors/model_mappings.yml
621
625
  - lib/canvas_sync/processors/normal_processor.rb
622
626
  - lib/canvas_sync/processors/provisioning_report_processor.rb
@@ -669,6 +673,7 @@ files:
669
673
  - spec/canvas_sync/processors/content_migrations_processor_spec.rb
670
674
  - spec/canvas_sync/processors/context_module_items_processor_spec.rb
671
675
  - spec/canvas_sync/processors/context_modules_processor_spec.rb
676
+ - spec/canvas_sync/processors/course_completion_report_processor_spec.rb
672
677
  - spec/canvas_sync/processors/normal_processor_spec.rb
673
678
  - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
674
679
  - spec/canvas_sync/processors/rubric_assessments_spec.rb
@@ -689,6 +694,7 @@ files:
689
694
  - spec/dummy/app/models/context_module_item.rb
690
695
  - spec/dummy/app/models/course.rb
691
696
  - spec/dummy/app/models/course_nickname.rb
697
+ - spec/dummy/app/models/course_progress.rb
692
698
  - spec/dummy/app/models/enrollment.rb
693
699
  - spec/dummy/app/models/grading_period.rb
694
700
  - spec/dummy/app/models/grading_period_group.rb
@@ -774,6 +780,7 @@ files:
774
780
  - spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
775
781
  - spec/dummy/db/migrate/20240510101100_create_rubric_assessments.rb
776
782
  - spec/dummy/db/migrate/20240523101010_create_learning_outcome_results.rb
783
+ - spec/dummy/db/migrate/20240828161300_create_course_progresses.rb
777
784
  - spec/dummy/db/schema.rb
778
785
  - spec/factories/account_factory.rb
779
786
  - spec/factories/admin_factory.rb
@@ -837,6 +844,8 @@ files:
837
844
  - spec/support/fixtures/reports/context_module_items.csv
838
845
  - spec/support/fixtures/reports/context_modules.csv
839
846
  - spec/support/fixtures/reports/course_nicknames.csv
847
+ - spec/support/fixtures/reports/course_progresses.csv
848
+ - spec/support/fixtures/reports/course_progresses_conflict.csv
840
849
  - spec/support/fixtures/reports/courses.csv
841
850
  - spec/support/fixtures/reports/enrollments.csv
842
851
  - spec/support/fixtures/reports/grading_period_groups.csv
@@ -874,236 +883,241 @@ required_rubygems_version: !ruby/object:Gem::Requirement
874
883
  - !ruby/object:Gem::Version
875
884
  version: '0'
876
885
  requirements: []
877
- rubygems_version: 3.1.6
886
+ rubygems_version: 3.0.3.1
878
887
  signing_key:
879
888
  specification_version: 4
880
889
  summary: Gem for generating Canvas models and migrations and syncing data from Canvas
881
890
  test_files:
882
- - spec/canvas_sync/live_events/process_event_job_spec.rb
883
- - spec/canvas_sync/live_events/live_event_sync_spec.rb
884
- - spec/canvas_sync/live_events/live_events_controller_spec.rb
885
- - spec/canvas_sync/services/module_event_spec.rb
886
- - spec/canvas_sync/services/module_item_event_spec.rb
891
+ - spec/spec_helper.rb
892
+ - spec/dummy/app/models/assignment_group.rb
893
+ - spec/dummy/app/models/learning_outcome_result.rb
894
+ - spec/dummy/app/models/context_module.rb
895
+ - spec/dummy/app/models/account.rb
896
+ - spec/dummy/app/models/pseudonym.rb
897
+ - spec/dummy/app/models/group_membership.rb
898
+ - spec/dummy/app/models/grading_period.rb
899
+ - spec/dummy/app/models/course_progress.rb
900
+ - spec/dummy/app/models/rubric_association.rb
901
+ - spec/dummy/app/models/content_migration.rb
902
+ - spec/dummy/app/models/enrollment.rb
903
+ - spec/dummy/app/models/assignment.rb
904
+ - spec/dummy/app/models/group.rb
905
+ - spec/dummy/app/models/user_observer.rb
906
+ - spec/dummy/app/models/admin.rb
907
+ - spec/dummy/app/models/course_nickname.rb
908
+ - spec/dummy/app/models/section.rb
909
+ - spec/dummy/app/models/learning_outcome.rb
910
+ - spec/dummy/app/models/role.rb
911
+ - spec/dummy/app/models/grading_period_group.rb
912
+ - spec/dummy/app/models/term.rb
913
+ - spec/dummy/app/models/submission.rb
914
+ - spec/dummy/app/models/context_module_item.rb
915
+ - spec/dummy/app/models/rubric_assessment.rb
916
+ - spec/dummy/app/models/course.rb
917
+ - spec/dummy/app/models/application_record.rb
918
+ - spec/dummy/app/models/rubric.rb
919
+ - spec/dummy/app/models/user.rb
920
+ - spec/dummy/app/services/live_events/course_section_updated_event.rb
921
+ - spec/dummy/app/services/live_events/submission_event.rb
922
+ - spec/dummy/app/services/live_events/grade_event.rb
923
+ - spec/dummy/app/services/live_events/module_item_event.rb
924
+ - spec/dummy/app/services/live_events/base_event.rb
925
+ - spec/dummy/app/services/live_events/grade_changed_event.rb
926
+ - spec/dummy/app/services/live_events/user_updated_event.rb
927
+ - spec/dummy/app/services/live_events/enrollment_event.rb
928
+ - spec/dummy/app/services/live_events/module_item_updated_event.rb
929
+ - spec/dummy/app/services/live_events/course_created_event.rb
930
+ - spec/dummy/app/services/live_events/syllabus_updated_event.rb
931
+ - spec/dummy/app/services/live_events/course_event.rb
932
+ - spec/dummy/app/services/live_events/user_event.rb
933
+ - spec/dummy/app/services/live_events/user_created_event.rb
934
+ - spec/dummy/app/services/live_events/course_updated_event.rb
935
+ - spec/dummy/app/services/live_events/module_item_created_event.rb
936
+ - spec/dummy/app/services/live_events/course_section_created_event.rb
937
+ - spec/dummy/app/services/live_events/syllabus_event.rb
938
+ - spec/dummy/app/services/live_events/submission_updated_event.rb
939
+ - spec/dummy/app/services/live_events/course_section_event.rb
940
+ - spec/dummy/app/services/live_events/module_updated_event.rb
941
+ - spec/dummy/app/services/live_events/enrollment_created_event.rb
942
+ - spec/dummy/app/services/live_events/assignment_created_event.rb
943
+ - spec/dummy/app/services/live_events/assignment_event.rb
944
+ - spec/dummy/app/services/live_events/module_event.rb
945
+ - spec/dummy/app/services/live_events/enrollment_updated_event.rb
946
+ - spec/dummy/app/services/live_events/assignment_updated_event.rb
947
+ - spec/dummy/app/services/live_events/submission_created_event.rb
948
+ - spec/dummy/app/services/live_events/module_created_event.rb
949
+ - spec/dummy/bin/rails
950
+ - spec/dummy/config/secrets.yml
951
+ - spec/dummy/config/routes.rb
952
+ - spec/dummy/config/environments/development.rb
953
+ - spec/dummy/config/environments/test.rb
954
+ - spec/dummy/config/environment.rb
955
+ - spec/dummy/config/application.rb
956
+ - spec/dummy/config/database.yml
957
+ - spec/dummy/config/boot.rb
958
+ - spec/dummy/config/initializers/session_store.rb
959
+ - spec/dummy/config/initializers/wrap_parameters.rb
960
+ - spec/dummy/config/initializers/assets.rb
961
+ - spec/dummy/config.ru
962
+ - spec/dummy/Rakefile
963
+ - spec/dummy/db/schema.rb
964
+ - spec/dummy/db/migrate/20200416214248_create_group_memberships.rb
965
+ - spec/dummy/db/migrate/20190702203627_create_submissions.rb
966
+ - spec/dummy/db/migrate/20190702203624_create_enrollments.rb
967
+ - spec/dummy/db/migrate/20190702203630_create_assignment_groups.rb
968
+ - spec/dummy/db/migrate/20240828161300_create_course_progresses.rb
969
+ - spec/dummy/db/migrate/20190702203632_create_context_module_items.rb
970
+ - spec/dummy/db/migrate/20240408223326_create_course_nicknames.rb
971
+ - spec/dummy/db/migrate/20190702203622_create_accounts.rb
972
+ - spec/dummy/db/migrate/20210907233329_create_user_observers.rb
973
+ - spec/dummy/db/migrate/20220712210559_create_learning_outcomes.rb
974
+ - spec/dummy/db/migrate/20210907233330_create_grading_periods.rb
975
+ - spec/dummy/db/migrate/20240509105100_create_rubrics.rb
976
+ - spec/dummy/db/migrate/20240523101010_create_learning_outcome_results.rb
977
+ - spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
978
+ - spec/dummy/db/migrate/20220308072643_create_content_migrations.rb
979
+ - spec/dummy/db/migrate/20190702203621_create_courses.rb
980
+ - spec/dummy/db/migrate/20190927204546_create_admins.rb
981
+ - spec/dummy/db/migrate/20190702203623_create_terms.rb
982
+ - spec/dummy/db/migrate/20190927204545_create_roles.rb
983
+ - spec/dummy/db/migrate/20220926221926_create_users.rb
984
+ - spec/dummy/db/migrate/20190702203625_create_sections.rb
985
+ - spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb
986
+ - spec/dummy/db/migrate/20190702203626_create_assignments.rb
987
+ - spec/dummy/db/migrate/20240510101100_create_rubric_assessments.rb
988
+ - spec/dummy/db/migrate/20190702203631_create_context_modules.rb
989
+ - spec/dummy/db/migrate/20211001184920_create_grading_period_groups.rb
990
+ - spec/dummy/db/migrate/20200415171620_create_groups.rb
991
+ - spec/dummy/README.rdoc
992
+ - spec/canvas_sync/models/enrollment_spec.rb
887
993
  - spec/canvas_sync/models/admins_spec.rb
888
- - spec/canvas_sync/models/assignment_spec.rb
994
+ - spec/canvas_sync/models/section_spec.rb
889
995
  - spec/canvas_sync/models/context_module_spec.rb
890
- - spec/canvas_sync/models/group_membership_spec.rb
891
- - spec/canvas_sync/models/context_module_item_spec.rb
892
996
  - spec/canvas_sync/models/roles_spec.rb
997
+ - spec/canvas_sync/models/term_spec.rb
998
+ - spec/canvas_sync/models/assignment_spec.rb
999
+ - spec/canvas_sync/models/submission_spec.rb
1000
+ - spec/canvas_sync/models/context_module_item_spec.rb
893
1001
  - spec/canvas_sync/models/accounts_spec.rb
894
- - spec/canvas_sync/models/section_spec.rb
1002
+ - spec/canvas_sync/models/assignment_group_spec.rb
895
1003
  - spec/canvas_sync/models/group_spec.rb
896
- - spec/canvas_sync/models/submission_spec.rb
897
- - spec/canvas_sync/models/term_spec.rb
898
- - spec/canvas_sync/models/enrollment_spec.rb
899
- - spec/canvas_sync/models/course_spec.rb
1004
+ - spec/canvas_sync/models/group_membership_spec.rb
900
1005
  - spec/canvas_sync/models/user_spec.rb
901
- - spec/canvas_sync/models/assignment_group_spec.rb
1006
+ - spec/canvas_sync/models/course_spec.rb
902
1007
  - spec/canvas_sync/misc_helper_spec.rb
903
- - spec/canvas_sync/jobs/sync_context_module_items_job_spec.rb
904
- - spec/canvas_sync/jobs/sync_terms_job_spec.rb
1008
+ - spec/canvas_sync/processors/context_module_items_processor_spec.rb
1009
+ - spec/canvas_sync/processors/context_modules_processor_spec.rb
1010
+ - spec/canvas_sync/processors/rubric_assessments_spec.rb
1011
+ - spec/canvas_sync/processors/rubric_associations_spec.rb
1012
+ - spec/canvas_sync/processors/normal_processor_spec.rb
1013
+ - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
1014
+ - spec/canvas_sync/processors/course_completion_report_processor_spec.rb
1015
+ - spec/canvas_sync/processors/content_migrations_processor_spec.rb
1016
+ - spec/canvas_sync/processors/submissions_processor_spec.rb
1017
+ - spec/canvas_sync/processors/assignments_processor_spec.rb
1018
+ - spec/canvas_sync/processors/rubrics_processor_spec.rb
1019
+ - spec/canvas_sync/processors/assignment_groups_processor_spec.rb
1020
+ - spec/canvas_sync/jobs/report_checker_spec.rb
1021
+ - spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
1022
+ - spec/canvas_sync/jobs/sync_simple_table_job_spec.rb
1023
+ - spec/canvas_sync/jobs/job_spec.rb
905
1024
  - spec/canvas_sync/jobs/sync_context_modules_job_spec.rb
1025
+ - spec/canvas_sync/jobs/report_starter_spec.rb
1026
+ - spec/canvas_sync/jobs/sync_content_migrations_job_spec.rb
906
1027
  - spec/canvas_sync/jobs/sync_assignments_job_spec.rb
1028
+ - spec/canvas_sync/jobs/sync_submissions_job_spec.rb
907
1029
  - spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
908
1030
  - spec/canvas_sync/jobs/sync_assignment_groups_job_spec.rb
909
1031
  - spec/canvas_sync/jobs/sync_admins_job_spec.rb
910
- - spec/canvas_sync/jobs/report_starter_spec.rb
911
- - spec/canvas_sync/jobs/sync_content_migrations_job_spec.rb
912
- - spec/canvas_sync/jobs/job_spec.rb
913
- - spec/canvas_sync/jobs/report_processor_job_spec.rb
914
- - spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
915
- - spec/canvas_sync/jobs/sync_submissions_job_spec.rb
916
- - spec/canvas_sync/jobs/report_checker_spec.rb
917
1032
  - spec/canvas_sync/jobs/sync_roles_job_spec.rb
918
- - spec/canvas_sync/jobs/sync_simple_table_job_spec.rb
1033
+ - spec/canvas_sync/jobs/sync_terms_job_spec.rb
1034
+ - spec/canvas_sync/jobs/sync_context_module_items_job_spec.rb
1035
+ - spec/canvas_sync/jobs/report_processor_job_spec.rb
919
1036
  - spec/canvas_sync/canvas_sync_spec.rb
920
- - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
921
- - spec/canvas_sync/processors/content_migrations_processor_spec.rb
922
- - spec/canvas_sync/processors/assignments_processor_spec.rb
923
- - spec/canvas_sync/processors/normal_processor_spec.rb
924
- - spec/canvas_sync/processors/rubrics_processor_spec.rb
925
- - spec/canvas_sync/processors/context_modules_processor_spec.rb
926
- - spec/canvas_sync/processors/assignment_groups_processor_spec.rb
927
- - spec/canvas_sync/processors/rubric_associations_spec.rb
928
- - spec/canvas_sync/processors/submissions_processor_spec.rb
929
- - spec/canvas_sync/processors/context_module_items_processor_spec.rb
930
- - spec/canvas_sync/processors/rubric_assessments_spec.rb
1037
+ - spec/canvas_sync/services/module_item_event_spec.rb
1038
+ - spec/canvas_sync/services/module_event_spec.rb
1039
+ - spec/canvas_sync/live_events/live_event_sync_spec.rb
1040
+ - spec/canvas_sync/live_events/live_events_controller_spec.rb
1041
+ - spec/canvas_sync/live_events/process_event_job_spec.rb
1042
+ - spec/job_uniqueness/spec_helper.rb
931
1043
  - spec/job_uniqueness/lock_context_spec.rb
1044
+ - spec/job_uniqueness/on_conflict_spec.rb
1045
+ - spec/job_uniqueness/compat/sidekiq_spec.rb
1046
+ - spec/job_uniqueness/compat/active_job_spec.rb
932
1047
  - spec/job_uniqueness/on_conflict/reschedule_spec.rb
933
1048
  - spec/job_uniqueness/on_conflict/raise_spec.rb
934
1049
  - spec/job_uniqueness/on_conflict/log_spec.rb
935
- - spec/job_uniqueness/on_conflict_spec.rb
936
- - spec/job_uniqueness/spec_helper.rb
937
- - spec/job_uniqueness/support/on_conflict.rb
1050
+ - spec/job_uniqueness/unique_job_common_spec.rb
938
1051
  - spec/job_uniqueness/support/test_worker.rb
939
1052
  - spec/job_uniqueness/support/lock_strategy.rb
940
- - spec/job_uniqueness/strategy/while_executing_spec.rb
1053
+ - spec/job_uniqueness/support/on_conflict.rb
1054
+ - spec/job_uniqueness/strategy/until_executed_spec.rb
941
1055
  - spec/job_uniqueness/strategy/until_and_while_executing_spec.rb
942
1056
  - spec/job_uniqueness/strategy/until_executing_spec.rb
943
- - spec/job_uniqueness/strategy/until_executed_spec.rb
944
1057
  - spec/job_uniqueness/strategy/until_expired_spec.rb
1058
+ - spec/job_uniqueness/strategy/while_executing_spec.rb
945
1059
  - spec/job_uniqueness/strategy/base_spec.rb
946
- - spec/job_uniqueness/unique_job_common_spec.rb
947
- - spec/job_uniqueness/compat/active_job_spec.rb
948
- - spec/job_uniqueness/compat/sidekiq_spec.rb
949
- - spec/job_batching/integration_helper.rb
1060
+ - spec/job_batching/batch_spec.rb
950
1061
  - spec/job_batching/pool_spec.rb
951
- - spec/job_batching/integration/integration.rb
952
- - spec/job_batching/integration/workflow.rb
953
- - spec/job_batching/integration/fail_then_succeed.rb
1062
+ - spec/job_batching/context_hash_spec.rb
1063
+ - spec/job_batching/compat/sidekiq_spec.rb
1064
+ - spec/job_batching/compat/active_job_spec.rb
954
1065
  - spec/job_batching/integration/nested.rb
1066
+ - spec/job_batching/integration/workflow.rb
955
1067
  - spec/job_batching/integration/simple.rb
1068
+ - spec/job_batching/integration/integration.rb
1069
+ - spec/job_batching/integration/fail_then_succeed.rb
1070
+ - spec/job_batching/integration_helper.rb
1071
+ - spec/job_batching/flow_spec.rb
956
1072
  - spec/job_batching/status_spec.rb
957
- - spec/job_batching/callback_spec.rb
958
1073
  - spec/job_batching/support/base_job.rb
959
1074
  - spec/job_batching/support/sample_callback.rb
960
- - spec/job_batching/batch_spec.rb
961
- - spec/job_batching/flow_spec.rb
962
- - spec/job_batching/compat/active_job_spec.rb
963
- - spec/job_batching/compat/sidekiq_spec.rb
964
- - spec/job_batching/context_hash_spec.rb
965
- - spec/spec_helper.rb
1075
+ - spec/job_batching/callback_spec.rb
966
1076
  - spec/support/fake_canvas.rb
967
- - spec/support/fixtures/reports/submissions.csv
968
- - spec/support/fixtures/reports/assignments.csv
969
- - spec/support/fixtures/reports/user_observers.csv
970
- - spec/support/fixtures/reports/xlist.csv
971
- - spec/support/fixtures/reports/sections.csv
972
- - spec/support/fixtures/reports/context_modules.csv
973
- - spec/support/fixtures/reports/users.csv
1077
+ - spec/support/fixtures/canvas_responses/roles.json
1078
+ - spec/support/fixtures/canvas_responses/admins.json
1079
+ - spec/support/fixtures/canvas_responses/module_item.json
1080
+ - spec/support/fixtures/canvas_responses/terms.json
1081
+ - spec/support/fixtures/canvas_responses/module.json
1082
+ - spec/support/fixtures/reports/groups.csv
974
1083
  - spec/support/fixtures/reports/grading_period_groups.csv
975
1084
  - spec/support/fixtures/reports/learning_outcomes.csv
976
- - spec/support/fixtures/reports/groups.csv
1085
+ - spec/support/fixtures/reports/context_module_items.csv
1086
+ - spec/support/fixtures/reports/context_modules.csv
1087
+ - spec/support/fixtures/reports/group_memberships.csv
1088
+ - spec/support/fixtures/reports/content_migrations.csv
1089
+ - spec/support/fixtures/reports/users.csv
1090
+ - spec/support/fixtures/reports/submissions.csv
1091
+ - spec/support/fixtures/reports/course_progresses_conflict.csv
1092
+ - spec/support/fixtures/reports/course_nicknames.csv
1093
+ - spec/support/fixtures/reports/enrollments.csv
1094
+ - spec/support/fixtures/reports/sections.csv
1095
+ - spec/support/fixtures/reports/assignments.csv
1096
+ - spec/support/fixtures/reports/grading_periods.csv
977
1097
  - spec/support/fixtures/reports/courses.csv
978
- - spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
979
- - spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
980
1098
  - spec/support/fixtures/reports/rubric_associations.csv
1099
+ - spec/support/fixtures/reports/xlist.csv
1100
+ - spec/support/fixtures/reports/provisioning_csv
1101
+ - spec/support/fixtures/reports/user_observers.csv
1102
+ - spec/support/fixtures/reports/rubrics.csv
981
1103
  - spec/support/fixtures/reports/assignment_groups.csv
982
- - spec/support/fixtures/reports/group_memberships.csv
1104
+ - spec/support/fixtures/reports/course_progresses.csv
983
1105
  - spec/support/fixtures/reports/rubric_assessments.csv
984
- - spec/support/fixtures/reports/enrollments.csv
1106
+ - spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
1107
+ - spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
985
1108
  - spec/support/fixtures/reports/learning_outcome_results.csv
986
- - spec/support/fixtures/reports/course_nicknames.csv
987
- - spec/support/fixtures/reports/provisioning_csv
988
- - spec/support/fixtures/reports/grading_periods.csv
989
- - spec/support/fixtures/reports/rubrics.csv
990
- - spec/support/fixtures/reports/content_migrations.csv
991
- - spec/support/fixtures/reports/context_module_items.csv
992
- - spec/support/fixtures/canvas_responses/module.json
993
- - spec/support/fixtures/canvas_responses/terms.json
994
- - spec/support/fixtures/canvas_responses/admins.json
995
- - spec/support/fixtures/canvas_responses/roles.json
996
- - spec/support/fixtures/canvas_responses/module_item.json
997
- - spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb
998
- - spec/dummy/db/migrate/20240510101100_create_rubric_assessments.rb
999
- - spec/dummy/db/migrate/20190702203630_create_assignment_groups.rb
1000
- - spec/dummy/db/migrate/20190702203627_create_submissions.rb
1001
- - spec/dummy/db/migrate/20190702203624_create_enrollments.rb
1002
- - spec/dummy/db/migrate/20190702203621_create_courses.rb
1003
- - spec/dummy/db/migrate/20211001184920_create_grading_period_groups.rb
1004
- - spec/dummy/db/migrate/20220712210559_create_learning_outcomes.rb
1005
- - spec/dummy/db/migrate/20200416214248_create_group_memberships.rb
1006
- - spec/dummy/db/migrate/20220926221926_create_users.rb
1007
- - spec/dummy/db/migrate/20210907233330_create_grading_periods.rb
1008
- - spec/dummy/db/migrate/20190702203631_create_context_modules.rb
1009
- - spec/dummy/db/migrate/20240408223326_create_course_nicknames.rb
1010
- - spec/dummy/db/migrate/20240509105100_create_rubrics.rb
1011
- - spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
1012
- - spec/dummy/db/migrate/20190702203632_create_context_module_items.rb
1013
- - spec/dummy/db/migrate/20190927204545_create_roles.rb
1014
- - spec/dummy/db/migrate/20190702203622_create_accounts.rb
1015
- - spec/dummy/db/migrate/20190702203626_create_assignments.rb
1016
- - spec/dummy/db/migrate/20240523101010_create_learning_outcome_results.rb
1017
- - spec/dummy/db/migrate/20200415171620_create_groups.rb
1018
- - spec/dummy/db/migrate/20190927204546_create_admins.rb
1019
- - spec/dummy/db/migrate/20190702203625_create_sections.rb
1020
- - spec/dummy/db/migrate/20210907233329_create_user_observers.rb
1021
- - spec/dummy/db/migrate/20190702203623_create_terms.rb
1022
- - spec/dummy/db/migrate/20220308072643_create_content_migrations.rb
1023
- - spec/dummy/db/schema.rb
1024
- - spec/dummy/Rakefile
1025
- - spec/dummy/app/services/live_events/submission_event.rb
1026
- - spec/dummy/app/services/live_events/module_created_event.rb
1027
- - spec/dummy/app/services/live_events/module_item_created_event.rb
1028
- - spec/dummy/app/services/live_events/user_created_event.rb
1029
- - spec/dummy/app/services/live_events/base_event.rb
1030
- - spec/dummy/app/services/live_events/course_section_created_event.rb
1031
- - spec/dummy/app/services/live_events/user_updated_event.rb
1032
- - spec/dummy/app/services/live_events/course_updated_event.rb
1033
- - spec/dummy/app/services/live_events/submission_created_event.rb
1034
- - spec/dummy/app/services/live_events/syllabus_event.rb
1035
- - spec/dummy/app/services/live_events/module_updated_event.rb
1036
- - spec/dummy/app/services/live_events/course_event.rb
1037
- - spec/dummy/app/services/live_events/enrollment_created_event.rb
1038
- - spec/dummy/app/services/live_events/grade_event.rb
1039
- - spec/dummy/app/services/live_events/course_section_updated_event.rb
1040
- - spec/dummy/app/services/live_events/course_created_event.rb
1041
- - spec/dummy/app/services/live_events/enrollment_event.rb
1042
- - spec/dummy/app/services/live_events/assignment_updated_event.rb
1043
- - spec/dummy/app/services/live_events/syllabus_updated_event.rb
1044
- - spec/dummy/app/services/live_events/grade_changed_event.rb
1045
- - spec/dummy/app/services/live_events/module_item_updated_event.rb
1046
- - spec/dummy/app/services/live_events/module_event.rb
1047
- - spec/dummy/app/services/live_events/course_section_event.rb
1048
- - spec/dummy/app/services/live_events/assignment_created_event.rb
1049
- - spec/dummy/app/services/live_events/enrollment_updated_event.rb
1050
- - spec/dummy/app/services/live_events/assignment_event.rb
1051
- - spec/dummy/app/services/live_events/module_item_event.rb
1052
- - spec/dummy/app/services/live_events/submission_updated_event.rb
1053
- - spec/dummy/app/services/live_events/user_event.rb
1054
- - spec/dummy/app/models/course_nickname.rb
1055
- - spec/dummy/app/models/user.rb
1056
- - spec/dummy/app/models/submission.rb
1057
- - spec/dummy/app/models/group_membership.rb
1058
- - spec/dummy/app/models/enrollment.rb
1059
- - spec/dummy/app/models/rubric.rb
1060
- - spec/dummy/app/models/rubric_association.rb
1061
- - spec/dummy/app/models/role.rb
1062
- - spec/dummy/app/models/account.rb
1063
- - spec/dummy/app/models/application_record.rb
1064
- - spec/dummy/app/models/admin.rb
1065
- - spec/dummy/app/models/rubric_assessment.rb
1066
- - spec/dummy/app/models/learning_outcome.rb
1067
- - spec/dummy/app/models/learning_outcome_result.rb
1068
- - spec/dummy/app/models/grading_period.rb
1069
- - spec/dummy/app/models/context_module.rb
1070
- - spec/dummy/app/models/context_module_item.rb
1071
- - spec/dummy/app/models/course.rb
1072
- - spec/dummy/app/models/section.rb
1073
- - spec/dummy/app/models/grading_period_group.rb
1074
- - spec/dummy/app/models/user_observer.rb
1075
- - spec/dummy/app/models/assignment_group.rb
1076
- - spec/dummy/app/models/assignment.rb
1077
- - spec/dummy/app/models/term.rb
1078
- - spec/dummy/app/models/pseudonym.rb
1079
- - spec/dummy/app/models/group.rb
1080
- - spec/dummy/app/models/content_migration.rb
1081
- - spec/dummy/config/secrets.yml
1082
- - spec/dummy/config/application.rb
1083
- - spec/dummy/config/initializers/session_store.rb
1084
- - spec/dummy/config/initializers/wrap_parameters.rb
1085
- - spec/dummy/config/initializers/assets.rb
1086
- - spec/dummy/config/environments/development.rb
1087
- - spec/dummy/config/environments/test.rb
1088
- - spec/dummy/config/database.yml
1089
- - spec/dummy/config/boot.rb
1090
- - spec/dummy/config/routes.rb
1091
- - spec/dummy/config/environment.rb
1092
- - spec/dummy/README.rdoc
1093
- - spec/dummy/config.ru
1094
- - spec/dummy/bin/rails
1095
- - spec/factories/account_factory.rb
1096
- - spec/factories/term_factory.rb
1097
- - spec/factories/enrollment_factory.rb
1098
- - spec/factories/assignment_factory.rb
1099
- - spec/factories/assignment_group_factory.rb
1100
- - spec/factories/role_factory.rb
1109
+ - spec/factories/course_factory.rb
1101
1110
  - spec/factories/admin_factory.rb
1102
- - spec/factories/group_factory.rb
1103
1111
  - spec/factories/group_membership_factory.rb
1112
+ - spec/factories/user_factory.rb
1113
+ - spec/factories/role_factory.rb
1114
+ - spec/factories/assignment_factory.rb
1115
+ - spec/factories/term_factory.rb
1116
+ - spec/factories/group_factory.rb
1104
1117
  - spec/factories/section_factory.rb
1118
+ - spec/factories/enrollment_factory.rb
1119
+ - spec/factories/context_module_factory.rb
1105
1120
  - spec/factories/context_module_item_factory.rb
1106
- - spec/factories/course_factory.rb
1107
1121
  - spec/factories/submission_factory.rb
1108
- - spec/factories/user_factory.rb
1109
- - spec/factories/context_module_factory.rb
1122
+ - spec/factories/assignment_group_factory.rb
1123
+ - spec/factories/account_factory.rb