<?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=Jhnguye4</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=Jhnguye4"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Jhnguye4"/>
	<updated>2026-09-18T17:28:30Z</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_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136755</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136755"/>
		<updated>2020-11-13T03:15:37Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
'''Back-end'''&lt;br /&gt;
&lt;br /&gt;
*app/controllers/grades_controller.rb&lt;br /&gt;
*app/helpers/grades_helper.rb&lt;br /&gt;
*app/models/assignment_participant.rb&lt;br /&gt;
*app/models/author_feedback_questionnaire.rb&lt;br /&gt;
*app/models/response_map.rb &lt;br /&gt;
*app/models/review_questionnaire.rb&lt;br /&gt;
*app/models/self_review_response_map.rb&lt;br /&gt;
*app/models/teammate_review_questionnaire.rb&lt;br /&gt;
*app/models/vm_question_response.rb&lt;br /&gt;
&lt;br /&gt;
'''Front-end'''&lt;br /&gt;
&lt;br /&gt;
*app/views/assignments/edit/_review_strategy.html.erb&lt;br /&gt;
*app/views/grades/_participant.html.erb&lt;br /&gt;
*app/views/grades/_participant_charts.html.erb &lt;br /&gt;
*app/views/grades/_participant_title.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
&lt;br /&gt;
'''Testing'''&lt;br /&gt;
&lt;br /&gt;
*spec/models/assignment_particpant_spec.rb&lt;br /&gt;
*spec/controllers/grades_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Use Case for Self-Assessment ===&lt;br /&gt;
&lt;br /&gt;
The following diagram illustrates how the self-assessment feature should work between student and instructor within Expertiza. In summary, an instructor can create an assignment and enable self-review. A student can then submit to the assignment creates by the instructor and provide a self-review. Only then can the student view all of their review scores.&lt;br /&gt;
&lt;br /&gt;
[[File:Use case diagram e2078.png|750px]]&lt;br /&gt;
&lt;br /&gt;
== Design Plan for Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score. Currently implemented in the system, the avg column takes an average of all the review scores. These scores (peer-reviews average and self-review) will be used to determine the overall composite score for the team's reviews. Furthermore, the average composite score is displayed on the page under the average peer review score, labeled &amp;quot;Final Average Peer Review Score&amp;quot;. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe v3.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is additional columns for the self-review average and for the composite (final) score a student has received for an assignment. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe v3.png|1150px]]&lt;br /&gt;
&lt;br /&gt;
''Note: The diagrams above are wireframes. The values displayed are not be taken literally, they are for design purposes only.''&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follows: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is  pseudo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
:1. if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
:2. if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
:3. if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We will remove most of the code from the previous implementation since the formula/method used is unsatisfactory. '''With the new grading formula, the grades_controller can assign a final grade by following these steps:'''&lt;br /&gt;
&lt;br /&gt;
:1. We can obtain the peer review ratings and the score/grade derived from them by calling scores(), which then calls compute_assignment_score(), both from the assignment_participant.rb model. In order to compute the assignment score, compute_assignment_score() calls another method named get_assessments_for(), which is located in review_questionnare.rb model.&lt;br /&gt;
&lt;br /&gt;
:2. The get_assessments_for() method will call the reviews() method, also located in assignment_participant.rb.&lt;br /&gt;
&lt;br /&gt;
:3. Finally, the reviews() method will get the scores by simply calling the get_assessments_for() method located in the response_map.rb model. &lt;br /&gt;
&lt;br /&gt;
:4. Once the scores have been retrieved by using the various model methods, the controller can use the scores to calculated a final grade by using the formula. This grade is then passed to the view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below is a flow diagram for how grades_controller.rb, which implements the grading formula (as mentioned in the first step) and presents the grade in the view (top of the diagram). Note: The self-review scores are obtained by using the true parameter in all the methods calls (as shown in the diagram), whereas the peer-review scores are retrieved similarly but omitting this parameter. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:E1926_code_flow.png]]&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user is at the student tasks view, the  &amp;quot;Your scores&amp;quot; link will be disabled if the user has not filled out their self review. If the user has filled out their self review, then he/she will be redirected to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews] page.&lt;br /&gt;
&lt;br /&gt;
Below is a control flow diagram for how a student will be able to view their peer and self review score.&lt;br /&gt;
&lt;br /&gt;
[[File:Control_Flow_SelfReview.png]]&lt;br /&gt;
&lt;br /&gt;
== Implementation of Design Plan  ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews ===&lt;br /&gt;
&lt;br /&gt;
The following code and UI screenshots illustrate the implementation of displaying the self-review scores alongside the peer-reviews. This also includes displaying the final score that aggregates the self-review score utilizing a chosen formula. The final score derivation process is described in the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score] task.&lt;br /&gt;
&lt;br /&gt;
'''View Team Review Scores (view_team)'''&lt;br /&gt;
&lt;br /&gt;
The view_team.html.erb file is responsible for the display of the peer-review scores heat map. In this implementation, we added a display for the Final Average Peer Review Score, which is the score that takes the average self-review score into consideration based on a set formula. Additionally, there is now a self-review score column (highlighted in cyan) that displays the self-review score for each criterion alongside the peer-review given.&lt;br /&gt;
&lt;br /&gt;
[[File:selfreviews16.png|1200px]]&lt;br /&gt;
[[File:selfreviews17.png|1200px]]&lt;br /&gt;
[[File:selfreviews18.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following screenshot shows the final result of the code implementation.&lt;br /&gt;
&lt;br /&gt;
[[File:Selfreview final screenshot2.png|1150px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Alternate View (view_my_scores)'''&lt;br /&gt;
&lt;br /&gt;
The _participant_*.html.erb files are responsible for the UI display of viewing assignment scores in the Alternate View. The following implementation shows the addition of the new columns for self-review score and the final composite score (along with a doughnut chart for the final score).&lt;br /&gt;
&lt;br /&gt;
[[File:selfreviews14.png|1200px]]&lt;br /&gt;
[[File:selfreviews15.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following screenshot shows the final result of the code implementation.&lt;br /&gt;
&lt;br /&gt;
[[File:Selfreview final screenshot1.png|1150px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Response Map for Reviews'''&lt;br /&gt;
&lt;br /&gt;
The following code implementations illustrate the response map additions for the response mapping. This is responsible for the functionality of conducting a self-review and gathering the results per assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:selfreviews9.png|1200px]]&lt;br /&gt;
[[File:selfreviews10.png|1200px]]&lt;br /&gt;
[[File:selfreviews11.png|1200px]]&lt;br /&gt;
[[File:selfreviews12.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
In the following screenshots we have implemented code in the grades_controller.rb to call upon helper functions in the grades_helper.rb that will compute the peer and self final score. The formula that will be chosen depends on which formula the instructor selects when they create the assignment.&lt;br /&gt;
[[File:selfreviews1.png|1200px]]&lt;br /&gt;
[[File:selfreviews2.png|1200px]]&lt;br /&gt;
[[File:selfreviews3.png|1200px]]&lt;br /&gt;
[[File:selfreviews4.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
'''Instructor View for Reviews'''&lt;br /&gt;
&lt;br /&gt;
The following screenshot is the code that we implemented so that a teacher can select which formula he/she wants to use for the assignment&lt;br /&gt;
&lt;br /&gt;
[[File:selfreviews13.png|1200px]]&lt;br /&gt;
[[File:selfreviews19.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
The following screenshots are the files which we implemented booleans so that a student will not be able to see their scores unless they have filled out their self reviews.&lt;br /&gt;
[[File:selfreviews5.png|1200px]]&lt;br /&gt;
[[File:selfreviews6.png|1200px]]&lt;br /&gt;
[[File:selfreviews7.png|1200px]]&lt;br /&gt;
[[File:selfreviews8.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
'''Credentials'''&lt;br /&gt;
&lt;br /&gt;
*username: ''instructor6'', password: ''password''&lt;br /&gt;
*username: ''student3000'', password: ''password''&lt;br /&gt;
*username: ''student4000'', password: ''password''&lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor6''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews. To allow for self-reviews, check the box &amp;quot;Allow Self-Reviews&amp;quot; in the Review Strategy tab.&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add ''student3000'' and ''student4000'' to the newly created assignment (i.e. &amp;quot;Test Assignment&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
:2. Log back in as the ''instructor6''&lt;br /&gt;
::2.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:3. Log in as ''student3000''&lt;br /&gt;
:4. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the Test Assignment. This button should be disabled&lt;br /&gt;
:5. Log back in as the ''instructor6''&lt;br /&gt;
::5.1. Edit the Test Assignment to change back the submission date to be in the future&lt;br /&gt;
:6. Log in as ''student3000'&lt;br /&gt;
::6.1. Perform a self-review&lt;br /&gt;
:7. Log back in as the ''instructor6''&lt;br /&gt;
::7.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:8. Log in as ''student3000'&lt;br /&gt;
::8.1. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
::1.2. Perform a self-review&lt;br /&gt;
:2. Repeat step 1 ''student4000''&lt;br /&gt;
:3. Log back in as the ''instructor6''&lt;br /&gt;
::3.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:4. Log back in as ''student4000''&lt;br /&gt;
::4.1. Perform a peer-review on the submission from ''student3000''&lt;br /&gt;
:5. Log in as ''student3000''&lt;br /&gt;
:6. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;.&lt;br /&gt;
::6.1. Assure that there is a column for self-review scores&lt;br /&gt;
::6.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:7. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::7.1. Confirm that there is a new column illustrating the self-review average&lt;br /&gt;
::7.2. Confirm that there is a column in the grades table displaying composite score (Final score)&lt;br /&gt;
::7.3. Check is there is a doughnut chart displaying the composite score (Final score)&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
We plan to implement new RSpec tests to verify our implementations of the composite score calculation and the requirement to self-review first. Once written, we will be able to go more in-depth on the details of our testing. &lt;br /&gt;
&lt;br /&gt;
==== Test Composite Score Derivation ====&lt;br /&gt;
The following screenshot is an rspec test that we added in the grades_helper_spec.rb file. This tested to see if the Vossen formula that we implemented would output the correct score when given a average peer, average self review score, weight, and leniency. &lt;br /&gt;
[[File:selfreviews20.png|1200px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': https://github.com/expertiza/expertiza/pull/1831&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;br /&gt;
&lt;br /&gt;
[https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades E1984 wiki]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews20.png&amp;diff=136754</id>
		<title>File:Selfreviews20.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews20.png&amp;diff=136754"/>
		<updated>2020-11-13T03:14:57Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews19.png&amp;diff=136753</id>
		<title>File:Selfreviews19.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews19.png&amp;diff=136753"/>
		<updated>2020-11-13T03:03:43Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136714</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136714"/>
		<updated>2020-11-11T03:16:13Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
'''Back-end'''&lt;br /&gt;
&lt;br /&gt;
*app/controllers/grades_controller.rb&lt;br /&gt;
*app/helpers/grades_helper.rb&lt;br /&gt;
*app/models/assignment_participant.rb&lt;br /&gt;
*app/models/author_feedback_questionnaire.rb&lt;br /&gt;
*app/models/response_map.rb &lt;br /&gt;
*app/models/review_questionnaire.rb&lt;br /&gt;
*app/models/self_review_response_map.rb&lt;br /&gt;
*app/models/teammate_review_questionnaire.rb&lt;br /&gt;
*app/models/vm_question_response.rb&lt;br /&gt;
&lt;br /&gt;
'''Front-end'''&lt;br /&gt;
&lt;br /&gt;
*app/views/assignments/edit/_review_strategy.html.erb&lt;br /&gt;
*app/views/grades/_participant.html.erb&lt;br /&gt;
*app/views/grades/_participant_charts.html.erb &lt;br /&gt;
*app/views/grades/_participant_title.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
&lt;br /&gt;
'''Testing'''&lt;br /&gt;
&lt;br /&gt;
*spec/models/assignment_particpant_spec.rb&lt;br /&gt;
*spec/controllers/grades_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Use Case for Self-Assessment ===&lt;br /&gt;
&lt;br /&gt;
The following diagram illustrates how the self-assessment feature should work between student and instructor within Expertiza. In summary, an instructor can create an assignment and enable self-review. A student can then submit to the assignment creates by the instructor and provide a self-review. Only then can the student view all of their review scores.&lt;br /&gt;
&lt;br /&gt;
[[File:Use case diagram e2078.png|750px]]&lt;br /&gt;
&lt;br /&gt;
== Design Plan for Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score next to the review table. Currently implemented in the system, the avg column takes an average of all the peer-review scores. For each criterion, the avg peer-review score and the composite score will be used to calculate a composite score. This will be used to determine the overall composite score for the team's reviews. Furthermore, the average composite score is displayed on the page under the average peer review score. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe v2.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is additional columns for the self-review average and for the composite score a student has received for an assignment. The information icon paired with the Final Score column will explain the derivation of the score. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe v2.png|950px]]&lt;br /&gt;
&lt;br /&gt;
''Note: The diagrams above are wireframes. The values displayed are not be taken literally, they are for design purposes only.''&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follows: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is  pseudo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
:1. if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
:2. if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
:3. if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We will remove most of the code from the previous implementation since the formula/method used is unsatisfactory. '''With the new grading formula, the grades_controller can assign a final grade by following these steps:'''&lt;br /&gt;
&lt;br /&gt;
:1. We can obtain the peer review ratings and the score/grade derived from them by calling scores(), which then calls compute_assignment_score(), both from the assignment_participant.rb model. In order to compute the assignment score, compute_assignment_score() calls another method named get_assessments_for(), which is located in review_questionnare.rb model.&lt;br /&gt;
&lt;br /&gt;
:2. The get_assessments_for() method will call the reviews() method, also located in assignment_participant.rb.&lt;br /&gt;
&lt;br /&gt;
:3. Finally, the reviews() method will get the scores by simply calling the get_assessments_for() method located in the response_map.rb model. &lt;br /&gt;
&lt;br /&gt;
:4. Once the scores have been retrieved by using the various model methods, the controller can use the scores to calculated a final grade by using the formula. This grade is then passed to the view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below is a flow diagram for how grades_controller.rb, which implements the grading formula (as mentioned in the first step) and presents the grade in the view (top of the diagram). Note: The self-review scores are obtained by using the true parameter in all the methods calls (as shown in the diagram), whereas the peer-review scores are retrieved similarly but omitting this parameter. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:E1926_code_flow.png]]&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user is at the student tasks view, the  &amp;quot;Your scores&amp;quot; link will be disabled if the user has not filled out their self review. If the user has filled out their self review, then he/she will be redirected to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews] page.&lt;br /&gt;
&lt;br /&gt;
Below is a control flow diagram for how a student will be able to view their peer and self review score.&lt;br /&gt;
&lt;br /&gt;
[[File:Control_Flow_SelfReview.png]]&lt;br /&gt;
&lt;br /&gt;
== Implementation of Design Plan  ==&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews ===&lt;br /&gt;
[[File:selfreviews14.png]]&lt;br /&gt;
[[File:selfreviews15.png]]&lt;br /&gt;
[[File:selfreviews16.png]]&lt;br /&gt;
[[File:selfreviews9.png]]&lt;br /&gt;
[[File:selfreviews10.png]]&lt;br /&gt;
[[File:selfreviews11.png]]&lt;br /&gt;
[[File:selfreviews12.png]]&lt;br /&gt;
[[File:selfreviews17.png]]&lt;br /&gt;
[[File:selfreviews18.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
[[File:selfreviews1.png]]&lt;br /&gt;
[[File:selfreviews2.png]]&lt;br /&gt;
[[File:selfreviews3.png]]&lt;br /&gt;
[[File:selfreviews4.png]]&lt;br /&gt;
[[File:selfreviews13.png]]&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
[[File:selfreviews5.png]]&lt;br /&gt;
[[File:selfreviews6.png]]&lt;br /&gt;
[[File:selfreviews7.png]]&lt;br /&gt;
[[File:selfreviews8.png]]&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
'''Credentials'''&lt;br /&gt;
&lt;br /&gt;
*username: ''instructor6'', password: ''password''&lt;br /&gt;
*username: ''student3000'', password: ''password''&lt;br /&gt;
*username: ''student4000'', password: ''password''&lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor6''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews. To allow for self-reviews, check the box &amp;quot;Allow Self-Reviews&amp;quot; in the Review Strategy tab.&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add ''student3000'' and ''student4000'' to the newly created assignment (i.e. &amp;quot;Test Assignment&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
:2. Log back in as the ''instructor6''&lt;br /&gt;
::2.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:3. Log in as ''student3000''&lt;br /&gt;
:4. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the Test Assignment. This button should be disabled&lt;br /&gt;
:5. Log back in as the ''instructor6''&lt;br /&gt;
::5.1. Edit the Test Assignment to change back the submission date to be in the future&lt;br /&gt;
:6. Log in as ''student3000'&lt;br /&gt;
::6.1. Perform a self-review&lt;br /&gt;
:7. Log back in as the ''instructor6''&lt;br /&gt;
::7.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:8. Log in as ''student3000'&lt;br /&gt;
::8.1. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
::1.2. Perform a self-review&lt;br /&gt;
:2. Repeat step 1 ''student4000''&lt;br /&gt;
:3. Log back in as the ''instructor6''&lt;br /&gt;
::3.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:4. Log back in as ''student4000''&lt;br /&gt;
::4.1. Perform a peer-review on the submission from ''student3000''&lt;br /&gt;
:5. Log in as ''student3000''&lt;br /&gt;
:6. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;.&lt;br /&gt;
::6.1. Assure that there is a column for self-review scores&lt;br /&gt;
::6.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:7. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::7.1. Confirm that there is a new column illustrating the self-review average&lt;br /&gt;
::7.2. Confirm that there is a column in the grades table displaying composite score (Final score)&lt;br /&gt;
::7.3. Check is there is a doughnut chart displaying the composite score (Final score)&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
We plan to implement new RSpec tests to verify our implementations of the composite score calculation and the requirement to self-review first. Once written, we will be able to go more in-depth on the details of our testing. &lt;br /&gt;
&lt;br /&gt;
==== Test Composite Score Derivation ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==== Test Requirement to Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': https://github.com/expertiza/expertiza/pull/1831&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;br /&gt;
&lt;br /&gt;
[https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades E1984 wiki]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews18.png&amp;diff=136713</id>
		<title>File:Selfreviews18.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews18.png&amp;diff=136713"/>
		<updated>2020-11-11T03:15:42Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews17.png&amp;diff=136712</id>
		<title>File:Selfreviews17.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews17.png&amp;diff=136712"/>
		<updated>2020-11-11T03:15:29Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews16.png&amp;diff=136711</id>
		<title>File:Selfreviews16.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews16.png&amp;diff=136711"/>
		<updated>2020-11-11T03:15:16Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews15.png&amp;diff=136710</id>
		<title>File:Selfreviews15.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews15.png&amp;diff=136710"/>
		<updated>2020-11-11T03:15:05Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews14.png&amp;diff=136709</id>
		<title>File:Selfreviews14.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews14.png&amp;diff=136709"/>
		<updated>2020-11-11T03:14:53Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136708</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136708"/>
		<updated>2020-11-11T02:40:15Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
'''Back-end'''&lt;br /&gt;
&lt;br /&gt;
*app/controllers/grades_controller.rb&lt;br /&gt;
*app/helpers/grades_helper.rb&lt;br /&gt;
*app/models/assignment_participant.rb&lt;br /&gt;
*app/models/author_feedback_questionnaire.rb&lt;br /&gt;
*app/models/response_map.rb &lt;br /&gt;
*app/models/review_questionnaire.rb&lt;br /&gt;
*app/models/self_review_response_map.rb&lt;br /&gt;
*app/models/teammate_review_questionnaire.rb&lt;br /&gt;
*app/models/vm_question_response.rb&lt;br /&gt;
&lt;br /&gt;
'''Front-end'''&lt;br /&gt;
&lt;br /&gt;
*app/views/assignments/edit/_review_strategy.html.erb&lt;br /&gt;
*app/views/grades/_participant.html.erb&lt;br /&gt;
*app/views/grades/_participant_charts.html.erb &lt;br /&gt;
*app/views/grades/_participant_title.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
&lt;br /&gt;
'''Testing'''&lt;br /&gt;
&lt;br /&gt;
*spec/models/assignment_particpant_spec.rb&lt;br /&gt;
*spec/controllers/grades_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Use Case for Self-Assessment ===&lt;br /&gt;
&lt;br /&gt;
The following diagram illustrates how the self-assessment feature should work between student and instructor within Expertiza. In summary, an instructor can create an assignment and enable self-review. A student can then submit to the assignment creates by the instructor and provide a self-review. Only then can the student view all of their review scores.&lt;br /&gt;
&lt;br /&gt;
[[File:Use case diagram e2078.png|750px]]&lt;br /&gt;
&lt;br /&gt;
== Design Plan for Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score next to the review table. Currently implemented in the system, the avg column takes an average of all the peer-review scores. For each criterion, the avg peer-review score and the composite score will be used to calculate a composite score. This will be used to determine the overall composite score for the team's reviews. Furthermore, the average composite score is displayed on the page under the average peer review score. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe v2.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is additional columns for the self-review average and for the composite score a student has received for an assignment. The information icon paired with the Final Score column will explain the derivation of the score. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe v2.png|950px]]&lt;br /&gt;
&lt;br /&gt;
''Note: The diagrams above are wireframes. The values displayed are not be taken literally, they are for design purposes only.''&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follows: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is  pseudo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
:1. if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
:2. if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
:3. if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We will remove most of the code from the previous implementation since the formula/method used is unsatisfactory. '''With the new grading formula, the grades_controller can assign a final grade by following these steps:'''&lt;br /&gt;
&lt;br /&gt;
:1. We can obtain the peer review ratings and the score/grade derived from them by calling scores(), which then calls compute_assignment_score(), both from the assignment_participant.rb model. In order to compute the assignment score, compute_assignment_score() calls another method named get_assessments_for(), which is located in review_questionnare.rb model.&lt;br /&gt;
&lt;br /&gt;
:2. The get_assessments_for() method will call the reviews() method, also located in assignment_participant.rb.&lt;br /&gt;
&lt;br /&gt;
:3. Finally, the reviews() method will get the scores by simply calling the get_assessments_for() method located in the response_map.rb model. &lt;br /&gt;
&lt;br /&gt;
:4. Once the scores have been retrieved by using the various model methods, the controller can use the scores to calculated a final grade by using the formula. This grade is then passed to the view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below is a flow diagram for how grades_controller.rb, which implements the grading formula (as mentioned in the first step) and presents the grade in the view (top of the diagram). Note: The self-review scores are obtained by using the true parameter in all the methods calls (as shown in the diagram), whereas the peer-review scores are retrieved similarly but omitting this parameter. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:E1926_code_flow.png]]&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user is at the student tasks view, the  &amp;quot;Your scores&amp;quot; link will be disabled if the user has not filled out their self review. If the user has filled out their self review, then he/she will be redirected to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews] page.&lt;br /&gt;
&lt;br /&gt;
Below is a control flow diagram for how a student will be able to view their peer and self review score.&lt;br /&gt;
&lt;br /&gt;
[[File:Control_Flow_SelfReview.png]]&lt;br /&gt;
&lt;br /&gt;
== Implementation of Design Plan  ==&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews ===&lt;br /&gt;
[[File:selfreviews9.png]]&lt;br /&gt;
[[File:selfreviews10.png]]&lt;br /&gt;
[[File:selfreviews11.png]]&lt;br /&gt;
[[File:selfreviews12.png]]&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
[[File:selfreviews1.png]]&lt;br /&gt;
[[File:selfreviews2.png]]&lt;br /&gt;
[[File:selfreviews3.png]]&lt;br /&gt;
[[File:selfreviews4.png]]&lt;br /&gt;
[[File:selfreviews13.png]]&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
[[File:selfreviews5.png]]&lt;br /&gt;
[[File:selfreviews6.png]]&lt;br /&gt;
[[File:selfreviews7.png]]&lt;br /&gt;
[[File:selfreviews8.png]]&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
'''Credentials'''&lt;br /&gt;
&lt;br /&gt;
*username: ''instructor6'', password: ''password''&lt;br /&gt;
*username: ''student3000'', password: ''password''&lt;br /&gt;
*username: ''student4000'', password: ''password''&lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor6''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews. To allow for self-reviews, check the box &amp;quot;Allow Self-Reviews&amp;quot; in the Review Strategy tab.&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add ''student3000'' and ''student4000'' to the newly created assignment (i.e. &amp;quot;Test Assignment&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
:2. Log back in as the ''instructor6''&lt;br /&gt;
::2.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:3. Log in as ''student3000''&lt;br /&gt;
:4. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the Test Assignment. This button should be disabled&lt;br /&gt;
:5. Log back in as the ''instructor6''&lt;br /&gt;
::5.1. Edit the Test Assignment to change back the submission date to be in the future&lt;br /&gt;
:6. Log in as ''student3000'&lt;br /&gt;
::6.1. Perform a self-review&lt;br /&gt;
:7. Log back in as the ''instructor6''&lt;br /&gt;
::7.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:8. Log in as ''student3000'&lt;br /&gt;
::8.1. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
::1.2. Perform a self-review&lt;br /&gt;
:2. Repeat step 1 ''student4000''&lt;br /&gt;
:3. Log back in as the ''instructor6''&lt;br /&gt;
::3.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:4. Log back in as ''student4000''&lt;br /&gt;
::4.1. Perform a peer-review on the submission from ''student3000''&lt;br /&gt;
:5. Log in as ''student3000''&lt;br /&gt;
:6. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;.&lt;br /&gt;
::6.1. Assure that there is a column for self-review scores&lt;br /&gt;
::6.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:7. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::7.1. Confirm that there is a new column illustrating the self-review average&lt;br /&gt;
::7.2. Confirm that there is a column in the grades table displaying composite score (Final score)&lt;br /&gt;
::7.3. Check is there is a doughnut chart displaying the composite score (Final score)&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
We plan to implement new RSpec tests to verify our implementations of the composite score calculation and the requirement to self-review first. Once written, we will be able to go more in-depth on the details of our testing. &lt;br /&gt;
&lt;br /&gt;
==== Test Composite Score Derivation ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==== Test Requirement to Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': https://github.com/expertiza/expertiza/pull/1831&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;br /&gt;
&lt;br /&gt;
[https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades E1984 wiki]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136707</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136707"/>
		<updated>2020-11-11T01:55:09Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
'''Back-end'''&lt;br /&gt;
&lt;br /&gt;
*app/controllers/grades_controller.rb&lt;br /&gt;
*app/helpers/grades_helper.rb&lt;br /&gt;
*app/models/assignment_participant.rb&lt;br /&gt;
*app/models/author_feedback_questionnaire.rb&lt;br /&gt;
*app/models/response_map.rb &lt;br /&gt;
*app/models/review_questionnaire.rb&lt;br /&gt;
*app/models/self_review_response_map.rb&lt;br /&gt;
*app/models/teammate_review_questionnaire.rb&lt;br /&gt;
*app/models/vm_question_response.rb&lt;br /&gt;
&lt;br /&gt;
'''Front-end'''&lt;br /&gt;
&lt;br /&gt;
*app/views/assignments/edit/_review_strategy.html.erb&lt;br /&gt;
*app/views/grades/_participant.html.erb&lt;br /&gt;
*app/views/grades/_participant_charts.html.erb &lt;br /&gt;
*app/views/grades/_participant_title.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
&lt;br /&gt;
'''Testing'''&lt;br /&gt;
&lt;br /&gt;
*spec/models/assignment_particpant_spec.rb&lt;br /&gt;
*spec/controllers/grades_controller_spec.rb&lt;br /&gt;
&lt;br /&gt;
=== Use Case for Self-Assessment ===&lt;br /&gt;
&lt;br /&gt;
The following diagram illustrates how the self-assessment feature should work between student and instructor within Expertiza. In summary, an instructor can create an assignment and enable self-review. A student can then submit to the assignment creates by the instructor and provide a self-review. Only then can the student view all of their review scores.&lt;br /&gt;
&lt;br /&gt;
[[File:Use case diagram e2078.png|750px]]&lt;br /&gt;
&lt;br /&gt;
== Design Plan for Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score next to the review table. Currently implemented in the system, the avg column takes an average of all the peer-review scores. For each criterion, the avg peer-review score and the composite score will be used to calculate a composite score. This will be used to determine the overall composite score for the team's reviews. Furthermore, the average composite score is displayed on the page under the average peer review score. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe v2.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is additional columns for the self-review average and for the composite score a student has received for an assignment. The information icon paired with the Final Score column will explain the derivation of the score. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe v2.png|950px]]&lt;br /&gt;
&lt;br /&gt;
''Note: The diagrams above are wireframes. The values displayed are not be taken literally, they are for design purposes only.''&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follows: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is  pseudo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
:1. if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
:2. if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
:3. if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We will remove most of the code from the previous implementation since the formula/method used is unsatisfactory. '''With the new grading formula, the grades_controller can assign a final grade by following these steps:'''&lt;br /&gt;
&lt;br /&gt;
:1. We can obtain the peer review ratings and the score/grade derived from them by calling scores(), which then calls compute_assignment_score(), both from the assignment_participant.rb model. In order to compute the assignment score, compute_assignment_score() calls another method named get_assessments_for(), which is located in review_questionnare.rb model.&lt;br /&gt;
&lt;br /&gt;
:2. The get_assessments_for() method will call the reviews() method, also located in assignment_participant.rb.&lt;br /&gt;
&lt;br /&gt;
:3. Finally, the reviews() method will get the scores by simply calling the get_assessments_for() method located in the response_map.rb model. &lt;br /&gt;
&lt;br /&gt;
:4. Once the scores have been retrieved by using the various model methods, the controller can use the scores to calculated a final grade by using the formula. This grade is then passed to the view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below is a flow diagram for how grades_controller.rb, which implements the grading formula (as mentioned in the first step) and presents the grade in the view (top of the diagram). Note: The self-review scores are obtained by using the true parameter in all the methods calls (as shown in the diagram), whereas the peer-review scores are retrieved similarly but omitting this parameter. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:E1926_code_flow.png]]&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user is at the student tasks view, the  &amp;quot;Your scores&amp;quot; link will be disabled if the user has not filled out their self review. If the user has filled out their self review, then he/she will be redirected to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews] page.&lt;br /&gt;
&lt;br /&gt;
Below is a control flow diagram for how a student will be able to view their peer and self review score.&lt;br /&gt;
&lt;br /&gt;
[[File:Control_Flow_SelfReview.png]]&lt;br /&gt;
&lt;br /&gt;
== Implementation of Design Plan  ==&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews ===&lt;br /&gt;
[[File:selfreviews9.png]]&lt;br /&gt;
[[File:selfreviews10.png]]&lt;br /&gt;
[[File:selfreviews11.png]]&lt;br /&gt;
[[File:selfreviews12.png]]&lt;br /&gt;
[[File:selfreviews13.png]]&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
[[File:selfreviews1.png]]&lt;br /&gt;
[[File:selfreviews2.png]]&lt;br /&gt;
[[File:selfreviews3.png]]&lt;br /&gt;
[[File:selfreviews4.png]]&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
[[File:selfreviews5.png]]&lt;br /&gt;
[[File:selfreviews6.png]]&lt;br /&gt;
[[File:selfreviews7.png]]&lt;br /&gt;
[[File:selfreviews8.png]]&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
'''Credentials'''&lt;br /&gt;
&lt;br /&gt;
*username: ''instructor6'', password: ''password''&lt;br /&gt;
*username: ''student3000'', password: ''password''&lt;br /&gt;
*username: ''student4000'', password: ''password''&lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor6''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews. To allow for self-reviews, check the box &amp;quot;Allow Self-Reviews&amp;quot; in the Review Strategy tab.&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add ''student3000'' and ''student4000'' to the newly created assignment (i.e. &amp;quot;Test Assignment&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
:2. Log back in as the ''instructor6''&lt;br /&gt;
::2.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:3. Log in as ''student3000''&lt;br /&gt;
:4. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the Test Assignment. This button should be disabled&lt;br /&gt;
:5. Log back in as the ''instructor6''&lt;br /&gt;
::5.1. Edit the Test Assignment to change back the submission date to be in the future&lt;br /&gt;
:6. Log in as ''student3000'&lt;br /&gt;
::6.1. Perform a self-review&lt;br /&gt;
:7. Log back in as the ''instructor6''&lt;br /&gt;
::7.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:8. Log in as ''student3000'&lt;br /&gt;
::8.1. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Sign as ''student3000'' &lt;br /&gt;
::1.1. Submit any file or link to the new Test Assignment&lt;br /&gt;
::1.2. Perform a self-review&lt;br /&gt;
:2. Repeat step 1 ''student4000''&lt;br /&gt;
:3. Log back in as the ''instructor6''&lt;br /&gt;
::3.1. Edit the Test Assignment to change the submission date to be in the past, enabling peer reviews&lt;br /&gt;
:4. Log back in as ''student4000''&lt;br /&gt;
::4.1. Perform a peer-review on the submission from ''student3000''&lt;br /&gt;
:5. Log in as ''student3000''&lt;br /&gt;
:6. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;.&lt;br /&gt;
::6.1. Assure that there is a column for self-review scores&lt;br /&gt;
::6.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:7. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::7.1. Confirm that there is a new column illustrating the self-review average&lt;br /&gt;
::7.2. Confirm that there is a column in the grades table displaying composite score (Final score)&lt;br /&gt;
::7.3. Check is there is a doughnut chart displaying the composite score (Final score)&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
We plan to implement new RSpec tests to verify our implementations of the composite score calculation and the requirement to self-review first. Once written, we will be able to go more in-depth on the details of our testing. &lt;br /&gt;
&lt;br /&gt;
==== Test Composite Score Derivation ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==== Test Requirement to Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': https://github.com/expertiza/expertiza/pull/1831&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;br /&gt;
&lt;br /&gt;
[https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades E1984 wiki]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews13.png&amp;diff=136706</id>
		<title>File:Selfreviews13.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews13.png&amp;diff=136706"/>
		<updated>2020-11-11T01:54:11Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews12.png&amp;diff=136705</id>
		<title>File:Selfreviews12.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews12.png&amp;diff=136705"/>
		<updated>2020-11-11T01:54:00Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews11.png&amp;diff=136704</id>
		<title>File:Selfreviews11.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews11.png&amp;diff=136704"/>
		<updated>2020-11-11T01:53:50Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews10.png&amp;diff=136703</id>
		<title>File:Selfreviews10.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews10.png&amp;diff=136703"/>
		<updated>2020-11-11T01:53:40Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews9.png&amp;diff=136702</id>
		<title>File:Selfreviews9.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews9.png&amp;diff=136702"/>
		<updated>2020-11-11T01:53:30Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews8.png&amp;diff=136701</id>
		<title>File:Selfreviews8.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews8.png&amp;diff=136701"/>
		<updated>2020-11-11T01:43:12Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews7.png&amp;diff=136700</id>
		<title>File:Selfreviews7.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews7.png&amp;diff=136700"/>
		<updated>2020-11-11T01:43:02Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews6.png&amp;diff=136699</id>
		<title>File:Selfreviews6.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews6.png&amp;diff=136699"/>
		<updated>2020-11-11T01:42:52Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews5.png&amp;diff=136698</id>
		<title>File:Selfreviews5.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews5.png&amp;diff=136698"/>
		<updated>2020-11-11T01:42:30Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews4.png&amp;diff=136697</id>
		<title>File:Selfreviews4.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews4.png&amp;diff=136697"/>
		<updated>2020-11-11T01:42:16Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews3.png&amp;diff=136696</id>
		<title>File:Selfreviews3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews3.png&amp;diff=136696"/>
		<updated>2020-11-11T01:42:04Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews2.png&amp;diff=136695</id>
		<title>File:Selfreviews2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews2.png&amp;diff=136695"/>
		<updated>2020-11-11T01:41:52Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews1.png&amp;diff=136694</id>
		<title>File:Selfreviews1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Selfreviews1.png&amp;diff=136694"/>
		<updated>2020-11-11T01:41:38Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136320</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=136320"/>
		<updated>2020-10-28T01:51:10Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
=== Use Case for Self-Assessment ===&lt;br /&gt;
&lt;br /&gt;
The following diagram illustrates how the self-assessment feature should work between student and instructor within Expertiza. In summary, an instructor can create an assignment and enable self-review. A student can then submit to the assignment creates by the instructor and provide a self-review. Only then can the student view all of their review scores.&lt;br /&gt;
&lt;br /&gt;
[[File:Use case diagram e2078.png|750px]]&lt;br /&gt;
&lt;br /&gt;
== Design Plan for Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score next to the review table. Currently implemented in the system, the avg column takes an average of all the peer-review scores. For each criterion, the avg peer-review score and the composite score will be used to calculate a composite score. This will be used to determine the overall composite score for the team's reviews. Furthermore, the average composite score is displayed on the page under the average peer review score. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe v2.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is additional columns for the self-review average and for the composite score a student has received for an assignment. The information icon paired with the Final Score column will explain the derivation of the score. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe v2.png|950px]]&lt;br /&gt;
&lt;br /&gt;
''Note: The diagrams above are wireframes. The values displayed are not be taken literally, they are for design purposes only.''&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follows: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The following is  pseudo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score)))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
:1. if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
:2. if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
:3. if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We will remove most of the code from the previous implementation since the formula/method used is unsatisfactory. '''With the new grading formula, the grades_controller can assign a final grade by following these steps:'''&lt;br /&gt;
&lt;br /&gt;
:1. We can obtain the peer review ratings and the score/grade derived from them by calling scores(), which then calls compute_assignment_score(), both from the assignment_participant.rb model. In order to compute the assignment score, compute_assignment_score() calls another method named get_assessments_for(), which is located in review_questionnare.rb model.&lt;br /&gt;
&lt;br /&gt;
:2. The get_assessments_for() method will call the reviews() method, also located in assignment_participant.rb.&lt;br /&gt;
&lt;br /&gt;
:3. Finally, the reviews() method will get the scores by simply calling the get_assessments_for() method located in the response_map.rb model. &lt;br /&gt;
&lt;br /&gt;
:4. Once the scores have been retrieved by using the various model methods, the controller can use the scores to calculated a final grade by using the formula. This grade is then passed to the view.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Below is a flow diagram for how grades_controller.rb, which implements the grading formula (as mentioned in the first step) and presents the grade in the view (top of the diagram). Note: The self-review scores are obtained by using the true parameter in all the methods calls (as shown in the diagram), whereas the peer-review scores are retrieved similarly but omitting this parameter. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:E1926_code_flow.png]]&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user is at the student tasks view, the  &amp;quot;Your scores&amp;quot; link will be disabled if the user has not filled out their self review. If the user has filled out their self review, then he/she will be redirected to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews] page.&lt;br /&gt;
&lt;br /&gt;
Below is a control flow diagram for how a student will be able to view their peer and self review score.&lt;br /&gt;
&lt;br /&gt;
[[File:Control_Flow_SelfReview.png]]&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add two students to the newly created assignment (theoretically ''student1'' and ''student2'')&lt;br /&gt;
:4. Sign as ''student1'' &lt;br /&gt;
::4.1. Submit any file or link to the new assignment&lt;br /&gt;
:5. Repeat step 4 ''student2''&lt;br /&gt;
:6. Log back in as the ''instructor''&lt;br /&gt;
::6.1. Alter the assignments submission date to be in the past, enabling peer reviews&lt;br /&gt;
:7. Log back in as ''student2''&lt;br /&gt;
::7.1. Perform a peer-review on the submission from ''student1''&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the assignment. This button should be disabled&lt;br /&gt;
:3. Perform a self-review&lt;br /&gt;
:4. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. If this button is disabled, user must self-review&lt;br /&gt;
::2.1. Assure that there is a column for self-review scores&lt;br /&gt;
::2.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:3. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::3.1. Confirm that there is a column in the grades table displaying composite score&lt;br /&gt;
::3.2. Check is there is a doughnut chart displaying the composite score&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
We plan to implement new RSpec tests to verify our implementations of the composite score calculation and the requirement to self-review first. Once written, we will be able to go more in-depth on the details of our testing. &lt;br /&gt;
&lt;br /&gt;
==== Test Composite Score Derivation ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==== Test Requirement to Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;br /&gt;
&lt;br /&gt;
[https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades E1984 wiki]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Control_Flow_SelfReview.png&amp;diff=136319</id>
		<title>File:Control Flow SelfReview.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Control_Flow_SelfReview.png&amp;diff=136319"/>
		<updated>2020-10-28T01:47:45Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=135876</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=135876"/>
		<updated>2020-10-21T01:37:56Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score. The avg column then takes an average of all review scores (peer-review and self-review). Additionally, the composite score is displayed on the page under the average peer review score. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is an additional column describing the composite score a student has received for an assignment. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe.png|950px]]&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
[reference, DOI: 10.21125]&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follow: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
The following is  psuedo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
2) if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
3) if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We can obtain the peer review ratings and the score/grade derived from them  by calling scores() and compute_assignment_score(), respectively, from assignment_participant.rb. &lt;br /&gt;
** Ask for Dr G's input about Expertiza's file structure/design and if the previous group got it correct. (Their diagram is hard to follow without a thorough background.) **&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user is at the student tasks view, the  &amp;quot;Your scores&amp;quot; link will be disabled if the user has not filled out their self review. If the user has filled out their self review, then he/she will be redirected to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews] page.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add two students to the newly created assignment (theoretically ''student1'' and ''student2'')&lt;br /&gt;
:4. Sign as ''student1'' &lt;br /&gt;
::4.1. Submit any file or link to the new assignment&lt;br /&gt;
:5. Repeat step 4 ''student2''&lt;br /&gt;
:6. Log back in as the ''instructor''&lt;br /&gt;
::6.1. Alter the assignments submission date to be in the past, enabling peer reviews&lt;br /&gt;
:7. Log back in as ''student2''&lt;br /&gt;
::7.1. Perform a peer-review on the submission from ''student1''&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the assignment. This button should be disabled&lt;br /&gt;
:3. Perform a self-review&lt;br /&gt;
:4. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. If this button is disabled, user must self-review&lt;br /&gt;
::2.1. Assure that there is a column for self-review scores&lt;br /&gt;
::2.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:3. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::3.1. Confirm that there is a column in the grades table displaying composite score&lt;br /&gt;
::3.2. Check is there is a doughnut chart displaying the composite score&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=135871</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=135871"/>
		<updated>2020-10-21T00:59:00Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score. The avg column then takes an average of all review scores (peer-review and self-review). Additionally, the composite score is displayed on the page under the average peer review score. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is an additional column describing the composite score a student has received for an assignment. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe.png|950px]]&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
