canvas-lms/docker-compose
Ethan Vizitei 432419fbcd dual-write path for postgres auditors
refs CNVS-48876
flag = none

add setting for auditors read/write paths

map settings into boolean helpers

create config values for AR writing path

split backend of event_stream by strategy
and confirm writing to both destinations functions

test dual writing from config

wrap tests around attribute mapping from
  event stream to active record

dual write from all 3 auditor classes
via a shared model mixin

TEST PLAN:
  * update dynamic settings to include dual write pattern
  * login a few times
  * publish a course
  * grade an assignment
  * make sure new auditor records are in cassandra
     (auditors API calls is fine)
  * make sure companion records are in the auditor postres table
     (auditor_authentication_records,
      auditor_course_records,
      auditor_grade_change_records)

Change-Id: I9b85fc926f7363876f89c82a3fdceb253244fb57
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/234334
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Ethan Vizitei <evizitei@instructure.com>
2020-04-19 22:25:21 +00:00
..
config dual-write path for postgres auditors 2020-04-19 22:25:21 +00:00
karma Bump to Node 10 2019-03-22 17:29:36 +00:00
phantomjs-karma Bump to Node 10 2019-03-22 17:29:36 +00:00
postgres Multiple rubies and postgres on Jenkins 2020-03-10 22:30:51 +00:00
selenium-chrome spec: upgrade chromedriver for chrome version 80 local and docker 2020-02-28 15:38:01 +00:00
selenium-firefox update docker selenium images 2018-11-02 20:11:41 +00:00
vault Add vault client to canvas 2020-02-03 19:00:13 +00:00
cassandra.override.yml Persist cassandra volume 2017-09-01 18:19:46 +00:00
consul.override.yml Add rake task to populate Consul from dynamic_settings.yml 2017-09-19 18:08:39 +00:00
js-phantomjs-tests.override.yml set +x on docker entrypoints that require it 2016-11-28 22:58:58 +00:00
js-tests.override.yml update js-tests to node 8 and fix cmd 2018-04-06 17:46:58 +00:00
kinesis.override.yml go back to non wildcard TLD 2016-11-15 21:29:57 +00:00
lti-test-tool.override.yml Upgrade unofficial postgis repo to official repo 2020-03-04 22:03:02 +00:00
mailcatcher.override.yml set +x on docker entrypoints that require it 2016-11-28 22:58:58 +00:00
pulsar.yml Add configuration and scripts for replication. 2019-12-20 22:21:12 +00:00
selenium.override.yml set +x on docker entrypoints that require it 2016-11-28 22:58:58 +00:00
vault.override.yml Add vault client to canvas 2020-02-03 19:00:13 +00:00