coalescing_panda 4.0.11 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/coalescing_panda/canvas_batch.js.coffee +7 -5
  3. data/app/assets/stylesheets/coalescing_panda/application.css.scss +1 -0
  4. data/app/controllers/coalescing_panda/canvas_batches_controller.rb +0 -10
  5. data/app/controllers/coalescing_panda/lti_controller.rb +2 -2
  6. data/app/controllers/coalescing_panda/oauth2_controller.rb +1 -3
  7. data/app/models/coalescing_panda/assignment.rb +0 -2
  8. data/app/models/coalescing_panda/canvas_batch.rb +0 -4
  9. data/app/models/coalescing_panda/course.rb +0 -2
  10. data/app/models/coalescing_panda/group.rb +2 -3
  11. data/app/models/coalescing_panda/lti_account.rb +0 -1
  12. data/app/models/coalescing_panda/user.rb +0 -1
  13. data/app/models/coalescing_panda/workers/course_miner.rb +58 -141
  14. data/app/models/concerns/single_table_polymorphic.rb +1 -1
  15. data/app/views/coalescing_panda/canvas_batches/_canvas_batch.html.haml +10 -22
  16. data/app/views/coalescing_panda/canvas_batches/_canvas_batch_flash.html.haml +1 -1
  17. data/config/routes.rb +1 -3
  18. data/lib/coalescing_panda/controller_helpers.rb +25 -22
  19. data/lib/coalescing_panda/version.rb +1 -1
  20. data/spec/dummy/db/development.sqlite3 +0 -0
  21. data/spec/dummy/db/schema.rb +82 -120
  22. data/spec/dummy/db/test.sqlite3 +0 -0
  23. data/spec/dummy/log/development.log +229 -589
  24. data/spec/dummy/log/test.log +60790 -39979
  25. data/spec/models/coalescing_panda/assignment_spec.rb +0 -1
  26. data/spec/models/coalescing_panda/course_spec.rb +0 -5
  27. data/spec/models/coalescing_panda/workers/course_miner_spec.rb +10 -57
  28. metadata +57 -80
  29. data/app/assets/javascripts/bootstrap/bootstrap-datepicker.js +0 -1247
  30. data/app/assets/javascripts/bootstrap/bootstrap.js +0 -6
  31. data/app/assets/stylesheets/bootstrap/bootstrap-datepicker.css +0 -449
  32. data/app/assets/stylesheets/bootstrap/bootstrap-overrides.css.scss +0 -61
  33. data/app/assets/stylesheets/bootstrap/bootstrap-responsive.css +0 -9
  34. data/app/assets/stylesheets/bootstrap/bootstrap.css.scss +0 -9
  35. data/app/assets/stylesheets/coalescing_panda/application.css +0 -16
  36. data/app/assets/stylesheets/coalescing_panda/oauth2.css +0 -0
  37. data/app/assets/stylesheets/coalescing_panda/progress.css.scss +0 -97
  38. data/app/models/coalescing_panda/assignment_group.rb +0 -11
  39. data/app/models/coalescing_panda/group_category.rb +0 -11
  40. data/db/migrate/20150506183335_create_coalescing_panda_assignment_groups.rb +0 -18
  41. data/db/migrate/20150506192717_add_assignment_group_id_to_assignments.rb +0 -5
  42. data/db/migrate/20150526144713_add_account_to_canvas_batches.rb +0 -5
  43. data/db/migrate/20150602205257_add_option_to_canvas_batches.rb +0 -5
  44. data/db/migrate/20150708192717_add_group_moderator_to_group_memberships.rb +0 -5
  45. data/db/migrate/20150709192717_add_leader_id_to_groups.rb +0 -6
  46. data/db/migrate/20150714205405_create_coalescing_panda_group_categories.rb +0 -16
  47. data/db/migrate/20160521205405_add_graded_at_to_coalescing_panda_submissions.rb +0 -5
  48. data/lib/coalescing_panda/bearcat_uri.rb +0 -20
  49. data/spec/factories/assignment_groups.rb +0 -14
  50. data/spec/models/coalescing_panda/assignment_group_spec.rb +0 -32
