Clone
Bryan Holladay <holladay@vericite.com>
committed
3 years and 1 month ago
SAK-39967 Turnitin Core API Sakai integration (#5635)
* Turnitin OC Content Review Service implementation initial commit

* added getSubmiss… Show more
SAK-39967 Turnitin Core API Sakai integration (#5635)

* Turnitin OC Content Review Service implementation initial commit

* added getSubmissionID function

* fixing headers - removing colons

* changing content type back to binary

* second stage of turnitin submission process

* trying to check item status

* generating similarity report

* refactoring submission process

* adding delay function

* generating similarity reports

* TurnitinOC content review service implementation: adding custom assignment settings for the plagiarism service

* Code review

* generating similarity reports using HTTPURLConnection

* Adding documentation

* Error handling for getSubmissionStatus and more documentation

* refactoring accessUrl function, cleanup

* adding locale check and assignment settings

* fixing assignment settings json

* Adding BaseContentReviewService for EULA logic

* Updating getSubmissionStatus status logic

* Added getViewerUrl function

* added new locale logic to getViewerUrl function

* refactoring http calls

* using assignment settings instead of defaulting to true for internet and private

* Code review #2

* threading submission process - test

* Added session manager to fix threading permission error

* Adding getReviewExternalId in ContentReviewQueueService

* Adding getReviewUserId to ContentReviewQueueService

* Fixed getViewerUrl and cleaned logging

* Cleaned getContentReviewItemByContentId Override

* Adding EULA to content review service

* Added Option for content-review providers to decide whether they want to use redirect logic for the report URLs

* Added default file extensions if missing

* removed docx default, checking inline submission flag via AssignmentConstants

* Added required extension check to inline submissions

* Dynamically adding sakai version to version header

* Setting up Unit Test configruation

* Add error logic to report redirect urls

* Added checks on assignment creation to make sure required repo options are visible to user

* moved repo catch to avoid null assignments

* removed whitespace

* more whitespace takeouts

* Added UI and prop support for generate report Immeditately and at Due Date

* Implemented immediately and at due date generation report option to assignmentaction

* Accounting for genSpeed 2

* first iterations of placeholderitems

* Handle all report gen options in content review process

* Code Cleanup

* New report generation options working

* Reset getReportGenOptions to default to options available in original tii integration

* Additional null checks and added placeholder constants

* Added error++ if placeholder item is deleted due to null exception

* Content Review Webhook hook

* Removing redundant ServerConfigurationService for CompilatioReviewServiceImpl.java

* checking for existing webhooks, registering if none exist

* removing log statements

* .

* some refactoring

* using json array

* removing comments, some minor refactoring

* string comparison

* testing getting content item by external id

* get item by external id - tested, works

* moving removal of unused code to different branch because reasons

* same

* wrong file

* changing description and warning to match

* refactored drafts for pr

* unifying whitespace

* whitespace change

* fixed status logic

* whitespace change

* added pushAdvisor for draft access

* removed whitespace

* more whitespace

* removed trailing whitespace

* Adding automatic retry logic when report fails and a user views the report

* Adding draft indexing and deletion logic

* TIIP-885 Sakai TCA Integration: design review

* TIIP-879 Sakai TCA Integration: Implement EULA

* TIIP-878 Sakai TCA Integration: Make sure name is correctly displayed

* Adding help URL link to assignment settings

* TIIP-876 Sakai TCA Integration: Create a new index for ContentReviewItem table for externalId lookup

* Updating URL text for settings link

* Updating settings details url and viewer_user_id and metadata override for viewrer URL

* TIIP-917 Sakai TCA Integration: Implement restricted file types

* TIIP-883 Sakai TCA Integration: translate internationalized strings

* TIIP-913 Sakai TCA Integration: Implement TCA metadata

* Updating sakai.properties.default

* Updating pom.xml formatting and test scope

* PR updates and group assignment support for links

* Cleaning up Codacy issues

* Updating pom for SNAPSHOT-19

* Updating to 19-SNAPSHOT for tool

* Updating pom to remove scope for javax.servlet

* Updating vericite pom.xml to remove provided for javax.servlet

Show less

master + 9 more