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 +4 -4
- data/lib/canvas_sync.rb +24 -5
- data/lib/canvas_sync/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f242a2d6641d3d51bff9b73eaf2165588405a468a1806183d20e68d7c324d976
|
4
|
+
data.tar.gz: ca2dc6bf47c7c861c42f6550707028d15d1b54469e1a12e3ce7fedead6204102
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d25fa9c0d9155780a087ac94b9a72cadddd9805c60760f5bdf719870245b8f1b8c23e14650646565b7a03b6a7983e329049fb1057ccfd990f662ee479322ffd
|
7
|
+
data.tar.gz: f551da63e671e43194c8a2bd2cfe8f95499417d74599d14307f1470ed678a712492f7ad6a70d7208f57a6b3a22e9fb5e5ced209afb292b93b2f0ce88db02d609
|
data/lib/canvas_sync.rb
CHANGED
@@ -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
|
-
|
178
|
-
|
179
|
-
|
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'])
|
data/lib/canvas_sync/version.rb
CHANGED