Binary file
@@ -11,30 +11,14 @@
11
11
  #
12
12
  # It's strongly recommended that you check this file into your version control system.
13
13
 
14
- ActiveRecord::Schema.define(version: 20150714205405) do
14
+ ActiveRecord::Schema.define(version: 20150210180516) do
15
15
 
16
- create_table "coalescing_panda_assignment_groups", force: :cascade do |t|
17
- t.integer "coalescing_panda_course_id", null: false
18
- t.integer "context_id"
19
- t.string "context_type"
20
- t.string "canvas_assignment_group_id"
16
+ create_table "coalescing_panda_assignments", force: true do |t|
17
+ t.integer "coalescing_panda_course_id", null: false
21
18
  t.string "name"
22
- t.integer "position"
23
- t.float "group_weight"
24
- t.string "workflow_state"
25
- t.datetime "created_at"
26
- t.datetime "updated_at"
27
- end
28
-
29
- add_index "coalescing_panda_assignment_groups", ["canvas_assignment_group_id", "context_id", "context_type"], name: "index_assignment_group_context", unique: true
30
- add_index "coalescing_panda_assignment_groups", ["coalescing_panda_course_id", "canvas_assignment_group_id"], name: "index_assignment_group_course", unique: true
31
-
32
- create_table "coalescing_panda_assignments", force: :cascade do |t|
33
- t.integer "coalescing_panda_course_id", null: false
34
- t.string "name", limit: 255
35
19
  t.text "description"
36
- t.string "canvas_assignment_id", limit: 255, null: false
37
- t.string "workflow_state", limit: 255
20
+ t.string "canvas_assignment_id", null: false
21
+ t.string "workflow_state"
38
22
  t.float "points_possible"
39
23
  t.datetime "due_at"
40
24
  t.datetime "unlock_at"
@@ -45,42 +29,38 @@ ActiveRecord::Schema.define(version: 20150714205405) do
45
29
  t.integer "group_category_id"
46
30
  t.boolean "grade_group_students_individually"
47
31
  t.boolean "published"
48
- t.integer "coalescing_panda_assignment_group_id"
49
- t.integer "coalescing_panda_group_category_id"
50
32
  end
51
33
 
52
34
  add_index "coalescing_panda_assignments", ["coalescing_panda_course_id", "canvas_assignment_id"], name: "index_assignments_course", unique: true
53
35
 
54
- create_table "coalescing_panda_canvas_api_auths", force: :cascade do |t|
55
- t.string "user_id", limit: 255
56
- t.string "api_domain", limit: 255
57
- t.string "api_token", limit: 255
36
+ create_table "coalescing_panda_canvas_api_auths", force: true do |t|
37
+ t.string "user_id"
38
+ t.string "api_domain"
39
+ t.string "api_token"
58
40
  t.datetime "created_at"
59
41
  t.datetime "updated_at"
60
42
  end
61
43
 
62
- create_table "coalescing_panda_canvas_batches", force: :cascade do |t|
63
- t.float "percent_complete", default: 0.0
64
- t.string "status", limit: 255
44
+ create_table "coalescing_panda_canvas_batches", force: true do |t|
45
+ t.float "percent_complete", default: 0.0
46
+ t.string "status"
65
47
  t.text "message"
66
48
  t.datetime "created_at"
67
49
  t.datetime "updated_at"
68
50
  t.integer "context_id"
69
- t.string "context_type", limit: 255
70
- t.integer "coalescing_panda_lti_account_id"
71
- t.text "options"
51
+ t.string "context_type"
72
52
  end
73
53
 
74
- create_table "coalescing_panda_courses", force: :cascade do |t|
75
- t.integer "coalescing_panda_lti_account_id", null: false
54
+ create_table "coalescing_panda_courses", force: true do |t|
55
+ t.integer "coalescing_panda_lti_account_id", null: false
76
56
  t.integer "coalescing_panda_term_id"
