coalescing_panda 3.2.0 → 3.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ef35686d23d7f299ecc2807b2435732888589cf
4
- data.tar.gz: 51613fba18fa072c99adda16f4e9284808d793fc
3
+ metadata.gz: dc7c13ee00245bc8975dfa4eb2be3e9c7454c638
4
+ data.tar.gz: 04e7becc5f1cac869ee5a80af5f9984e1af844df
5
5
  SHA512:
6
- metadata.gz: 64a522af26c2c7eda7c5b3f6127d5706acba6a73dbe6aa90a873f7740ba4ac6ed36d1ec061d529e1b31f58a04df96fcb6647839148cee2266b07e2675dd9fec3
7
- data.tar.gz: 477682394ab7feefcf5b30f51b9c3d8cb5f2a8c2aac7612fa58979f46d071bd03a119c03836cdf35bdf40a0ad9b20553880bb2ab0ac1d4571a1648919deefaf9
6
+ metadata.gz: 007afd6be6a3d1da4d7b2ecd0f9e9984d168235fca99c725508d5e3415daa618773a45928bd8aa28b1a5b19c67a3ddfc8d11a6af8f859ba2085f370833739494
7
+ data.tar.gz: 789fa501082eeedce8937e0e8ef20f81206069417275de23f197614385cb9206b86b1effe1c03f519cbc39025b87f6f173c1481a07d6eed9f15d7aca42154ee8
@@ -0,0 +1,16 @@
1
+ class AddMissingIndexes < ActiveRecord::Migration
2
+ def change
3
+ add_index :coalescing_panda_assignments, :coalescing_panda_course_id, name: 'index_assignment_course_id'
4
+ add_index :coalescing_panda_courses, :coalescing_panda_lti_account_id, name: 'index_courses_lti_account_id'
5
+ add_index :coalescing_panda_courses, :coalescing_panda_term_id, name: 'index_courses_term_id'
6
+ add_index :coalescing_panda_sections, :coalescing_panda_course_id, name: 'index_sections_course_id'
7
+ add_index :coalescing_panda_enrollments, :coalescing_panda_user_id, name: 'index_enrollments_user_id'
8
+ add_index :coalescing_panda_enrollments, :coalescing_panda_section_id, name: 'index_enrollments_section_id'
9
+ add_index :coalescing_panda_group_memberships, :coalescing_panda_user_id, name: 'index_memberships_user_id'
10
+ add_index :coalescing_panda_group_memberships, :coalescing_panda_group_id, name: 'index_memberships_group_id'
11
+ add_index :coalescing_panda_submissions, :coalescing_panda_user_id, name: 'index_submissions_user_id'
12
+ add_index :coalescing_panda_submissions, :coalescing_panda_assignment_id, name: 'index_submissions_assignment_id'
13
+ add_index :coalescing_panda_users, :coalescing_panda_lti_account_id, name: 'index_users_lti_account_id'
14
+ add_index :coalescing_panda_terms, :coalescing_panda_lti_account_id, name: 'index_terms_lti_account_id'
15
+ end
16
+ end
@@ -1,3 +1,3 @@
1
1
  module CoalescingPanda
2
- VERSION = '3.2.0'
2
+ VERSION = '3.2.1'
3
3
  end
Binary file
@@ -11,7 +11,7 @@
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: 20150210180516) do
14
+ ActiveRecord::Schema.define(version: 20150218185536) do
15
15
 
16
16
  create_table "coalescing_panda_assignments", force: true do |t|
17
17
  t.integer "coalescing_panda_course_id"
@@ -33,6 +33,7 @@ ActiveRecord::Schema.define(version: 20150210180516) do
33
33
  end
34
34
 
35
35
  add_index "coalescing_panda_assignments", ["canvas_assignment_id"], name: "index_coalescing_panda_assignments_on_canvas_assignment_id"
36
+ add_index "coalescing_panda_assignments", ["coalescing_panda_course_id"], name: "index_assignment_course_id"
36
37
  add_index "coalescing_panda_assignments", ["coalescing_panda_course_id"], name: "index_assignments_course"
37
38
  add_index "coalescing_panda_assignments", ["sis_id"], name: "index_coalescing_panda_assignments_on_sis_id"
38
39
 
@@ -70,7 +71,9 @@ ActiveRecord::Schema.define(version: 20150210180516) do
70
71
 
71
72
  add_index "coalescing_panda_courses", ["canvas_course_id"], name: "index_coalescing_panda_courses_on_canvas_course_id"
72
73
  add_index "coalescing_panda_courses", ["coalescing_panda_lti_account_id"], name: "index_courses_account"
