Commit Graph

4 Commits

Author SHA1 Message Date
Michael Brewer-Davis 589593b5c3 symbolize live events
- also uses .to_json to convert hash to json string; ensures
  no duplicate keys
  
closes PLAT-2588

Test plan:

Test alongside g/111746 (MRA)
Configure live events on local, or test against portal2.
Run canvas-lms/script/tail_kinesis [endpoint] [stream] [region]
  to see a log of all live events.
  For local (no creds required):
      script/tail_kinesis http://kinesis:4567 live_events us-east-1
  For portal2 (inseng creds):
      script/tail_kinesis \
         http://kinesis.us-west-2.amazonaws.com \
         cyoe_live_events_qa \
         us-west-2
Create a quiz in Canvas
As a student, take the quiz
Verify the ensuing grading events do not have duplicate keys
As a teacher, change the answers to a quiz question, and choose
  to regarde the quiz
Verify the ensuing quiz regraded event does not have duplicate
  keys

Change-Id: I0653363527ed9e39f56bcb84bcf0641e953d964c
Reviewed-on: https://gerrit.instructure.com/111745
Reviewed-by: Chris Wang <cwang@instructure.com>
Tested-by: Jenkins
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Product-Review: Chris Wang <cwang@instructure.com>
2017-05-14 01:30:14 +00:00
Landon Wilkins d198a52517 da licença part 31
add consistent license headers to all source files
(ruby, coffeescript, javascript)

except for vendor files

Change-Id: I7b353d1ec31c36c0b12df7feb09fff743dc8a985
Reviewed-on: https://gerrit.instructure.com/110056
Tested-by: Jenkins
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-04-27 21:59:58 +00:00
Matthew Wheeler 162f010ebc Add fields to live events
Fixes PLAT-2483

* Add root_account_lti_guid
* Re-add provider

Test Plan:

- setup multiple root accounts with /c/108963/
- spinup local live-event testing services
- test out live-event spawning processes as a result of a delayed job
- assert that the kinesis stream contains events with attributes
  containing `root_account_lti_guid` and `provider`

Change-Id: If8e44924145fb8687a16b189d63ad58528ec901e
Reviewed-on: https://gerrit.instructure.com/108970
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Tested-by: Jenkins
Product-Review: Matthew Wheeler <mwheeler@instructure.com>
2017-04-26 21:23:35 +00:00
Jayce Higgins 55435653dd Add UUID to delayed job live event payload
Refs: PLAT-2369

Test-plan:
  - setup multiple root accounts with /c/106174/
  - spinup local live-event testing services
  - test out live-event spawning processes as a result of a delayed job
  - assert that the kinesis stream contains events with attributes
    containing `root_account_uuid`

Change-Id: Ia00dd8d25497529dcf59b9d7b3d0b438d334a61e
Reviewed-on: https://gerrit.instructure.com/106175
QA-Review: Tucker McKnight <tmcknight@instructure.com>
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Jayce Higgins <jhiggins@instructure.com>
2017-04-17 17:10:10 +00:00