[reference, DOI: 10.21125]&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follow: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
The following is  psuedo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
2) if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
3) if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We can obtain the peer review ratings and the score/grade derived from them  by calling scores() and compute_assignment_score(), respectively, from assignment_participant.rb. &lt;br /&gt;
** Ask for Dr G's input about Expertiza's file structure/design and if the previous group got it correct. (Their diagram is hard to follow without a thorough background.) **&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user selects to view &amp;quot;Your scores&amp;quot; page, the button will check to see if the self review has been filled out and if it has then it will redirect the user to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews] page. If the self review has not been filled, then the page will redirect to the student tasks view with a warning message that they are unable to view their peer reviews until they fill out their self review. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add two students to the newly created assignment (theoretically ''student1'' and ''student2'')&lt;br /&gt;
:4. Sign as ''student1'' &lt;br /&gt;
::4.1. Submit any file or link to the new assignment&lt;br /&gt;
:5. Repeat step 4 ''student2''&lt;br /&gt;
:6. Log back in as the ''instructor''&lt;br /&gt;
::6.1. Alter the assignments submission date to be in the past, enabling peer reviews&lt;br /&gt;
:7. Log back in as ''student2''&lt;br /&gt;
::7.1. Perform a peer-review on the submission from ''student1''&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the assignment. This button should be disabled&lt;br /&gt;
:3. Perform a self-review&lt;br /&gt;
:4. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. If this button is disabled, user must self-review&lt;br /&gt;
::2.1. Assure that there is a column for self-review scores&lt;br /&gt;
::2.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:3. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::3.1. Confirm that there is a column in the grades table displaying composite score&lt;br /&gt;
::3.2. Check is there is a doughnut chart displaying the composite score&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=135870</id>
		<title>CSC/ECE 517 Fall 2020 - E2078. Improve self-review Link peer review &amp; self-review to derive grades</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades&amp;diff=135870"/>
		<updated>2020-10-21T00:56:38Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Project Overview ==&lt;br /&gt;