74
+ add_index "coalescing_panda_courses", ["coalescing_panda_lti_account_id"], name: "index_courses_lti_account_id"
73
75
  add_index "coalescing_panda_courses", ["coalescing_panda_term_id"], name: "index_courses_term"
76
+ add_index "coalescing_panda_courses", ["coalescing_panda_term_id"], name: "index_courses_term_id"
74
77
  add_index "coalescing_panda_courses", ["sis_id"], name: "index_coalescing_panda_courses_on_sis_id"
75
78
 
76
79
  create_table "coalescing_panda_enrollments", force: true do |t|
@@ -86,7 +89,9 @@ ActiveRecord::Schema.define(version: 20150210180516) do
86
89
  end
87
90
 
88
91
  add_index "coalescing_panda_enrollments", ["canvas_enrollment_id"], name: "index_coalescing_panda_enrollments_on_canvas_enrollment_id"
92
+ add_index "coalescing_panda_enrollments", ["coalescing_panda_section_id"], name: "index_enrollments_section_id"
89
93
  add_index "coalescing_panda_enrollments", ["coalescing_panda_user_id", "coalescing_panda_section_id"], name: "index_enrollments_user_and_assignment"
94
+ add_index "coalescing_panda_enrollments", ["coalescing_panda_user_id"], name: "index_enrollments_user_id"
90
95
  add_index "coalescing_panda_enrollments", ["sis_id"], name: "index_coalescing_panda_enrollments_on_sis_id"
91
96
 
92
97
  create_table "coalescing_panda_group_memberships", force: true do |t|
@@ -98,6 +103,9 @@ ActiveRecord::Schema.define(version: 20150210180516) do
98
103
  t.datetime "updated_at"
99
104
  end
100
105
 
106
+ add_index "coalescing_panda_group_memberships", ["coalescing_panda_group_id"], name: "index_memberships_group_id"
107
+ add_index "coalescing_panda_group_memberships", ["coalescing_panda_user_id"], name: "index_memberships_user_id"
108
+
101
109
  create_table "coalescing_panda_groups", force: true do |t|
102
110
  t.integer "context_id"
103
111
  t.string "context_type"
@@ -142,6 +150,7 @@ ActiveRecord::Schema.define(version: 20150210180516) do
142
150
 
143
151
  add_index "coalescing_panda_sections", ["canvas_section_id"], name: "index_coalescing_panda_sections_on_canvas_section_id"
144
152
  add_index "coalescing_panda_sections", ["coalescing_panda_course_id"], name: "index_coalescing_panda_sections_on_coalescing_panda_course_id"
153
+ add_index "coalescing_panda_sections", ["coalescing_panda_course_id"], name: "index_sections_course_id"
145
154
  add_index "coalescing_panda_sections", ["sis_id"], name: "index_coalescing_panda_sections_on_sis_id"
146
155
 
147
156
  create_table "coalescing_panda_sessions", force: true do |t|
@@ -165,7 +174,9 @@ ActiveRecord::Schema.define(version: 20150210180516) do
165
174
  end
166
175
 
167
176
  add_index "coalescing_panda_submissions", ["canvas_submission_id"], name: "index_coalescing_panda_submissions_on_canvas_submission_id"
177
+ add_index "coalescing_panda_submissions", ["coalescing_panda_assignment_id"], name: "index_submissions_assignment_id"
168
178
  add_index "coalescing_panda_submissions", ["coalescing_panda_user_id", "coalescing_panda_assignment_id"], name: "index_submissions_user_and_assignment"
179
+ add_index "coalescing_panda_submissions", ["coalescing_panda_user_id"], name: "index_submissions_user_id"
169
180
 
170
181
  create_table "coalescing_panda_terms", force: true do |t|
171
182
  t.integer "coalescing_panda_lti_account_id"
@@ -181,6 +192,7 @@ ActiveRecord::Schema.define(version: 20150210180516) do
181
192
  end
182
193
 
183
194
  add_index "coalescing_panda_terms", ["canvas_term_id"], name: "index_coalescing_panda_terms_on_canvas_term_id"
195
+ add_index "coalescing_panda_terms", ["coalescing_panda_lti_account_id"], name: "index_terms_lti_account_id"
184
196
  add_index "coalescing_panda_terms", ["sis_id"], name: "index_coalescing_panda_terms_on_sis_id"
185
197
 
186
198
  create_table "coalescing_panda_users", force: true do |t|
@@ -197,6 +209,7 @@ ActiveRecord::Schema.define(version: 20150210180516) do
197
209
 