77
- t.string "name", limit: 255
78
- t.string "canvas_course_id", limit: 255, null: false
79
- t.string "sis_id", limit: 255
57
+ t.string "name"
58
+ t.string "canvas_course_id", null: false
59
+ t.string "sis_id"
80
60
  t.datetime "start_at"
81
61
  t.datetime "conclude_at"
82
- t.string "workflow_state", limit: 255
83
- t.string "course_code", limit: 255
62
+ t.string "workflow_state"
63
+ t.string "course_code"
84
64
  t.datetime "created_at"
85
65
  t.datetime "updated_at"
86
66
  end
@@ -89,13 +69,13 @@ ActiveRecord::Schema.define(version: 20150714205405) do
89
69
  add_index "coalescing_panda_courses", ["coalescing_panda_term_id", "canvas_course_id"], name: "index_courses_term", unique: true
90
70
  add_index "coalescing_panda_courses", ["sis_id"], name: "index_coalescing_panda_courses_on_sis_id"
91
71
 
92
- create_table "coalescing_panda_enrollments", force: :cascade do |t|
93
- t.integer "coalescing_panda_user_id", null: false
94
- t.integer "coalescing_panda_section_id", null: false
95
- t.string "workflow_state", limit: 255
96
- t.string "sis_id", limit: 255
97
- t.string "canvas_enrollment_id", limit: 255, null: false
98
- t.string "enrollment_type", limit: 255
72
+ create_table "coalescing_panda_enrollments", force: true do |t|
73
+ t.integer "coalescing_panda_user_id", null: false
74
+ t.integer "coalescing_panda_section_id", null: false
75
+ t.string "workflow_state"
76
+ t.string "sis_id"
77
+ t.string "canvas_enrollment_id", null: false
78
+ t.string "enrollment_type"
99
79
  t.datetime "start_at"
100
80
  t.datetime "end_at"
101
81
  t.datetime "created_at"
@@ -105,69 +85,51 @@ ActiveRecord::Schema.define(version: 20150714205405) do
105
85
  add_index "coalescing_panda_enrollments", ["coalescing_panda_user_id", "coalescing_panda_section_id", "enrollment_type"], name: "index_enrollments_user_and_section", unique: true
106
86
  add_index "coalescing_panda_enrollments", ["sis_id"], name: "index_coalescing_panda_enrollments_on_sis_id"
107
87
 
108
- create_table "coalescing_panda_group_categories", force: :cascade do |t|
109
- t.integer "context_id"
110
- t.string "context_type"
111
- t.integer "canvas_group_category_id"
112
- t.string "name"
113
- t.datetime "created_at"
114
- t.datetime "updated_at"
115
- end
116
-
117
- add_index "coalescing_panda_group_categories", ["context_id", "context_type"], name: "index_group_categories_context_and_context_type"
118
-
119
- create_table "coalescing_panda_group_memberships", force: :cascade do |t|
88
+ create_table "coalescing_panda_group_memberships", force: true do |t|
120
89
  t.integer "coalescing_panda_group_id"
121
90
  t.integer "coalescing_panda_user_id"
122
- t.string "canvas_group_membership_id", limit: 255
123
- t.string "workflow_state", limit: 255
91
+ t.string "canvas_group_membership_id"
92
+ t.string "workflow_state"
124
93
  t.datetime "created_at"
125
94
  t.datetime "updated_at"
126
- t.boolean "moderator"
127
95
  end
128
96
 
129
- add_index "coalescing_panda_group_memberships", ["coalescing_panda_group_id", "coalescing_panda_user_id"], name: "index_group_memberships_user_and_group", unique: true
130
-
131
- create_table "coalescing_panda_groups", force: :cascade do |t|
97
+ create_table "coalescing_panda_groups", force: true do |t|
132
98
  t.integer "context_id"
133
- t.string "context_type", limit: 255
134
- t.string "description", limit: 255
135
- t.string "group_category_id", limit: 255
136
- t.string "canvas_group_id", limit: 255
137
- t.string "name", limit: 255
99
+ t.string "context_type"
100
+ t.string "description"
101
+ t.string "group_category_id"
102
+ t.string "canvas_group_id"
103
+ t.string "name"
138
104
  t.integer "members_count"
