<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Czhou6</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Czhou6"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Czhou6"/>
	<updated>2026-08-07T17:47:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=137762</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=137762"/>
		<updated>2020-11-23T21:59:32Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Design Flowchart */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
   http://152.7.98.249:8080/&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/MayoNaizz/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
    https://github.com/expertiza/expertiza/pull/1834&lt;br /&gt;
* Youtube Video Link:&lt;br /&gt;
    https://youtu.be/FyBfWrdX5Dk&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Edited ===&lt;br /&gt;
'''Controller: '''  &lt;br /&gt;
   app/controllers/response_controller.rb&lt;br /&gt;
'''Model: '''&lt;br /&gt;
   app/models/review_response_map.rb&lt;br /&gt;
   app/models/response_map.rb&lt;br /&gt;
'''View:'''&lt;br /&gt;
   app/views/student_review/_responses.html.erb&lt;br /&gt;
   app/views/shared/responses/_response_actions.html.erb&lt;br /&gt;
   app/views/grades/view_team.html.erb&lt;br /&gt;
   app/views/grades/_add_icon_to_name.html.erb&lt;br /&gt;
   app/views/assignments/list_submissions.html.erb&lt;br /&gt;
   app/views/assignments/_responses.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design Flowchart ==&lt;br /&gt;
&lt;br /&gt;
*Functions that were included&lt;br /&gt;
[[File:Fc.png]]&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
* We will add the review link in &amp;lt;code&amp;gt;views/assignments/list_submissions.html.erb&amp;lt;/code&amp;gt; and once instructor/TA click that link. Controller &amp;lt;code&amp;gt; response &amp;lt;/code&amp;gt; will be called. Once the &amp;lt;code&amp;gt; get_current_stage() &amp;lt;/code&amp;gt; change to &amp;quot;Finished&amp;quot; it means the due day of the review round is over. The review link will be replaced by the grade link. &lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
*We will add an icon in &amp;lt;code&amp;gt;views/grades/view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;app/views/response/view.html.erb&amp;lt;/code&amp;gt; if these review is made by instructor or TA.&lt;br /&gt;
This function will be implemented in &amp;lt;code&amp;gt; helpers/grades_helper.rb &amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
=== Step 1:  create a review link for staff(TA/Instructor) ===&lt;br /&gt;
We create a link &amp;quot;Begin review&amp;quot; in '''list_submissions.html.erb''' in order to let staff(TA/Instructor) perform review before the review deadline. And if the current stage becomes &amp;quot;Finished&amp;quot;, we show the &amp;quot;Assign Grade&amp;quot; link. We use function '''current_user_is_assignment_participant''' to check if the current user have access to perform review. If the current user does not have the access to this assignment. No link will be shown.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This is what it looks like.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:E2086 begin review.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Step 2:  refactor the view part of the review ===&lt;br /&gt;
first, we found some code in the '''student_review/_responses''' should not show here. The purpose of the code from line 5 to line 12 is to find team members. This action relates to response_map. So we created a function called &amp;quot;find_team_member&amp;quot; and moved the code into '''response_map'''.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step2 1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step2 2.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Second, we found it is better to use '''unless''' instead of using ''' if ! ''' in ruby on rails. So we fixed this small issue.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step2 3.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
Third, we found that the student review and the staff review have a lot of common code. So we refactor the '''student_review/_responses''' and let student review and staff review share one common template. We created a symbol variable ''':reviewer_role''' in order to identify the role of performing review. The shared template locates in app/view/shared/responses folder.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step2 4.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Step 3:  create shared view for response_action ===&lt;br /&gt;
In this file, student review and staff review share one template. We use '''reviewer_role''' to identify the role of the reviewer and render the different views for this reviewer. The page will show different review action base on the current stage and if the review did this review before (For example: if the current stage Finished and no previous review, the page will show &amp;quot;Begin review&amp;quot;).&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step2 5.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Step 4:  refactor response controller ===&lt;br /&gt;
Before modification, the normal review could only be done by students. When the student finished the review and clicked “Submit”, the page seemed to redirect from the students' review. Since we newly added staff to review, the location of redirect should also be modified accordingly.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step4.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
=== Step 5: Allow students to identify that their submission has been reviewed by staff ===&lt;br /&gt;
A simple check is made to determine if the reviewer is a TA or Instructor. app/assets/images/staff.png is displayed to make an instructor performed review stand out from other reviews.&lt;br /&gt;
First, in order to determine if a review was completed by a staff participant (either a TA or an instructor), we create a function in app/models/review_response_map.rb.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step5 1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
If the mouse hovers over the icon a tooltip appears saying &amp;quot;Icon indicates this review was done by course staff&amp;quot;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step icon.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Step6.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
The basic idea of this project is to change the 'Assign Grade' link to 'Perform review' if the deadline of a assignment has not passed. Thus, to test the functionality of this part, we plan to test it at the frontend &lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add a new assignment for a course that the current account has registered. Make sure the due date of the assignment is after the the time to perform the review as an instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Add participants' icon in the new created assignment row, and 'Copy participants from course' to add all students registered to this course. Then add the current instructor account to this assignment through 'Enter a user login:' input space.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate as one of the students to simulate the submission of work.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Perform review ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page as instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'View submission' icon in the new created assignment row. Now the 'Begin review' link show be under participants name if the due date has not passed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click one of the 'Begin review' link to do the review for a certain submission by using the same templet of student peer review.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate the student that was previously reviewed by instructor. Check score for the assignment, and the review from the instructor should be recognizable from other student reviews.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/features/instructor_do_review_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases ==&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:E2086rspec.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
All Rspec tests are passing for this implementation as is evident by the Travis CI.&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File:Travis-pass.png]]&lt;br /&gt;
&lt;br /&gt;
== Demo ==&lt;br /&gt;
The video [https://youtu.be/FyBfWrdX5Dk] demonstrates the functionalities implemented in this project.&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Fc.png&amp;diff=137761</id>
		<title>File:Fc.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Fc.png&amp;diff=137761"/>
		<updated>2020-11-23T21:59:17Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136761</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136761"/>
		<updated>2020-11-13T05:05:44Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Project Index */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/MayoNaizz/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Youtube Video Link:&lt;br /&gt;
    https://youtu.be/FyBfWrdX5Dk&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design Flowchart ==&lt;br /&gt;
*When creating the assignment, the instructor should get a checkbox option asking whether allow the instructor to review all submissions as shown below.&lt;br /&gt;
[[File:E2086 flowchart1.png]]&lt;br /&gt;
&lt;br /&gt;
*Functions that were included&lt;br /&gt;
[[File:E2086 flowchart2.png]]&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
* We will add the review link in &amp;lt;code&amp;gt;views/assignments/list_submissions.html.erb&amp;lt;/code&amp;gt; and once instructor/TA click that link. Controller &amp;lt;code&amp;gt; response &amp;lt;/code&amp;gt; will be called. Once the &amp;lt;code&amp;gt; get_current_stage() &amp;lt;/code&amp;gt; change to &amp;quot;Finished&amp;quot; it means the due day of the review round is over. The review link will be replaced by the grade link. &lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
*We will add an icon in &amp;lt;code&amp;gt;views/grades/view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;app/views/response/view.html.erb&amp;lt;/code&amp;gt; if these review is made by instructor or TA.&lt;br /&gt;
This function will be implemented in &amp;lt;code&amp;gt; helpers/grades_helper.rb &amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
The basic idea of this project is to change the 'Assign Grade' link to 'Perform review' if the deadline of a assignment has not passed. Thus, to test the functionality of this part, we plan to test it at the frontend &lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add a new assignment for a course that the current account has registered. Make sure the due date of the assignment is after the the time to perform the review as an instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Add participants' icon in the new created assignment row, and 'Copy participants from course' to add all students registered to this course. Then add the current instructor account to this assignment through 'Enter a user login:' input space.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate as one of the students to simulate the submission of work.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Perform review ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page as instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'View submission' icon in the new created assignment row. Now the 'Perform review' link show be under participants name if the due date has not passed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click one of the 'Perform review' link to do the review for a certain submission by using the same templet of student peer review.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate the student that was previously reviewed by instructor. Check score for the assignment, and the review from the instructor should be recognizable from other student reviews.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136587</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136587"/>
		<updated>2020-10-29T17:08:26Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Plan of Work */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/MayoNaizz/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design Flowchart ==&lt;br /&gt;
*When creating the assignment, the instructor should get a checkbox option asking whether allow the instructor to review all submissions as shown below.&lt;br /&gt;
[[File:E2086 flowchart1.png]]&lt;br /&gt;
&lt;br /&gt;
*Functions that were included&lt;br /&gt;
[[File:E2086 flowchart2.png]]&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
* We will add the review link in &amp;lt;code&amp;gt;views/assignments/list_submissions.html.erb&amp;lt;/code&amp;gt; and once instructor/TA click that link. Controller &amp;lt;code&amp;gt; response &amp;lt;/code&amp;gt; will be called. Once the &amp;lt;code&amp;gt; get_current_stage() &amp;lt;/code&amp;gt; change to &amp;quot;Finished&amp;quot; it means the due day of the review round is over. The review link will be replaced by the grade link. &lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
*We will add an icon in &amp;lt;code&amp;gt;views/grades/view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;app/views/response/view.html.erb&amp;lt;/code&amp;gt; if these review is made by instructor or TA.&lt;br /&gt;
This function will be implemented in &amp;lt;code&amp;gt; helpers/grades_helper.rb &amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
The basic idea of this project is to change the 'Assign Grade' link to 'Perform review' if the deadline of a assignment has not passed. Thus, to test the functionality of this part, we plan to test it at the frontend &lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add a new assignment for a course that the current account has registered. Make sure the due date of the assignment is after the the time to perform the review as an instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Add participants' icon in the new created assignment row, and 'Copy participants from course' to add all students registered to this course. Then add the current instructor account to this assignment through 'Enter a user login:' input space.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate as one of the students to simulate the submission of work.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Perform review ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page as instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'View submission' icon in the new created assignment row. Now the 'Perform review' link show be under participants name if the due date has not passed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click one of the 'Perform review' link to do the review for a certain submission by using the same templet of student peer review.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate the student that was previously reviewed by instructor. Check score for the assignment, and the review from the instructor should be recognizable from other student reviews.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136586</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136586"/>
		<updated>2020-10-29T17:08:00Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Design Flowchart */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/MayoNaizz/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design Flowchart ==&lt;br /&gt;
*When creating the assignment, the instructor should get a checkbox option asking whether allow the instructor to review all submissions as shown below.&lt;br /&gt;
[[File:E2086 flowchart1.png]]&lt;br /&gt;
&lt;br /&gt;
*Functions that were included&lt;br /&gt;
[[File:E2086 flowchart2.png]]&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
* We will add the review link in &amp;lt;code&amp;gt;views/assignments/list_submissions.html.erb&amp;lt;/code&amp;gt; and once instructor/TA click that link. Controller &amp;lt;code&amp;gt; response &amp;lt;/code&amp;gt; will be called. Once the &amp;lt;code&amp;gt; get_current_stage() &amp;lt;/code&amp;gt; change to &amp;quot;Finished&amp;quot; it means the due day of the review round is over. The review link will be replaced by the grade link. This link will also be added in &amp;lt;code&amp;gt;views/assignments/list_submissions.html.erb &amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
*We will add an icon in &amp;lt;code&amp;gt;views/grades/view_team.html.erb&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;app/views/response/view.html.erb&amp;lt;/code&amp;gt; if these review is made by instructor or TA.&lt;br /&gt;
This function will be implemented in &amp;lt;code&amp;gt; helpers/grades_helper.rb &amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
The basic idea of this project is to change the 'Assign Grade' link to 'Perform review' if the deadline of a assignment has not passed. Thus, to test the functionality of this part, we plan to test it at the frontend &lt;br /&gt;
&lt;br /&gt;
=== Configuration ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Add a new assignment for a course that the current account has registered. Make sure the due date of the assignment is after the the time to perform the review as an instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Add participants' icon in the new created assignment row, and 'Copy participants from course' to add all students registered to this course. Then add the current instructor account to this assignment through 'Enter a user login:' input space.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate as one of the students to simulate the submission of work.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Perform review ===&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'Manage' -&amp;gt; 'Assignments' to go to assignment page as instructor.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click 'View submission' icon in the new created assignment row. Now the 'Perform review' link show be under participants name if the due date has not passed.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Click one of the 'Perform review' link to do the review for a certain submission by using the same templet of student peer review.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt; Impersonate the student that was previously reviewed by instructor. Check score for the assignment, and the review from the instructor should be recognizable from other student reviews.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136136</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136136"/>
		<updated>2020-10-23T01:01:45Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Running Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/joeyzhou826/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design Flowchart ==&lt;br /&gt;
*When creating the assignment, the instructor should get a checkbox option asking whether allow the instructor to review all submissions as shown below.&lt;br /&gt;
[[File:E2086 flowchart1.png]]&lt;br /&gt;
&lt;br /&gt;
*Ideal Process of this function&lt;br /&gt;
[[File:E2086 flowchart2.png]]&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136083</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136083"/>
		<updated>2020-10-22T21:14:44Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Project Design Philosophy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/joeyzhou826/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design Flowchart ==&lt;br /&gt;
*When creating the assignment, the instructor should get a checkbox option asking whether allow the instructor to review all submissions as shown below.&lt;br /&gt;
[[File:E2086 flowchart1.png]]&lt;br /&gt;
&lt;br /&gt;
*Ideal Process of this function&lt;br /&gt;
[[File:E2086 flowchart2.png]]&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136082</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136082"/>
		<updated>2020-10-22T21:11:54Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Project Design Philosophy */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/joeyzhou826/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:E2086 flowchart1.png]]&lt;br /&gt;
