canvas_sync 0.17.26.beta1 → 0.17.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/lib/canvas_sync/generators/templates/migrations/create_content_migrations.rb +24 -0
  4. data/lib/canvas_sync/generators/templates/models/content_migration.rb +10 -0
  5. data/lib/canvas_sync/importers/bulk_importer.rb +1 -1
  6. data/lib/canvas_sync/job_batches/context_hash.rb +4 -0
  7. data/lib/canvas_sync/job_batches/jobs/concurrent_batch_job.rb +12 -9
  8. data/lib/canvas_sync/job_batches/jobs/managed_batch_job.rb +62 -25
  9. data/lib/canvas_sync/job_batches/jobs/serial_batch_job.rb +9 -3
  10. data/lib/canvas_sync/job_batches/sidekiq/web/helpers.rb +1 -1
  11. data/lib/canvas_sync/jobs/begin_sync_chain_job.rb +2 -0
  12. data/lib/canvas_sync/jobs/sync_content_migrations_job.rb +20 -0
  13. data/lib/canvas_sync/jobs/term_batches_job.rb +30 -3
  14. data/lib/canvas_sync/processors/content_migrations_processor.rb +19 -0
  15. data/lib/canvas_sync/processors/model_mappings.yml +40 -0
  16. data/lib/canvas_sync/version.rb +1 -1
  17. data/lib/canvas_sync.rb +12 -0
  18. data/spec/canvas_sync/jobs/sync_content_migrations_job_spec.rb +30 -0
  19. data/spec/canvas_sync/processors/content_migrations_processor_spec.rb +13 -0
  20. data/spec/canvas_sync/processors/provisioning_report_processor_spec.rb +5 -0
  21. data/spec/dummy/app/models/content_migration.rb +16 -0
  22. data/spec/dummy/db/migrate/20220308072643_create_content_migrations.rb +30 -0
  23. data/spec/dummy/db/schema.rb +19 -1
  24. data/spec/support/fixtures/reports/content_migrations.csv +3 -0
  25. data/spec/support/fixtures/reports/users.csv +3 -2
  26. metadata +19 -13
  27. data/spec/dummy/log/development.log +0 -2069
  28. data/spec/dummy/log/test.log +0 -83945
  29. data/spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv +0 -3
  30. data/spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv +0 -4
@@ -1,3 +0,0 @@
1
- canvas_course_id,course_id,integration_id,short_name,long_name,canvas_account_id,account_id,canvas_term_id,term_id,status,start_date,end_date,course_format,created_by_sis
2
- 1,course_sis_id_1,,C1,Course #1,1,,1,term_sis_id_1,active,2017-03-27T15:53:18-06:00,2017-04-27T06:21:18-06:00,,FALSE
3
- 2,course_sis_id_2,,C2,Course #2,1,,1,term_sis_id_2,unpublished,2017-03-27T15:53:18-06:00,2017-04-27T06:21:18-06:00,,FALSE
@@ -1,4 +0,0 @@
1
- canvas_user_id,user_id,integration_id,authentication_provider_id,login_id,first_name,last_name,full_name,sortable_name,short_name,email,status,created_by_sis
2
- 1,sis_id_1,,123,spiderdude1337,Patches,the Spider,Patches the Spider,"the Spider, Patches",,poorbastard@yharnam.com,active,FALSE
3
- 2,sis_id_2,,1234,retireddude109,Hunter,Djura,Hunter Djura,"Djura, Hunter",,dreamer@yharnam.com,active,FALSE
4
- 2,sis_id_2,,1234,retireddude110,Hunter,Djura,Hunter Djura,"Djura, Hunter",,dreamer@yharnam.com,active,FALSE