139
105
  t.datetime "created_at"
140
106
  t.datetime "updated_at"
141
- t.integer "leader_id"
142
- t.integer "coalescing_panda_group_category_id"
143
107
  end
144
108
 
145
- add_index "coalescing_panda_groups", ["context_id", "canvas_group_id"], name: "index_groups_context_and_group_id", unique: true
146
-
147
- create_table "coalescing_panda_lti_accounts", force: :cascade do |t|
148
- t.string "name", limit: 255
149
- t.string "key", limit: 255
150
- t.string "secret", limit: 255
151
- t.string "oauth2_client_id", limit: 255
152
- t.string "oauth2_client_key", limit: 255
153
- t.string "canvas_account_id", limit: 255
109
+ create_table "coalescing_panda_lti_accounts", force: true do |t|
110
+ t.string "name"
111
+ t.string "key"
112
+ t.string "secret"
113
+ t.string "oauth2_client_id"
114
+ t.string "oauth2_client_key"
115
+ t.string "canvas_account_id"
154
116
  t.text "settings"
155
117
  t.datetime "created_at"
156
118
  t.datetime "updated_at"
157
119
  end
158
120
 
159
- create_table "coalescing_panda_lti_nonces", force: :cascade do |t|
121
+ create_table "coalescing_panda_lti_nonces", force: true do |t|
160
122
  t.integer "coalescing_panda_lti_account_id"
161
- t.string "nonce", limit: 255
123
+ t.string "nonce"
162
124
  t.datetime "timestamp"
163
125
  end
164
126
 
165
- create_table "coalescing_panda_sections", force: :cascade do |t|
166
- t.integer "coalescing_panda_course_id", null: false
167
- t.string "name", limit: 255
168
- t.string "canvas_section_id", limit: 255, null: false
169
- t.string "sis_id", limit: 255
170
- t.string "workflow_state", limit: 255
127
+ create_table "coalescing_panda_sections", force: true do |t|
128
+ t.integer "coalescing_panda_course_id", null: false
129
+ t.string "name"
130
+ t.string "canvas_section_id", null: false
131
+ t.string "sis_id"
132
+ t.string "workflow_state"
171
133
  t.datetime "start_at"
172
134
  t.datetime "end_at"
173
135
  t.datetime "created_at"
@@ -177,22 +139,22 @@ ActiveRecord::Schema.define(version: 20150714205405) do
177
139
  add_index "coalescing_panda_sections", ["coalescing_panda_course_id", "canvas_section_id"], name: "index_sections_course", unique: true
178
140
  add_index "coalescing_panda_sections", ["sis_id"], name: "index_coalescing_panda_sections_on_sis_id"
179
141
 
180
- create_table "coalescing_panda_sessions", force: :cascade do |t|
181
- t.string "token", limit: 255
142
+ create_table "coalescing_panda_sessions", force: true do |t|
143
+ t.string "token"
182
144
  t.text "data"
183
145
  t.datetime "created_at"
184
146
  t.datetime "updated_at"
185
147
  end
186
148
 
187
- create_table "coalescing_panda_submissions", force: :cascade do |t|
188
- t.integer "coalescing_panda_user_id", null: false
189
- t.integer "coalescing_panda_assignment_id", null: false
190
- t.string "url", limit: 255
191
- t.string "grade", limit: 255
192
- t.string "score", limit: 255
149
+ create_table "coalescing_panda_submissions", force: true do |t|
150
+ t.integer "coalescing_panda_user_id", null: false
151
+ t.integer "coalescing_panda_assignment_id", null: false
152
+ t.string "url"
153
+ t.string "grade"
154
+ t.string "score"
193
155
  t.datetime "submitted_at"
194
- t.string "workflow_state", limit: 255
195
- t.string "canvas_submission_id", limit: 255, null: false
156
+ t.string "workflow_state"
157
+ t.string "canvas_submission_id", null: false
196
158
  t.datetime "created_at"