[[File:E2086 flowchart2.png]]&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_flowchart2.png&amp;diff=136081</id>
		<title>File:E2086 flowchart2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_flowchart2.png&amp;diff=136081"/>
		<updated>2020-10-22T21:11:46Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_flowchart1.png&amp;diff=136080</id>
		<title>File:E2086 flowchart1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_flowchart1.png&amp;diff=136080"/>
		<updated>2020-10-22T21:11:13Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136078</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136078"/>
		<updated>2020-10-22T20:51:31Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Issues need to be fixed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/joeyzhou826/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Plan of Work ===&lt;br /&gt;
*In the assignment page of the Expertiza, If an instructor or a TA is a participant in an assignment, then the instructor should be able to review any team that has submitted the assignment.&lt;br /&gt;
*In order to see who is participating in the assignment, click on the “Add participants” icon (the one with the + sign and a picture of a person).  That will bring up a list of participants and allow you to add more participants.  &lt;br /&gt;
*Make the instructor and/or TAs participants, and then they should be allowed to do reviews.&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*Then, to perform reviews, the instructor/TA would click on the clipboard-like “View submissions” icon, as shown below.&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
*A list of submissions would be pulled up:&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
*If the last due date for the assignment has not passed, then the “Assign grade” link should be changed to “Perform review”, and when clicked on, it should pull up a review page for the team, showing their submitted work at the top, as a review page normally does.&lt;br /&gt;
&lt;br /&gt;
*Also, it would be more clear if we could mark the instructor's review with something special on the reviews page, as shown below.&lt;br /&gt;
[[File:E2086 review.png|700px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_review.png&amp;diff=136077</id>
		<title>File:E2086 review.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_review.png&amp;diff=136077"/>
		<updated>2020-10-22T20:51:15Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136076</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136076"/>
		<updated>2020-10-22T20:45:46Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Issues need to be fixed */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/joeyzhou826/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Issues need to be fixed ===&lt;br /&gt;
[[File:E2086 assignment.png|900px]]&lt;br /&gt;
[[File:E2086 view submission.png|900px]]&lt;br /&gt;
[[File:E2086 submission.png|900px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136075</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=136075"/>
		<updated>2020-10-22T20:45:26Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Issue */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
    https://github.com/joeyzhou826/expertiza&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link:&lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Why This Project ===&lt;br /&gt;
&lt;br /&gt;
Peer review is a great way for students to learn about how well they have developed their application. However, sometimes, the peer reviews may not be thorough and the team/person's work reviewed might not reflect the actual status of the development. By letting course staff perform reviews as well, the reviewer and the reviewee both benefit, improving the overall learning experience. Currently, there exists no method for the instructor/TA to perform reviews of assignments submitted by the students. Hence this is what this project aims at, allowing instructor/TA to perform reviews.&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li(zli82)&lt;br /&gt;
* Hao Zhang (hzhang62)&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy ==&lt;br /&gt;
Our project aims at enabling the instructor/TA to review the submissions using the same form that a student uses while peer-reviewing. For this, our implementation has been divided into 3 parts, and can be described as follows:&lt;br /&gt;
&amp;lt;ol&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The first part involves the primary functionality of letting the staff perform a review on students submission.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;The second part involves allowing the students to identify from their end, which review has been performed by an instructor/TA. This will help students improve their project as the opinions presented by a staff member would be valid.&amp;lt;/li&amp;gt;  &lt;br /&gt;
&amp;lt;li&amp;gt;Third, we plan to enable the instructor/TA to do review instead of assign grade in the review round. After the review Round, the review review session will be closed and replaced with assigning grade interface&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ol&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Issues need to be fixed ===&lt;br /&gt;
[[File:E2086 assignment.png|1200px]]&lt;br /&gt;
[[File:E2086 view submission.png|1200px]]&lt;br /&gt;
[[File:E2086 submission.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_view_submission.png&amp;diff=136074</id>
		<title>File:E2086 view submission.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_view_submission.png&amp;diff=136074"/>
		<updated>2020-10-22T20:45:13Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_assignment.png&amp;diff=136073</id>
		<title>File:E2086 assignment.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_assignment.png&amp;diff=136073"/>
		<updated>2020-10-22T20:44:49Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_submission.png&amp;diff=136072</id>
		<title>File:E2086 submission.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2086_submission.png&amp;diff=136072"/>
		<updated>2020-10-22T20:43:53Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135515</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135515"/>
		<updated>2020-10-19T19:35:17Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Index ==&lt;br /&gt;
* Deployment Link: &lt;br /&gt;
&lt;br /&gt;
* Github Repository: &lt;br /&gt;
&lt;br /&gt;
* Github Pull Request: &lt;br /&gt;
&lt;br /&gt;
* Video Link: &lt;br /&gt;
&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li&lt;br /&gt;
* Hao Zhang&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135514</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135514"/>
		<updated>2020-10-19T19:33:08Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li&lt;br /&gt;
* Hao Zhang&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
=== Previous Implementation ===&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring. &lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135513</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135513"/>
		<updated>2020-10-19T19:30:43Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li&lt;br /&gt;
* Hao Zhang&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring.&lt;br /&gt;
&lt;br /&gt;
== Reference &amp;amp; Links ==&lt;br /&gt;
&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135512</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135512"/>
		<updated>2020-10-19T19:30:16Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Project Background */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
for more information about this project, please visit [https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li&lt;br /&gt;
* Hao Zhang&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring.&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135511</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135511"/>
		<updated>2020-10-19T19:29:33Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Recommandation from mentor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li&lt;br /&gt;
* Hao Zhang&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring.&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135510</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135510"/>
		<updated>2020-10-19T19:28:55Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Project Background */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
&lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li&lt;br /&gt;
* Hao Zhang&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring.&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135509</id>
		<title>CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2086._Let_course_staff_as_well_as_students_do_reviews&amp;diff=135509"/>
		<updated>2020-10-19T19:28:20Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: Created page with &amp;quot; == Project Background ==  * Expertiza Project - E2086 : Let course staff as well as students do reviews *  === Primary Goal of this Project===  This project aims to allow ins...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
* Expertiza Project - E2086 : Let course staff as well as students do reviews&lt;br /&gt;
* &lt;br /&gt;
=== Primary Goal of this Project===&lt;br /&gt;
&lt;br /&gt;
This project aims to allow instructors to submit reviews of student work, using the same review form that students use to do reviews&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
list_submissions.html.erb&lt;br /&gt;
&lt;br /&gt;
_calibration_report.html.erb&lt;br /&gt;
&lt;br /&gt;
response.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Zhuolin Li&lt;br /&gt;
* Hao Zhang&lt;br /&gt;
&lt;br /&gt;
== Project Design Philosophy == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1qphGGe8imRNufw2EhTZRqgs-I6XiQX74_I3UiwpPs5M/edit# Project Lists]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Previous Implementation ==&lt;br /&gt;
This project was done by Team E1985 on Fall 2019 with the following work:&lt;br /&gt;
&lt;br /&gt;
Expertiza wiki: http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1985._Let_course_staff_and_students_do_reviews&lt;br /&gt;
&lt;br /&gt;
Github Pull Request: https://github.com/expertiza/expertiza/pull/1631&lt;br /&gt;
&lt;br /&gt;
Github repository: https://github.com/Matrawick/expertiza&lt;br /&gt;
&lt;br /&gt;
Youtube screencast: https://youtu.be/kLfZ22vlu30&lt;br /&gt;
&lt;br /&gt;
=== Comments From Mentor ===&lt;br /&gt;
* Code for testing whether a reviewer is a staff member is put into an unrelated class (same method already exists elsewhere in system).&lt;br /&gt;
&lt;br /&gt;
* There is a long code clone because the process of creating a mapping and a review is not quite the same as when the reviewer is a non-instructor; a lot of checks needed in that case are not needed here.  But the current code should have been refactored to put the common code into another method.&lt;br /&gt;
&lt;br /&gt;
* One test has been removed because it broke the build, &amp;amp; was evid. unrelated to their functionality.&lt;br /&gt;
&lt;br /&gt;
* The commit was too messy; if this had been merged, it would have required refactoring.&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135508</id>
		<title>CSC/ECE 517 Fall 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135508"/>
		<updated>2020-10-19T19:16:23Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Final Project Design Documents */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Writing Assignments ==&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2070. Refactor response_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2068. Refactor quiz_questionnaires_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2062. Add test cases to review_mapping_helper.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2063. Refactor tree-display.js and tree_display_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2064. Refactor reputation_web_service_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2065. Fix view in student_task/list page]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2066. Refactor lottery controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2067. Refactor student_teams_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2073. Refactor course_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2057. Restrict TAs’ ability to change their own grade and limit file-size upload]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2056 Account_Request_Controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2059. Email notification to reviewers and instructors.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2058. Two issues related to assignment management]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2071. Improve assessment360_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2054. Auto generate submission directory names based on assignment names]]&lt;br /&gt;
&lt;br /&gt;
== Final Project Design Documents == &lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2078. Improve self-review  Link peer review &amp;amp; self-review to derive grades]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2086. Let course staff as well as students do reviews]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135420</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135420"/>
		<updated>2020-10-19T03:18:01Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Since most of the method involved in our project is private methods and all of the public methods in response controller were already tested.&lt;br /&gt;
&lt;br /&gt;
Thus, we will focus on testing methods we created in the model class: response.rb&lt;br /&gt;
&lt;br /&gt;
spec/models/response_spec.rb will be edit in order to test our methods&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method shows the result of expert review for reviewer after teacher or TA submit the calibration by editing the assignment.&lt;br /&gt;
* The method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
*This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed. If it has not, then the reviewer can edit his/her previous review. If there has been an update, then the reviewer gets a new review form to “update” the review.&lt;br /&gt;
*So we break the new method into two methods: new and get_most_recent_response and put the logic into the response controller class.&lt;br /&gt;
*The method get_most_recent_response in the model class tests whether there has been a review since the last file or link was submitted and in the controller this method was called to get the newest response.&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The new method after refactoring, now the code is quite clear and with only one appearance of variable &amp;quot;@response&amp;quot;&lt;br /&gt;
[[File:E2070 new method.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response in the webpage====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rspec Test Cases == &lt;br /&gt;
Most of the method involved in our project is private methods and all of the public methods in response controller were already tested.&lt;br /&gt;
&lt;br /&gt;
Thus, we will focus on testing methods we created in the model class: response.rb&lt;br /&gt;
&lt;br /&gt;
spec/models/response_spec.rb will be edit in order to test our refactored methods&lt;br /&gt;
&lt;br /&gt;
[[File:Rspec test.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Rspec_test.png&amp;diff=135419</id>
		<title>File:Rspec test.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Rspec_test.png&amp;diff=135419"/>
		<updated>2020-10-19T03:15:04Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: Czhou6 uploaded a new version of File:Rspec test.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135417</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135417"/>
		<updated>2020-10-19T03:13:18Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Since most of the method involved in our project is private methods and all of the public methods in response controller were already tested.&lt;br /&gt;
&lt;br /&gt;
Thus, we will focus on testing methods we created in the model class: response.rb&lt;br /&gt;
&lt;br /&gt;
spec/models/response_spec.rb will be edit in order to test our methods&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method shows the result of expert review for reviewer after teacher or TA submit the calibration by editing the assignment.&lt;br /&gt;
* The method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
*This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed. If it has not, then the reviewer can edit his/her previous review. If there has been an update, then the reviewer gets a new review form to “update” the review.&lt;br /&gt;
*So we break the new method into two methods: new and get_most_recent_response and put the logic into the response controller class.&lt;br /&gt;
*The method get_most_recent_response in the model class tests whether there has been a review since the last file or link was submitted and in the controller this method was called to get the newest response.&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The new method after refactoring, now the code is quite clear and with only one appearance of variable &amp;quot;@response&amp;quot;&lt;br /&gt;
[[File:E2070 new method.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response in the webpage====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135415</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135415"/>
		<updated>2020-10-19T03:11:51Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Since most of the method involved in our project is private methods and all of the public methods in response controller were already tested.&lt;br /&gt;
&lt;br /&gt;
Thus, we will focus on testing methods we created in the model class: response.rb&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method shows the result of expert review for reviewer after teacher or TA submit the calibration by editing the assignment.&lt;br /&gt;
* The method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
*This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed. If it has not, then the reviewer can edit his/her previous review. If there has been an update, then the reviewer gets a new review form to “update” the review.&lt;br /&gt;
*So we break the new method into two methods: new and get_most_recent_response and put the logic into the response controller class.&lt;br /&gt;
*The method get_most_recent_response in the model class tests whether there has been a review since the last file or link was submitted and in the controller this method was called to get the newest response.&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The new method after refactoring, now the code is quite clear and with only one appearance of variable &amp;quot;@response&amp;quot;&lt;br /&gt;
[[File:E2070 new method.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response in the webpage====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135397</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135397"/>
		<updated>2020-10-19T02:29:24Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Running Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
For this project, &lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method shows the result of expert review for reviewer after teacher or TA submit the calibration by editing the assignment.&lt;br /&gt;
* The method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
*This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed. If it has not, then the reviewer can edit his/her previous review. If there has been an update, then the reviewer gets a new review form to “update” the review.&lt;br /&gt;
*So we break the new method into two methods: new and get_most_recent_response and put the logic into the response controller class.&lt;br /&gt;
*The method get_most_recent_response in the model class tests whether there has been a review since the last file or link was submitted and in the controller this method was called to get the newest response.&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The new method after refactoring, now the code is quite clear and with only one appearance of variable &amp;quot;@response&amp;quot;&lt;br /&gt;
[[File:E2070 new method.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response in the webpage====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135377</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135377"/>
		<updated>2020-10-19T00:50:35Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Running Tests ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  rspec spec/controllers/response_controller_spec.rb&lt;br /&gt;
  rspec spec/models/response_spec.rb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
For this project, &lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method shows the result of expert review for reviewer after teacher or TA submit the calibration by editing the assignment.&lt;br /&gt;
* The method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
*This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed. If it has not, then the reviewer can edit his/her previous review. If there has been an update, then the reviewer gets a new review form to “update” the review.&lt;br /&gt;
*So we break the new method into two methods: new and get_most_recent_response and put the logic into the response controller class.&lt;br /&gt;
*The method get_most_recent_response in the model class tests whether there has been a review since the last file or link was submitted and in the controller this method was called to get the newest response.&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The new method after refactoring, now the code is quite clear and with only one appearance of variable &amp;quot;@response&amp;quot;&lt;br /&gt;
[[File:E2070 new method.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response in the webpage====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135213</id>
		<title>CSC/ECE 517 Fall 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135213"/>
		<updated>2020-10-16T00:54:55Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Dummy URL]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2070. Refactor response_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2068. Refactor quiz_questionnaires_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2062. Add test cases to review_mapping_helper.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2063. Refactor tree-display.js and tree_display_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2064. Refactor reputation_web_service_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2065. Fix view in student_task/list page]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2066. Refactor lottery controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2067. Refactor student_teams_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2073. Refactor course_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2057. Restrict TAs’ ability to change their own grade and limit file-size upload]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2056 Account_Request_Controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2059. Email notification to reviewers and instructors.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2058. Two issues related to assignment management]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2071. Improve assessment360_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2054. Auto generate submission directory names based on assignment names]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135212</id>
		<title>CSC/ECE 517 Fall 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135212"/>
		<updated>2020-10-16T00:54:05Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Dummy URL]]&lt;br /&gt;
* [[CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2068. Refactor quiz_questionnaires_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2062. Add test cases to review_mapping_helper.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2063. Refactor tree-display.js and tree_display_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2064. Refactor reputation_web_service_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2065. Fix view in student_task/list page]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2066. Refactor lottery controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2067. Refactor student_teams_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2073. Refactor course_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2057. Restrict TAs’ ability to change their own grade and limit file-size upload]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2056 Account_Request_Controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2059. Email notification to reviewers and instructors.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2058. Two issues related to assignment management]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2071. Improve assessment360_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2054. Auto generate submission directory names based on assignment names]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135211</id>
		<title>CSC/ECE 517 Fall 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020&amp;diff=135211"/>
		<updated>2020-10-16T00:53:45Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[Dummy URL]]&lt;br /&gt;
* [[ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2068. Refactor quiz_questionnaires_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2062. Add test cases to review_mapping_helper.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2063. Refactor tree-display.js and tree_display_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2064. Refactor reputation_web_service_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2065. Fix view in student_task/list page]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2066. Refactor lottery controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2067. Refactor student_teams_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2073. Refactor course_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2057. Restrict TAs’ ability to change their own grade and limit file-size upload]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2052. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2056 Account_Request_Controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2059. Email notification to reviewers and instructors.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2058. Two issues related to assignment management]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2071. Improve assessment360_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2020 - E2054. Auto generate submission directory names based on assignment names]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135208</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135208"/>
		<updated>2020-10-14T16:24:39Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* METHOD: def new */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
*This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed. If it has not, then the reviewer can edit his/her previous review. If there has been an update, then the reviewer gets a new review form to “update” the review.&lt;br /&gt;
*So we break the new method into two methods: new and get_most_recent_response and put the logic into the response controller class.&lt;br /&gt;
*The method get_most_recent_response in the model class tests whether there has been a review since the last file or link was submitted and in the controller this method was called to get the newest response.&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The new method after refactoring, now the code is quite clear and with only one appearance of variable &amp;quot;@response&amp;quot;&lt;br /&gt;
[[File:E2070 new method.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response in the webpage====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135207</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135207"/>
		<updated>2020-10-14T16:20:47Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* METHOD: def new */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
* We break the new method into two methods and put the logic into the response controller class.&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The new method after refactoring, now the code is quite clear and with only one appearance of variable &amp;quot;@response&amp;quot;&lt;br /&gt;
[[File:E2070 new method.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response in the webpage====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_new_method.png&amp;diff=135206</id>
		<title>File:E2070 new method.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_new_method.png&amp;diff=135206"/>
		<updated>2020-10-14T16:18:32Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135205</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135205"/>
		<updated>2020-10-14T16:17:16Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* METHOD: def show_calibration_results_for_student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
* This method makes about five database accesses and the code is quite messy and thus break it into 2 methods with the business logic moved to response.rb would be a good way to make the code in controller cleaner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
* The method get_questions_from_assignment is the part that's inside the model class and contains logic of mapping reviews with assignments in the questionnaire and return questions in the joined table&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135204</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=135204"/>
		<updated>2020-10-14T16:08:33Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* Refactor &amp;amp; Code Modification */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
&lt;br /&gt;
*the instance variables are actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactoring method name to assign_action_parameters would be better to understand what this method is trying to do.&lt;br /&gt;
*This method is a private helper method and is used in new and edit methods to set the action parameters for the new and edit actions&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
*After renaming, the method became more clear of what it's doing&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 action parameters.png]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
&lt;br /&gt;
*This method was already defined in other classes and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is false, which means that the object was triggered by an existing response. In the method set_questionnaire, the line of code that “@questionnaire = @response.questionnaire_by_answer(answer)”, which is looking up the questionnaire answered by this existing response. Therefore, refactoring the method name to find_quesetionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
*In the method set_content in response_controller.rb, there is one line of code that &amp;quot;new_response ? set_questionnaire_for_new_response : set_questionnaire&amp;quot;. Thus, we can tell the method set_qustionnaire will called when new_response is true, which means that the object was triggered by a new response. In the set_questionnaire_for_new_response method, the &amp;quot;cast&amp;quot; statement informs us that the new questionnaire are created based on the types or Reviewers, such as Review, Metareview, Teammate Review and so on. Therefore, refactoring the set_questionnaire_for_new_response method to create_new_questionnaire would be better to understand. &lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_action_parameters.png&amp;diff=135203</id>
		<title>File:E2070 action parameters.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_action_parameters.png&amp;diff=135203"/>
		<updated>2020-10-14T16:03:35Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134914</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134914"/>
		<updated>2020-10-13T16:11:46Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
*After inspection of the code, the instance variable is actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactor method name to assign_action_parameter would be better to understand.&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
*After inspection of the code, this method was already defined in other class and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire First version===&lt;br /&gt;
[[File:E2070 set questionnaire 1.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 2.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 3.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire Second version===&lt;br /&gt;
[[File:E2070 set questionnaire.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
[[File:E2070 set questionnaire for new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
====Create new response====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_set_questionnaire_for_new.png&amp;diff=134913</id>
		<title>File:E2070 set questionnaire for new.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_set_questionnaire_for_new.png&amp;diff=134913"/>
		<updated>2020-10-13T16:10:45Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_set_questionnaire.png&amp;diff=134912</id>
		<title>File:E2070 set questionnaire.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_set_questionnaire.png&amp;diff=134912"/>
		<updated>2020-10-13T16:09:18Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134865</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134865"/>
		<updated>2020-10-13T14:40:24Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: /* METHOD: def new */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
*After inspection of the code, the instance variable is actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactor method name to assign_action_parameter would be better to understand.&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
*After inspection of the code, this method was already defined in other class and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire ===&lt;br /&gt;
[[File:E2070 set questionnaire 1.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 2.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 3.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;br /&gt;
[[File:E2070 new.png|1200px]]&lt;br /&gt;
====Create new response====&lt;br /&gt;
[[File:E2070 request a new review.png|900px]]&lt;br /&gt;
====After NEW action====&lt;br /&gt;
[[File:E2070 new method called to generate new response.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_new.png&amp;diff=134864</id>
		<title>File:E2070 new.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_new.png&amp;diff=134864"/>
		<updated>2020-10-13T14:39:19Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_new_method_called_to_generate_new_response.png&amp;diff=134861</id>
		<title>File:E2070 new method called to generate new response.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_new_method_called_to_generate_new_response.png&amp;diff=134861"/>
		<updated>2020-10-13T14:31:43Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_request_a_new_review.png&amp;diff=134860</id>
		<title>File:E2070 request a new review.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_request_a_new_review.png&amp;diff=134860"/>
		<updated>2020-10-13T14:31:19Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134780</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134780"/>
		<updated>2020-10-13T00:46:42Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def assign_instance_vars ===&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
*After inspection of the code, the instance variable is actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactor method name to assign_action_parameter would be better to understand.&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
=== METHOD: def scores ===&lt;br /&gt;
*After inspection of the code, this method was already defined in other class and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire ===&lt;br /&gt;
[[File:E2070 set questionnaire 1.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 2.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 3.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
===METHOD: def set_questionnaire_for_new_response===&lt;br /&gt;
&lt;br /&gt;
===METHOD: def show_calibration_results_for_student ===&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===METHOD: def new ===&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134779</id>
		<title>CSC/ECE 517 Fall 2020 - E2070. Refactor response controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2070._Refactor_response_controller.rb&amp;diff=134779"/>
		<updated>2020-10-13T00:39:03Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
== Project Background ==&lt;br /&gt;
&lt;br /&gt;
A response is the object that is created when someone fills out a review rubric, such as when one writes a review, gives feedback to a reviewer, or fills out a survey.  Responses to the individual rubric items are kept in Answer objects; each Answer object has a response_id to say what Response it is part of.  Since response_controller needs to work with many kinds of responses, its code is pretty general.  It is not the worst controller in the system, but it would be much clearer if its method names were more descriptive of what they do.&lt;br /&gt;
&lt;br /&gt;
=== Project Team Member===&lt;br /&gt;
&lt;br /&gt;
* Chenwei Zhou (czhou6)&lt;br /&gt;
* Tianrui Wang (twang33)&lt;br /&gt;
* Xinran Li (xli56)&lt;br /&gt;
&lt;br /&gt;
=== Goal of this Project===&lt;br /&gt;
This project tries to modify and refactor the response_controller.rb in a more clear way&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
response_controller.rb&lt;br /&gt;
&lt;br /&gt;
response.rb&lt;br /&gt;
&lt;br /&gt;
== Issue ==&lt;br /&gt;
=== Methods need to be fixed ===&lt;br /&gt;
* def assign_instance_vars&lt;br /&gt;
* def scores&lt;br /&gt;
* def new&lt;br /&gt;
* def set_questionnaire&lt;br /&gt;
* def set_questionnaire_for_new_response&lt;br /&gt;
* def show_calibration_results_for_students&lt;br /&gt;
&lt;br /&gt;
=== Recommandation from mentor === &lt;br /&gt;
[https://docs.google.com/document/d/1LCl_4jGFEQSz09c9TK1fVlVmOiGJ38OEVMxAsjAcEec/edit# Project Lists]&lt;br /&gt;
* def assign_instance_vars : This name could be more specific.&lt;br /&gt;
* def scores : This should be a model method (in response.rb)!  It is all calculation. &lt;br /&gt;
* def new : This method contains a complicated condition that determines whether the submission has been updated since the last time it was reviewed.  If it has not, then the reviewer can edit his/her previous review.  If there has been an update, then the reviewer gets a new review form to “update” the review.  It would make sense to have a model method that tests whether there has been a review since the last file or link was submitted.  Then the code here would just call that function.  It would be a lot clearer what the new method is doing.  set_content(new_response = false) also plays a role in this calculation.  Perhaps this method should also be included in the refactoring, for the sake of clarity of the resulting code.&lt;br /&gt;
* def set_questionnaire : Badly named; what kind of questionnaire and why?  The name should be a lot clearer.&lt;br /&gt;
* def set_questionnaire_for_new_response : Badly named, no comments, not at all clear.  The logic is not like set_questionnaire.  Rename, refactor for clarity, and add comments as appropriate.&lt;br /&gt;
* def show_calibration_results_for_student : This method makes about five db accesses.  Can it be broken into 2 methods, with the business logic moved to response.rb?&lt;br /&gt;
&lt;br /&gt;
== Refactor &amp;amp; Code Modification ==&lt;br /&gt;
&lt;br /&gt;
=== def assign_instance_vars ===&lt;br /&gt;
We did the following refactor to make this method more clear:&lt;br /&gt;
*After inspection of the code, the instance variable is actually action handles to the views from controller including &amp;quot;new&amp;quot; and &amp;quot;edit&amp;quot;, thus refactor method name to assign_action_parameter would be better to understand.&lt;br /&gt;
[[File:E2070 assign instance.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
=== def scores ===&lt;br /&gt;
*After inspection of the code, this method was already defined in other class and is useless in the current class, thus remove it would be a reasonable choice.&lt;br /&gt;
[[File:E2070 Scores.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
=== def set_questionnaire ===&lt;br /&gt;
[[File:E2070 set questionnaire 1.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 2.png|1200px]]&lt;br /&gt;
[[File:E2070 set questionnaire 3.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
=== def show_calibration_results_for_student ===&lt;br /&gt;
[[File:E2070 calibration controller.png|1200px]]&lt;br /&gt;
[[File:E2070 calibration model.png|1200px]]&lt;br /&gt;
====show_calibration page ====&lt;br /&gt;
[[File:E2070 calibration student view.png|900px]]&lt;br /&gt;
====Teacher's action to triggle this function ====&lt;br /&gt;
[[File:E2070 calibration edit assignment.png|900px]]&lt;br /&gt;
====After calibration function is activated====&lt;br /&gt;
[[File:E2070 expert review.png|900px]]&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_expert_review.png&amp;diff=134777</id>
		<title>File:E2070 expert review.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2070_expert_review.png&amp;diff=134777"/>
		<updated>2020-10-13T00:29:23Z</updated>

		<summary type="html">&lt;p&gt;Czhou6: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Czhou6</name></author>
	</entry>
</feed>