Commit Graph

3 Commits

Author SHA1 Message Date
Cody Cutrer c302dd8bc1 RuboCop: Style/SymbolArray, Style/WordArray
[skip-stages=Flakey]

auto-corrected

Change-Id: Id187ed60c5590025e780d81b85b5212f51368f27
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/279196
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob Burroughs <jburroughs@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Migration-Review: Cody Cutrer <cody@instructure.com>
2021-11-23 14:30:08 +00:00
Cody Cutrer 809904d8b6 add frozen_string_literal comment to migrations
Change-Id: Idf4ddb29567c1dfab9f01b09c7a1056367ae7b44
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/261814
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-03-30 18:14:36 +00:00
Ethan Vizitei 95aca3787c auditor models and migrations
refs CNVS-48876
flag = none

The only goal for this PS is to get the
tables and models in place to handle auditors
data being written to PG instead of cassanrda.

No actual new writing happens in this change.

create the first couple partitions as a migration
and the previous 12 to have room for backfilling

include partitions migrations for keeping indices
on individual partitions

cron-ify partitioner to keep pre-creating
new partitions for auditor tables

TEST PLAN:
  * migrate the database
  * do things that trigger auditor writes
    - login
    - change grades
    - publish courses
  * nothing should have changed or broken
  * auditors tables should be completely empty in PG
  * create the first few partitions as a migration

Change-Id: If4e2446a82fb1c91e992a28e62918ff8d8a8c73a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/234064
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
QA-Review: Simon Williams <simon@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2020-04-16 20:02:49 +00:00