canvas_sync 0.20.5 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +64 -12
- data/app/controllers/{api → canvas_sync/api}/v1/health_check_controller.rb +1 -1
- data/app/controllers/canvas_sync/api/v1/live_events_controller.rb +122 -0
- data/config/routes.rb +7 -0
- data/lib/canvas_sync/concerns/live_event_sync.rb +46 -0
- data/lib/canvas_sync/generators/install_live_events_generator.rb +0 -1
- data/lib/canvas_sync/generators/templates/models/account.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/assignment.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/assignment_group.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/context_module.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/context_module_item.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/course.rb +8 -0
- data/lib/canvas_sync/generators/templates/models/enrollment.rb +12 -0
- data/lib/canvas_sync/generators/templates/models/section.rb +7 -0
- data/lib/canvas_sync/generators/templates/models/submission.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/user.rb +8 -0
- data/lib/canvas_sync/generators/templates/services/live_events/assignment_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/assignment_group_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/course_event.rb +1 -3
- data/lib/canvas_sync/generators/templates/services/live_events/course_section_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/enrollment_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/grade_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/module_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/module_item_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/submission_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/syllabus_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/user_event.rb +1 -3
- data/lib/canvas_sync/{generators/templates/services/live_events/base_event.rb → live_events/base_handler.rb} +6 -10
- data/lib/canvas_sync/live_events/process_event_job.rb +26 -0
- data/lib/canvas_sync/live_events.rb +38 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/lib/canvas_sync.rb +1 -0
- data/spec/canvas_sync/live_events/live_event_sync_spec.rb +27 -0
- data/spec/canvas_sync/live_events/live_events_controller_spec.rb +54 -0
- data/spec/canvas_sync/live_events/process_event_job_spec.rb +38 -0
- data/spec/dummy/app/models/account.rb +1 -0
- data/spec/dummy/app/models/assignment.rb +1 -0
- data/spec/dummy/app/models/assignment_group.rb +1 -0
- data/spec/dummy/app/models/context_module.rb +1 -0
- data/spec/dummy/app/models/context_module_item.rb +1 -0
- data/spec/dummy/app/models/course.rb +8 -0
- data/spec/dummy/app/models/enrollment.rb +12 -0
- data/spec/dummy/app/models/section.rb +7 -0
- data/spec/dummy/app/models/submission.rb +1 -0
- data/spec/dummy/app/models/user.rb +8 -0
- data/spec/dummy/app/services/live_events/assignment_event.rb +1 -1
- data/spec/dummy/app/services/live_events/course_event.rb +1 -3
- data/spec/dummy/app/services/live_events/course_section_event.rb +1 -1
- data/spec/dummy/app/services/live_events/enrollment_event.rb +1 -1
- data/spec/dummy/app/services/live_events/grade_event.rb +1 -1
- data/spec/dummy/app/services/live_events/module_event.rb +1 -1
- data/spec/dummy/app/services/live_events/module_item_event.rb +1 -1
- data/spec/dummy/app/services/live_events/submission_event.rb +1 -1
- data/spec/dummy/app/services/live_events/syllabus_event.rb +1 -1
- data/spec/dummy/app/services/live_events/user_event.rb +1 -3
- data/spec/dummy/config/routes.rb +1 -0
- metadata +218 -181
- data/app/controllers/api/v1/live_events_controller.rb +0 -18
- data/lib/canvas_sync/concerns/auto_relations.rb +0 -11
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.
|
4
|
+
version: 0.21.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -248,6 +248,20 @@ dependencies:
|
|
248
248
|
- - ">="
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: '0'
|
251
|
+
- !ruby/object:Gem::Dependency
|
252
|
+
name: httparty
|
253
|
+
requirement: !ruby/object:Gem::Requirement
|
254
|
+
requirements:
|
255
|
+
- - ">="
|
256
|
+
- !ruby/object:Gem::Version
|
257
|
+
version: '0'
|
258
|
+
type: :development
|
259
|
+
prerelease: false
|
260
|
+
version_requirements: !ruby/object:Gem::Requirement
|
261
|
+
requirements:
|
262
|
+
- - ">="
|
263
|
+
- !ruby/object:Gem::Version
|
264
|
+
version: '0'
|
251
265
|
- !ruby/object:Gem::Dependency
|
252
266
|
name: sidekiq
|
253
267
|
requirement: !ruby/object:Gem::Requirement
|
@@ -388,7 +402,21 @@ dependencies:
|
|
388
402
|
- - ">="
|
389
403
|
- !ruby/object:Gem::Version
|
390
404
|
version: '0'
|
391
|
-
|
405
|
+
- !ruby/object:Gem::Dependency
|
406
|
+
name: json-jwt
|
407
|
+
requirement: !ruby/object:Gem::Requirement
|
408
|
+
requirements:
|
409
|
+
- - ">="
|
410
|
+
- !ruby/object:Gem::Version
|
411
|
+
version: '0'
|
412
|
+
type: :runtime
|
413
|
+
prerelease: false
|
414
|
+
version_requirements: !ruby/object:Gem::Requirement
|
415
|
+
requirements:
|
416
|
+
- - ">="
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
version: '0'
|
419
|
+
description:
|
392
420
|
email:
|
393
421
|
- pseng@instructure.com
|
394
422
|
executables: []
|
@@ -397,11 +425,12 @@ extra_rdoc_files: []
|
|
397
425
|
files:
|
398
426
|
- README.md
|
399
427
|
- Rakefile
|
400
|
-
- app/controllers/api/v1/health_check_controller.rb
|
401
|
-
- app/controllers/api/v1/live_events_controller.rb
|
428
|
+
- app/controllers/canvas_sync/api/v1/health_check_controller.rb
|
429
|
+
- app/controllers/canvas_sync/api/v1/live_events_controller.rb
|
402
430
|
- app/models/canvas_sync/job_log.rb
|
403
431
|
- app/models/canvas_sync/sync_batch.rb
|
404
432
|
- config/initializers/apartment.rb
|
433
|
+
- config/routes.rb
|
405
434
|
- db/migrate/20170915210836_create_canvas_sync_job_log.rb
|
406
435
|
- db/migrate/20180725155729_add_job_id_to_canvas_sync_job_logs.rb
|
407
436
|
- db/migrate/20190916154829_add_fork_count_to_canvas_sync_job_logs.rb
|
@@ -415,8 +444,8 @@ files:
|
|
415
444
|
- lib/canvas_sync/concerns/account/ancestry.rb
|
416
445
|
- lib/canvas_sync/concerns/account/base.rb
|
417
446
|
- lib/canvas_sync/concerns/api_syncable.rb
|
418
|
-
- lib/canvas_sync/concerns/auto_relations.rb
|
419
447
|
- lib/canvas_sync/concerns/legacy_columns.rb
|
448
|
+
- lib/canvas_sync/concerns/live_event_sync.rb
|
420
449
|
- lib/canvas_sync/concerns/role/base.rb
|
421
450
|
- lib/canvas_sync/concerns/sync_mapping.rb
|
422
451
|
- lib/canvas_sync/config.rb
|
@@ -477,7 +506,6 @@ files:
|
|
477
506
|
- lib/canvas_sync/generators/templates/models/user_observer.rb
|
478
507
|
- lib/canvas_sync/generators/templates/services/live_events/assignment_event.rb
|
479
508
|
- lib/canvas_sync/generators/templates/services/live_events/assignment_group_event.rb
|
480
|
-
- lib/canvas_sync/generators/templates/services/live_events/base_event.rb
|
481
509
|
- lib/canvas_sync/generators/templates/services/live_events/course_event.rb
|
482
510
|
- lib/canvas_sync/generators/templates/services/live_events/course_section_event.rb
|
483
511
|
- lib/canvas_sync/generators/templates/services/live_events/enrollment_event.rb
|
@@ -542,6 +570,9 @@ files:
|
|
542
570
|
- lib/canvas_sync/jobs/sync_submissions_job.rb
|
543
571
|
- lib/canvas_sync/jobs/sync_terms_job.rb
|
544
572
|
- lib/canvas_sync/jobs/term_batches_job.rb
|
573
|
+
- lib/canvas_sync/live_events.rb
|
574
|
+
- lib/canvas_sync/live_events/base_handler.rb
|
575
|
+
- lib/canvas_sync/live_events/process_event_job.rb
|
545
576
|
- lib/canvas_sync/misc_helper.rb
|
546
577
|
- lib/canvas_sync/processors/assignment_groups_processor.rb
|
547
578
|
- lib/canvas_sync/processors/assignments_processor.rb
|
@@ -576,6 +607,9 @@ files:
|
|
576
607
|
- spec/canvas_sync/jobs/sync_simple_table_job_spec.rb
|
577
608
|
- spec/canvas_sync/jobs/sync_submissions_job_spec.rb
|
578
609
|
- spec/canvas_sync/jobs/sync_terms_job_spec.rb
|
610
|
+
- spec/canvas_sync/live_events/live_event_sync_spec.rb
|
611
|
+
- spec/canvas_sync/live_events/live_events_controller_spec.rb
|
612
|
+
- spec/canvas_sync/live_events/process_event_job_spec.rb
|
579
613
|
- spec/canvas_sync/misc_helper_spec.rb
|
580
614
|
- spec/canvas_sync/models/accounts_spec.rb
|
581
615
|
- spec/canvas_sync/models/admins_spec.rb
|
@@ -769,7 +803,7 @@ files:
|
|
769
803
|
homepage: https://instructure.com
|
770
804
|
licenses: []
|
771
805
|
metadata: {}
|
772
|
-
post_install_message:
|
806
|
+
post_install_message:
|
773
807
|
rdoc_options: []
|
774
808
|
require_paths:
|
775
809
|
- lib
|
@@ -784,215 +818,218 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
784
818
|
- !ruby/object:Gem::Version
|
785
819
|
version: '0'
|
786
820
|
requirements: []
|
787
|
-
rubygems_version: 3.
|
788
|
-
signing_key:
|
821
|
+
rubygems_version: 3.5.4
|
822
|
+
signing_key:
|
789
823
|
specification_version: 4
|
790
824
|
summary: Gem for generating Canvas models and migrations and syncing data from Canvas
|
791
825
|
test_files:
|
792
|
-
- spec/canvas_sync/
|
793
|
-
- spec/canvas_sync/
|
826
|
+
- spec/canvas_sync/canvas_sync_spec.rb
|
827
|
+
- spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
|
828
|
+
- spec/canvas_sync/jobs/job_spec.rb
|
829
|
+
- spec/canvas_sync/jobs/report_checker_spec.rb
|
830
|
+
- spec/canvas_sync/jobs/report_processor_job_spec.rb
|
831
|
+
- spec/canvas_sync/jobs/report_starter_spec.rb
|
832
|
+
- spec/canvas_sync/jobs/sync_admins_job_spec.rb
|
833
|
+
- spec/canvas_sync/jobs/sync_assignment_groups_job_spec.rb
|
834
|
+
- spec/canvas_sync/jobs/sync_assignments_job_spec.rb
|
835
|
+
- spec/canvas_sync/jobs/sync_content_migrations_job_spec.rb
|
836
|
+
- spec/canvas_sync/jobs/sync_context_module_items_job_spec.rb
|
837
|
+
- spec/canvas_sync/jobs/sync_context_modules_job_spec.rb
|
838
|
+
- spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
|
839
|
+
- spec/canvas_sync/jobs/sync_roles_job_spec.rb
|
840
|
+
- spec/canvas_sync/jobs/sync_simple_table_job_spec.rb
|
841
|
+
- spec/canvas_sync/jobs/sync_submissions_job_spec.rb
|
842
|
+
- spec/canvas_sync/jobs/sync_terms_job_spec.rb
|
843
|
+
- spec/canvas_sync/live_events/live_event_sync_spec.rb
|
844
|
+
- spec/canvas_sync/live_events/live_events_controller_spec.rb
|
845
|
+
- spec/canvas_sync/live_events/process_event_job_spec.rb
|
846
|
+
- spec/canvas_sync/misc_helper_spec.rb
|
847
|
+
- spec/canvas_sync/models/accounts_spec.rb
|
794
848
|
- spec/canvas_sync/models/admins_spec.rb
|
849
|
+
- spec/canvas_sync/models/assignment_group_spec.rb
|
795
850
|
- spec/canvas_sync/models/assignment_spec.rb
|
851
|
+
- spec/canvas_sync/models/context_module_item_spec.rb
|
796
852
|
- spec/canvas_sync/models/context_module_spec.rb
|
853
|
+
- spec/canvas_sync/models/course_spec.rb
|
854
|
+
- spec/canvas_sync/models/enrollment_spec.rb
|
797
855
|
- spec/canvas_sync/models/group_membership_spec.rb
|
798
|
-
- spec/canvas_sync/models/
|
856
|
+
- spec/canvas_sync/models/group_spec.rb
|
799
857
|
- spec/canvas_sync/models/roles_spec.rb
|
800
|
-
- spec/canvas_sync/models/accounts_spec.rb
|
801
858
|
- spec/canvas_sync/models/section_spec.rb
|
802
|
-
- spec/canvas_sync/models/group_spec.rb
|
803
859
|
- spec/canvas_sync/models/submission_spec.rb
|
804
860
|
- spec/canvas_sync/models/term_spec.rb
|
805
|
-
- spec/canvas_sync/models/enrollment_spec.rb
|
806
|
-
- spec/canvas_sync/models/course_spec.rb
|
807
861
|
- spec/canvas_sync/models/user_spec.rb
|
808
|
-
- spec/canvas_sync/
|
809
|
-
- spec/canvas_sync/misc_helper_spec.rb
|
810
|
-
- spec/canvas_sync/jobs/sync_context_module_items_job_spec.rb
|
811
|
-
- spec/canvas_sync/jobs/sync_terms_job_spec.rb
|
812
|
-
- spec/canvas_sync/jobs/sync_context_modules_job_spec.rb
|
813
|
-
- spec/canvas_sync/jobs/sync_assignments_job_spec.rb
|
814
|
-
- spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
|
815
|
-
- spec/canvas_sync/jobs/sync_assignment_groups_job_spec.rb
|
816
|
-
- spec/canvas_sync/jobs/sync_admins_job_spec.rb
|
817
|
-
- spec/canvas_sync/jobs/report_starter_spec.rb
|
818
|
-
- spec/canvas_sync/jobs/sync_content_migrations_job_spec.rb
|
819
|
-
- spec/canvas_sync/jobs/job_spec.rb
|
820
|
-
- spec/canvas_sync/jobs/report_processor_job_spec.rb
|
821
|
-
- spec/canvas_sync/jobs/canvas_process_waiter_spec.rb
|
822
|
-
- spec/canvas_sync/jobs/sync_submissions_job_spec.rb
|
823
|
-
- spec/canvas_sync/jobs/report_checker_spec.rb
|
824
|
-
- spec/canvas_sync/jobs/sync_roles_job_spec.rb
|
825
|
-
- spec/canvas_sync/jobs/sync_simple_table_job_spec.rb
|
826
|
-
- spec/canvas_sync/canvas_sync_spec.rb
|
827
|
-
- spec/canvas_sync/processors/provisioning_report_processor_spec.rb
|
828
|
-
- spec/canvas_sync/processors/content_migrations_processor_spec.rb
|
862
|
+
- spec/canvas_sync/processors/assignment_groups_processor_spec.rb
|
829
863
|
- spec/canvas_sync/processors/assignments_processor_spec.rb
|
830
|
-
- spec/canvas_sync/processors/
|
831
|
-
- spec/canvas_sync/processors/
|
864
|
+
- spec/canvas_sync/processors/content_migrations_processor_spec.rb
|
865
|
+
- spec/canvas_sync/processors/context_module_items_processor_spec.rb
|
832
866
|
- spec/canvas_sync/processors/context_modules_processor_spec.rb
|
833
|
-
- spec/canvas_sync/processors/
|
867
|
+
- spec/canvas_sync/processors/normal_processor_spec.rb
|
868
|
+
- spec/canvas_sync/processors/provisioning_report_processor_spec.rb
|
869
|
+
- spec/canvas_sync/processors/rubric_assessments_spec.rb
|
834
870
|
- spec/canvas_sync/processors/rubric_associations_spec.rb
|
871
|
+
- spec/canvas_sync/processors/rubrics_processor_spec.rb
|
835
872
|
- spec/canvas_sync/processors/submissions_processor_spec.rb
|
836
|
-
- spec/canvas_sync/
|
837
|
-
- spec/canvas_sync/
|
838
|
-
- spec/
|
839
|
-
- spec/job_batching/pool_spec.rb
|
840
|
-
- spec/job_batching/integration/integration.rb
|
841
|
-
- spec/job_batching/integration/workflow.rb
|
842
|
-
- spec/job_batching/integration/fail_then_succeed.rb
|
843
|
-
- spec/job_batching/integration/nested.rb
|
844
|
-
- spec/job_batching/integration/simple.rb
|
845
|
-
- spec/job_batching/active_job_spec.rb
|
846
|
-
- spec/job_batching/status_spec.rb
|
847
|
-
- spec/job_batching/callback_spec.rb
|
848
|
-
- spec/job_batching/sidekiq_spec.rb
|
849
|
-
- spec/job_batching/support/base_job.rb
|
850
|
-
- spec/job_batching/support/sample_callback.rb
|
851
|
-
- spec/job_batching/batch_spec.rb
|
852
|
-
- spec/job_batching/flow_spec.rb
|
853
|
-
- spec/job_batching/context_hash_spec.rb
|
854
|
-
- spec/spec_helper.rb
|
855
|
-
- spec/support/fake_canvas.rb
|
856
|
-
- spec/support/fixtures/reports/submissions.csv
|
857
|
-
- spec/support/fixtures/reports/assignments.csv
|
858
|
-
- spec/support/fixtures/reports/user_observers.csv
|
859
|
-
- spec/support/fixtures/reports/xlist.csv
|
860
|
-
- spec/support/fixtures/reports/sections.csv
|
861
|
-
- spec/support/fixtures/reports/context_modules.csv
|
862
|
-
- spec/support/fixtures/reports/users.csv
|
863
|
-
- spec/support/fixtures/reports/grading_period_groups.csv
|
864
|
-
- spec/support/fixtures/reports/learning_outcomes.csv
|
865
|
-
- spec/support/fixtures/reports/groups.csv
|
866
|
-
- spec/support/fixtures/reports/courses.csv
|
867
|
-
- spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
|
868
|
-
- spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
|
869
|
-
- spec/support/fixtures/reports/rubric_associations.csv
|
870
|
-
- spec/support/fixtures/reports/assignment_groups.csv
|
871
|
-
- spec/support/fixtures/reports/group_memberships.csv
|
872
|
-
- spec/support/fixtures/reports/rubric_assessments.csv
|
873
|
-
- spec/support/fixtures/reports/enrollments.csv
|
874
|
-
- spec/support/fixtures/reports/learning_outcome_results.csv
|
875
|
-
- spec/support/fixtures/reports/course_nicknames.csv
|
876
|
-
- spec/support/fixtures/reports/provisioning_csv
|
877
|
-
- spec/support/fixtures/reports/grading_periods.csv
|
878
|
-
- spec/support/fixtures/reports/rubrics.csv
|
879
|
-
- spec/support/fixtures/reports/content_migrations.csv
|
880
|
-
- spec/support/fixtures/reports/context_module_items.csv
|
881
|
-
- spec/support/fixtures/canvas_responses/module.json
|
882
|
-
- spec/support/fixtures/canvas_responses/terms.json
|
883
|
-
- spec/support/fixtures/canvas_responses/admins.json
|
884
|
-
- spec/support/fixtures/canvas_responses/roles.json
|
885
|
-
- spec/support/fixtures/canvas_responses/module_item.json
|
886
|
-
- spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb
|
887
|
-
- spec/dummy/db/migrate/20240510101100_create_rubric_assessments.rb
|
888
|
-
- spec/dummy/db/migrate/20190702203630_create_assignment_groups.rb
|
889
|
-
- spec/dummy/db/migrate/20190702203627_create_submissions.rb
|
890
|
-
- spec/dummy/db/migrate/20190702203624_create_enrollments.rb
|
891
|
-
- spec/dummy/db/migrate/20190702203621_create_courses.rb
|
892
|
-
- spec/dummy/db/migrate/20211001184920_create_grading_period_groups.rb
|
893
|
-
- spec/dummy/db/migrate/20220712210559_create_learning_outcomes.rb
|
894
|
-
- spec/dummy/db/migrate/20200416214248_create_group_memberships.rb
|
895
|
-
- spec/dummy/db/migrate/20220926221926_create_users.rb
|
896
|
-
- spec/dummy/db/migrate/20210907233330_create_grading_periods.rb
|
897
|
-
- spec/dummy/db/migrate/20190702203631_create_context_modules.rb
|
898
|
-
- spec/dummy/db/migrate/20240408223326_create_course_nicknames.rb
|
899
|
-
- spec/dummy/db/migrate/20240509105100_create_rubrics.rb
|
900
|
-
- spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
|
901
|
-
- spec/dummy/db/migrate/20190702203632_create_context_module_items.rb
|
902
|
-
- spec/dummy/db/migrate/20190927204545_create_roles.rb
|
903
|
-
- spec/dummy/db/migrate/20190702203622_create_accounts.rb
|
904
|
-
- spec/dummy/db/migrate/20190702203626_create_assignments.rb
|
905
|
-
- spec/dummy/db/migrate/20240523101010_create_learning_outcome_results.rb
|
906
|
-
- spec/dummy/db/migrate/20200415171620_create_groups.rb
|
907
|
-
- spec/dummy/db/migrate/20190927204546_create_admins.rb
|
908
|
-
- spec/dummy/db/migrate/20190702203625_create_sections.rb
|
909
|
-
- spec/dummy/db/migrate/20210907233329_create_user_observers.rb
|
910
|
-
- spec/dummy/db/migrate/20190702203623_create_terms.rb
|
911
|
-
- spec/dummy/db/migrate/20220308072643_create_content_migrations.rb
|
912
|
-
- spec/dummy/db/schema.rb
|
873
|
+
- spec/canvas_sync/services/module_event_spec.rb
|
874
|
+
- spec/canvas_sync/services/module_item_event_spec.rb
|
875
|
+
- spec/dummy/README.rdoc
|
913
876
|
- spec/dummy/Rakefile
|
914
|
-
- spec/dummy/app/
|
915
|
-
- spec/dummy/app/
|
916
|
-
- spec/dummy/app/
|
917
|
-
- spec/dummy/app/
|
877
|
+
- spec/dummy/app/models/account.rb
|
878
|
+
- spec/dummy/app/models/admin.rb
|
879
|
+
- spec/dummy/app/models/application_record.rb
|
880
|
+
- spec/dummy/app/models/assignment.rb
|
881
|
+
- spec/dummy/app/models/assignment_group.rb
|
882
|
+
- spec/dummy/app/models/content_migration.rb
|
883
|
+
- spec/dummy/app/models/context_module.rb
|
884
|
+
- spec/dummy/app/models/context_module_item.rb
|
885
|
+
- spec/dummy/app/models/course.rb
|
886
|
+
- spec/dummy/app/models/course_nickname.rb
|
887
|
+
- spec/dummy/app/models/enrollment.rb
|
888
|
+
- spec/dummy/app/models/grading_period.rb
|
889
|
+
- spec/dummy/app/models/grading_period_group.rb
|
890
|
+
- spec/dummy/app/models/group.rb
|
891
|
+
- spec/dummy/app/models/group_membership.rb
|
892
|
+
- spec/dummy/app/models/learning_outcome.rb
|
893
|
+
- spec/dummy/app/models/learning_outcome_result.rb
|
894
|
+
- spec/dummy/app/models/pseudonym.rb
|
895
|
+
- spec/dummy/app/models/role.rb
|
896
|
+
- spec/dummy/app/models/rubric.rb
|
897
|
+
- spec/dummy/app/models/rubric_assessment.rb
|
898
|
+
- spec/dummy/app/models/rubric_association.rb
|
899
|
+
- spec/dummy/app/models/section.rb
|
900
|
+
- spec/dummy/app/models/submission.rb
|
901
|
+
- spec/dummy/app/models/term.rb
|
902
|
+
- spec/dummy/app/models/user.rb
|
903
|
+
- spec/dummy/app/models/user_observer.rb
|
904
|
+
- spec/dummy/app/services/live_events/assignment_created_event.rb
|
905
|
+
- spec/dummy/app/services/live_events/assignment_event.rb
|
906
|
+
- spec/dummy/app/services/live_events/assignment_updated_event.rb
|
918
907
|
- spec/dummy/app/services/live_events/base_event.rb
|
908
|
+
- spec/dummy/app/services/live_events/course_created_event.rb
|
909
|
+
- spec/dummy/app/services/live_events/course_event.rb
|
919
910
|
- spec/dummy/app/services/live_events/course_section_created_event.rb
|
920
|
-
- spec/dummy/app/services/live_events/
|
911
|
+
- spec/dummy/app/services/live_events/course_section_event.rb
|
912
|
+
- spec/dummy/app/services/live_events/course_section_updated_event.rb
|
921
913
|
- spec/dummy/app/services/live_events/course_updated_event.rb
|
922
|
-
- spec/dummy/app/services/live_events/submission_created_event.rb
|
923
|
-
- spec/dummy/app/services/live_events/syllabus_event.rb
|
924
|
-
- spec/dummy/app/services/live_events/module_updated_event.rb
|
925
|
-
- spec/dummy/app/services/live_events/course_event.rb
|
926
914
|
- spec/dummy/app/services/live_events/enrollment_created_event.rb
|
927
|
-
- spec/dummy/app/services/live_events/grade_event.rb
|
928
|
-
- spec/dummy/app/services/live_events/course_section_updated_event.rb
|
929
|
-
- spec/dummy/app/services/live_events/course_created_event.rb
|
930
915
|
- spec/dummy/app/services/live_events/enrollment_event.rb
|
931
|
-
- spec/dummy/app/services/live_events/
|
932
|
-
- spec/dummy/app/services/live_events/syllabus_updated_event.rb
|
916
|
+
- spec/dummy/app/services/live_events/enrollment_updated_event.rb
|
933
917
|
- spec/dummy/app/services/live_events/grade_changed_event.rb
|
934
|
-
- spec/dummy/app/services/live_events/
|
918
|
+
- spec/dummy/app/services/live_events/grade_event.rb
|
919
|
+
- spec/dummy/app/services/live_events/module_created_event.rb
|
935
920
|
- spec/dummy/app/services/live_events/module_event.rb
|
936
|
-
- spec/dummy/app/services/live_events/
|
937
|
-
- spec/dummy/app/services/live_events/assignment_created_event.rb
|
938
|
-
- spec/dummy/app/services/live_events/enrollment_updated_event.rb
|
939
|
-
- spec/dummy/app/services/live_events/assignment_event.rb
|
921
|
+
- spec/dummy/app/services/live_events/module_item_created_event.rb
|
940
922
|
- spec/dummy/app/services/live_events/module_item_event.rb
|
923
|
+
- spec/dummy/app/services/live_events/module_item_updated_event.rb
|
924
|
+
- spec/dummy/app/services/live_events/module_updated_event.rb
|
925
|
+
- spec/dummy/app/services/live_events/submission_created_event.rb
|
926
|
+
- spec/dummy/app/services/live_events/submission_event.rb
|
941
927
|
- spec/dummy/app/services/live_events/submission_updated_event.rb
|
928
|
+
- spec/dummy/app/services/live_events/syllabus_event.rb
|
929
|
+
- spec/dummy/app/services/live_events/syllabus_updated_event.rb
|
930
|
+
- spec/dummy/app/services/live_events/user_created_event.rb
|
942
931
|
- spec/dummy/app/services/live_events/user_event.rb
|
943
|
-
- spec/dummy/app/
|
944
|
-
- spec/dummy/
|
945
|
-
- spec/dummy/app/models/submission.rb
|
946
|
-
- spec/dummy/app/models/group_membership.rb
|
947
|
-
- spec/dummy/app/models/enrollment.rb
|
948
|
-
- spec/dummy/app/models/rubric.rb
|
949
|
-
- spec/dummy/app/models/rubric_association.rb
|
950
|
-
- spec/dummy/app/models/role.rb
|
951
|
-
- spec/dummy/app/models/account.rb
|
952
|
-
- spec/dummy/app/models/application_record.rb
|
953
|
-
- spec/dummy/app/models/admin.rb
|
954
|
-
- spec/dummy/app/models/rubric_assessment.rb
|
955
|
-
- spec/dummy/app/models/learning_outcome.rb
|
956
|
-
- spec/dummy/app/models/learning_outcome_result.rb
|
957
|
-
- spec/dummy/app/models/grading_period.rb
|
958
|
-
- spec/dummy/app/models/context_module.rb
|
959
|
-
- spec/dummy/app/models/context_module_item.rb
|
960
|
-
- spec/dummy/app/models/course.rb
|
961
|
-
- spec/dummy/app/models/section.rb
|
962
|
-
- spec/dummy/app/models/grading_period_group.rb
|
963
|
-
- spec/dummy/app/models/user_observer.rb
|
964
|
-
- spec/dummy/app/models/assignment_group.rb
|
965
|
-
- spec/dummy/app/models/assignment.rb
|
966
|
-
- spec/dummy/app/models/term.rb
|
967
|
-
- spec/dummy/app/models/pseudonym.rb
|
968
|
-
- spec/dummy/app/models/group.rb
|
969
|
-
- spec/dummy/app/models/content_migration.rb
|
970
|
-
- spec/dummy/config/secrets.yml
|
932
|
+
- spec/dummy/app/services/live_events/user_updated_event.rb
|
933
|
+
- spec/dummy/bin/rails
|
971
934
|
- spec/dummy/config/application.rb
|
972
|
-
- spec/dummy/config/
|
973
|
-
- spec/dummy/config/
|
974
|
-
- spec/dummy/config/
|
935
|
+
- spec/dummy/config/boot.rb
|
936
|
+
- spec/dummy/config/database.yml
|
937
|
+
- spec/dummy/config/environment.rb
|
975
938
|
- spec/dummy/config/environments/development.rb
|
976
939
|
- spec/dummy/config/environments/test.rb
|
977
|
-
- spec/dummy/config/
|
978
|
-
- spec/dummy/config/
|
940
|
+
- spec/dummy/config/initializers/assets.rb
|
941
|
+
- spec/dummy/config/initializers/session_store.rb
|
942
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
979
943
|
- spec/dummy/config/routes.rb
|
980
|
-
- spec/dummy/config/
|
981
|
-
- spec/dummy/README.rdoc
|
944
|
+
- spec/dummy/config/secrets.yml
|
982
945
|
- spec/dummy/config.ru
|
983
|
-
- spec/dummy/
|
946
|
+
- spec/dummy/db/migrate/20190702203621_create_courses.rb
|
947
|
+
- spec/dummy/db/migrate/20190702203622_create_accounts.rb
|
948
|
+
- spec/dummy/db/migrate/20190702203623_create_terms.rb
|
949
|
+
- spec/dummy/db/migrate/20190702203624_create_enrollments.rb
|
950
|
+
- spec/dummy/db/migrate/20190702203625_create_sections.rb
|
951
|
+
- spec/dummy/db/migrate/20190702203626_create_assignments.rb
|
952
|
+
- spec/dummy/db/migrate/20190702203627_create_submissions.rb
|
953
|
+
- spec/dummy/db/migrate/20190702203630_create_assignment_groups.rb
|
954
|
+
- spec/dummy/db/migrate/20190702203631_create_context_modules.rb
|
955
|
+
- spec/dummy/db/migrate/20190702203632_create_context_module_items.rb
|
956
|
+
- spec/dummy/db/migrate/20190927204545_create_roles.rb
|
957
|
+
- spec/dummy/db/migrate/20190927204546_create_admins.rb
|
958
|
+
- spec/dummy/db/migrate/20200415171620_create_groups.rb
|
959
|
+
- spec/dummy/db/migrate/20200416214248_create_group_memberships.rb
|
960
|
+
- spec/dummy/db/migrate/20201016181346_create_pseudonyms.rb
|
961
|
+
- spec/dummy/db/migrate/20210907233329_create_user_observers.rb
|
962
|
+
- spec/dummy/db/migrate/20210907233330_create_grading_periods.rb
|
963
|
+
- spec/dummy/db/migrate/20211001184920_create_grading_period_groups.rb
|
964
|
+
- spec/dummy/db/migrate/20220308072643_create_content_migrations.rb
|
965
|
+
- spec/dummy/db/migrate/20220712210559_create_learning_outcomes.rb
|
966
|
+
- spec/dummy/db/migrate/20220926221926_create_users.rb
|
967
|
+
- spec/dummy/db/migrate/20240408223326_create_course_nicknames.rb
|
968
|
+
- spec/dummy/db/migrate/20240509105100_create_rubrics.rb
|
969
|
+
- spec/dummy/db/migrate/20240510094100_create_rubric_associations.rb
|
970
|
+
- spec/dummy/db/migrate/20240510101100_create_rubric_assessments.rb
|
971
|
+
- spec/dummy/db/migrate/20240523101010_create_learning_outcome_results.rb
|
972
|
+
- spec/dummy/db/schema.rb
|
984
973
|
- spec/factories/account_factory.rb
|
985
|
-
- spec/factories/
|
986
|
-
- spec/factories/enrollment_factory.rb
|
974
|
+
- spec/factories/admin_factory.rb
|
987
975
|
- spec/factories/assignment_factory.rb
|
988
976
|
- spec/factories/assignment_group_factory.rb
|
989
|
-
- spec/factories/
|
990
|
-
- spec/factories/
|
977
|
+
- spec/factories/context_module_factory.rb
|
978
|
+
- spec/factories/context_module_item_factory.rb
|
979
|
+
- spec/factories/course_factory.rb
|
980
|
+
- spec/factories/enrollment_factory.rb
|
991
981
|
- spec/factories/group_factory.rb
|
992
982
|
- spec/factories/group_membership_factory.rb
|
983
|
+
- spec/factories/role_factory.rb
|
993
984
|
- spec/factories/section_factory.rb
|
994
|
-
- spec/factories/context_module_item_factory.rb
|
995
|
-
- spec/factories/course_factory.rb
|
996
985
|
- spec/factories/submission_factory.rb
|
986
|
+
- spec/factories/term_factory.rb
|
997
987
|
- spec/factories/user_factory.rb
|
998
|
-
- spec/
|
988
|
+
- spec/job_batching/active_job_spec.rb
|
989
|
+
- spec/job_batching/batch_spec.rb
|
990
|
+
- spec/job_batching/callback_spec.rb
|
991
|
+
- spec/job_batching/context_hash_spec.rb
|
992
|
+
- spec/job_batching/flow_spec.rb
|
993
|
+
- spec/job_batching/integration/fail_then_succeed.rb
|
994
|
+
- spec/job_batching/integration/integration.rb
|
995
|
+
- spec/job_batching/integration/nested.rb
|
996
|
+
- spec/job_batching/integration/simple.rb
|
997
|
+
- spec/job_batching/integration/workflow.rb
|
998
|
+
- spec/job_batching/integration_helper.rb
|
999
|
+
- spec/job_batching/pool_spec.rb
|
1000
|
+
- spec/job_batching/sidekiq_spec.rb
|
1001
|
+
- spec/job_batching/status_spec.rb
|
1002
|
+
- spec/job_batching/support/base_job.rb
|
1003
|
+
- spec/job_batching/support/sample_callback.rb
|
1004
|
+
- spec/spec_helper.rb
|
1005
|
+
- spec/support/fake_canvas.rb
|
1006
|
+
- spec/support/fixtures/canvas_responses/admins.json
|
1007
|
+
- spec/support/fixtures/canvas_responses/module.json
|
1008
|
+
- spec/support/fixtures/canvas_responses/module_item.json
|
1009
|
+
- spec/support/fixtures/canvas_responses/roles.json
|
1010
|
+
- spec/support/fixtures/canvas_responses/terms.json
|
1011
|
+
- spec/support/fixtures/reports/assignment_groups.csv
|
1012
|
+
- spec/support/fixtures/reports/assignments.csv
|
1013
|
+
- spec/support/fixtures/reports/content_migrations.csv
|
1014
|
+
- spec/support/fixtures/reports/context_module_items.csv
|
1015
|
+
- spec/support/fixtures/reports/context_modules.csv
|
1016
|
+
- spec/support/fixtures/reports/course_nicknames.csv
|
1017
|
+
- spec/support/fixtures/reports/courses.csv
|
1018
|
+
- spec/support/fixtures/reports/enrollments.csv
|
1019
|
+
- spec/support/fixtures/reports/grading_period_groups.csv
|
1020
|
+
- spec/support/fixtures/reports/grading_periods.csv
|
1021
|
+
- spec/support/fixtures/reports/group_memberships.csv
|
1022
|
+
- spec/support/fixtures/reports/groups.csv
|
1023
|
+
- spec/support/fixtures/reports/learning_outcome_results.csv
|
1024
|
+
- spec/support/fixtures/reports/learning_outcomes.csv
|
1025
|
+
- spec/support/fixtures/reports/provisioning_csv
|
1026
|
+
- spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
|
1027
|
+
- spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
|
1028
|
+
- spec/support/fixtures/reports/rubric_assessments.csv
|
1029
|
+
- spec/support/fixtures/reports/rubric_associations.csv
|
1030
|
+
- spec/support/fixtures/reports/rubrics.csv
|
1031
|
+
- spec/support/fixtures/reports/sections.csv
|
1032
|
+
- spec/support/fixtures/reports/submissions.csv
|
1033
|
+
- spec/support/fixtures/reports/user_observers.csv
|
1034
|
+
- spec/support/fixtures/reports/users.csv
|
1035
|
+
- spec/support/fixtures/reports/xlist.csv
|
@@ -1,18 +0,0 @@
|
|
1
|
-
module Api
|
2
|
-
module V1
|
3
|
-
class LiveEventsController < ActionController::Base
|
4
|
-
def process_event # rubocop:disable Metrics/AbcSize
|
5
|
-
payload = SymmetricEncryption.decrypt(params[:payload])
|
6
|
-
payload = JSON.parse(payload)
|
7
|
-
Rails.logger.debug("Processing event type: #{payload['attributes']['event_name']}")
|
8
|
-
Rails.logger.debug("Payload: #{payload}")
|
9
|
-
event = "LiveEvents::#{payload['attributes']['event_name'].camelcase}Event".constantize
|
10
|
-
event.perform_later(payload)
|
11
|
-
head :ok
|
12
|
-
rescue => e # rubocop:disable Style/RescueStandardError
|
13
|
-
Rails.logger.error("Live Events Error: #{e.message} - #{e.backtrace}")
|
14
|
-
render json: { error: "Live Events Error: #{e.message}" }, status: 422
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|