bearcat 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 0f2dbc1013331708852e0eea8566d7090bccb9a6
4
- data.tar.gz: 8c8f32d0c33eea4162c4835860c0c4035d1bde4c
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ Y2FlZmQxM2UwY2JjZTMzMWU5Y2Y1NDI3ZjY2YTc4Y2I0MWVmZTI2YQ==
5
+ data.tar.gz: !binary |-
6
+ OWNmYTBiYjljMzM2YzVlN2E4NjMzMDUxZDAxZDFjMDVlYmM3YjViYg==
5
7
  SHA512:
6
- metadata.gz: 9c294cd2ac492e0b53fa002a41485b0b427ccac94895e88428d73df8504eb8bc6bd8cb377e8efc6cf08a535cfa804d322c496879cbaca436528cb23d0ea2fc46
7
- data.tar.gz: f5d0085dc70b56c4478d76817964763866feb9e13d09ed7b320f3095261969c4e9f68290ab02dedd53d324a43229807c8fac081cc76be1d33a9f454e30bfcc71
8
+ metadata.gz: !binary |-
9
+ ODU2ODM1Yjc4ZTU0MmZhYjE2ZWIyOTNjYzhkNGEwYjljN2ViNzkwYjA1YTNh
10
+ N2U2NDJlN2VjNDdiODBhNDg5M2IyZDUxYzU5MzY3MDQ3MzcxOGZmZjdiZjQ5
11
+ MjYxYThiY2Q0NmQwMTA4OGJkYzA2OTdlZTllMzE0ZDkwMTk3NWY=
12
+ data.tar.gz: !binary |-
13
+ MWIxNGU1MmNhMGI3NjIyNmM5MDM4NTdiMWYzYjYxN2ViNjJjOWZkM2MwYWEx
14
+ YWQ4MWE1YzhhNWU3MDhlNjNmMzU1ZGRlZmU4ZjE4YmQ2NzM1NzllZDRhMzdm
15
+ MjQzNDFkNDMyODg0ZTdhNmM2OTAzM2ZiNjk1OTBmMjlmOWYxNTc=
@@ -14,6 +14,28 @@ module Bearcat
14
14
  post("/api/v1/accounts/#{account.to_s}/users", params)
15
15
  end
16
16
 
17
+ # scope: food
18
+ # params: {ns: 'com.account-domain.canvas-app'}
19
+ # returns all custom user food scope data. If no scope returns all custom user data
20
+ def load_custom_data(user, params, scope = '')
21
+ get("/api/v1/users/#{user}/custom_data/#{scope}", params)
22
+ end
23
+
24
+ # scope: food
25
+ # params: {ns: 'com.account-domain.canvas-app',
26
+ # data: {'favorite' => 'steak', 'least favorite' => 'water mellon'}}
27
+ # stores custom data in the food scope
28
+ def store_custom_data(user, params, scope = '')
29
+ put("/api/v1/users/#{user}/custom_data/#{scope}", params)
30
+ end
31
+
32
+ # scope: food
33
+ # params: {ns: 'com.account-domain.canvas-app'}
34
+ # deletes all custom user data for the food scope. If no scope deletes all custom user data
35
+ def delete_custom_data(user, params, scope = '')
36
+ delete("/api/v1/users/#{user}/custom_data/#{scope}", params)
37
+ end
38
+
17
39
  end
18
40
  end
19
41
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '0.9.5' unless defined?(Bearcat::VERSION)
2
+ VERSION = '0.9.6' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -31,6 +31,33 @@ describe Bearcat::Client::Users do
31
31
  user_avatars.first['type'].should == 'gravatar'
32
32
  end
33
33
 
34
+ describe 'user custom data' do
35
+ before (:each) do
36
+ @query = {"ns" => "com.test.app"}
37
+ end
38
+
39
+ it "returns custom user data for a scope" do
40
+
41
+ stub_get(@client, "/api/v1/users/1/custom_data/food").with(query: @query).to_return(json_response("custom_food_data.json"))
42
+ custom_food_data = @client.load_custom_data("1", @query, "food")
43
+ custom_food_data["data"].keys.count.should == 2
44
+ custom_food_data["data"]["least_favorite"].should == "water mellon"
45
+ end
46
+
47
+ it "returns all custom user data" do
48
+ stub_get(@client, "/api/v1/users/1/custom_data").with(query: @query).to_return(json_response("custom_data.json"))
49
+ custom_data = @client.load_custom_data("1", @query, "")
50
+ custom_data["data"].keys.count.should == 2
51
+ custom_data["data"]["food"]["favorite"].should == "steak"
52
+ end
53
+
54
+ it "returns no data if no data found for scope" do
55
+ stub_get(@client, "/api/v1/users/1/custom_data/bogus").with(query: @query).to_return(json_response("no_custom_data.json"))
56
+ no_custom_data = @client.load_custom_data("1", @query, "bogus")
57
+ no_custom_data["message"].should == "no data for scope"
58
+ end
59
+ end
60
+
34
61
  end