197
159
  t.datetime "updated_at"
198
160
  end
@@ -200,15 +162,15 @@ ActiveRecord::Schema.define(version: 20150714205405) do
200
162
  add_index "coalescing_panda_submissions", ["canvas_submission_id"], name: "index_coalescing_panda_submissions_on_canvas_submission_id"
201
163
  add_index "coalescing_panda_submissions", ["coalescing_panda_user_id", "coalescing_panda_assignment_id", "canvas_submission_id"], name: "index_submissions_user_and_assignment", unique: true
202
164
 
203
- create_table "coalescing_panda_terms", force: :cascade do |t|
204
- t.integer "coalescing_panda_lti_account_id", null: false
205
- t.string "name", limit: 255
206
- t.string "code", limit: 255
207
- t.string "sis_id", limit: 255
208
- t.string "canvas_term_id", limit: 255, null: false
165
+ create_table "coalescing_panda_terms", force: true do |t|
166
+ t.integer "coalescing_panda_lti_account_id", null: false
167
+ t.string "name"
168
+ t.string "code"
169
+ t.string "sis_id"
170
+ t.string "canvas_term_id", null: false
209
171
  t.datetime "start_at"
210
172
  t.datetime "end_at"
211
- t.string "workflow_state", limit: 255
173
+ t.string "workflow_state"
212
174
  t.datetime "created_at"
213
175
  t.datetime "updated_at"
214
176
  end
@@ -216,14 +178,14 @@ ActiveRecord::Schema.define(version: 20150714205405) do
216
178
  add_index "coalescing_panda_terms", ["canvas_term_id", "coalescing_panda_lti_account_id"], name: "index_terms_account", unique: true
217
179
  add_index "coalescing_panda_terms", ["sis_id"], name: "index_coalescing_panda_terms_on_sis_id"
218
180
 
219
- create_table "coalescing_panda_users", force: :cascade do |t|
220
- t.integer "coalescing_panda_lti_account_id", null: false
221
- t.string "name", limit: 255
222
- t.string "email", limit: 255
223
- t.string "roles", limit: 255
224
- t.string "workflow_state", limit: 255
225
- t.string "sis_id", limit: 255
226
- t.string "canvas_user_id", limit: 255, null: false
181
+ create_table "coalescing_panda_users", force: true do |t|
182
+ t.integer "coalescing_panda_lti_account_id", null: false
183
+ t.string "name"
184
+ t.string "email"
185
+ t.string "roles"
186
+ t.string "workflow_state"
187
+ t.string "sis_id"
188
+ t.string "canvas_user_id", null: false
227
189
  t.datetime "created_at"
228
190
  t.datetime "updated_at"
229
191
  end
@@ -231,16 +193,16 @@ ActiveRecord::Schema.define(version: 20150714205405) do
231
193
  add_index "coalescing_panda_users", ["coalescing_panda_lti_account_id", "canvas_user_id"], name: "index_users_account", unique: true
232
194
  add_index "coalescing_panda_users", ["sis_id"], name: "index_coalescing_panda_users_on_sis_id"
233
195
 
234
- create_table "delayed_jobs", force: :cascade do |t|
235
- t.integer "priority", default: 0, null: false
236
- t.integer "attempts", default: 0, null: false
237
- t.text "handler", null: false
196
+ create_table "delayed_jobs", force: true do |t|
197
+ t.integer "priority", default: 0, null: false
198
+ t.integer "attempts", default: 0, null: false
199
+ t.text "handler", null: false
238
200
  t.text "last_error"
239
201
  t.datetime "run_at"
240
202
  t.datetime "locked_at"
241
203
  t.datetime "failed_at"
242
- t.string "locked_by", limit: 255
243
- t.string "queue", limit: 255
204
+ t.string "locked_by"
205
+ t.string "queue"
244
206
  t.datetime "created_at"
245
207
  t.datetime "updated_at"
246
208
  end
Binary file