CSC/ECE 517 Spring 2019 - Project E1931. Conflict notification: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
==Flaws with the existing Implementation==
==Flaws with the existing Implementation==


===No view to see the analyze the conflicts===
===No view to analyze the conflicts===
Currently whenever the conflict happens,a summary link is sent to the instructor which contains the score of all the views.
Currently whenever the conflict happens,a summary link is sent to the instructor which contains the score of all the views.



Revision as of 22:43, 12 April 2019

This wiki page is for the description of changes made under ECE517 SPRING 2019 PROJECT E1931 CONFLICT NOTIFICATIONS

Problem Statement

Current conflict notification sends an email to the instructor whenever two reviews for the same submission differ "significantly" on their scoring (the threshold is specified in the "Notification limit" on the Rubrics tab of assignment creation). Right now an email is sent at any such time one of these conflicts happen, however, it does not link to the particular review or submission which initiated the notification.

Existing Feature Description

Currently, this feature works as follows:

Whenever a new review is submitted, it is compared with the average of the previously submitted reviews. If the difference between the new submission and existing average is more than the threshold limit set, then a mail is sent to the instructor. With every review submitted for an assignment of a particular student, the average is updated.

Flaws with the existing Implementation

No view to analyze the conflicts

Currently whenever the conflict happens,a summary link is sent to the instructor which contains the score of all the views.

Incorrect email message links

The existing email body uses hardcoded URLs mentioned in models/response.rb file in the method notify_instructor_on_difference. Being hardcoded, these links wouldn't work on other servers where Expertiza is running. For Example, if the setup is done on localhost, the links will not be functional.



  • Conflicting Review which triggered the mail
  • Summary of all the reviews

What needs to be done

The scope of this project is to send an email notification to instructor which contains links to two reviews. One of which is the newly submitted review that differs by more than the notification limit where such a conflict has occurred. The email should state that a new conflicting review has been made.

Implementation

  • Problem - Inefficient calculation of conflicts:

Solution: Instead of relying on the average, we will iterate through all previous submissions and will check conflict comparing them with the latest review. This logic will be implemented in the separate model.

  • Problem - Incorrect email message links:

Solution: Hardcoded URLs will be managed by the config file in order to make these links functional on every server running Expertiza

  • Problem - No separate view exist to show conflicts:

Solution: Separate view will be created to address this issue.

Files to be changed in this Project

Test Plan

To test code implementation and correctness of the modified feature, we plan to do the following tests:-

  • Run and pass existing RSpec Tests
  • Develop New RSpec Tests for the new code
  • UI testing on the deployed project

Rspec Testing

[to be populated after coding is complete]

UI Testing

[to be populated after coding is complete]

References

Team

Abhishek Arya
Bhargav Deshpande
Ramandeep Kaur
Udita Chattopadhyay