35
62
 
36
63
  context 'POST' do
@@ -47,4 +74,37 @@ describe Bearcat::Client::Users do
47
74
 
48
75
  end
49
76
 
77
+ context 'PUT' do
78
+
79
+ it "creates custom user data" do
80
+ body = {"ns" => "com.test.app", "data" => {"favorite" => "steak", "least_favorite" => "water mellon"}}
81
+ stub_put(@client, "/api/v1/users/1/custom_data/food").with(body: body).to_return(json_response("add_custom_user_data.json"))
82
+ custom_food_data = @client.store_custom_data("1", body, "food")
83
+ custom_food_data["data"].keys.count.should == 1
84
+ custom_food_data["data"]["food"]["least_favorite"].should == "water mellon"
85
+ end
86
+
87
+ end
88
+
89
+ context 'DELETE' do
90
+
91
+ before (:each) do
92
+ @query = {"ns" => "com.test.app"}
93
+ end
94
+
95
+ it "deletes custom user data for a scope" do
96
+ stub_delete(@client, "/api/v1/users/1/custom_data/food/favorite").with(query: @query).to_return(json_response("delete_custom_data_scope.json"))
97
+ custom_deleted_data = @client.delete_custom_data("1", @query, "food/favorite")
98
+ custom_deleted_data["data"].should == "steak"
99
+ end
100
+
101
+ it "deletes all custom user data" do
102
+ stub_delete(@client, "/api/v1/users/1/custom_data").with(query: @query).to_return(json_response("custom_data.json"))
103
+ custom_deleted_data = @client.delete_custom_data("1", @query, "")
104
+ custom_deleted_data["data"].keys.count.should == 2
105
+ custom_deleted_data["data"]["food"]["favorite"].should == "steak"
106
+ end
107
+
108
+ end
109
+
50
110
  end
@@ -0,0 +1,8 @@
1
+ {
2
+ "data": {
3
+ "food": {
4
+ "favorite": "steak",
5
+ "least_favorite": "water mellon"
6
+ }
7
+ }
8
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "data": {
3
+ "food": {
4
+ "favorite": "steak",
5
+ "least_favorite": "water mellon"
6
+ },
7
+ "cars": {
8
+ "favorite": "lambo",
9
+ "least_favorite": "honda"
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "data": {
3
+ "favorite": "steak",
4
+ "least_favorite": "water mellon"
5
+ }
6
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "data": "steak"
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "message": "no data for scope"
3
+ }
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bearcat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills, Jake Sorce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-24 00:00:00.000000000 Z
11
+ date: 2014-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: 1.0.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: 1.0.0
41
41
  - !ruby/object:Gem::Dependency
@@ -56,42 +56,42 @@ dependencies:
56
56
  name: webmock
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: debugger
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: footrest
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: 0.2.2
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: 0.2.2
97
97
  description: Ruby interface for interacting with the canvas API
@@ -103,7 +103,9 @@ extra_rdoc_files: []
103
103
  files:
104
104
  - Rakefile
105
105
  - bearcat.gemspec
106
+ - lib/bearcat.rb
106
107
  - lib/bearcat/api_array.rb
108
+ - lib/bearcat/client.rb
107
109
  - lib/bearcat/client/account_reports.rb
108
110
  - lib/bearcat/client/accounts.rb
109
111
  - lib/bearcat/client/assignments.rb
@@ -118,10 +120,7 @@ files:
118
120
  - lib/bearcat/client/sections.rb
119
121
  - lib/bearcat/client/submissions.rb
120
122
  - lib/bearcat/client/users.rb
121
- - lib/bearcat/client.rb
122
123
  - lib/bearcat/version.rb
123
- - lib/bearcat.rb
124
- - spec/bearcat/client/account_reports_spec.rb
125
124
  - spec/bearcat/client/accounts_spec.rb
126
125
  - spec/bearcat/client/assignments_spec.rb
127
126
  - spec/bearcat/client/conferences_spec.rb
@@ -137,12 +136,9 @@ files:
137
136
  - spec/bearcat/client/users_spec.rb
138
137
  - spec/bearcat/client_spec.rb
139
138
  - spec/bearcat_spec.rb
140
- - spec/fixtures/account_reports.json
141
- - spec/fixtures/account_reports_index.json
142
- - spec/fixtures/account_reports_result_success.json
143
- - spec/fixtures/account_reports_start_result.json
144
139
  - spec/fixtures/account_user.json
145
140
  - spec/fixtures/account_users.json
141
+ - spec/fixtures/add_custom_user_data.json
146
142
  - spec/fixtures/add_user.json
147
143
  - spec/fixtures/assignment_section_override.json
148
144
  - spec/fixtures/assignments.json
@@ -157,10 +153,14 @@ files:
157
153
  - spec/fixtures/create_section.json
158
154
  - spec/fixtures/created_assignment.json
159
155
  - spec/fixtures/created_course.json
156
+ - spec/fixtures/custom_data.json
157
+ - spec/fixtures/custom_food_data.json
158
+ - spec/fixtures/delete_custom_data_scope.json
160
159
  - spec/fixtures/delete_section.json
161
160
  - spec/fixtures/enroll_student.json
162
161
  - spec/fixtures/group_conferences.json
163
162
  - spec/fixtures/link_unlink_outcome.json
163
+ - spec/fixtures/no_custom_data.json
164
164
  - spec/fixtures/outcome_group_import.json
165
165
  - spec/fixtures/outcome_groups.json
166
166
  - spec/fixtures/outcome_subgroup.json
@@ -190,22 +190,21 @@ require_paths:
190
190
  - lib
191
191
  required_ruby_version: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - '>='
193
+ - - ! '>='
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  required_rubygems_version: !ruby/object:Gem::Requirement
197
197
  requirements:
198
- - - '>='
198
+ - - ! '>='
199
199
  - !ruby/object:Gem::Version
200
200
  version: '0'
201
201
  requirements: []
202
202
  rubyforge_project:
203
- rubygems_version: 2.0.3
203
+ rubygems_version: 2.2.2
204
204
  signing_key:
205
205
  specification_version: 4
206
206
  summary: Canvas API
207
207
  test_files:
208
- - spec/bearcat/client/account_reports_spec.rb
209
208
  - spec/bearcat/client/accounts_spec.rb
210
209
  - spec/bearcat/client/assignments_spec.rb
211
210
  - spec/bearcat/client/conferences_spec.rb
@@ -221,12 +220,9 @@ test_files:
221
220
  - spec/bearcat/client/users_spec.rb
222
221
  - spec/bearcat/client_spec.rb
223
222
  - spec/bearcat_spec.rb
224
- - spec/fixtures/account_reports.json
225
- - spec/fixtures/account_reports_index.json
226
- - spec/fixtures/account_reports_result_success.json
227
- - spec/fixtures/account_reports_start_result.json
228
223
  - spec/fixtures/account_user.json
229
224
  - spec/fixtures/account_users.json
225
+ - spec/fixtures/add_custom_user_data.json
230
226
  - spec/fixtures/add_user.json
231
227
  - spec/fixtures/assignment_section_override.json
232
228
  - spec/fixtures/assignments.json
@@ -241,10 +237,14 @@ test_files:
241
237
  - spec/fixtures/create_section.json
242
238
  - spec/fixtures/created_assignment.json
243
239
  - spec/fixtures/created_course.json
240
+ - spec/fixtures/custom_data.json
241
+ - spec/fixtures/custom_food_data.json
242
+ - spec/fixtures/delete_custom_data_scope.json
244
243
  - spec/fixtures/delete_section.json
245
244
  - spec/fixtures/enroll_student.json
246
245
  - spec/fixtures/group_conferences.json
247
246
  - spec/fixtures/link_unlink_outcome.json
247
+ - spec/fixtures/no_custom_data.json
248
248
  - spec/fixtures/outcome_group_import.json
249
249
  - spec/fixtures/outcome_groups.json
250
250
  - spec/fixtures/outcome_subgroup.json
@@ -1,24 +0,0 @@
1
- require 'helper'
2
-
3
- describe Bearcat::Client::Assignments do
4
- before do
5
- @client = Bearcat::Client.new(canvas_domain: "http://canvas.instructure.com", token: "test_token")
6
- end
7
-
8
- it "returns all available reports" do
9
-
10
- end
11
-
12
- it "starts a report" do
13
-
14
- end
15
-
16
- it "returns index of reportt" do
17
-
18
- end
19
-
20
- it "returns the correct status" do
21
-
22
- end
23
-
24
- end
@@ -1,748 +0,0 @@
1
- [
2
- {
3
- "title": "Grade Export",
4
- "parameters": {
5
- "enrollment_term_id": {
6
- "required": false,
7
- "description": "The canvas id of the term to get grades from"
8
- },
9
- "include_deleted": {
10
- "required": false,
11
- "description": "Include deleted objects"
12
- }
13
- },
14
- "report": "grade_export_csv",
15
- "last_run": null
16
- },
17
- {
18
- "title": "Last User Access",
19
- "parameters": {
20
- "enrollment_term_id": {
21
- "required": false,
22
- "description": "The canvas id of the term to get grades from"
23
- },
24
- "course_id": {
25
- "required": false,
26
- "description": "The course to report on"
27
- }
28
- },
29
- "report": "last_user_access_csv",
30
- "last_run": null
31
- },
32
- {
33
- "title": "Outcome Results",
34
- "parameters": {
35
- "enrollment_term_id": {
36
- "required": false,
37
- "description": "The canvas id of the term of courses to report on"
38
- },
39
- "order": {
40
- "required": false,
41
- "description": "The sort order for the csv, Options: 'users', 'courses', 'outcomes'"
42
- },
43
- "include_deleted": {
44
- "required": false,
45
- "description": "Include deleted objects"
46
- }
47
- },
48
- "report": "outcome_results_csv",
49
- "last_run": null
50
- },
51
- {
52
- "title": "Provisioning",
53
- "parameters": {
54
- "enrollment_term_id": {
55
- "required": false,
56
- "description": "The canvas id of the term of courses to report on"
57
- },
58
- "users": {
59
- "required": false,
60
- "description": "Get the Provisioning file for users"
61
- },
62
- "accounts": {
63
- "required": false,
64
- "description": "Get the Provisioning file for accounts"
65
- },
66
- "terms": {
67
- "required": false,
68
- "description": "Get the Provisioning file for terms"
69
- },
70
- "courses": {
71
- "required": false,
72
- "description": "Get the Provisioning file for courses"
73
- },
74
- "sections": {
75
- "required": false,
76
- "description": "Get the Provisioning file for sections"
77
- },
78
- "enrollments": {
79
- "required": false,
80
- "description": "Get the Provisioning file for enrollments"
81
- },
82
- "groups": {
83
- "required": false,
84
- "description": "Get the Provisioning file for groups"
85
- },
86
- "group_membership": {
87
- "required": false,
88
- "description": "Get the Provisioning file for group_membership"
89
- },
90
- "xlist": {
91
- "required": false,
92
- "description": "Get the Provisioning file for cross listed courses"
93
- },
94
- "include_deleted": {
95
- "required": false,
96
- "description": "Include deleted objects"
97
- }
98
- },
99
- "report": "provisioning_csv",
100
- "last_run": {
101
- "id": 59,
102
- "parameters": {
103
- "enrollment_term_id": "",
104
- "terms": "1",
105
- "extra_text": "Term: All Terms; Reports: terms "
106
- },
107
- "progress": 100,
108
- "status": "complete",
109
- "report": "provisioning_csv",
110
- "file_url": "https://localhost:3000/accounts/1/files/129/download",
111
- "attachment": {
112
- "id": 129,
113
- "content-type": "text/csv",
114
- "display_name": "provisioning_csv_03_Oct_2013_59_.csv",
115
- "filename": "provisioning_csv_03_Oct_2013_59_4546-0.csv",
116
- "url": "http://localhost:3000/files/129/download?download_frd=1&verifier=MeULgnpC8PCDxD6QRYbyLmXeUmVpUJ3B4GmFetJq",
117
- "size": 146,
118
- "created_at": "2013-10-04T04:42:33Z",
119
- "updated_at": "2013-10-04T04:42:33Z",
120
- "unlock_at": null,
121
- "locked": false,
122
- "hidden": false,
123
- "lock_at": null,
124
- "hidden_for_user": false,
125
- "thumbnail_url": null,
126
- "locked_for_user": false
127
- }
128
- }
129
- },
130
- {
131
- "title": "Recently Deleted Courses",
132
- "parameters": {
133
- "enrollment_term_id": {
134
- "required": false,
135
- "description": "The canvas id of the term to get grades from"
136
- }
137
- },
138
- "report": "recently_deleted_courses_csv",
139
- "last_run": null
140
- },
141
- {
142
- "title": "SIS Export",
143
- "parameters": {
144
- "enrollment_term_id": {
145
- "required": false,
146
- "description": "The canvas id of the term of courses to report on"
147
- },
148
- "users": {
149
- "required": false,
150
- "description": "Get the SIS file for users"
151
- },
152
- "accounts": {
153
- "required": false,
154
- "description": "Get the SIS file for accounts"
155
- },
156
- "terms": {
157
- "required": false,
158
- "description": "Get the SIS file for terms"
159
- },
160
- "courses": {
161
- "required": false,
162
- "description": "Get the SIS file for courses"
163
- },
164
- "sections": {
165
- "required": false,
166
- "description": "Get the SIS file for sections"
167
- },
168
- "enrollments": {
169
- "required": false,
170
- "description": "Get the SIS file for enrollments"
171
- },
172
- "groups": {
173
- "required": false,
174
- "description": "Get the SIS file for groups"
175
- },
176
- "group_membership": {
177
- "required": false,
178
- "description": "Get the SIS file for group_membership"
179
- },
180
- "xlist": {
181
- "required": false,
182
- "description": "Get the SIS file for cross listed courses"
183
- },
184
- "include_deleted": {
185
- "required": false,
186
- "description": "Include deleted objects"
187
- }
188
- },
189
- "report": "sis_export_csv",
190
- "last_run": {
191
- "id": 54,
192
- "parameters": {
193
- "enrollment_term_id": "",
194
- "users": "1",
195
- "courses": "1",
196
- "xlist": "1",
197
- "extra_text": "Term: All Terms; Reports: users courses xlist "
198
- },
199
- "progress": 100,
200
- "status": "complete",
201
- "report": "sis_export_csv",
202
- "file_url": "https://localhost:3000/accounts/1/files/124/download",
203
- "attachment": {
204
- "id": 124,
205
- "content-type": "application/zip",
206
- "display_name": "sis_export_csv_03_Oct_2013_54_.zip",
207
- "filename": "sis_export_csv_03_Oct_2013_54_4546-0.zip",
208
- "url": "http://localhost:3000/files/124/download?download_frd=1&verifier=NCNS9uE3Ch7bER6WLs6Ca5paNAc4T6dzvXhYsENj",
209
- "size": 11598,
210
- "created_at": "2013-10-04T04:33:48Z",
211
- "updated_at": "2013-10-04T04:33:48Z",
212
- "unlock_at": null,
213
- "locked": false,
214
- "hidden": false,
215
- "lock_at": null,
216
- "hidden_for_user": false,
217
- "thumbnail_url": null,
218
- "locked_for_user": false
219
- }
220
- }
221
- },
222
- {
223
- "title": "Student Competency",
224
- "parameters": {
225
- "enrollment_term_id": {
226
- "required": false,
227
- "description": "The canvas id of the term of courses to report on"
228
- },
229
- "include_deleted": {
230
- "required": false,
231
- "description": "Include deleted objects"
232
- }
233
- },
234
- "report": "student_assignment_outcome_map_csv",
235
- "last_run": null
236
- },
237
- {
238
- "title": "Students with no submissions",
239
- "parameters": {
240
- "enrollment_term_id": {
241
- "required": false,
242
- "description": "The term to report on"
243
- },
244
- "course_id": {
245
- "required": false,
246
- "description": "The course to report on"
247
- },
248
- "start_at": {
249
- "required": true,
250
- "description": "The beginning date for submissions. Max time range is 2 weeks."
251
- },
252
- "end_at": {
253
- "required": true,
254
- "description": "The end date for submissions. Max time range is 2 weeks."
255
- }
256
- },
257
- "report": "students_with_no_submissions_csv",
258
- "last_run": null
259
- },
260
- {
261
- "title": "Unpublished Courses",
262
- "parameters": {
263
- "enrollment_term_id": {
264
- "required": false,
265
- "description": "The canvas id of the term to get grades from"
266
- }
267
- },
268
- "report": "unpublished_courses_csv",
269
- "last_run": null
270
- },
271
- {
272
- "title": "Unused Courses",
273
- "parameters": {
274
- "enrollment_term_id": {
275
- "required": false,
276
- "description": "The canvas id of the term to get courses from"
277
- }
278
- },
279
- "report": "unused_courses_csv",
280
- "last_run": null
281
- },
282
- {
283
- "title": "Zero Activity",
284
- "parameters": {
285
- "enrollment_term_id": {
286
- "required": false,
287
- "description": "The canvas id of the term to get grades from"
288
- },
289
- "course_id": {
290
- "required": false,
291
- "description": "The course to report on"
292
- }
293
- },
294
- "report": "zero_activity_csv",
295
- "last_run": null
296
- },
297
- {
298
- "title": "Multi-Student Progress",
299
- "parameters": null,
300
- "report": "multi_student_progress_csv",
301
- "last_run": null
302
- },
303
- {
304
- "title": "Ungraded Student Submissions",
305
- "parameters": null,
306
- "report": "ungraded_submissions_csv",
307
- "last_run": null
308
- },
309
- {
310
- "title": "Faculty Success Report",
311
- "parameters": null,
312
- "report": "faculty_success_csv",
313
- "last_run": null
314
- },
315
- {
316
- "title": "Registrar Report",
317
- "parameters": null,
318
- "report": "registrar_csv",
319
- "last_run": null
320
- },
321
- {
322
- "title": "Enrollment Summary",
323
- "parameters": null,
324
- "report": "enrollment_summary_csv",
325
- "last_run": null
326
- },
327
- {
328
- "title": "Google Doc Accounts",
329
- "parameters": null,
330
- "report": "google_doc_accounts_csv",
331
- "last_run": null
332
- },
333
- {
334
- "title": "Quiz Data",
335
- "parameters": {
336
- "enrollment_term_id": {
337
- "required": false,
338
- "description": "The term to report on"
339
- },
340
- "start_at": {
341
- "required": true,
342
- "description": "The beginning date for the quiz due date"
343
- },
344
- "end_at": {
345
- "required": true,
346
- "description": "The end date for the quiz due date"
347
- }
348
- },
349
- "report": "quiz_data_csv",
350
- "last_run": null
351
- },
352
- {
353
- "title": "Quiz Statistics",
354
- "parameters": {
355
- "enrollment_term_id": {
356
- "required": false,
357
- "description": "The term to report on"
358
- },
359
- "start_at": {
360
- "required": true,
361
- "description": "The beginning date for the quiz due date"
362
- },
363
- "end_at": {
364
- "required": true,
365
- "description": "The end date for the quiz due date"
366
- }
367
- },
368
- "report": "quiz_statistics_csv",
369
- "last_run": null
370
- },
371
- {
372
- "title": "Student Submissions",
373
- "parameters": {
374
- "enrollment_term_id": {
375
- "required": false,
376
- "description": "The term to report on"
377
- },
378
- "start_at": {
379
- "required": true,
380
- "description": "The beginning date for submissions"
381
- },
382
- "end_at": {
383
- "required": true,
384
- "description": "The end date for submissions"
385
- }
386
- },
387
- "report": "student_submissions_csv",
388
- "last_run": null
389
- },
390
- {
391
- "title": "CampusVue Grade Export",
392
- "parameters": {
393
- "enrollment_term_id": {
394
- "required": true,
395
- "description": "The term for grade export data"
396
- }
397
- },
398
- "report": "custom_grade_export_csv",
399
- "last_run": null
400
- },
401
- {
402
- "title": "SIS data",
403
- "parameters": {
404
- "users": {
405
- "required": false,
406
- "description": "Get the SIS file for users"
407
- },
408
- "sections": {
409
- "required": false,
410
- "description": "Get the SIS file for sections"
411
- },
412
- "enrollments": {
413
- "required": false,
414
- "description": "Get the SIS file for enrollments"
415
- }
416
- },
417
- "report": "mississippi_sis_csv",
418
- "last_run": null
419
- },
420
- {
421
- "title": "Submission Data",
422
- "parameters": {
423
- "enrollment_term_id": {
424
- "required": false,
425
- "description": "The term to report on"
426
- },
427
- "course_id": {
428
- "required": false,
429
- "description": "The course to report on"
430
- },
431
- "start_at": {
432
- "required": false,
433
- "description": "Everything updated after start date"
434
- }
435
- },
436
- "report": "submission_data_csv",
437
- "last_run": null
438
- },
439
- {
440
- "title": "Course Section Status",
441
- "parameters": {
442
- "enrollment_term_id": {
443
- "required": true,
444
- "description": "The term to get courses from"
445
- }
446
- },
447
- "report": "course_status_csv",
448
- "last_run": null
449
- },
450
- {
451
- "title": "Student IP addresses",
452
- "parameters": {
453
- "enrollment_term_id": {
454
- "required": false,
455
- "description": "The term to report on"
456
- },
457
- "course_id": {
458
- "required": false,
459
- "description": "The course to report on"
460
- }
461
- },
462
- "report": "student_ip_csv",
463
- "last_run": null
464
- },
465
- {
466
- "title": "Custom Outcomes",
467
- "parameters": {
468
- "enrollment_term_id": {
469
- "required": false,
470
- "description": "The canvas id of the term of courses to report on"
471
- },
472
- "course_id": {
473
- "required": false,
474
- "description": "The course to report on"
475
- },
476
- "outcome_id": {
477
- "required": false,
478
- "description": "The outcome to report on"
479
- }
480
- },
481
- "report": "custom_outcomes_csv",
482
- "last_run": null
483
- },
484
- {
485
- "title": "Scantron Quiz",
486
- "parameters": {
487
- "quiz_id": {
488
- "required": false,
489
- "description": "Quiz to generate Scantron report for"
490
- },
491
- "section_id": {
492
- "required": false,
493
- "description": "Section ID"
494
- }
495
- },
496
- "report": "scantron_quiz_csv",
497
- "last_run": null
498
- },
499
- {
500
- "title": "Students who have not logged in Report",
501
- "parameters": {
502
- "enrollment_term_id": {
503
- "required": false,
504
- "description": "The term to report on"
505
- },
506
- "start_at": {
507
- "required": false,
508
- "description": "Users that have not logged in since this date"
509
- },
510
- "never_logged_in": {
511
- "required": false,
512
- "description": "Include users that have never logged in"
513
- }
514
- },
515
- "report": "student_login_csv",
516
- "last_run": null
517
- },
518
- {
519
- "title": "CHCP Student Activity Report",
520
- "parameters": {
521
- "enrollment_term_id": {
522
- "required": false,
523
- "description": "The term to report on"
524
- },
525
- "course_id": {
526
- "required": false,
527
- "description": "The course to report on"
528
- }
529
- },
530
- "report": "chcp_student_activity_csv",
531
- "last_run": null
532
- },
533
- {
534
- "title": "Students Access Report",
535
- "parameters": {
536
- "enrollment_term_id": {
537
- "required": false,
538
- "description": "The term to report on"
539
- },
540
- "course_id": {
541
- "required": false,
542
- "description": "The course to report on"
543
- },
544
- "start_at": {
545
- "required": false,
546
- "description": "Everything updated after start date"
547
- }
548
- },
549
- "report": "student_access_csv",
550
- "last_run": null
551
- },
552
- {
553
- "title": "User Inactivity Report",
554
- "parameters": {
555
- "enrollment_term_id": {
556
- "required": false,
557
- "description": "The term to report on"
558
- },
559
- "course_id": {
560
- "required": false,
561
- "description": "The course to report on"
562
- },
563
- "start_at": {
564
- "required": false,
565
- "description": "Everything updated after start date"
566
- },
567
- "enrollment_type": {
568
- "required": false,
569
- "description": "Filter by 'student', 'teacher', or 'ta' enrollment types"
570
- },
571
- "minimum": {
572
- "required": false,
573
- "description": "Minimum number of course items visited, i.e. Assignment, syllabus, discussion"
574
- }
575
- },
576
- "report": "user_inactivity_csv",
577
- "last_run": null
578
- },
579
- {
580
- "title": "CCP Zero Activity",
581
- "parameters": {
582
- "enrollment_term_id": {
583
- "required": false,
584
- "description": "The canvas id of the term to get grades from"
585
- },
586
- "course_id": {
587
- "required": false,
588
- "description": "The course to report on"
589
- },
590
- "start_at": {
591
- "required": false,
592
- "description": "Report start date"
593
- },
594
- "filter_online": {
595
- "required": false,
596
- "description": "Show online classes only"
597
- }
598
- },
599
- "report": "ccp_zero_activity_csv",
600
- "last_run": null
601
- },
602
- {
603
- "title": "Safety Drill Scheduling",
604
- "parameters": {
605
- "enrollment_term": {
606
- "required": false,
607
- "description": "The term to report on"
608
- },
609
- "tests": {
610
- "required": false,
611
- "description": "The Assignment Group named tests"
612
- },
613
- "projects": {
614
- "required": false,
615
- "description": "The Assignment Group named projects"
616
- },
617
- "papers": {
618
- "required": false,
619
- "description": "The Assignment Group named papers"
620
- },
621
- "reports": {
622
- "required": false,
623
- "description": "The Assignment Group named reports"
624
- },
625
- "major": {
626
- "required": false,
627
- "description": "The Assignment Group named major"
628
- },
629
- "start_at": {
630
- "required": false,
631
- "description": "Report start date"
632
- },
633
- "end_at": {
634
- "required": true,
635
- "description": "Report end date"
636
- }
637
- },
638
- "report": "safety_drill_csv",
639
- "last_run": {
640
- "id": 53,
641
- "parameters": {
642
- "enrollment_term_id": "",
643
- "start_at": "Oct 1, 2013",
644
- "end_at": "Oct 31, 2013",
645
- "tests": "true",
646
- "projects": "true",
647
- "papers": "true",
648
- "reports": "true",
649
- "major": "true",
650
- "extra_text": "Term: All Terms; Start At: 2013-10-01 00:00:00 -0600; End At: 2013-10-31 00:00:00 -0600; Assignment Group Types: tests,projects,papers,reports,major"
651
- },
652
- "progress": 100,
653
- "status": "complete",
654
- "report": "safety_drill_csv",
655
- "file_url": "https://localhost:3000/accounts/1/files/123/download",
656
- "attachment": {
657
- "id": 123,
658
- "content-type": "text/csv",
659
- "display_name": "safety_drill_csv_30_Sep_2013_53_4546-0.csv",
660
- "filename": "safety_drill_csv_30_Sep_2013_53_4546-0.csv",
661
- "url": "http://localhost:3000/files/123/download?download_frd=1&verifier=MKkWuNzAjGTT8BnEEmahiXoAOw8OiJA8jv84ScCU",
662
- "size": 681,
663
- "created_at": "2013-09-30T19:35:53Z",
664
- "updated_at": "2013-09-30T19:35:53Z",
665
- "unlock_at": null,
666
- "locked": false,
667
- "hidden": false,
668
- "lock_at": null,
669
- "hidden_for_user": false,
670
- "thumbnail_url": null,
671
- "locked_for_user": false
672
- }
673
- }
674
- },
675
- {
676
- "title": "Assignment Scheduling",
677
- "parameters": {
678
- "section_id": {
679
- "required": false,
680
- "description": "The section to report on"
681
- },
682
- "tests": {
683
- "required": false,
684
- "description": "The Assignment Group named tests"
685
- },
686
- "projects": {
687
- "required": false,
688
- "description": "The Assignment Group named projects"
689
- },
690
- "papers": {
691
- "required": false,
692
- "description": "The Assignment Group named papers"
693
- },
694
- "reports": {
695
- "required": false,
696
- "description": "The Assignment Group named reports"
697
- },
698
- "major": {
699
- "required": false,
700
- "description": "The Assignment Group named major"
701
- },
702
- "start_at": {
703
- "required": false,
704
- "description": "Report start date"
705
- },
706
- "end_at": {
707
- "required": true,
708
- "description": "Report end date"
709
- }
710
- },
711
- "report": "assignment_scheduling_csv",
712
- "last_run": {
713
- "id": 49,
714
- "parameters": {
715
- "section_id": "",
716
- "start_at": "Sep 1, 2013",
717
- "end_at": "Oct 31, 2013",
718
- "tests": "true",
719
- "projects": "true",
720
- "papers": "true",
721
- "reports": "true",
722
- "major": "true",
723
- "extra_text": "Start At: 2013-09-01 00:00:00 -0600; End At: 2013-10-31 00:00:00 -0600; Assignment Group Types: tests,projects,papers,reports,major"
724
- },
725
- "progress": 100,
726
- "status": "complete",
727
- "report": "assignment_scheduling_csv",
728
- "file_url": "https://localhost:3000/accounts/1/files/119/download",
729
- "attachment": {
730
- "id": 119,
731
- "content-type": "text/csv",
732
- "display_name": "assignment_scheduling_csv_24_Sep_2013_49_96296-0.csv",
733
- "filename": "assignment_scheduling_csv_24_Sep_2013_49_96296-0.csv",
734
- "url": "http://localhost:3000/files/119/download?download_frd=1&verifier=iV4aoUUoDEfBTY4JJKFMEzw01d89tIL1dOWrP22L",
735
- "size": 492,
736
- "created_at": "2013-09-24T22:09:58Z",
737
- "updated_at": "2013-09-24T22:09:58Z",
738
- "unlock_at": null,
739
- "locked": false,
740
- "hidden": false,
741
- "lock_at": null,
742
- "hidden_for_user": false,
743
- "thumbnail_url": null,
744
- "locked_for_user": false
745
- }
746
- }
747
- }
748
- ]
@@ -1,18 +0,0 @@
1
- [
2
- {
3
- "id": 60,
4
- "parameters": null,
5
- "progress": 0,
6
- "status": "error",
7
- "report": "Grade Export",
8
- "file_url": null
9
- },
10
- {
11
- "id": 61,
12
- "parameters": null,
13
- "progress": 0,
14
- "status": "error",
15
- "report": "Grade Export",
16
- "file_url": null
17
- }
18
- ]
@@ -1,28 +0,0 @@
1
- {
2
- "id": 70,
3
- "parameters": {
4
- "enrollments": "true",
5
- "extra_text": "Term: All Terms; Reports: enrollments "
6
- },
7
- "progress": 100,
8
- "status": "complete",
9
- "report": "sis_export_csv",
10
- "file_url": "https://localhost:3000/accounts/1/files/132/download",
11
- "attachment": {
12
- "id": 132,
13
- "content-type": "text/csv",
14
- "display_name": "sis_export_csv_04_Oct_2013_70_.csv",
15
- "filename": "sis_export_csv_04_Oct_2013_65_1845-0.csv",
16
- "url": "http://localhost:3000/files/132/download?download_frd=1&verifier=B1oCKqt0OpIL2cB4zPDJtxidwrj2b42KgRapU5pS",
17
- "size": 27906,
18
- "created_at": "2013-10-04T21:08:43Z",
19
- "updated_at": "2013-10-04T21:08:43Z",
20
- "unlock_at": null,
21
- "locked": false,
22
- "hidden": false,
23
- "lock_at": null,
24
- "hidden_for_user": false,
25
- "thumbnail_url": null,
26
- "locked_for_user": false
27
- }
28
- }
@@ -1,8 +0,0 @@
1
- {
2
- "id": 60,
3
- "parameters": null,
4
- "progress": 0,
5
- "status": "running",
6
- "report": "Grade Export",
7
- "file_url": null
8
- }