&lt;br /&gt;
In Expertiza, it is currently possible to check the “Allow self-review” box on the Review Strategy tab of assignment creation, and then an author will be asked to review his/her own submission in addition to the submissions of others.  But as currently implemented, nothing is done with the scores on these self-reviews. &lt;br /&gt;
&lt;br /&gt;
There has been a previous attempt at solving this problem, but there were several issues with that implementation:&lt;br /&gt;
&lt;br /&gt;
*The formula for weighting self-reviews is not modular.  It needs to be, since different instructors may want to use different formulas, so several should be supported.&lt;br /&gt;
*There are not enough comments in the code.&lt;br /&gt;
*It seems to work for only one round of review.&lt;br /&gt;
&lt;br /&gt;
View documentation for previous implementation [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2019_-_E1984._Improve_self-review_Link_peer_review_&amp;amp;_self-review_to_derive_grades here].&lt;br /&gt;
&lt;br /&gt;
=== Objectives ===&lt;br /&gt;
&lt;br /&gt;
Our objectives for this project are the following:&lt;br /&gt;
&lt;br /&gt;
*Display the self-review score with peer-review scores for the logged in user&lt;br /&gt;
*Implement a way to achieve a composite score with the combination of the self-review score and peer-review scores&lt;br /&gt;
*Implement a requirement for the logged in user to self-review before viewing peer-reviews&lt;br /&gt;
*Assure that we overcome the issues outlined for the previous implementation of this project&lt;br /&gt;
&lt;br /&gt;
=== Team ===&lt;br /&gt;
&lt;br /&gt;
Courtney Ripoll (ctripoll)&lt;br /&gt;
&lt;br /&gt;
Jonathan Nguyen (jhnguye4)&lt;br /&gt;
&lt;br /&gt;
Justin Kirschner (jkirsch)&lt;br /&gt;
&lt;br /&gt;
=== Files Involved ===&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Display Self-Review Scores w/ Peer-Reviews === &lt;br /&gt;
&lt;br /&gt;
It should be possible to see self-review scores juxtaposed with peer-review scores.  Design a way to show them in the regular &amp;quot;View Scores&amp;quot; page and the alternate (heat-map) view.  They should be shown amidst the other reviews, but in a way that highlights them as being a different kind of review.&lt;br /&gt;
&lt;br /&gt;
==== Design Plan ====&lt;br /&gt;
&lt;br /&gt;
In the current implementation of Expertiza, students can view a compilation of all peer review scores for each review question and an average of those peer-reviews. For our project, we plan to add the self-review score alongside the peer-review scores for each review question. In the wire-frame below, note that for each criterion there is a column for each peer-review score and a single column for the self-review score. The avg column then takes an average of all review scores (peer-review and self-review). Additionally, the composite score is displayed on the page under the average peer review score. How we plan to derive a composite score is explained in detail in the follow section [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Derive_Composite_Score Derive Composite Score].&lt;br /&gt;
&lt;br /&gt;
[[File:View wireframe.png|700px]]&lt;br /&gt;
&lt;br /&gt;
In the alternate view, our plan does not alter the current interface too much. The only addition we plan to implement is an additional column describing the composite score a student has received for an assignment. Likewise, there is now an additional doughnut chart providing a visual of the composite score (green) alongside the final review score (yellow).&lt;br /&gt;
&lt;br /&gt;
[[File:Alternate view wireframe.png|950px]]&lt;br /&gt;
&lt;br /&gt;
=== Derive Composite Score ===&lt;br /&gt;
&lt;br /&gt;
Implement a way to combine self-review and peer-review scores to derive a composite score. The basic idea is that the authors get more points as their self-reviews get closer to the scores given by the peer reviewers. So the function should take the scores given by peers to a particular rubric criterion and the score given by the user. The result of the formula should be displayed in a conspicuous page on the score view.&lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
&lt;br /&gt;
[reference, DOI: 10.21125]&lt;br /&gt;
&lt;br /&gt;
The formula we use to determine a final grade from, 1) the peer reviews and 2) how closely self reviews match the peer reviews, uses a type of additive scoring rule, which computes a weighted average between team score (peer reviews) and student rating (self review). More specifically, it uses a type of mixed additive-multiplicative scoring rule, which multiplies student score (self review) by a function of the team score (peer reviews), and adds its weighted version to the weighted peer review score. This is also known as 'assessment by adjustment'. The formula is a practical scoring rule for additive scoring with unsigned percentages (grades from 0%-100%).&lt;br /&gt;
&lt;br /&gt;
The pseudo-code for a function that implements the formula is as follow: &lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 - (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
and where: &lt;br /&gt;
avg_peer_review_score is simply the mechanism already existing in Expertiza for assigning a grade from peer review scores.&lt;br /&gt;
&lt;br /&gt;
and where:&lt;br /&gt;
w - weight - (0 &amp;lt;= w &amp;lt;= 1) is the inverse proportion of how much of the final grade is determined by the closeness of the self review to the average of the peer reviews (w is the proportion of the grade to be determined by the original grade determination: the peer review scores).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
An example:&lt;br /&gt;
* The average peer review score is 4/5, the self review score is 5/5.&lt;br /&gt;
* The instructor chooses w to equal 0.95, so that 5% of the grade is determined from the deviation of the self review from the peer reviews.&lt;br /&gt;
The final grade, instead of being the peer review score of 4/5 ('''80%''') is now:&lt;br /&gt;
0.95*(4/5) + 0.05*(4/5*(1-|4/5-5/5|/(4/5))) = '''79%'''.&lt;br /&gt;
If the instructor chose w to equal 0.85 (instead of 0.95), the grade is '''77%''' (instead of 79%) because deviation from peer reviews is a larger weighted value of the final grade.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The above is a basic version of the grading formula. It is basic in that it only allows deviations of the self review scores from the peer review scores to result in a decrease in the final grade ''and'' a deviation will ''always'' result in a decrease of the final grade. We propose another parameter to the formula, l - leniency, as another way (in addition to w - weight) for the instructor to modularly determine the final grade for an assignment. The parameter l - leniency - can determine a threshold by which the final grade will account/adjust for self reviews' deviations from peer reviews only when the deviation reaches this threshold (measured in percentage deviation from the average peer review). If the difference does not meet the threshold, no penalty will be subtracted from the peer review. In addition, if the difference does not meet the threshold (the self review score is sufficiently close to the peer review scores), the instructor can choose to add points to final grade based on the magnitude of the difference. Since the formula is a mixed additive-multiplicative scoring rule (mentioned above), the instructor needs to simply pick l - leniency - as a percentage (similar to the functionality of w). To recap: w should be chosen based on the instructor's desired percentage (w) ''of the final grade'' to be determined from peer reviews and, conversely, the instructor's desired percentage (1-w) ''of the final grade'' to be determined by the extent to which self reviews deviate from peer reviews. In addition, l - leniency, should be chosen based on the instructor's desired percentage ''of the deviation of self review from peer review'' that could result in no grade deduction from the deviation if the deviation is sufficiently small (or even a grade increase if the instructor wants to increase the score of individuals with a small deviation).&lt;br /&gt;
&lt;br /&gt;
The following is  psuedo-code for if an instructor wishes to not subtract from the final grade if the deviation is sufficiently small. Notice that the leniency condition, the instructor's desired percentage ''of the deviation of self review from peer review'', is naturally part of the grading formula in SELF:&lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = avg_peer_review_score&lt;br /&gt;
   else&lt;br /&gt;
      run formula&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In addition. instead of assigning a final grade equal to the avg_peer_review_score if the leniency condition is met, the grade can be adjusted (increased) if the instructor wishes to do so, since the self review is sufficiently close (determined by l) to the peer reviews. The formula for determining the final grade would thus add the small extent of deviation to the final grade rather than subtracting it (in SELF, 1 - ..., is changed to 1 + ...):&lt;br /&gt;
   function(avg_peer_rev_score, self_rev_score, w)     &lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(SELF)&lt;br /&gt;
	&lt;br /&gt;
where:&lt;br /&gt;
   SELF = avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In this case, the pseudo-code is: &lt;br /&gt;
   if |avg_peer_review_score - self_review_score|/avg_peer_review_score &amp;lt;= l(leniency)&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''+''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
   else&lt;br /&gt;
      grade = w*(avg_peer_rev_score) + (1-w)*(avg_peer_review_score * (1 '''-''' (|avg_peer_review_score - self_review_score|/avg_peer_review_score))&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Using the previous example (average peer review score is 4/5, self review score is 5/5, w = 0.95), the self review score (5/5) differs by 25% of the peer review score (4/5). In other words, |avg_peer_review_score - self_review_score|/avg_peer_review_score = 1/4 = 25%. Based on l - leniency, the instructor can decide:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
1) if a 25% deviation is sufficiently large to warrant penalizing the final grade by (1-w)*(SELF) (so that the final grade is '''79%''', instead of 80%).&lt;br /&gt;
&lt;br /&gt;
2) if a 25% deviation is sufficiently small to warrant keeping the final grade as grade = avg_peer_review_score, with no penalty for the deviation (so that the grade is '''80%''')&lt;br /&gt;
&lt;br /&gt;
3) if a 25% deviation is sufficiently small to warrant increasing the final grade by (1-w)*(SELF), where the SELF formula contains a 1 + ..., instead of a 1 - ... (so that the grade is '''81%''')&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In order to incorporate the combined score into grading, we will change the logic in grades_controller.rb, which implements the grading formula. We can obtain the peer review ratings and the score/grade derived from them  by calling scores() and compute_assignment_score(), respectively, from assignment_participant.rb. &lt;br /&gt;
** Ask for Dr G's input about Expertiza's file structure/design and if the previous group got it correct. (Their diagram is hard to follow without a thorough background.) **&lt;br /&gt;
&lt;br /&gt;
=== Implement Requirement to Review Self before Viewing Peer Reviews ===&lt;br /&gt;
&lt;br /&gt;
There would be no challenge in giving the same self-review scores as the peer reviewers gave if the authors could see peer-review scores before they submitted their self-reviews. The user should be required to submit their self-evaluation(s) before seeing the results of their peer evaluations. &lt;br /&gt;
&lt;br /&gt;
==== Implementation Plan ====&lt;br /&gt;
By being able to self review before peer review, it allows the author of the assignment to have an unbiased opinion on the quality of work they are submitting. When the judgement of their work is not influenced by others who have given feedback, they are able to get a clearer view of the strengths and weaknesses of their assignment. Self reviews before peer reviews can also be more beneficial to the user as it can show if the user has the correct or wrong approach to their solution compared to their peers. &lt;br /&gt;
&lt;br /&gt;
In the current implementation of the self review, the user is able to see the peer reviews before they have made their own self review. The reason that this is occurring is due to the fact that when the user goes to see their scores, the page is not checking that a self review has been submitted. In order to fix this issue, we will add a boolean parameter to self review and pass it to viewing pages where it is called. When a user selects to view &amp;quot;Your scores&amp;quot; page, the button will check to see if the self review has been filled out and if it has then it will direct the user to the [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2078._Improve_self-review_Link_peer_review_%26_self-review_to_derive_grades#Display_Self-Review_Scores_w.2F_Peer-Reviews Display Self-Review Scores with Peer-Reviews]. If the self review has not been filled, then the page will redirect to the student tasks view with a warning message that they are unable to view their peer reviews until they fill out their self review. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
Our project will utilize various testing techniques. These methods of testing involve manual testing (black box testing) and RSpec testing (white box testing). &lt;br /&gt;
&lt;br /&gt;
=== Manual Testing === &lt;br /&gt;
&lt;br /&gt;
The steps outlined for manual testing will become clearer upon implementation, but the proposed plan is the following:&lt;br /&gt;
&lt;br /&gt;
==== Prerequisite Steps ====&lt;br /&gt;
&lt;br /&gt;
:1. Log in to the development instance of Expertiza as an ''instructor''&lt;br /&gt;
:2. Create an assignment that allows for self-reviews&lt;br /&gt;
::2.1. Make sure the submission deadline is after the current date and time&lt;br /&gt;
::2.2. Likewise, the review deadline should then be greater than the submission deadline&lt;br /&gt;
:3. Add two students to the newly created assignment (theoretically ''student1'' and ''student2'')&lt;br /&gt;
:4. Sign as ''student1'' &lt;br /&gt;
::4.1. Submit any file or link to the new assignment&lt;br /&gt;
:5. Repeat step 4 ''student2''&lt;br /&gt;
:6. Log back in as the ''instructor''&lt;br /&gt;
::6.1. Alter the assignments submission date to be in the past, enabling peer reviews&lt;br /&gt;
:7. Log back in as ''student2''&lt;br /&gt;
::7.1. Perform a peer-review on the submission from ''student1''&lt;br /&gt;
&lt;br /&gt;
==== Must Review Self before Viewing Peer Reviews ====&lt;br /&gt;
&lt;br /&gt;
This test will assure that the logged in user cannot view their peer-reviews for a given assignment unless they have performed a self-review.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Attempt to view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot; within the assignment. This button should be disabled&lt;br /&gt;
:3. Perform a self-review&lt;br /&gt;
:4. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. This button should now be enabled&lt;br /&gt;
&lt;br /&gt;
==== Viewing Self Review Score Juxtaposed with Peer Review Scores ====&lt;br /&gt;
&lt;br /&gt;
This test confirms that the the students self-review scores are displayed with peer-review scores. It additionally confirms that self-review scores are considered in the review grading with the calculation of a composite score.&lt;br /&gt;
&lt;br /&gt;
:1. Log in as ''student1''&lt;br /&gt;
:2. Go view peer-review scores by clicking on &amp;quot;Your Scores&amp;quot;. If this button is disabled, user must self-review&lt;br /&gt;
::2.1. Assure that there is a column for self-review scores&lt;br /&gt;
::2.2. Confirm there is a composite score calculation underneath the average peer review score.&lt;br /&gt;
:3. Go back to the assignment view. Click &amp;quot;Alternate View&amp;quot;&lt;br /&gt;
::3.1. Confirm that there is a column in the grades table displaying composite score&lt;br /&gt;
::3.2. Check is there is a doughnut chart displaying the composite score&lt;br /&gt;
&lt;br /&gt;
=== RSpec Testing ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&lt;br /&gt;
'''Our repository''': https://github.com/jhnguye4/expertiza/tree/beta&lt;br /&gt;
&lt;br /&gt;
'''Pull request''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
'''Video demo''': Does not exist yet&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&lt;br /&gt;
[https://www.researchgate.net/profile/Paul_Vossen/publication/333022439_SCORING_MODELS_FOR_PEER_ASSESSMENT_IN_TEAM-BASED_LEARNING_PROJECTS/links/5cd6d6b4299bf14d958a4b99/SCORING-MODELS-FOR-PEER-ASSESSMENT-IN-TEAM-BASED-LEARNING-PROJECTS.pdf Scoring models for peer assessment in team-based learning projects]&lt;br /&gt;
&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/1611 E1984 Pull Request]&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134934</id>
		<title>CSC/ECE 517 Fall 2020 - E2073. Refactor course controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134934"/>
		<updated>2020-10-13T18:41:34Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction == &lt;br /&gt;
Expertiza is an open source web application in Ruby on Rails. Its purpose is to allow teachers and students an environment to enhance learning. For teachers, they can use this platform to create, edit, or grade assignments. Students are able to view assignments that teachers have posted, create teams for projects, and review other peers assignments. By having one platform for students and teachers to engage, students are able to stay on top of their tasks and teachers can monitor how well their students are learning the material.&lt;br /&gt;
&lt;br /&gt;
== Problem == &lt;br /&gt;
=== Background of Course Controller=== &lt;br /&gt;
Courses are an essential part of Expertiza as students and teachers can be grouped together by a course. The course_controller has many important functionalities such as creating, modifying, and deleting courses. It also has other functionalities such as adding, removing, or viewing TA's. When the course_controller is called to create or modify a course, the course's name, institution ID, directory path, or info can be updated. Our task for this assignment is to refactor some of the code in the course_controller file. &lt;br /&gt;
=== Motivation === &lt;br /&gt;
Why do we want to refactor course_controller? Refactoring is the process of restructuring existing code without changing its behavior. It is important to refactor to keep your code readable, understandable, and clean so that future developers can understand your code when they want to implement or change existing code. For the course_controller, we wanted to refactor it to courses_controller since the current convention of rails requires that controllers be plural. We also wanted to improve readability by removing redundant code in two functions and also fixing a warning message to be more understandable. Lastly we removed a function in course_controller that belonged in a model and not a controller. &lt;br /&gt;
=== Issues that Need to be Fixed === &lt;br /&gt;
The following tasks were accomplished in this project:&amp;lt;br /&amp;gt;&lt;br /&gt;
1)The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
2)Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
3)Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
4)Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== Refactors == &lt;br /&gt;
===Issue 1 ===&lt;br /&gt;
Issue: The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: By changing the name of the class from course_controller.rb to courses_controller.rb, we needed to go through all the files where Course was called and change it to Courses.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses2.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses12.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses11.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
===Issue 2 ===&lt;br /&gt;
Issue: Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: When a student submits a file it should be stored at the path that the teacher specifies. If a teacher specifies a path that already has a filed stored then we need to warn the student that the path is already in use and where they should go if they do not want to overwrite the current file. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses5.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 3 ===&lt;br /&gt;
Issue: Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: In the first and second images below, we have removed the redundant code in the create and update functions. We replaced the redundant code with a function called set_courses_fields which we defined in the third image. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses6.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses7.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses8.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 4 ===&lt;br /&gt;
Issue: Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: For the first image, we have removed the course_node function from the courses_controller.rb file. The second image we are in the models folder for course_node.rb and we have moved course_node from course_controller.rb into this file.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses9.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses10.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing == &lt;br /&gt;
=== Test Plan === &lt;br /&gt;
Our testing plan is to have a automated and manual testing to ensure that the application is still working after we did the refactoring. We will be using Rspec to do the automated testing and show you the steps we did to test the UI. In the subsections below we are testing the create and update methods. &lt;br /&gt;
=== RSpec === &lt;br /&gt;
File: &amp;lt;code&amp;gt;courses_controller_spec.rb&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
Command to run rspec on file: &amp;lt;code&amp;gt;rspec spec/controllers/courses_controller_spec.rb&amp;lt;/code&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: course_test1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: course_test3.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: course_test2.png]]&lt;br /&gt;
=== UI Testing === &lt;br /&gt;
[http://152.7.98.255:8080/ Expertiza with E2073]&lt;br /&gt;
&lt;br /&gt;
In order to manually test some of the functionalities after refactoring course_controller:&lt;br /&gt;
&lt;br /&gt;
* Login as instructor. (Username: instructor6, Password: password)&lt;br /&gt;
* On the navigation bar hover over Manage and a drop down menu will display&lt;br /&gt;
* Choose Courses&lt;br /&gt;
* You are now at the Courses page&lt;br /&gt;
&lt;br /&gt;
==== Testing Create ==== &lt;br /&gt;
* In order to create a course, there is a blue circle with a plus button on the right side of the page next to Actions&lt;br /&gt;
* Click on the blue circle and it will lead you to the New Course Page&lt;br /&gt;
* Fill in the information to create a new course&lt;br /&gt;
* After filling in the course information, click create and it should take you back to tree_display/list page&lt;br /&gt;
* The course you created should be listed at the top &lt;br /&gt;
&lt;br /&gt;
==== Testing Update ==== &lt;br /&gt;
* In order to update a course, go to a course that you want to modify &lt;br /&gt;
* To the right of the course you have chosen there will be two rows of icons&lt;br /&gt;
* On the first row there should be a pencil, red X, and a paper icon, if the pencil does not appear you may need to refresh the page&lt;br /&gt;
* To edit click on the pencil icon, this will take you to the edit page&lt;br /&gt;
* At the edit page you can edit whichever part of the course you want to change&lt;br /&gt;
* After you make your edits, click update and it will take you back to tree_display/list page where the updates will display&lt;br /&gt;
 &lt;br /&gt;
== Files Modified == &lt;br /&gt;
config/routes.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_team.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/controllers/course_controller.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_add_individual.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_course.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_ta.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/add_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/edit.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/new.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/remove_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/view_teaching_assistants.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/controllers/course_controller_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/course_creation_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/instructor_interface_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/nickrgarner/expertiza GitHub Project Repository Fork]&lt;br /&gt;
#[https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/edit Setup Expertiza Environment]&lt;br /&gt;
#[https://www.betterspecs.org/ Rspec Tutorials]&lt;br /&gt;
&lt;br /&gt;
== Team Information ==&lt;br /&gt;
'''Project Mentor:'''&lt;br /&gt;
&amp;lt;br&amp;gt;Sahil Papalkar&lt;br /&gt;
&lt;br /&gt;
'''Project Members:'''&amp;lt;br&amp;gt;&lt;br /&gt;
Nick Garner&amp;lt;br&amp;gt;&lt;br /&gt;
Jonathan Nguyen&amp;lt;br&amp;gt;&lt;br /&gt;
Surbhi Jha &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses12.png&amp;diff=134933</id>
		<title>File:Courses12.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses12.png&amp;diff=134933"/>
		<updated>2020-10-13T18:40:13Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses3.png&amp;diff=134932</id>
		<title>File:Courses3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses3.png&amp;diff=134932"/>
		<updated>2020-10-13T18:39:46Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: Jhnguye4 uploaded a new version of File:Courses3.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses11.png&amp;diff=134931</id>
		<title>File:Courses11.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses11.png&amp;diff=134931"/>
		<updated>2020-10-13T18:39:16Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses5.png&amp;diff=134930</id>
		<title>File:Courses5.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses5.png&amp;diff=134930"/>
		<updated>2020-10-13T18:38:43Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: Jhnguye4 uploaded a new version of File:Courses5.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses5.png&amp;diff=134929</id>
		<title>File:Courses5.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses5.png&amp;diff=134929"/>
		<updated>2020-10-13T18:32:16Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: Jhnguye4 uploaded a new version of File:Courses5.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses3.png&amp;diff=134928</id>
		<title>File:Courses3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses3.png&amp;diff=134928"/>
		<updated>2020-10-13T18:32:07Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: Jhnguye4 uploaded a new version of File:Courses3.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test3.png&amp;diff=134927</id>
		<title>File:Course test3.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test3.png&amp;diff=134927"/>
		<updated>2020-10-13T18:25:47Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test1.png&amp;diff=134926</id>
		<title>File:Course test1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test1.png&amp;diff=134926"/>
		<updated>2020-10-13T18:23:15Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: Jhnguye4 uploaded a new version of File:Course test1.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test2.png&amp;diff=134925</id>
		<title>File:Course test2.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test2.png&amp;diff=134925"/>
		<updated>2020-10-13T18:21:29Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test1.png&amp;diff=134924</id>
		<title>File:Course test1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Course_test1.png&amp;diff=134924"/>
		<updated>2020-10-13T18:21:20Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134799</id>
		<title>CSC/ECE 517 Fall 2020 - E2073. Refactor course controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134799"/>
		<updated>2020-10-13T01:43:15Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction == &lt;br /&gt;
Expertiza is an open source web application in Ruby on Rails. Its purpose is to allow teachers and students an environment to enhance learning. For teachers, they can use this platform to create, edit, or grade assignments. Students are able to view assignments that teachers have posted, create teams for projects, and review other peers assignments. By having one platform for students and teachers to engage, students are able to stay on top of their tasks and teachers can monitor how well their students are learning the material.&lt;br /&gt;
&lt;br /&gt;
== Problem == &lt;br /&gt;
=== Background of Course Controller=== &lt;br /&gt;
Courses are an essential part of Expertiza as students and teachers can be grouped together by a course. The course_controller has many important functionalities such as creating, modifying, and deleting courses. It also has other functionalities such as adding, removing, or viewing TA's. When the course_controller is called to create or modify a course, the course's name, institution ID, directory path, or info can be updated. Our task for this assignment is to refactor some of the code in the course_controller file. &lt;br /&gt;
=== Motivation === &lt;br /&gt;
Why do we want to refactor course_controller? Refactoring is the process of restructuring existing code without changing its behavior. It is important to refactor to keep your code readable, understandable, and clean so that future developers can understand your code when they want to implement or change existing code. For the course_controller, we wanted to refactor it to courses_controller since the current convention of rails requires that controllers be plural. We also wanted to improve readability by removing redundant code in two functions and also fixing a warning message to be more understandable. Lastly we removed a function in course_controller that belonged in a model and not a controller. &lt;br /&gt;
=== Issues that Need to be Fixed === &lt;br /&gt;
The following tasks were accomplished in this project:&amp;lt;br /&amp;gt;&lt;br /&gt;
1)The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
2)Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
3)Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
4)Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== Refactors == &lt;br /&gt;
===Issue 1 ===&lt;br /&gt;
Issue: The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: By changing the name of the class from course_controller.rb to courses_controller.rb, we needed to go through all the files where Course was called and change it to Courses.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses2.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses3.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses4.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
===Issue 2 ===&lt;br /&gt;
Issue: Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: When a student submits a file it should be stored at the path that the teacher specifies. If a teacher specifies a path that already has a filed stored then we need to warn the student that the path is already in use and where they should go if they do not want to overwrite the current file. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses5.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 3 ===&lt;br /&gt;
Issue: Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: In the first and second images below, we have removed the redundant code in the create and update functions. We replaced the redundant code with a function called set_courses_fields which we defined in the third image. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses6.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses7.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses8.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 4 ===&lt;br /&gt;
Issue: Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: For the first image, we have removed the course_node function from the courses_controller.rb file. The second image we are in the models folder for course_node.rb and we have moved course_node from course_controller.rb into this file.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses9.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses10.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing == &lt;br /&gt;
=== Test Plan === &lt;br /&gt;
=== RSpec === &lt;br /&gt;
=== UI Testing === &lt;br /&gt;
[http://152.7.98.255:8080/ Expertiza with E2073]&lt;br /&gt;
&lt;br /&gt;
In order to manually test some of the functionalities after refactoring course_controller:&lt;br /&gt;
&lt;br /&gt;
* Login as instructor. (Username: instructor6, Password: password)&lt;br /&gt;
&lt;br /&gt;
== Files Modified == &lt;br /&gt;
config/routes.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_team.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/controllers/course_controller.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_add_individual.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_course.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_ta.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/add_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/edit.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/new.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/remove_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/view_teaching_assistants.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/controllers/course_controller_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/course_creation_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/instructor_interface_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/nickrgarner/expertiza GitHub Project Repository Fork]&lt;br /&gt;
#[https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/edit Setup Expertiza Environment]&lt;br /&gt;
#[https://www.betterspecs.org/ Rspec Tutorials]&lt;br /&gt;
&lt;br /&gt;
== Team Information ==&lt;br /&gt;
'''Project Mentor:'''&lt;br /&gt;
&amp;lt;br&amp;gt;Sahil Papalkar&lt;br /&gt;
&lt;br /&gt;
'''Project Members:'''&amp;lt;br&amp;gt;&lt;br /&gt;
Nick Garner&amp;lt;br&amp;gt;&lt;br /&gt;
Jonathan Nguyen&amp;lt;br&amp;gt;&lt;br /&gt;
Surbhi Jha &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134762</id>
		<title>CSC/ECE 517 Fall 2020 - E2073. Refactor course controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134762"/>
		<updated>2020-10-12T23:13:22Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction == &lt;br /&gt;
Expertiza is an open source web application in Ruby on Rails. Its purpose is to allow teachers and students an environment to enhance learning. For teachers, they can use this platform to create, edit, or grade assignments. Students are able to view assignments that teachers have posted, create teams for projects, and review other peers assignments. By having one platform for students and teachers to engage, students are able to stay on top of their tasks and teachers can monitor how well their students are learning the material.&lt;br /&gt;
&lt;br /&gt;
== Problem == &lt;br /&gt;
=== Background of Course Controller=== &lt;br /&gt;
Courses are an essential part of Expertiza as students and teachers can be grouped together by a course. The course controller has many important functionalities such as creating, modifying, and deleting courses. It also has other functionalities such as adding, removing, or viewing TA's. When the course controller is called to create or modify a course, the course's name, institution ID, directory path, or info can be updated. Our task for this assignment is to refactor some of the code in the course_controller.rb file. &lt;br /&gt;
=== Motivation === &lt;br /&gt;
Why do we want to refactor course controller? Refactoring is the process of restructuring existing code without changing its behavior. It is important to refactor to keep your code readable, understandable, and clean so that future developers can understand your code when they want to implement or change existing code. For the course controller, we wanted to refactor it to courses controller since the current convention of rails requires that controllers be plural. We also wanted to improve readability by removing redundant code in two functions and also fixing a warning message to be more understandable. Lastly we removed a function in course controller that belonged in a model and not a controller. &lt;br /&gt;
=== Issues that Need to be Fixed === &lt;br /&gt;
The following tasks were accomplished in this project:&amp;lt;br /&amp;gt;&lt;br /&gt;
1)The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
2)Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
3)Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
4)Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== Refactors == &lt;br /&gt;
===Issue 1 ===&lt;br /&gt;
Issue: The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: By changing the name of the class from course_controller.rb to courses_controller.rb, we needed to go through all the files where Course was called and change it to Courses.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses2.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses3.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses4.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
===Issue 2 ===&lt;br /&gt;
Issue: Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: When a student submits a file it should be stored at the path that the teacher specifies. If a teacher specifies a path that already has a filed stored then we need to warn the student that the path is already in use and where they should go if they do not want to overwrite the current file. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses5.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 3 ===&lt;br /&gt;
Issue: Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: In the first and second images below, we have removed the redundant code in the create and update functions. We replaced the redundant code with a function called set_courses_fields which we defined in the third image. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses6.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses7.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses8.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 4 ===&lt;br /&gt;
Issue: Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: For the first image, we have removed the course_node function from the courses_controller.rb file. The second image we are in the models folder for course_node.rb and we have moved course_node from course_controller.rb into this file.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses9.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses10.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing == &lt;br /&gt;
=== Test Plan === &lt;br /&gt;
=== RSpec === &lt;br /&gt;
=== UI Testing === &lt;br /&gt;
&lt;br /&gt;
== Files Modified == &lt;br /&gt;
config/routes.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_team.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/controllers/course_controller.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_add_individual.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_course.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_ta.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/add_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/edit.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/new.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/remove_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/view_teaching_assistants.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/controllers/course_controller_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/course_creation_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/instructor_interface_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/nickrgarner/expertiza GitHub Project Repository Fork]&lt;br /&gt;
#[https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/edit Setup Expertiza Environment]&lt;br /&gt;
#[https://www.betterspecs.org/ Rspec Tutorials]&lt;br /&gt;
&lt;br /&gt;
== Team Information ==&lt;br /&gt;
'''Project Mentor:'''&lt;br /&gt;
&amp;lt;br&amp;gt;Sahil Papalkar&lt;br /&gt;
&lt;br /&gt;
'''Project Members:'''&amp;lt;br&amp;gt;&lt;br /&gt;
Nick Garner&amp;lt;br&amp;gt;&lt;br /&gt;
Jonathan Nguyen&amp;lt;br&amp;gt;&lt;br /&gt;
Surbhi Jha &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134756</id>
		<title>CSC/ECE 517 Fall 2020 - E2073. Refactor course controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134756"/>
		<updated>2020-10-12T22:49:48Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction == &lt;br /&gt;
Expertiza is an open source web application in Ruby on Rails. Its purpose is to allow teachers and students an environment to enhance learning. For teachers, they can use this platform to create, edit, or grade assignments. Students are able to view assignments that teachers have posted, create teams for projects, and review other peers assignments. By having one platform for students and teachers to engage, students are able to stay on top of their tasks and teachers can monitor how well their students are learning the material.&lt;br /&gt;
&lt;br /&gt;
== Problem == &lt;br /&gt;
=== Background of Course Controller=== &lt;br /&gt;
Courses are an essential part of Expertiza as students and teachers can be grouped together by a course. The course controller has many important functionalities such as creating, modifying, and deleting courses. It also has other functionalities such as adding, removing, or viewing TA's. When the course controller is called to create or modify a course, the course's name, institution ID, directory path, or info can be updated. Our task for this assignment is to refactor some of the code in the course_controller.rb file. &lt;br /&gt;
=== Motivation === &lt;br /&gt;
Why do we want to refactor course controller? &lt;br /&gt;
=== Issues that Need to be Fixed === &lt;br /&gt;
The following tasks were accomplished in this project:&amp;lt;br /&amp;gt;&lt;br /&gt;
1)The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
2)Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
3)Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
4)Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== Refactors == &lt;br /&gt;
===Issue 1 ===&lt;br /&gt;
Issue: The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: By changing the name of the class from course_controller.rb to courses_controller.rb, we needed to go through all the files where Course was called and change it to Courses.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses2.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses3.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses4.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
===Issue 2 ===&lt;br /&gt;
Issue: Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: When a student submits a file it should be stored at the path that the teacher specifies. If a teacher specifies a path that already has a filed stored then we need to warn the student that the path is already in use and where they should go if they do not want to overwrite the current file. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses5.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 3 ===&lt;br /&gt;
Issue: Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: In the first and second images below, we have removed the redundant code in the create and update functions. We replaced the redundant code with a function called set_courses_fields which we defined in the third image. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses6.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses7.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses8.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 4 ===&lt;br /&gt;
Issue: Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: For the first image, we have removed the course_node function from the courses_controller.rb file. The second image we are in the models folder for course_node.rb and we have moved course_node from course_controller.rb into this file.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses9.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses10.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing == &lt;br /&gt;
=== Test Plan === &lt;br /&gt;
=== RSpec === &lt;br /&gt;
=== UI Testing === &lt;br /&gt;
&lt;br /&gt;
== Files Modified == &lt;br /&gt;
config/routes.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/models/course_team.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/controllers/course_controller.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_add_individual.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_course.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/_ta.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/add_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/edit.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/new.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/remove_ta.js.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
app/views/course/view_teaching_assistants.html.erb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/controllers/course_controller_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/course_creation_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
spec/features/instructor_interface_spec.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
==References==&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/nickrgarner/expertiza GitHub Project Repository Fork]&lt;br /&gt;
#[https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/edit Setup Expertiza Environment]&lt;br /&gt;
#[https://www.betterspecs.org/ Rspec Tutorials]&lt;br /&gt;
&lt;br /&gt;
== Team Information ==&lt;br /&gt;
'''Project Mentor:'''&lt;br /&gt;
&amp;lt;br&amp;gt;Sahil Papalkar&lt;br /&gt;
&lt;br /&gt;
'''Project Members:'''&amp;lt;br&amp;gt;&lt;br /&gt;
Nick Garner&amp;lt;br&amp;gt;&lt;br /&gt;
Jonathan Nguyen&amp;lt;br&amp;gt;&lt;br /&gt;
Surbhi Jha &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134511</id>
		<title>CSC/ECE 517 Fall 2020 - E2073. Refactor course controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2020_-_E2073._Refactor_course_controller.rb&amp;diff=134511"/>
		<updated>2020-10-10T19:53:43Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction == &lt;br /&gt;
Expertiza is an open source web application in Ruby on Rails. Its purpose is to allow teachers and students an environment to enhance learning. For teachers, they can use this platform to create, edit, or grade assignments. Students are able to view assignments that teachers have posted, create teams for projects, and review other peers assignments. By having one platform for students and teachers to engage, students are able to stay on top of their tasks and teachers can monitor how well their students are learning the material.&lt;br /&gt;
&lt;br /&gt;
== Problem == &lt;br /&gt;
=== Background === &lt;br /&gt;
The course controller has many important functionalities such as creating, modifying, and deleting courses. Our task for this assignment is to refactor some of the code in the course_controller.rb file. &lt;br /&gt;
=== Issues that Need to be Fixed === &lt;br /&gt;
The following tasks were accomplished in this project:&lt;br /&gt;
&lt;br /&gt;
1)The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
2)Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
3)Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
4)Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
== Refactors == &lt;br /&gt;
===Issue 1 ===&lt;br /&gt;
Issue: The class should be named courses_controller.rb, to follow the current Rails convention that controllers should be named in the plural.&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: By changing the name of the class from course_controller.rb to courses_controller.rb, we needed to go through all the files where Course was called and change it to Courses.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses1.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses2.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses3.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses4.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
===Issue 2 ===&lt;br /&gt;
Issue: Edit the warning message in the copy function&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: When a student submits a file it should be stored at the path that the teacher specifies. If a teacher specifies a path that already has a filed stored then we need to warn the student that the path is already in use and where they should go if they do not want to overwrite the current file. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses5.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 3 ===&lt;br /&gt;
Issue: Remove duplicate code in the create and update functions&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: In the first and second images below, we have removed the redundant code in the create and update functions. We replaced the redundant code with a function called set_courses_fields which we defined in the third image. &lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses6.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses7.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses8.png]]&lt;br /&gt;
&lt;br /&gt;
===Issue 4 ===&lt;br /&gt;
Issue: Remove create_course_node function as it does not belong in a controller and move it to course_node.rb&amp;lt;br /&amp;gt;&lt;br /&gt;
Solution: For the first image, we have removed the course_node function from the courses_controller.rb file. The second image we are in the models folder for course_node.rb and we have moved course_node from course_controller.rb into this file.&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses9.png]]&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
[[File: courses10.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing == &lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/nickrgarner/expertiza GitHub Project Repository Fork]&lt;br /&gt;
#[https://docs.google.com/document/d/1tXmwju6R7KQbvycku-bdXxa6rXSUN4BMyvjY3ROmMSw/edit Setup Expertiza Environment]&lt;br /&gt;
#[https://www.betterspecs.org/ Rspec Tutorials]&lt;br /&gt;
&lt;br /&gt;
== Team Information ==&lt;br /&gt;
'''Project Mentor:'''&lt;br /&gt;
&amp;lt;br&amp;gt;Sahil Papalkar&lt;br /&gt;
&lt;br /&gt;
'''Project Members:'''&amp;lt;br&amp;gt;&lt;br /&gt;
Nick Garner&amp;lt;br&amp;gt;&lt;br /&gt;
Jonathan Nguyen&amp;lt;br&amp;gt;&lt;br /&gt;
Surbhi Jha &amp;lt;br&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses10.png&amp;diff=134510</id>
		<title>File:Courses10.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses10.png&amp;diff=134510"/>
		<updated>2020-10-10T19:41:46Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses9.png&amp;diff=134509</id>
		<title>File:Courses9.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses9.png&amp;diff=134509"/>
		<updated>2020-10-10T19:41:35Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses8.png&amp;diff=134508</id>
		<title>File:Courses8.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses8.png&amp;diff=134508"/>
		<updated>2020-10-10T19:37:12Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses7.png&amp;diff=134507</id>
		<title>File:Courses7.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses7.png&amp;diff=134507"/>
		<updated>2020-10-10T19:37:02Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses6.png&amp;diff=134506</id>
		<title>File:Courses6.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses6.png&amp;diff=134506"/>
		<updated>2020-10-10T19:36:53Z</updated>

		<summary type="html">&lt;p&gt;Jhnguye4: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jhnguye4</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses5.png&amp;diff=134505</id>
		<title>File:Courses5.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Courses5.png&amp;diff=134505"/>
		<updated>2020-10-10T19:31:40Z</updated>

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