Use Case 2 : An assignment was created - discussion topic

Document created by Oxana Jurosevic Administrator on Oct 16, 2018Last modified by Oxana Jurosevic Administrator on Oct 17, 2018
Version 4Show Document
  • View in full screen mode

Back to:  Table of Contents 

An assignment was created: discussion topic

 

Use Case: A user creates a discussion topic in a Canvas course by:

  1. Clicking on the +Discussion button
  2. Discussion form opens
  3. They fill out the discussion topic settings
  4. Click Save & Publish

 

Outcome: With every discussion_topic_created event we issue, there are about 1 assignment_created and 3 assignment_updated events as a result of the newly created discussion topic. assignment_updated events do not contain anything specific to update information (what exactly was updated), the messages are generated as a result of multiple background processes . 

 

Event 1:  discussion_topic_created

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-28T19:24:32.812Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:08a8f526-a7eb-4bcf-82be-8b35b8d20d54",

     "type": "ThreadEvent",

     "actor": {

       "id": "urn:instructure:canvas:user:11111111111111",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "170000004567894"

         }

       }

     },

     "action": "Created",

     "object": {

       "id": "urn:instructure:canvas:discussion:21070000000000066",

       "type": "Thread",

       "name": "New_Discussion_3",

       "extensions": {

         "com.instructure.canvas": {

           "is_announcement": false,

           "entity_id": "21070000000000066"

         }

       }

     },

     "eventTime": "2018-09-28T22:32:18.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "membership": {

       "id": "urn:instructure:canvas:course:21070000000000565:user:11111111111111",

       "type": "Membership",

       "member": {

         "id": "urn:instructure:canvas:user:11111111111111",

         "type": "Person"

       },

       "organization": {

         "id": "urn:instructure:canvas:course:21070000000000565",

         "type": "CourseOffering"

       }

     },

     "session": {

       "id": "urn:instructure:canvas:session:5ea97d244bac31033cc1cbec76feeda5",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "73aedc0b-40ce-4e8c-8d35-331174730807",

         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

 

Event 2:  assignment_created

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-28T19:24:32.812Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:ca3ee4ac-4f1c-4a57-8ddd-dbc60ccd6ef4",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:11111111111111",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "170000004567894"

         }

       }

     },

     "action": "Created",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000369",

       "type": "AssignableDigitalResource",

       "name": "New_Discussion_3",

       "description": "<p>This is a test discussion</p>",

       "dateCreated": "2018-09-28T22:32:17.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "lock_at": "2018-10-01T05:59:59.000Z",

           "entity_id": "21070000000000369"

         }

       },

       "dateToShow": "2018-09-26T06:00:00.000Z",

       "dateToSubmit": "2018-10-01T05:59:59.000Z",

       "maxScore": {

         "numberStr": "100.0"

       }

     },

     "eventTime": "2018-09-28T22:32:18.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "membership": {

       "id": "urn:instructure:canvas:course:21070000000000565:user:170000004567894",

       "type": "Membership",

       "member": {

         "id": "urn:instructure:canvas:user:11111111111111",

         "type": "Person"

       },

       "organization": {

         "id": "urn:instructure:canvas:course:21070000000000565",

         "type": "CourseOffering"

       }

     },

     "session": {

       "id": "urn:instructure:canvas:session:5ea97d244bac31033cc1cbec76feeda5",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "73aedc0b-40ce-4e8c-8d35-331174730807",

         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Event 3: assignment_updated

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-28T19:14:24.909Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:4e7e4466-b947-40d2-aa19-259685eee8d4",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:11111111111111",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "170000004567894"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000369",

       "type": "AssignableDigitalResource",

       "name": "New_Discussion_3",

       "description": "<p>This is a test discussion</p>",

       "dateModified": "2018-09-28T22:32:17.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "lock_at": "2018-10-01T05:59:59.000Z",

           "workflow_state": "published",

           "entity_id": "21070000000000369"

         }

       },

       "dateToShow": "2018-09-26T06:00:00.000Z",

       "dateToSubmit": "2018-10-01T05:59:59.000Z",

       "maxScore": {

         "numberStr": "100.0"

       }

     },

     "eventTime": "2018-09-28T22:32:18.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "membership": {

       "id": "urn:instructure:canvas:course:21070000000000565:user:11111111111111",

       "type": "Membership",

       "member": {

         "id": "urn:instructure:canvas:user:11111111111111",

         "type": "Person"

       },

       "organization": {

         "id": "urn:instructure:canvas:course:21070000000000565",

         "type": "CourseOffering"

       }

     },

     "session": {

       "id": "urn:instructure:canvas:session:5ea97d244bac31033cc1cbec76feeda5",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "73aedc0b-40ce-4e8c-8d35-331174730807",

         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-28T20:16:04.773Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:d71dc75a-67d1-42a2-a63a-c5d5c6d8f378",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:1111111111111111",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "170000004567894"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000369",

       "type": "AssignableDigitalResource",

       "name": "New_Discussion_3",

       "description": "<p>This is a test discussion</p>",

       "dateModified": "2018-09-28T22:32:17.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "lock_at": "2018-10-01T05:59:59.000Z",

           "workflow_state": "published",

           "entity_id": "21070000000000369"

         }

       },

       "dateToShow": "2018-09-26T06:00:00.000Z",

       "dateToSubmit": "2018-10-01T05:59:59.000Z",

       "maxScore": {

         "numberStr": "100.0"

       }

     },

     "eventTime": "2018-09-28T22:32:18.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "membership": {

       "id": "urn:instructure:canvas:course:21070000000000565:user:1111111111111111",

       "type": "Membership",

       "member": {

         "id": "urn:instructure:canvas:user:111111111111111111",

         "type": "Person"

       },

       "organization": {

         "id": "urn:instructure:canvas:course:21070000000000565",

         "type": "CourseOffering"

       }

     },

     "session": {

       "id": "urn:instructure:canvas:session:5ea97d244bac31033cc1cbec76feeda5",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "73aedc0b-40ce-4e8c-8d35-331174730807",

         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Event 4: assignment_updated

 

{

 "sensor": "http://oxana.instructure.com/",

 "sendTime": "2018-09-28T19:30:41.395Z",

 "dataVersion": "http://purl.imsglobal.org/ctx/caliper/v1p1",

 "data": [

   {

     "@context": "http://purl.imsglobal.org/ctx/caliper/v1p1",

     "id": "urn:uuid:e25a6cef-7555-48fd-b368-6f6cdee4523f",

     "type": "Event",

     "actor": {

       "id": "urn:instructure:canvas:user:1111111111111111",

       "type": "Person",

       "extensions": {

         "com.instructure.canvas": {

           "user_login": "oxana",

           "root_account_id": "21070000000000001",

           "root_account_lti_guid": "7db438071375c02373713c12c73869ff2f470b68.oxana.instructure.com",

           "root_account_uuid": "VicYj3cu5BIFpoZhDVU4DZumnlBrWi1grgJEzADs",

           "entity_id": "170000004567894"

         }

       }

     },

     "action": "Modified",

     "object": {

       "id": "urn:instructure:canvas:assignment:21070000000000369",

       "type": "AssignableDigitalResource",

       "name": "New_Discussion_3",

       "description": "<p>This is a test discussion</p>",

       "dateModified": "2018-09-28T22:32:17.000Z",

       "extensions": {

         "com.instructure.canvas": {

           "lock_at": "2018-10-01T05:59:59.000Z",

           "workflow_state": "published",

           "entity_id": "21070000000000369"

         }

       },

       "dateToShow": "2018-09-26T06:00:00.000Z",

       "dateToSubmit": "2018-10-01T05:59:59.000Z",

       "maxScore": {

         "numberStr": "100.0"

       }

     },

     "eventTime": "2018-09-28T22:32:18.000Z",

     "edApp": {

       "id": "http://oxana.instructure.com/",

       "type": "SoftwareApplication"

     },

     "group": {

       "id": "urn:instructure:canvas:course:21070000000000565",

       "type": "CourseOffering",

       "extensions": {

         "com.instructure.canvas": {

           "context_type": "Course",

           "entity_id": "21070000000000565"

         }

       }

     },

     "membership": {

       "id": "urn:instructure:canvas:course:21070000000000565:user:11111111111",

       "type": "Membership",

       "member": {

         "id": "urn:instructure:canvas:user:11111111111111",

         "type": "Person"

       },

       "organization": {

         "id": "urn:instructure:canvas:course:21070000000000565",

         "type": "CourseOffering"

       }

     },

     "session": {

       "id": "urn:instructure:canvas:session:5ea97d244bac31033cc1cbec76feeda5",

       "type": "Session"

     },

     "extensions": {

       "com.instructure.canvas": {

         "hostname": "oxana.instructure.com",

         "request_id": "73aedc0b-40ce-4e8c-8d35-331174730807",

         "user_agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36",

         "version": "1.0.0"

       }

     }

   }

 ]

}

 

Back to:  Table of Contents 

1 person found this helpful

Attachments

    Outcomes