bearcat 1.3.48 → 1.3.49
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5570d1db50569863bfbfd3a30b1e69bf9f95802e2659738c81064be7525bf615
|
4
|
+
data.tar.gz: '0869eea17f98c4e5f367d558a955c05fb003ae6f55e201b9f50cf8a7f48fd9f3'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c88f8820f87e55951822661b76664321401ab8819110c0f41a4465a0e28e1405a09dfe6fe1a0fda58faa64516d8b78d8d73c4d340c0beee56b9cdac9ab0355a
|
7
|
+
data.tar.gz: 5a264903ecf7b56e94d1a5085d6f551a93a441a50c018b126448ec3404c7236d84ebd1160d2aada62232535f071162d9e4642a3add729d1b04b4ee78c7735877
|
@@ -26,6 +26,10 @@ module Bearcat
|
|
26
26
|
put("/api/v1/courses/#{course.to_s}/custom_gradebook_columns/#{gradebook_column}/data/#{student}", params)
|
27
27
|
end
|
28
28
|
|
29
|
+
def bulk_update_gradebook_columns_data(course, params={})
|
30
|
+
put("/api/v1/courses/#{course.to_s}/custom_gradebook_column_data", params)
|
31
|
+
end
|
32
|
+
|
29
33
|
end
|
30
34
|
end
|
31
35
|
end
|
data/lib/bearcat/version.rb
CHANGED
@@ -44,4 +44,23 @@ describe Bearcat::Client::CustomGradebookColumns do
|
|
44
44
|
response['user_id'].should == 1
|
45
45
|
end
|
46
46
|
end
|
47
|
+
context 'update_gradebook_columns_data' do
|
48
|
+
it 'bulk updates gradebook columns data' do
|
49
|
+
params = {'column_data': [
|
50
|
+
{
|
51
|
+
'column_id': 1,
|
52
|
+
'user_id': 2,
|
53
|
+
'content': 'user2 content'
|
54
|
+
},
|
55
|
+
{
|
56
|
+
'column_id': 1,
|
57
|
+
'user_id': 3,
|
58
|
+
'content': 'user3 content'
|
59
|
+
}
|
60
|
+
]}
|
61
|
+
stub_put(@client, '/api/v1/courses/1/custom_gradebook_column_data').to_return(json_response('custom_gradebook_columns', 'gradebook_column_progress.json'))
|
62
|
+
response = @client.bulk_update_gradebook_columns_data(1, params)
|
63
|
+
expect(response['context_id']).to eq 1
|
64
|
+
end
|
65
|
+
end
|
47
66
|
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"id": 1,
|
3
|
+
"context_id": 1,
|
4
|
+
"context_type": "Course",
|
5
|
+
"user_id": 123,
|
6
|
+
"tag": "custom_columns_submissions_update",
|
7
|
+
"completion": 100,
|
8
|
+
"workflow_state": "completed",
|
9
|
+
"created_at": "2013-01-15T15:00:00Z",
|
10
|
+
"updated_at": "2013-01-15T15:04:00Z",
|
11
|
+
"message": "",
|
12
|
+
"results": {},
|
13
|
+
"url": "https://canvas.example.edu/api/v1/progress/1"
|
14
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bearcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.49
|
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: 2019-
|
11
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -277,6 +277,7 @@ files:
|
|
277
277
|
- spec/fixtures/custom_gradebook_columns/column_data.json
|
278
278
|
- spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
|
279
279
|
- spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
|
280
|
+
- spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json
|
280
281
|
- spec/fixtures/dashboard.json
|
281
282
|
- spec/fixtures/delete_course.json
|
282
283
|
- spec/fixtures/delete_custom_data_scope.json
|
@@ -545,6 +546,7 @@ test_files:
|
|
545
546
|
- spec/fixtures/created_group_membership.json
|
546
547
|
- spec/fixtures/user_avatars.json
|
547
548
|
- spec/fixtures/graph_ql_scores.json
|
549
|
+
- spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json
|
548
550
|
- spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
|
549
551
|
- spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
|
550
552
|
- spec/fixtures/custom_gradebook_columns/column_data.json
|