canvas_sync 0.16.4 → 0.16.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/db/migrate/20170915210836_create_canvas_sync_job_log.rb +12 -31
- data/db/migrate/20180725155729_add_job_id_to_canvas_sync_job_logs.rb +4 -13
- data/db/migrate/20190916154829_add_fork_count_to_canvas_sync_job_logs.rb +3 -11
- data/lib/canvas_sync.rb +7 -27
- data/lib/canvas_sync/importers/bulk_importer.rb +7 -4
- data/lib/canvas_sync/job.rb +8 -2
- data/lib/canvas_sync/job_chain.rb +46 -1
- data/lib/canvas_sync/jobs/fork_gather.rb +27 -12
- data/lib/canvas_sync/jobs/report_starter.rb +1 -1
- data/lib/canvas_sync/jobs/sync_provisioning_report_job.rb +4 -4
- data/lib/canvas_sync/jobs/sync_simple_table_job.rb +4 -4
- data/lib/canvas_sync/misc_helper.rb +15 -0
- data/lib/canvas_sync/processors/assignment_groups_processor.rb +3 -2
- data/lib/canvas_sync/processors/assignments_processor.rb +3 -2
- data/lib/canvas_sync/processors/context_module_items_processor.rb +3 -2
- data/lib/canvas_sync/processors/context_modules_processor.rb +3 -2
- data/lib/canvas_sync/processors/normal_processor.rb +2 -1
- data/lib/canvas_sync/processors/provisioning_report_processor.rb +10 -2
- data/lib/canvas_sync/processors/submissions_processor.rb +3 -2
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/jobs/fork_gather_spec.rb +9 -9
- data/spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb +2 -2
- data/spec/canvas_sync/jobs/sync_simple_table_job_spec.rb +1 -1
- data/spec/dummy/app/models/account.rb +3 -0
- data/spec/dummy/app/models/pseudonym.rb +14 -0
- data/spec/dummy/app/models/submission.rb +1 -0
- data/spec/dummy/app/models/user.rb +1 -0
- data/spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb +24 -0
- data/spec/dummy/db/schema.rb +16 -4
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +1248 -0
- data/spec/dummy/log/test.log +43258 -0
- data/spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv +3 -0
- data/spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv +4 -0
- metadata +22 -8
@@ -0,0 +1,3 @@
|
|
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
|
@@ -0,0 +1,4 @@
|
|
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
|
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.16.
|
4
|
+
version: 0.16.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Collings
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -304,7 +304,7 @@ dependencies:
|
|
304
304
|
- - ">="
|
305
305
|
- !ruby/object:Gem::Version
|
306
306
|
version: '0'
|
307
|
-
description:
|
307
|
+
description:
|
308
308
|
email:
|
309
309
|
- ncollings@instructure.com
|
310
310
|
executables: []
|
@@ -393,6 +393,7 @@ files:
|
|
393
393
|
- lib/canvas_sync/jobs/sync_simple_table_job.rb
|
394
394
|
- lib/canvas_sync/jobs/sync_submissions_job.rb
|
395
395
|
- lib/canvas_sync/jobs/sync_terms_job.rb
|
396
|
+
- lib/canvas_sync/misc_helper.rb
|
396
397
|
- lib/canvas_sync/processors/assignment_groups_processor.rb
|
397
398
|
- lib/canvas_sync/processors/assignments_processor.rb
|
398
399
|
- lib/canvas_sync/processors/context_module_items_processor.rb
|
@@ -458,6 +459,7 @@ files:
|
|
458
459
|
- spec/dummy/app/models/enrollment.rb
|
459
460
|
- spec/dummy/app/models/group.rb
|
460
461
|
- spec/dummy/app/models/group_membership.rb
|
462
|
+
- spec/dummy/app/models/pseudonym.rb
|
461
463
|
- spec/dummy/app/models/role.rb
|
462
464
|
- spec/dummy/app/models/section.rb
|
463
465
|
- spec/dummy/app/models/submission.rb
|
@@ -520,7 +522,11 @@ files:
|
|
520
522
|
- spec/dummy/db/migrate/20190927204546_create_admins.rb
|
521
523
|
- spec/dummy/db/migrate/20200415171620_create_groups.rb
|
522
524
|
- spec/dummy/db/migrate/20200416214248_create_group_memberships.rb
|
525
|
+
- spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb
|
523
526
|
- spec/dummy/db/schema.rb
|
527
|
+
- spec/dummy/db/test.sqlite3
|
528
|
+
- spec/dummy/log/development.log
|
529
|
+
- spec/dummy/log/test.log
|
524
530
|
- spec/factories/account_factory.rb
|
525
531
|
- spec/factories/admin_factory.rb
|
526
532
|
- spec/factories/assignment_factory.rb
|
@@ -552,6 +558,8 @@ files:
|
|
552
558
|
- spec/support/fixtures/reports/group_memberships.csv
|
553
559
|
- spec/support/fixtures/reports/groups.csv
|
554
560
|
- spec/support/fixtures/reports/provisioning_csv
|
561
|
+
- spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
|
562
|
+
- spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
|
555
563
|
- spec/support/fixtures/reports/sections.csv
|
556
564
|
- spec/support/fixtures/reports/submissions.csv
|
557
565
|
- spec/support/fixtures/reports/users.csv
|
@@ -559,7 +567,7 @@ files:
|
|
559
567
|
homepage: https://instructure.com
|
560
568
|
licenses: []
|
561
569
|
metadata: {}
|
562
|
-
post_install_message:
|
570
|
+
post_install_message:
|
563
571
|
rdoc_options: []
|
564
572
|
require_paths:
|
565
573
|
- lib
|
@@ -574,9 +582,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
574
582
|
- !ruby/object:Gem::Version
|
575
583
|
version: '0'
|
576
584
|
requirements: []
|
577
|
-
|
578
|
-
|
579
|
-
signing_key:
|
585
|
+
rubygems_version: 3.1.2
|
586
|
+
signing_key:
|
580
587
|
specification_version: 4
|
581
588
|
summary: Gem for generating Canvas models and migrations and syncing data from Canvas
|
582
589
|
test_files:
|
@@ -633,6 +640,7 @@ test_files:
|
|
633
640
|
- spec/dummy/app/models/enrollment.rb
|
634
641
|
- spec/dummy/app/models/group.rb
|
635
642
|
- spec/dummy/app/models/group_membership.rb
|
643
|
+
- spec/dummy/app/models/pseudonym.rb
|
636
644
|
- spec/dummy/app/models/role.rb
|
637
645
|
- spec/dummy/app/models/section.rb
|
638
646
|
- spec/dummy/app/models/submission.rb
|
@@ -695,7 +703,11 @@ test_files:
|
|
695
703
|
- spec/dummy/db/migrate/20190927204546_create_admins.rb
|
696
704
|
- spec/dummy/db/migrate/20200415171620_create_groups.rb
|
697
705
|
- spec/dummy/db/migrate/20200416214248_create_group_memberships.rb
|
706
|
+
- spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb
|
698
707
|
- spec/dummy/db/schema.rb
|
708
|
+
- spec/dummy/db/test.sqlite3
|
709
|
+
- spec/dummy/log/development.log
|
710
|
+
- spec/dummy/log/test.log
|
699
711
|
- spec/factories/account_factory.rb
|
700
712
|
- spec/factories/admin_factory.rb
|
701
713
|
- spec/factories/assignment_factory.rb
|
@@ -727,6 +739,8 @@ test_files:
|
|
727
739
|
- spec/support/fixtures/reports/group_memberships.csv
|
728
740
|
- spec/support/fixtures/reports/groups.csv
|
729
741
|
- spec/support/fixtures/reports/provisioning_csv
|
742
|
+
- spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
|
743
|
+
- spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
|
730
744
|
- spec/support/fixtures/reports/sections.csv
|
731
745
|
- spec/support/fixtures/reports/submissions.csv
|
732
746
|
- spec/support/fixtures/reports/users.csv
|