canvas_sync 0.13.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +5 -5
  2. data/lib/canvas_sync.rb +2 -0
  3. data/lib/canvas_sync/generators/templates/migrations/create_group_memberships.rb +18 -0
  4. data/lib/canvas_sync/generators/templates/migrations/create_groups.rb +23 -0
  5. data/lib/canvas_sync/generators/templates/models/account.rb +1 -0
  6. data/lib/canvas_sync/generators/templates/models/course.rb +1 -0
  7. data/lib/canvas_sync/generators/templates/models/group.rb +19 -0
  8. data/lib/canvas_sync/generators/templates/models/group_membership.rb +17 -0
  9. data/lib/canvas_sync/generators/templates/models/user.rb +1 -0
  10. data/lib/canvas_sync/jobs/sync_provisioning_report_job.rb +2 -0
  11. data/lib/canvas_sync/processors/model_mappings.yml +59 -0
  12. data/lib/canvas_sync/processors/provisioning_report_processor.rb +19 -0
  13. data/lib/canvas_sync/version.rb +1 -1
  14. data/spec/canvas_sync/models/accounts_spec.rb +3 -0
  15. data/spec/canvas_sync/models/course_spec.rb +4 -0
  16. data/spec/canvas_sync/models/group_membership_spec.rb +26 -0
  17. data/spec/canvas_sync/models/group_spec.rb +26 -0
  18. data/spec/canvas_sync/models/user_spec.rb +2 -0
  19. data/spec/canvas_sync/processors/provisioning_report_processor_spec.rb +20 -0
  20. data/spec/dummy/app/models/account.rb +1 -0
  21. data/spec/dummy/app/models/course.rb +1 -0
  22. data/spec/dummy/app/models/group.rb +25 -0
  23. data/spec/dummy/app/models/group_membership.rb +23 -0
  24. data/spec/dummy/app/models/user.rb +1 -0
  25. data/spec/dummy/db/migrate/20200415171620_create_groups.rb +29 -0
  26. data/spec/dummy/db/migrate/20200416214248_create_group_memberships.rb +24 -0
  27. data/spec/dummy/db/schema.rb +30 -1
  28. data/spec/factories/group_factory.rb +8 -0
  29. data/spec/factories/group_membership_factory.rb +6 -0
  30. data/spec/support/fixtures/reports/group_memberships.csv +3 -0
  31. data/spec/support/fixtures/reports/groups.csv +3 -0
  32. metadata +28 -13
  33. data/spec/dummy/db/test.sqlite3 +0 -0
  34. data/spec/dummy/log/development.log +0 -1248
  35. data/spec/dummy/log/test.log +0 -43258
  36. data/spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv +0 -3
  37. 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