canvas_sync 0.17.0.beta14 → 0.17.0.beta15

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 28f1b87e0b26bf68a13a9a1558d8c78746a4058d2fa8a822dc62c5b3b7ad92ea
4
- data.tar.gz: 0bbc9ec37d31e848a8ec4997dc91391720deb826b2a93b52528661193788ebe4
3
+ metadata.gz: f242a2d6641d3d51bff9b73eaf2165588405a468a1806183d20e68d7c324d976
4
+ data.tar.gz: ca2dc6bf47c7c861c42f6550707028d15d1b54469e1a12e3ce7fedead6204102
5
5
  SHA512:
6
- metadata.gz: 1cf0b4e64133d94b2841e77399a0dc3a94de42e17832587af14144d9ed28fb1df9953df3486590473abbe9745a8b919c4f910155ff71abe8eb8cc373d0d2704a
7
- data.tar.gz: 166edeb5b97e5879b70eebbdf9a3f9848bc91de5a71c5cb6066860b4a6001a272faec24ddf78661d9a5322b3234d1dc69a214bf1e8e8d2c7c16cec6336f01e7a
6
+ metadata.gz: 4d25fa9c0d9155780a087ac94b9a72cadddd9805c60760f5bdf719870245b8f1b8c23e14650646565b7a03b6a7983e329049fb1057ccfd990f662ee479322ffd
7
+ data.tar.gz: f551da63e671e43194c8a2bd2cfe8f95499417d74599d14307f1470ed678a712492f7ad6a70d7208f57a6b3a22e9fb5e5ced209afb292b93b2f0ce88db02d609
@@ -42,6 +42,22 @@ module CanvasSync
42
42
  xlist
43
43
  ].freeze
44
44
 
45
+ SUPPORTED_TERM_SCOPE_MODELS = %w[
46
+ assignments
47
+ submissions
48
+ assignment_groups
49
+ context_modules
50
+ context_module_items
51
+ ].freeze
52
+
53
+ DEFAULT_TERM_SCOPE_MODELS = %w[
54
+ assignments
55
+ submissions
56
+ assignment_groups
57
+ context_modules
58
+ context_module_items
59
+ ].freeze
60
+
45
61
  SUPPORTED_LIVE_EVENTS = %w[
46
62
  course
47
63
  enrollment
@@ -109,6 +125,7 @@ module CanvasSync
109
125
  def default_provisioning_report_chain(
110
126
  models,
111
127
  term_scope: nil,
128
+ term_scoped_models: DEFAULT_TERM_SCOPE_MODELS,
112
129
  legacy_support: false,
113
130
  account_id: nil,
114
131
  updated_after: nil,
@@ -165,6 +182,10 @@ module CanvasSync
165
182
  try_add_model_job.call('roles')
166
183
  try_add_model_job.call('admins')
167
184
 
185
+ (SUPPORTED_TERM_SCOPE_MODELS - term_scoped_models).each do |mdl|
186
+ try_add_model_job.call(mdl)
187
+ end
188
+
168
189
  ###############################
169
190
  # Per-term provisioning jobs
170
191
  ###############################
@@ -174,11 +195,9 @@ module CanvasSync
174
195
  current_chain << per_term_chain
175
196
  current_chain = per_term_chain
176
197
 
177
- try_add_model_job.call('assignments')
178
- try_add_model_job.call('submissions')
179
- try_add_model_job.call('assignment_groups')
180
- try_add_model_job.call('context_modules')
181
- try_add_model_job.call('context_module_items')
198
+ term_scoped_models.each do |mdl|
199
+ try_add_model_job.call(mdl)
200
+ end
182
201
 
183
202
  current_chain.insert(
184
203
  generate_provisioning_jobs(models, options, only_split: ['users'])
@@ -1,3 +1,3 @@
1
1
  module CanvasSync
2
- VERSION = "0.17.0.beta14".freeze
2
+ VERSION = "0.17.0.beta15".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: canvas_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0.beta14
4
+ version: 0.17.0.beta15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nate Collings