198
210
  add_index "coalescing_panda_users", ["canvas_user_id"], name: "index_coalescing_panda_users_on_canvas_user_id"
199
211
  add_index "coalescing_panda_users", ["coalescing_panda_lti_account_id"], name: "index_users_account"
212
+ add_index "coalescing_panda_users", ["coalescing_panda_lti_account_id"], name: "index_users_lti_account_id"
200
213
  add_index "coalescing_panda_users", ["sis_id"], name: "index_coalescing_panda_users_on_sis_id"
201
214
 
202
215
  create_table "delayed_jobs", force: true do |t|
@@ -188,3 +188,81 @@ Migrating to AddContextToCanvasBatch (20150210180516)
188
188
  SQL (0.5ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150210180516"]]
189
189
   (0.8ms) commit transaction
190
190
  ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
191
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
192
+ Migrating to AddMissingIndexes (20150218185536)
193
+  (0.1ms) begin transaction
194
+  (0.0ms) rollback transaction
195
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
196
+ Migrating to AddMissingIndexes (20150218185536)
197
+  (0.1ms) begin transaction
198
+  (0.7ms) CREATE INDEX "index_assignment_course_id" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
199
+  (0.1ms) CREATE INDEX "index_courses_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
200
+  (0.2ms) CREATE INDEX "index_courses_term_id" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
201
+  (0.5ms) rollback transaction
202
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
203
+ Migrating to AddMissingIndexes (20150218185536)
204
+  (0.1ms) begin transaction
205
+  (0.3ms) CREATE INDEX "index_assignment_course_id" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
206
+  (0.1ms) CREATE INDEX "index_courses_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
207
+  (0.1ms) CREATE INDEX "index_courses_term_id" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
208
+  (0.1ms) CREATE INDEX "index_sections_user_id_course_id" ON "coalescing_panda_sections" ("coalescing_panda_user_id", "coalescing_panda_course_id")
209
+ SQLite3::SQLException: table coalescing_panda_sections has no column named coalescing_panda_user_id: CREATE INDEX "index_sections_user_id_course_id" ON "coalescing_panda_sections" ("coalescing_panda_user_id", "coalescing_panda_course_id")
210
+  (0.9ms) rollback transaction
211
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
212
+ Migrating to AddMissingIndexes (20150218185536)
213
+  (0.1ms) begin transaction
214
+  (0.3ms) CREATE INDEX "index_assignment_course_id" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
215
+  (0.1ms) CREATE INDEX "index_courses_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
216
+  (0.1ms) CREATE INDEX "index_courses_term_id" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
217
+  (0.1ms) CREATE INDEX "index_sections_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
218
+  (0.1ms) CREATE INDEX "index_sections_course_id_section_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id", "section_id")
219
+ SQLite3::SQLException: table coalescing_panda_sections has no column named section_id: CREATE INDEX "index_sections_course_id_section_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id", "section_id")
220
+  (0.4ms) rollback transaction
221
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
222
+ Migrating to AddMissingIndexes (20150218185536)
223
+  (0.1ms) begin transaction
224
+  (0.4ms) CREATE INDEX "index_assignment_course_id" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
225
+  (0.1ms) CREATE INDEX "index_courses_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
226
+  (0.1ms) CREATE INDEX "index_courses_term_id" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
227
+  (0.1ms) CREATE INDEX "index_sections_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
228
+  (0.1ms) CREATE INDEX "index_groups_group_id_membership_id" ON "coalescing_panda_groups" ("group_id", "group_membership_id")
229
+ SQLite3::SQLException: table coalescing_panda_groups has no column named group_id: CREATE INDEX "index_groups_group_id_membership_id" ON "coalescing_panda_groups" ("group_id", "group_membership_id")
230
+  (0.9ms) rollback transaction
231
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
232
+ Migrating to AddMissingIndexes (20150218185536)
233
+  (0.1ms) begin transaction
234
+  (0.3ms) CREATE INDEX "index_assignment_course_id" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
235
+  (0.1ms) CREATE INDEX "index_courses_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
236
+  (0.1ms) CREATE INDEX "index_courses_term_id" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
237
+  (0.1ms) CREATE INDEX "index_sections_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
238
+  (0.1ms) CREATE INDEX "index_groups_group_id_membership_id" ON "coalescing_panda_groups" ("coalescing_panda_group_id", "coalescing_panda_group_membership_id")
239
+ SQLite3::SQLException: table coalescing_panda_groups has no column named coalescing_panda_group_id: CREATE INDEX "index_groups_group_id_membership_id" ON "coalescing_panda_groups" ("coalescing_panda_group_id", "coalescing_panda_group_membership_id")
240
+  (0.8ms) rollback transaction
241
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
242
+ Migrating to AddMissingIndexes (20150218185536)
243
+  (0.1ms) begin transaction
244
+  (0.3ms) CREATE INDEX "index_assignment_course_id" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
245
+  (0.1ms) CREATE INDEX "index_courses_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
246
+  (0.1ms) CREATE INDEX "index_courses_term_id" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
247
+  (0.1ms) CREATE INDEX "index_sections_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
248
+  (0.1ms) CREATE INDEX "index_groups_group_id_membership_id" ON "coalescing_panda_groups" ("coalescing_panda_group_id", "coalescing_panda_group_membership_id")
249
+ SQLite3::SQLException: table coalescing_panda_groups has no column named coalescing_panda_group_id: CREATE INDEX "index_groups_group_id_membership_id" ON "coalescing_panda_groups" ("coalescing_panda_group_id", "coalescing_panda_group_membership_id")
250
+  (0.8ms) rollback transaction
251
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
252
+ Migrating to AddMissingIndexes (20150218185536)
253
+  (0.1ms) begin transaction
254
+  (0.3ms) CREATE INDEX "index_assignment_course_id" ON "coalescing_panda_assignments" ("coalescing_panda_course_id")
255
+  (0.1ms) CREATE INDEX "index_courses_lti_account_id" ON "coalescing_panda_courses" ("coalescing_panda_lti_account_id")
256
+  (0.1ms) CREATE INDEX "index_courses_term_id" ON "coalescing_panda_courses" ("coalescing_panda_term_id")
257
+  (0.1ms) CREATE INDEX "index_sections_course_id" ON "coalescing_panda_sections" ("coalescing_panda_course_id")
258
+  (0.1ms) CREATE INDEX "index_enrollments_user_id" ON "coalescing_panda_enrollments" ("coalescing_panda_user_id")
259
+  (0.1ms) CREATE INDEX "index_enrollments_section_id" ON "coalescing_panda_enrollments" ("coalescing_panda_section_id")
260
+  (0.1ms) CREATE INDEX "index_memberships_user_id" ON "coalescing_panda_group_memberships" ("coalescing_panda_user_id")
261
+  (0.1ms) CREATE INDEX "index_memberships_group_id" ON "coalescing_panda_group_memberships" ("coalescing_panda_group_id")
262
+  (0.1ms) CREATE INDEX "index_submissions_user_id" ON "coalescing_panda_submissions" ("coalescing_panda_user_id")
263
+  (0.1ms) CREATE INDEX "index_submissions_assignment_id" ON "coalescing_panda_submissions" ("coalescing_panda_assignment_id")
264
+  (0.1ms) CREATE INDEX "index_users_lti_account_id" ON "coalescing_panda_users" ("coalescing_panda_lti_account_id")
265
+  (0.1ms) CREATE INDEX "index_terms_lti_account_id" ON "coalescing_panda_terms" ("coalescing_panda_lti_account_id")
266
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20150218185536"]]
267
+  (0.7ms) commit transaction
268
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
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: 3.2.0
4
+ version: 3.2.1
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: 2015-02-10 00:00:00.000000000 Z
13
+ date: 2015-02-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -292,6 +292,20 @@ dependencies:
292
292
  - - '>='
293
293
  - !ruby/object:Gem::Version
294
294
  version: '0'
295
+ - !ruby/object:Gem::Dependency
296
+ name: lol_dba
297
+ requirement: !ruby/object:Gem::Requirement
298
+ requirements:
299
+ - - '>='
300
+ - !ruby/object:Gem::Version
301
+ version: '0'
302
+ type: :development
303
+ prerelease: false
304
+ version_requirements: !ruby/object:Gem::Requirement
305
+ requirements:
306
+ - - '>='
307
+ - !ruby/object:Gem::Version
308
+ version: '0'
295
309
  description:
296
310
  email:
297
311
  - nathanm@instructure.com
@@ -365,6 +379,7 @@ files:
365
379
  - db/migrate/20150107205405_create_coalescing_panda_groups.rb
366
380
  - db/migrate/20150107205413_create_coalescing_panda_group_memberships.rb
367
381
  - db/migrate/20150210180516_add_context_to_canvas_batch.rb
382
+ - db/migrate/20150218185536_add_missing_indexes.rb
368
383
  - lib/coalescing_panda.rb
369
384
  - lib/coalescing_panda/controller_helpers.rb
370
385
  - lib/coalescing_panda/engine.rb