coalescing_panda 4.5.4 → 4.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/coalescing_panda/workers/course_miner.rb +15 -11
- data/lib/coalescing_panda/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0171aa958f4e605d290674ecc3d87d33e8ab4fa6
|
4
|
+
data.tar.gz: 042162349994d2c8f366d3c08fbd9cb53333ead4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 320d7f808d280d886b7f8739672f91c79b2fa7227ffa0845a40b02836c0bbe381d9638e1f30b77a1c40c813cce725f468e2cd640b1df69361da22b8b246ee6c2
|
7
|
+
data.tar.gz: 9f0d32c950d5638968d440c3e761aae606255d10f4f8f4c7c72b4ba11a536db84589d70ed1ba1c4feb51f2b1fea480da4b1a2985e95c1419755497dd7e110b7b
|
@@ -65,38 +65,42 @@ class CoalescingPanda::Workers::CourseMiner
|
|
65
65
|
should_download
|
66
66
|
end
|
67
67
|
|
68
|
-
DEFAULT_PARAMS = { 'per_page' => 100 }.freeze
|
69
|
-
|
70
68
|
def process_api_data(key)
|
71
69
|
case key
|
72
70
|
when :assignment_groups
|
73
|
-
collection = api_client.list_assignment_groups(course.canvas_course_id
|
71
|
+
collection = api_client.list_assignment_groups(course.canvas_course_id).all_pages!(100)
|
74
72
|
sync_assignment_groups(collection)
|
75
73
|
when :sections
|
76
|
-
collection = api_client.course_sections(course.canvas_course_id
|
74
|
+
collection = api_client.course_sections(course.canvas_course_id).all_pages!(100)
|
77
75
|
sync_sections(collection)
|
78
76
|
when :users
|
79
|
-
collection = api_client.list_course_users(course.canvas_course_id,
|
77
|
+
collection = api_client.list_course_users(course.canvas_course_id, { 'enrollment_state' => enrollment_states }).all_pages!(100)
|
80
78
|
sync_users(collection)
|
81
79
|
when :enrollments
|
82
|
-
collection = api_client.course_enrollments(course.canvas_course_id,
|
80
|
+
collection = api_client.course_enrollments(course.canvas_course_id, {'state' => enrollment_states}).all_pages!(100)
|
83
81
|
sync_enrollments(collection)
|
84
82
|
when :assignments
|
85
|
-
collection = api_client.assignments(course.canvas_course_id
|
83
|
+
collection = api_client.assignments(course.canvas_course_id).all_pages!(100)
|
86
84
|
sync_assignments(collection)
|
87
85
|
when :submissions
|
88
|
-
collection = api_client.course_submissions(
|
86
|
+
collection = api_client.course_submissions(
|
87
|
+
course.canvas_course_id,
|
88
|
+
{
|
89
|
+
'student_ids' => ['all'],
|
90
|
+
'enrollment_state' => 'active',
|
91
|
+
}
|
92
|
+
).all_pages!(100)
|
89
93
|
sync_submissions(collection)
|
90
94
|
when :groups
|
91
|
-
collection = api_client.course_groups(course.canvas_course_id).all_pages!
|
95
|
+
collection = api_client.course_groups(course.canvas_course_id).all_pages!(100)
|
92
96
|
sync_groups(collection)
|
93
97
|
when :group_categories
|
94
|
-
collection = api_client.list_group_categories('courses', course.canvas_course_id
|
98
|
+
collection = api_client.list_group_categories('courses', course.canvas_course_id).all_pages!(100)
|
95
99
|
sync_group_categories(collection)
|
96
100
|
when :group_memberships
|
97
101
|
collection = []
|
98
102
|
course.groups.each do |group|
|
99
|
-
api_client.list_group_memberships(group.canvas_group_id).all_pages
|
103
|
+
api_client.list_group_memberships(group.canvas_group_id).all_pages!(100).each do |group_memberships|
|
100
104
|
collection << group_memberships
|
101
105
|
end
|
102
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coalescing_panda
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Mills
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2018-02-
|
13
|
+
date: 2018-02-28 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|