Skip to content

Instantly share code, notes, and snippets.

@sfentress
Created April 5, 2018 20:27
Show Gist options
  • Save sfentress/381b5a06a3c14b063d315eb284cbf2fc to your computer and use it in GitHub Desktop.
Save sfentress/381b5a06a3c14b063d315eb284cbf2fc to your computer and use it in GitHub Desktop.
Sending message to ITS: {username: "https://learn.concord.org/users/139672-9ad0bca4", classInfo: "https://learn.concord.org/api/v1/classes/7300", studentId: "139672", externalId: 185748, session: "9ad0bca4-ef98-4b08-ad3a-309ba7fde81d", …}action: "SUBMITTED"actor: "USER"classInfo: "https://learn.concord.org/api/v1/classes/7300"context: {species: "Drake", challengeCriteria: {…}, userSelections: {…}, correct: false, incrementMoves: true, …}externalId: 185748sequence: 27session: "9ad0bca4-ef98-4b08-ad3a-309ba7fde81d"studentId: "139672"target: "ORGANISM"time: 1522956006997username: "https://learn.concord.org/users/139672-9ad0bca4"__proto__: Object
Message received from ITS: {"type":"Debug","message":"Tutor - handling: USER-SUBMITTED-ORGANISM user=139672","time":1522956007076}
Message received from ITS: {"type":"Debug","message":"Load rules from: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0","time":1522956007078}
Message received from ITS: {"type":"Debug","message":"Load rules from: https://docs.google.com/spreadsheets/d/1BLtnIJabRwYozrXepKETScYCyJe4cXwpbVFRWb2ONd8","time":1522956007080}
Message received from ITS: {"type":"Debug","message":"Evaluate rules for: 139672 (https://learn.concord.org/api/v1/classes/7300 | Slice2-June26 | allele-targetMatch-hidden-simpleDom)","time":1522956007521}
Message received from ITS: {"type":"Debug","message":"Update student model for: 139672","time":1522956007522}
Message received from ITS: {"type":"Debug","message":"Rules Triggered: 8 rules fired\n+Rule Triggered: LG1.C2a -> 1 | ruleId: 4 source: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0\n+Rule Triggered: LG1.C2b -> 1 | ruleId: 4 source: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0\n+Rule Triggered: LG1.A3 -> 1 | ruleId: 27 source: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0\n-Rule Triggered: LG1.C2a -> -1 | ruleId: 14 source: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0\n-Rule Triggered: LG1.C2b -> -1 | ruleId: 14 source: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0\n-Rule Triggered: LG1.C2a -> -1 | ruleId: 21 source: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0\n-Rule Triggered: LG1.C2b -> -1 | ruleId: 21 source: https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0\n-Rule Triggered: LG1.P2 -> -1 | ruleId: 13 source: https://docs.google.com/spreadsheets/d/1BLtnIJabRwYozrXepKETScYCyJe4cXwpbVFRWb2ONd8","time":1522956007528}
Message received from ITS: {"type":"Debug","message":"Select hint for: 139672","time":1522956007528}
Message received from ITS: {"type":"Debug","message":"Set student data in dashboard db; path=1/userState/https%3A%2F%2Flearn%2Econcord%2Eorg%2Fapi%2Fv1%2Fclasses%2F7300/https%3A%2F%2Flearn%2Econcord%2Eorg%2F139672/itsData","time":1522956007530}
Message received from ITS: {"type":"Debug","message":"Successfully set student data in dashboard db.","time":1522956070964}
ITS Message Reason: MisconceptionDetected {why: "MisconceptionDetected", ruleId: 14, ruleSource: "https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0", trait: "forelimbs"}
Message received from ITS: {"message":{"id":"ITS.CONCEPT.FEEDBACK","text":"Arms are a dominant trait. If a drake has a \"Arms\" allele, it will have arms.","args":{"trait":"forelimbs"}},"time":1522956007529,"reason":{"why":"MisconceptionDetected","ruleId":14,"ruleSource":"https://docs.google.com/spreadsheets/d/1QWdalhsSfdiREucjH77Rrh8dIOdXDCbivFHxiT4RC_0","trait":"forelimbs"}}
Message received from ITS: {"type":"Debug","message":"Event handled -> ITS action sent to client","time":1522956070965}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment