CSC/ECE 517 Fall 2017/E1791. Track the time that students look at the other submissions - logging improvement: Difference between revisions
Line 12: | Line 12: | ||
=== Type of submitted files === | === Type of submitted files === | ||
For most of our tasks, there are two types of submitted files. | For most of our tasks, there are two types of submitted files. | ||
One kind is online links, such as github repo or pull request link, youtube video link, expertiza wiki page link, | |||
The other one includes files such as pdf, txt, doc, images, etc and other download contents. | 1. One kind is online links, such as github repo or pull request link, youtube video link, expertiza wiki page link, | ||
2. The other one includes files such as pdf, txt, doc, images, etc and other download contents. | |||
=== Database shcema design === | === Database shcema design === |
Revision as of 18:45, 7 November 2017
Introduction
The expertiza project takes advantage of peer-review among students to allow them to learn from each other. To track the review time that each student spend on each submitted resources is meaningful to instructors to study and improve the teach experience. However, the time tracking of specific content on these resources is not perfect in the expertiza system. The previous team working on E1705 project has solved part of such problems by tracking the active time of windows opened from the submitted links. But for the submitted files which could be downloaded for local review, there is only a rough approximation solution yet. In this project, our team is going to solve this problem as well as improving previous time tracking methods using mature third-party APIs to record link review time more accurately. To accomplish this goal, here are the tasks needed to be done:
- Design a database schema for logging the time a reviewer spend on a submission;
- Design and implement a solution that handles the use case, where students’ submissions are hosted on an external website using third-party APIs, e.g. gem: Octokit for Github use case;
- Modify Review report (views/review_mapping/_review_report.html.erb) to show the time spent on each submission.
Problem Description
Our team is going to solve the submission review time tracking by attempting to open the downloaded files inside popup windows of the web browser in order to record the time on the client side.
Type of submitted files
For most of our tasks, there are two types of submitted files.
1. One kind is online links, such as github repo or pull request link, youtube video link, expertiza wiki page link, 2. The other one includes files such as pdf, txt, doc, images, etc and other download contents.
Database shcema design
For this project, we need to design a database table to store all the time that we need to record for each review submission. We would like to name the table as review_time. For the table, we would use map_id in table response, which is response_map_id as the primary information. Then we need to record reviewer id and reviewee id, link for submitted files, as well as time start_at and end_at, then store them in the table.
Time tracking mechanism
For each review, when the reviewer click on one link of the submitted files, we create an entry to the table review_time, we will write a function to record current time to the database.
For how to determine time when the reviewer complete with the opened link, there are different cases. If the reviewer click on save or submit button, close the page, or logout, we need to write to all open entry (without end_at) respect to this review and save current time to end_at. But for how to decide when the review close the opened link is a little complicated. For github and youtube links, because they are external links, we need some to use third-party APIs such as gem: https://github.com/octokit/octokit.rb, such that we can record close time. For txt, pdf, doc, image files, we will open submitted files in views/response/_submitted_files.html.erb so that when the user click on the link, it opens a popup window that shows the submission, record time when it opens and closes. For the other files that need to be downloaded, we can only make an approximation by record the time when the reviewer click on the link until the time he/she enter the reviews.
View modification
After we record start_at and end_at time for each piece of review, we need to display time that each reviewer spent for each link. Because the reviewer may save the review and start again in the future, so for each link there might be several entries, we need to sum them together. We will try to modify code in review_mapping/_review_report.html.erb first to modify the view.