Move turnitin_id attributes on content_resource.binary_entity to contentreview_item.externalId

Description

Background:

  1. When a student submits an assignment, contentreview_items are created for the attachments.

  2. The Content Review Queue job posts these attachments to Turnitin, turnitin responds whether the post was successful.

  3. An asynchronous callback from Turnitin then gives us the "externalId" (the ID of the submitted file on TII's end).

  4. The reports job then uses the "externalId" to retrieve Turnitin's originality report

Currently step 3 sets the externalId in the content_resource table's binary_entity column. This table represents files on the file system. There already exists an externalId column in contentreview_item specifically for this purpose which we are now just leaving null.

We should move the externalId to contentreview_item as it is a content-review specific datum, and this will make externalIds more searchable.

Activity

Show:

Brian J. January 16, 2017 at 11:53 AM

Git commits dfe9e23, c0c2088

Brian Baillargeon January 16, 2017 at 11:40 AM
Edited

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created August 31, 2016 at 10:33 AM
Updated January 16, 2017 at 11:53 AM
Resolved January 16, 2017 at 11:53 AM