Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: receive ora submission created event #7

Merged
merged 14 commits into from
Feb 6, 2024

Conversation

BryanttV
Copy link
Contributor

@BryanttV BryanttV commented Feb 2, 2024

Description

This PR adds a receiver of the ORA_SUBMISSION_CREATED event. This receiver is responsible for running a celery task in the background that performs the following:

  1. It obtains the ora submission information by its ID.
  2. Each file (doc, docx, pdf) related to the submission is sent to Turnitin.
  3. The response text related to the submission is converted to a .txt and sent to Turnitin.

Additionally:

  1. The API was updated to receive the ORA submission ID, instead of the Turnitin submission ID. This is because a single ORA submission can be related to many Turnitin submissions.

How to Test

  1. Install this plugin in your environment.

  2. Install edx-ora2 in your environment with the changes in this PR

  3. In a unit of the course create a new ora assessment, maybe Staff Assessment Only

  4. In the settings of the component > File Uploads Response = Required and in File Types = pdf,doc,docx

  5. In the LMS send a submission with some files.

  6. Consumes this endpoint:

    {lms_domain}/platform-plugin-turnitin/{course_id}/api/v1/submission/{ora_submission_id}/
    
  7. You should see a list with Turnitin submission information for all files related to ora submission.

@BryanttV BryanttV changed the title Bav/receive ora submission event feat: receive ora submission event Feb 2, 2024
@BryanttV BryanttV changed the title feat: receive ora submission event feat: receive ora submission created event Feb 2, 2024
@BryanttV BryanttV force-pushed the bav/receive-ora-submission-event branch from 8388bd8 to 8d4abd7 Compare February 2, 2024 14:03
@BryanttV BryanttV force-pushed the bav/receive-ora-submission-event branch from d9fbac0 to e8270de Compare February 2, 2024 16:04
@BryanttV BryanttV marked this pull request as ready for review February 2, 2024 20:43
@BryanttV BryanttV requested a review from a team February 2, 2024 21:11
@BryanttV BryanttV force-pushed the bav/receive-ora-submission-event branch from d78e2a9 to ce5ff2a Compare February 5, 2024 17:50
@BryanttV BryanttV merged commit ee45ab8 into main Feb 6, 2024
5 checks passed
@mariajgrimaldi mariajgrimaldi deleted the bav/receive-ora-submission-event branch April 24, 2024 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants