<?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=Hchen63</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=Hchen63"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Hchen63"/>
	<updated>2026-05-18T00:19:59Z</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_2021_-_E2152._Revision_planning_tool&amp;diff=142828</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142828"/>
		<updated>2021-12-09T15:58:16Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Initial Wireframe */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Pull Request: https://github.com/expertiza/expertiza/pull/2152 &lt;br /&gt;
*GitHub Repository: https://github.com/YiLi98317/expertiza &lt;br /&gt;
*Deployment: http://152.7.176.63:8080/&lt;br /&gt;
*Video: https://www.youtube.com/watch?v=d0bukq6o2sc&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142827</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142827"/>
		<updated>2021-12-09T15:57:51Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Pull Request: https://github.com/expertiza/expertiza/pull/2152 &lt;br /&gt;
*GitHub Repository: https://github.com/YiLi98317/expertiza &lt;br /&gt;
*Deployment: http://152.7.176.63:8080/&lt;br /&gt;
*Video: https://www.youtube.com/watch?v=d0bukq6o2sc&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142826</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142826"/>
		<updated>2021-12-09T15:55:33Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* RSpec Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Pull Request: https://github.com/expertiza/expertiza/pull/2152 &lt;br /&gt;
*GitHub Repository: https://github.com/YiLi98317/expertiza &lt;br /&gt;
*Deployment: http://152.7.176.63:8080/&lt;br /&gt;
*Video: https://www.youtube.com/watch?v=d0bukq6o2sc&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142825</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142825"/>
		<updated>2021-12-09T15:54:01Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Pull Request: https://github.com/expertiza/expertiza/pull/2152 &lt;br /&gt;
*GitHub Repository: https://github.com/YiLi98317/expertiza &lt;br /&gt;
*Deployment: http://152.7.176.63:8080/&lt;br /&gt;
*Video: https://www.youtube.com/watch?v=d0bukq6o2sc&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142824</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142824"/>
		<updated>2021-12-09T15:53:24Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
*Pull Request: https://github.com/expertiza/expertiza/pull/2152 &lt;br /&gt;
*GitHub Repository: https://github.com/YiLi98317/expertiza &lt;br /&gt;
*Deployment: http://152.7.176.63:8080/&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142823</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142823"/>
		<updated>2021-12-09T15:53:05Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
Pull Request: https://github.com/expertiza/expertiza/pull/2152 &lt;br /&gt;
Github Repository: https://github.com/YiLi98317/expertiza &lt;br /&gt;
Deployment: http://152.7.176.63:8080/&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142822</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142822"/>
		<updated>2021-12-09T15:52:52Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
Pull Request: https://github.com/expertiza/expertiza/pull/2152 /n&lt;br /&gt;
Github Repository: https://github.com/YiLi98317/expertiza /n&lt;br /&gt;
Deployment: http://152.7.176.63:8080/ /n&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142821</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142821"/>
		<updated>2021-12-09T15:52:39Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
Pull Request: https://github.com/expertiza/expertiza/pull/2152 \n&lt;br /&gt;
Github Repository: https://github.com/YiLi98317/expertiza \n&lt;br /&gt;
Deployment: http://152.7.176.63:8080/ \n&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142820</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142820"/>
		<updated>2021-12-09T15:52:02Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
Pull Request: https://github.com/expertiza/expertiza/pull/2152&lt;br /&gt;
Github Repository: https://github.com/YiLi98317/expertiza&lt;br /&gt;
Deployment: http://152.7.176.63:8080/&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142819</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142819"/>
		<updated>2021-12-09T15:50:44Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Manual Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
The UI workflow test are shown in this video:&lt;br /&gt;
https://www.youtube.com/watch?v=d0bukq6o2sc&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Rationale.png&amp;diff=142818</id>
		<title>File:E2152 Rationale.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Rationale.png&amp;diff=142818"/>
		<updated>2021-12-09T15:42:18Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: Hchen63 uploaded a new version of File:E2152 Rationale.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142694</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=142694"/>
		<updated>2021-12-02T02:58:02Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Manual Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Force the student to add revision plan before submit their work at round 2 submission.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Force the students to add revision plan before submit their work at round 2 submission&lt;br /&gt;
The revision plan cannot be operated in all of the phases but before round 2 submission. In the round 2 submission, the &amp;quot;Your Work&amp;quot; part cannot be chosen only if you finish to edit the &amp;quot;Revision Planning&amp;quot; part. By doing this, we can let students add revision plan before submit their work at round 2 submission.&lt;br /&gt;
&lt;br /&gt;
Changes:&lt;br /&gt;
&lt;br /&gt;
Change the logic, before the round 2 submission, there is no need to judge, directly let the &amp;quot;Revision planning&amp;quot; part invalid. And when it comes to the round 2 submission, the &amp;quot;Your Work&amp;quot; part is invalid, and the &amp;quot;Revision planning&amp;quot; part can be edited.&lt;br /&gt;
&lt;br /&gt;
 past code:&lt;br /&gt;
         &lt;br /&gt;
 &amp;lt;% if @assignment.submission_allowed(@topic_id) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 modified code:&lt;br /&gt;
 app/views/student_task/view.html.erb        &lt;br /&gt;
 &amp;lt;% if (!@can_submit_revision_plan &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) || &lt;br /&gt;
 (@can_submit_revision_plan &amp;amp;&amp;amp; @revision_plan_questionnaire_id &amp;amp;&amp;amp; @assignment.submission_allowed(@topic_id)) %&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Result:&lt;br /&gt;
&lt;br /&gt;
Firstly, before the round 2 submission, you can look into your work, but the revision plan.&lt;br /&gt;
[[File:211129-2.png|700px|thumb|center]]&lt;br /&gt;
And then, when it comes to the round 2 submission, if we didn't deal with the &amp;quot;Revision Planning&amp;quot;, then the &amp;quot;Your work&amp;quot; part becomes gray.&lt;br /&gt;
[[File:211129-5.png|700px|thumb|center]]&lt;br /&gt;
After editing the &amp;quot;Revision Planning&amp;quot;, we can submit our work.&lt;br /&gt;
[[File:211129-6.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review&lt;br /&gt;
Set up assignment with 2 rounds of review. The result is shown above. And here's the figure in the background. We can set the rounds whatever we want.&lt;br /&gt;
[[File:211129-7.png|700px|thumb|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
the revision-planning rubric was allowed to be edited after the first round of revision, using a shared template with normal rubric. &lt;br /&gt;
This page will be unavailable during all review periods.&lt;br /&gt;
[[File:gsj_5.png|700px|thumb|center|Revision Plan page exists]]&lt;br /&gt;
The Revision Plan Questionnaire could be edited by specifying the amount of questions and their type. &lt;br /&gt;
Questions can be removed by clicking Remove in the leftmost column. &lt;br /&gt;
Once the questionnaire is complete, it can be saved.&lt;br /&gt;
[[File:gsj_fall2021.png|700px|thumb|center|Edit Revision Plan page demonstrating]]&lt;br /&gt;
In the second round of review, the revision plan questionnaire which edited by autohrs could be seen in a separate section.&lt;br /&gt;
[[File:gsj_1.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
[[File:gsj_3.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Relocate the method &lt;br /&gt;
The method for determining who's on a team was in RevisionPlanQuestionnairesController, now has been reloacted in team.rb.&lt;br /&gt;
&lt;br /&gt;
Before:&lt;br /&gt;
app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, params[:team_id]]).each do |teamuser|&lt;br /&gt;
       @team_members.push( teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    (user_logged_in? &amp;amp;&amp;amp; @team_members.collect { |u|  }.include?(session[:user].id)) || 1&lt;br /&gt;
&lt;br /&gt;
After:&lt;br /&gt;
app/models/team.rb &lt;br /&gt;
&lt;br /&gt;
  def self.is_team_members?(team_id,user_id)&lt;br /&gt;
    @team_members = Array.new&lt;br /&gt;
    TeamsUser.where([&amp;quot;team_id = ?&amp;quot;, team_id]).each do |teamuser|&lt;br /&gt;
      @team_members.push(teamuser.user_id)&lt;br /&gt;
    end&lt;br /&gt;
    return @team_members.collect { |u|  }.include?(user_id)&lt;br /&gt;
  end&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
This is a list of files modified.&lt;br /&gt;
*app/controllers/revision_plan_questionnaires_controller.rb&lt;br /&gt;
*app/models/team.rb&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/response_map.rb &lt;br /&gt;
*app/views/grades/_participant_charts.html.erb&lt;br /&gt;
*app/views/grades/view_team.html.erb&lt;br /&gt;
*app/views/student_task/view.html.erb &lt;br /&gt;
*app/controllers/response_controller.rb &lt;br /&gt;
*app/views/response/response.html.erb&lt;br /&gt;
*config/routes.rb&lt;br /&gt;
*db/schema.rb&lt;br /&gt;
*spec/models/response_spec.rb&lt;br /&gt;
*spec/models/review_response_map_spec.rb&lt;br /&gt;
*spec/features/assignment_creation_general_tab_spec.rb&lt;br /&gt;
*app/models/revision_plan_team_map.rb&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/controllers/grades_controller_spec.rb &lt;br /&gt;
[[Grades_controller_spec_new.png]]&lt;br /&gt;
*rspec spec/controllers/questionnaires_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/questions_controller_spec.rb &lt;br /&gt;
*rspec spec/controllers/student_teams_controller_spec.rb &lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
Helpers&lt;br /&gt;
&lt;br /&gt;
*rspec spec/heplers/grades_helper.rb&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141584</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141584"/>
		<updated>2021-11-09T22:53:49Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Rationale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the 1st review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|1000px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141583</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141583"/>
		<updated>2021-11-09T22:53:41Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Rationale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the 1st review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|1000px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141582</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141582"/>
		<updated>2021-11-09T22:53:33Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Rationale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the 1st review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|410px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|1000px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141581</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141581"/>
		<updated>2021-11-09T22:53:05Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Rationale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the 1st review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|1000px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141580</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141580"/>
		<updated>2021-11-09T22:52:56Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Rationale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the 1st review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|1000px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141579</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141579"/>
		<updated>2021-11-09T22:14:16Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Goals */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the 1st review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Review Restriction Change====&lt;br /&gt;
In the previous version, students cannot edit the revision plan in the review during the submission phase. However, they just cannot edit during the review phase. There's the change for this mistake.&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:Previous1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
[[File:after1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Manual testing aims to verify the following:&lt;br /&gt;
&lt;br /&gt;
*Can an assignment with revision planning enabled be created?&lt;br /&gt;
*Can an assignment with 2 rounds of review be set up?&lt;br /&gt;
*If the revision-planning rubric can be edited or not?&lt;br /&gt;
*Is the revision plan a separate section?&lt;br /&gt;
*Does the method determining the members of a team existed in team.rb?&lt;br /&gt;
*Dose the system have redundant functions?&lt;br /&gt;
*Are participants allowed to create/edit revision plan when round 1+ (1 or greater than 1) reviews have finished?&lt;br /&gt;
*Is revision plan editing disabled when assignment is in review stage?&lt;br /&gt;
*Are reviewers shown questions created by reviewees?&lt;br /&gt;
*Does participants show summary of score for revision plan after review deadline has expired?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|1000px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Rationale.png&amp;diff=141578</id>
		<title>File:E2152 Rationale.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Rationale.png&amp;diff=141578"/>
		<updated>2021-11-09T22:13:03Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: Hchen63 uploaded a new version of File:E2152 Rationale.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_avaliable.png&amp;diff=141048</id>
		<title>File:E2152 Revision Plan avaliable.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_avaliable.png&amp;diff=141048"/>
		<updated>2021-11-06T22:18:59Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: Hchen63 uploaded a new version of File:E2152 Revision Plan avaliable.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_avaliable.png&amp;diff=141045</id>
		<title>File:E2152 Revision Plan avaliable.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_avaliable.png&amp;diff=141045"/>
		<updated>2021-11-06T22:16:51Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: Hchen63 uploaded a new version of File:E2152 Revision Plan avaliable.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141044</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141044"/>
		<updated>2021-11-06T22:16:32Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Manual Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
In order to enable '''Revision Planning''', the setting must be enabled when creating or editing an assignment under the '''General''' tab.  The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly.  '''Revision plan?''' should be checked to enable this option. &lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:ini1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|1000px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141043</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141043"/>
		<updated>2021-11-06T22:16:18Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
In order to enable '''Revision Planning''', the setting must be enabled when creating or editing an assignment under the '''General''' tab.  The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly.  '''Revision plan?''' should be checked to enable this option. &lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:ini1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision_Plan_avaliable.png|400px|center]]&lt;br /&gt;
[[File:E2152_Revision_Plan_unavaliable.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_unavaliable.png&amp;diff=141041</id>
		<title>File:E2152 Revision Plan unavaliable.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_unavaliable.png&amp;diff=141041"/>
		<updated>2021-11-06T22:08:12Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_avaliable.png&amp;diff=141040</id>
		<title>File:E2152 Revision Plan avaliable.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Revision_Plan_avaliable.png&amp;diff=141040"/>
		<updated>2021-11-06T22:07:59Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141039</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141039"/>
		<updated>2021-11-06T22:07:50Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Manual Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
In order to enable '''Revision Planning''', the setting must be enabled when creating or editing an assignment under the '''General''' tab.  The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly.  '''Revision plan?''' should be checked to enable this option. &lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:ini1.png|700px|thumb|center|Reviews cannot be done during the submission phase]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
[[File:E2152_Revision Plan avaliable.png|400px|center]]&lt;br /&gt;
[[File:E2152_Revision Plan unavaliable.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141037</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141037"/>
		<updated>2021-11-06T22:06:41Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Manual Testing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Revision_Planning_Link.png|600px|thumb|center|Submit or Review Work page demonstrating added Revision Planning link]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up assignments&lt;br /&gt;
Set up assignment with 2 rounds of review. The Revision Planning link is available to students during every submission period (except the first round submission) and not available during every review period. As shown in the wireframe, by clicking Revision Planning students would be redirected to the ‘Revision planning page’.&lt;br /&gt;
&lt;br /&gt;
In order to check if a team is allowed to submit a revision plan @can_submit_revision_plan field is added to StudentTaskController's view action. If a revision plan questionnaire (@revision_plan_questionnaire_id) exists for the current round then clicking the link performs RevisionPlanQuestionnairesController's edit action else new action is performed.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*3. Revision-planning rubric&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template. After creating the Revision Plan Questionnaire, it must be edited. Questions can be added by specifying the amount of questions and their type. Questions can be removed by clicking Remove in the leftmost column. Once the questionnaire is complete, it can be saved. This page will be visible during each submission period after the first and will be unavailable during all review periods.&lt;br /&gt;
&lt;br /&gt;
[[File:Edit_Revision_Plan.png|700px|thumb|center|Edit Revision Plan page demonstrating added view]]&lt;br /&gt;
[[File:Review_Wireframe.png|400px|thumb|center|Wireframe of Completing a Review for an Assignment]]&lt;br /&gt;
[[File:Revision_Plan_Questionnaire.png|400px|thumb|center|Review page demonstrating added Revision Plan questions]]&lt;br /&gt;
&lt;br /&gt;
*4. Report Summary&lt;br /&gt;
Instructors and students can view the review report with the revision plan placed in a separate section. When a project has been reviewed at least once, a participant is able to view their team's score. The UI below shows what this looks like after the second round of reviews. For the second and all subsequent reviews, the results of questions that were created by the instructor are shown under Assignment Questionnaire. The results of the questions created by the team are shown under Improvement Plan.&lt;br /&gt;
&lt;br /&gt;
[[File:Summary_Report.png|600px|thumb|center|Summary Report page demonstrating added Revision Plan heatgrid]]&lt;br /&gt;
&lt;br /&gt;
*5. Code Optimization&lt;br /&gt;
 *Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
 *Delete the duplicated current_round method.&lt;br /&gt;
 *Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
In order to enable '''Revision Planning''', the setting must be enabled when creating or editing an assignment under the '''General''' tab.  The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly.  '''Revision plan?''' should be checked to enable this option. &lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
[[File:ini1.png|700px|thumb|center|Wireframe of Enabling Assignment's Revision Planning]]&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
The RSpec tests are written to test both controller and models.&lt;br /&gt;
&lt;br /&gt;
Controllers&lt;br /&gt;
&lt;br /&gt;
*spec/controllers/response_controller_spec.rb: Updated spec by stubbing get_questions method to pass.&lt;br /&gt;
*spec/controllers/revision_plan_questionnaires_controller_spec.rb: Updated spec by adding four examples to test revision plan questionnaires controller&lt;br /&gt;
*spec/factories/revision_plan_factory.rb: Create a new factory.rb to create objects unique to revision plans, including RevisionPlanQuestionnaire RevisionPlanTeamMap&lt;br /&gt;
&lt;br /&gt;
Models&lt;br /&gt;
&lt;br /&gt;
*spec/models/response_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
*spec/models/review_response_map_spec.rb: Updated spec by updating expected html output to pass.&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
Since we are still working on our project, the following is part of our UI testing.&lt;br /&gt;
&lt;br /&gt;
1. Go to the overview page of the assignment, the revision planning should only be available at 1st review phase.&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141018</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141018"/>
		<updated>2021-11-06T21:37:51Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase.&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review.&lt;br /&gt;
&lt;br /&gt;
*3. Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
&lt;br /&gt;
*4. Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
&lt;br /&gt;
*5. Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
*6. Delete the duplicated current_round method.&lt;br /&gt;
&lt;br /&gt;
*7. Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141017</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141017"/>
		<updated>2021-11-06T21:37:35Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Rationale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase.&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan check box should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
[[File:Create_New_Assignment.png|700px|thumb|center|Create New Assignment page in the UI, with added Revision Planning checkbox]]&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review.&lt;br /&gt;
&lt;br /&gt;
*3. Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
&lt;br /&gt;
*4. Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
&lt;br /&gt;
*5. Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
*6. Delete the duplicated current_round method.&lt;br /&gt;
&lt;br /&gt;
*7. Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Rationale.png&amp;diff=141015</id>
		<title>File:E2152 Rationale.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Rationale.png&amp;diff=141015"/>
		<updated>2021-11-06T21:34:52Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141014</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141014"/>
		<updated>2021-11-06T21:34:33Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Rationale */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase.&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan? should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review.&lt;br /&gt;
&lt;br /&gt;
*3. Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
&lt;br /&gt;
*4. Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
&lt;br /&gt;
*5. Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
*6. Delete the duplicated current_round method.&lt;br /&gt;
&lt;br /&gt;
*7. Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
The general workflow is shown bellow.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Rationale.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Changes:&lt;br /&gt;
*In the assignment table we have added &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; column to indicate whether the assignment accepts a revision plan along with review rubric.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanTeamMap&amp;lt;/code&amp;gt; maps a questionnaire to an assignment team and round. This will map to a questionnaire of type revision plan that will be created by the revewee.&lt;br /&gt;
*&amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; extends &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; using single table inheritance.&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141012</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=141012"/>
		<updated>2021-11-06T21:33:31Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Control Flow Diagram */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second-round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second-round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Problems with Previous Implementation===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
=Proposed Solution=&lt;br /&gt;
&lt;br /&gt;
===Implementation===&lt;br /&gt;
&lt;br /&gt;
*1. Enable Revision Planning during the review phase.&lt;br /&gt;
Let the author make a choice to decide whether to enable revision planning during the review phase. In order to enable Revision Planning, the setting must be enabled when creating or editing an assignment under the General tab. The wireframe below demonstrates creating an assignment, and editing the assignment functions similarly. Revision plan? should be checked to enable this option.&lt;br /&gt;
&lt;br /&gt;
*2. Set up an assignment with 2 rounds of review.&lt;br /&gt;
&lt;br /&gt;
*3. Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
&lt;br /&gt;
*4. Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
&lt;br /&gt;
*5. Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
&lt;br /&gt;
*6. Delete the duplicated current_round method.&lt;br /&gt;
&lt;br /&gt;
*7. Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
Items in green are additions.&lt;br /&gt;
[[File:E2152_Design.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
=Test Plan=&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Problem_Statement.png&amp;diff=140996</id>
		<title>File:E2152 Problem Statement.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Problem_Statement.png&amp;diff=140996"/>
		<updated>2021-11-06T20:54:22Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: Hchen63 uploaded a new version of File:E2152 Problem Statement.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Problem_Statement.png&amp;diff=140995</id>
		<title>File:E2152 Problem Statement.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Problem_Statement.png&amp;diff=140995"/>
		<updated>2021-11-06T20:53:56Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: Hchen63 uploaded a new version of File:E2152 Problem Statement.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140994</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140994"/>
		<updated>2021-11-06T20:35:32Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Goals */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Let the authors be able to edit the revision plan during the review phase.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*Relocate the method for determining who's on a team in RevisionPlanQuestionnairesController to team.rb.&lt;br /&gt;
*Delete the duplicated current_round method.&lt;br /&gt;
*Split the conditional statements of generate_heatgrid into smaller subclass methods.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140993</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140993"/>
		<updated>2021-11-06T20:24:24Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|400px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. &lt;br /&gt;
*However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140992</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140992"/>
		<updated>2021-11-06T20:23:38Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|250px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. &lt;br /&gt;
*However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Problem_Statement.png&amp;diff=140991</id>
		<title>File:E2152 Problem Statement.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:E2152_Problem_Statement.png&amp;diff=140991"/>
		<updated>2021-11-06T20:22:59Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140990</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140990"/>
		<updated>2021-11-06T20:22:40Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2152_Problem_Statement.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. &lt;br /&gt;
*However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140989</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140989"/>
		<updated>2021-11-06T20:22:19Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
[[File:E2083_Proposed_Design.png|1000px|center]]&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. &lt;br /&gt;
*However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.	&lt;br /&gt;
*After implementation, only a reasonable number of the most important and directly related files have been modified.	&lt;br /&gt;
*There will be concise comments for new code to indicate the purpose.	&lt;br /&gt;
*Compared to the previous teams, there will only be a reasonable amount of new code.&lt;br /&gt;
* The revision-planning rubric can be edited.&lt;br /&gt;
*The revision plan will be placed in a separate section.&lt;br /&gt;
*The method for determining who's on a team would be located in team.rb.&lt;br /&gt;
*Delete the redundant functions and test the system's integrity.&lt;br /&gt;
*Break down the long functions into small functions and reduce conditional cases, then test the system's integrity.&lt;br /&gt;
*Reduce the score calculation and test the system's integrity.&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140609</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140609"/>
		<updated>2021-11-03T15:22:25Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. &lt;br /&gt;
*However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
*There should be 2 rounds of reviews. And reviews should only be available at the review phase, not at the submission phase. Also, students should not be able to edit the revision plan during the review phase.&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140602</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140602"/>
		<updated>2021-11-03T15:09:58Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then the second round reviewers would assess how well they did it. In essence, this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
Revision planning has been implemented three times before, once in [https://expertiza.csc.ncsu.edu/index.php/E1875_Revision_Planning_Tool E1875], once in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool E2016] and another one in [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2020_-_E2083._Revision_planning_tool_E2016 E2083]. While the functionality worked and effectively minimized changes to the code, they also had the following problems:&lt;br /&gt;
*Hardcoded “round” numbers in many places of the code.&lt;br /&gt;
*Documentation does not reflect the new changes they made.&lt;br /&gt;
*Revision planning responses and responses to the other items are not distinguished in heatgrid view.&lt;br /&gt;
*The idea of adding a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; field to each question is intuitive. However, they failed to come up with a clean implementation of this idea. Specifically, they had passed some trailing parameters several methods down before reaching the place that needs them.&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
*Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. &lt;br /&gt;
*However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
*Set up an assignment with 2 rounds of review.&lt;br /&gt;
*Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template.&lt;br /&gt;
*Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
*In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
*The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
*The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
*A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
*Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
*The code should have more comments.&lt;br /&gt;
*The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140360</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140360"/>
		<updated>2021-11-01T23:43:50Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
Students cannot edit the revision plan in the review phase so the review doesn't get changed while other students are reviewing. However, it assumes that reviews cannot be done during the submission phase. Code needs to be written to take care of this part.&lt;br /&gt;
Set up an assignment with 2 rounds of review.&lt;br /&gt;
Allow editing the revision-planning rubric just like editing a normal rubric, using a shared template&lt;br /&gt;
.Instructors and students can view the review report with the revision plan placed in a separate section.&lt;br /&gt;
In RevisionPlanQuestionnairesController, the method for determining who's on a team would be better located in team.rb.&lt;br /&gt;
The current_round method duplicates a method elsewhere in the system.&lt;br /&gt;
The generate_heatgrid has too many conditional statements. It would be better to split it into smaller methods.&lt;br /&gt;
A lot of code deals with score calculations, which shouldn't be a concern for this project.&lt;br /&gt;
Too many files are involved, although they seem to make reasonable decisions about their changes.&lt;br /&gt;
The code should have more comments.&lt;br /&gt;
The team had a good initial design but took as twice much as LoC compared to the previous teams.&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
Kai Gao (kgao2@ncsu.edu)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Huangxing Chen (hchen63)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Yi Li (yli273)&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
Shengjie Guo (sguo25)&lt;br /&gt;
&amp;lt;br&amp;gt; &lt;br /&gt;
'''Mentor:''' Nicholas Himes (nnhimes@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140355</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140355"/>
		<updated>2021-11-01T23:37:49Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second round reviewers would assess how well they did it. In essence,&lt;br /&gt;
this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140354</id>
		<title>CSC/ECE 517 Fall 2021 - E2152. Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool&amp;diff=140354"/>
		<updated>2021-11-01T23:37:13Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page provides a description of the Expertiza based OSS project.&lt;br /&gt;
&lt;br /&gt;
__TOC__&lt;br /&gt;
==Introduction==&lt;br /&gt;
Rounds of peer reviews may be implemented between submissions for assignments on Expertiza. In order to better track the implementation of reviewer's suggestions, a Revision Planning Tool should be implemented.&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
In the first round of Expertiza reviews, we ask reviewers to give authors some guidance on how to improve their work. Then in the second round, reviewers rate how well authors have followed their suggestions. We could carry the interaction one step further if we asked authors to make up a revision plan based on the first-round reviews. That is, authors would say what they were planning to do to improve their work. Then second round reviewers would assess how well they did it. In essence,&lt;br /&gt;
this means that authors would be adding criteria to the second round rubric that applied only to their submission. We are interested in having this implemented and used in a class so that we can study its effect.&lt;br /&gt;
&lt;br /&gt;
===Previous Implementations===&lt;br /&gt;
&lt;br /&gt;
===Rationale===&lt;br /&gt;
&lt;br /&gt;
===Files Modified===&lt;br /&gt;
&lt;br /&gt;
===Goals===&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
===Database Design===&lt;br /&gt;
&lt;br /&gt;
===User Interface===&lt;br /&gt;
====Enable Revision Planning====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Editing the Revision Plan Questionnaire====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Reviewing an Assignment====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
====Summary Report Page====&lt;br /&gt;
&lt;br /&gt;
=====Initial Wireframe=====&lt;br /&gt;
&lt;br /&gt;
=====Final UI=====&lt;br /&gt;
&lt;br /&gt;
=====Implementation=====&lt;br /&gt;
&lt;br /&gt;
===Control Flow Diagram===&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
====RSpec Testing====&lt;br /&gt;
&lt;br /&gt;
====Manual Testing====&lt;br /&gt;
&lt;br /&gt;
==Team Members==&lt;br /&gt;
&lt;br /&gt;
==References==&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021&amp;diff=140350</id>
		<title>CSC/ECE 517 Fall 2021</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021&amp;diff=140350"/>
		<updated>2021-11-01T23:23:55Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Final Projects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OSS Projects ==&lt;br /&gt;
&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2117. Refactor questionaires_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2128. Refactor student_quizzes_controller.rb &amp;amp; late_policies_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2129. Refactor auth_controller.rb &amp;amp; password_retrieval_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2132. Add tests cases for review mapping helper.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2134. Write unit tests for admin_controller.rb and institution_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2138. Auto-generate submission directory names based on assignment]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2142. Improve e-mail notifications]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2133. Write tests for popup_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2120. Refactor reputation_web_service_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2139. Remove multiple topics at a time]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2131. Improve assessment360_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2121. Refactor suggestion_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2122. Refactor impersonate_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2123. Refactor sign_up_sheet_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2126. Refactor account_request_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2124. Refactor review_mapping_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2125. Refactor review_mapping_helper.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2127. Refactor teams_controller]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2130. Refactor submitted_content_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2140. Create new late policy successfully and fix Bank link]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2141. OSS project Finklestein: Instructors &amp;amp; Institutions]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2144. Refactor delayed mailer and scheduled task]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2147. Role-based reviewing]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2145. OSS Project Beige]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2146. Introduce a Student View for instructors]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - Refactor Evaluation of SQL Queries]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2135. Email notification to reviewers and instructors]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2168. Testing - Reputations]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2166. Testing - Scoring &amp;amp; Grades]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2149. Finish Github metrics integration - Reputations]]&lt;br /&gt;
* [[CSC/ECE 517 Fall 2021 - E2161. Merge code for role-based reviewing with code for topic-specific rubrics]]&lt;br /&gt;
&lt;br /&gt;
== Final Projects ==&lt;br /&gt;
* [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2021_-_E2152._Revision_planning_tool#Description_about_project CSC/ECE 517 Fall 2021 - E2152. Revision_planning_tool]&lt;br /&gt;
* [https://expertiza.csc.ncsu.edu/index.php/CSC/ECE_517_Fall_2021_-_E2170._Testing_-_Response_Maps#Description_about_project CSC/ECE 517 Fall 2021 - E2170. Testing - Response Maps]&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2124._Refactor_review_mapping_controller.rb&amp;diff=139950</id>
		<title>CSC/ECE 517 Fall 2021 - E2124. Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2124._Refactor_review_mapping_controller.rb&amp;diff=139950"/>
		<updated>2021-10-24T05:04:12Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Description of the project */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is for the description of changes made under E2124 OSS assignment for Fall 2021, CSC/ECE 517.&lt;br /&gt;
== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is an open source project based on [http://rubyonrails.org/ Ruby on Rails] framework. Expertiza allows the instructor to create new assignments and customize new or existing assignments. It also allows the instructor to create a list of topics the students can sign up for. Students can form teams in Expertiza to work on various projects and assignments. Students can also peer review other students' submissions. Expertiza supports submission across various document types, including the URLs and wiki pages.&lt;br /&gt;
&lt;br /&gt;
== Description of the project ==&lt;br /&gt;
The focus of the project is on a controller named ReviewMappingController and the primary goal is to make changes to the internal structure of the controller to make it easier to read and cheaper to maintain without changing its observable behavior. This can be achieved through refactoring some of the more complex methods, modifying some of the language to make it more Ruby friendly, removing redundant code, etc. &amp;lt;br/&amp;gt;&lt;br /&gt;
Link to the Pull Request Submitted: [https://github.com/expertiza/expertiza/pull/2060] &amp;lt;br/&amp;gt;&lt;br /&gt;
link to the deployed project: [http://152.7.176.14:8080/] &amp;lt;br/&amp;gt;&lt;br /&gt;
Link to the Repository: [https://github.com/JesseChen1031/expertiza] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Functionality of review_mapping_controller ==&lt;br /&gt;
The functionality of review_mapping_controller is to provide mapping for reviewer and assignment. Basically, the controller handles assignment of reviews to different teams or single student user, such as the event of peer review and self review. Also, this controller is responsible to respond student user request for extra bonus reviews based on assignment policy.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
&lt;br /&gt;
The  review_mapping_controller is a long and complex file. Most of the methods are sparsely commented on. Some methods are way too long to understand, please break them down into pieces for better understanding. Also, the few instances of code duplication that exist should also be removed.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
-Refactor the long methods in review_mapping_controller.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
-Rename variable names such as student_review_num, submission_review_num, calibrated_artifacts_num, participants_hash to convey what they are actually used for&amp;lt;br/&amp;gt;&lt;br /&gt;
-Replace switch statements with subclasses methods &amp;lt;br/&amp;gt;&lt;br /&gt;
-Create models for the subclasses&amp;lt;br/&amp;gt;&lt;br /&gt;
-Remove hardcoded parameters&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
[[File:Work_flow.png|1000px]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
We were tasked to refactor the review_mapping_controller.rb and solve any cascading issues or bugs we could find. We followed the above work plan to complete this task. There were many times when all the Rspec and Cucumber tests passed locally but ran into an issue when we uploaded the changes on GitHub. Prompt feedback from the TRAVIS CI helped us recognize the issue. Then we went on local machine and followed the whole process of refactoring again. In this way, we covered every refactoring we did and ensured that the TRAVIS CI get passed with minimum issues on the code-climate.&lt;br /&gt;
&lt;br /&gt;
== Files modified/created in the current project ==&lt;br /&gt;
&lt;br /&gt;
1. review_mapping_controller.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
2. review_mapping_controller_spec.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
3. select_reviewer.html.haml &amp;lt;br/&amp;gt;&lt;br /&gt;
4. app/views/assignments/edit/_calibration.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
5. app/views/review_mapping/select_reviewer.html.haml&amp;lt;br/&amp;gt;&lt;br /&gt;
6. app/views/student_quizzes/_set_dynamic_quiz.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
7. app/views/student_review/_set_dynamic_review.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
8. config/routes.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
9. db/schema.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
10. spec/controllers/review_mapping_controller_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
11. spec/features/assignment_creation_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
12. spec/features/review_assignment_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
13. spec/features/review_mapping_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ReviewMappingController ===&lt;br /&gt;
 &lt;br /&gt;
This controller will map the submissions made by the teams to the students for facilitating peer-reviewing. A couple of '''long''' and '''complex methods''' such as '''peer_review_strategy''' and '''automatic_review_mapping''' were refactored from this controller along with the '''removal''' of some '''non-related methods''' such as '''add_calibration''' and '''assign_quiz_dynamically'''. Variable names have been changed and code has been modularized and helper methods were separated from the important methods into a module and were included in the class.&lt;br /&gt;
&lt;br /&gt;
Test Cases were created for the newly created controllers such as assign_quiz_controller etc.&lt;br /&gt;
&lt;br /&gt;
=== review_mapping_controller_spec.rb ===&lt;br /&gt;
 &lt;br /&gt;
Added a test in this file.&lt;br /&gt;
&lt;br /&gt;
=== _set_dynamic_review.html.erb &amp;amp; review_assignment_spec.rb &amp;amp; review_mapping_spec.rb &amp;amp; routes.rb &amp;amp; assignment_creation_review_strategy_spec.rb &amp;amp; assignment_creation_spec.rb ===&lt;br /&gt;
 &lt;br /&gt;
Modified due to the variable name change.&lt;br /&gt;
&lt;br /&gt;
=== views/partials ===&lt;br /&gt;
&lt;br /&gt;
Routes were changed in the views and partials.&lt;br /&gt;
&lt;br /&gt;
==== Modified View Files: ====&lt;br /&gt;
app\views\review_mapping\select_reviewer.html.haml   &amp;lt;br&amp;gt;&lt;br /&gt;
app/views/student_quizzes/_set_dynamic_quiz.html.erb &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Details of the changes made==&lt;br /&gt;
1. A couple of long and coplex methods such as peer_review_strategy were refactored from this controller. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *A random participant_id is generated from the possible pool of candidates but the code block for that is kind of a query, i.e. it does not change or set anything.  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *And it is equally complex enough to confuse the reader. So this has been put into a helper method with an expressive name to increase readability. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Removed code redundancy from review_mapping_controller#peer_review_strategy. Long and reusable code were sorted out to form a new helper function.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Replaced the one in the before(:each) loop by @instructor = build(:instructor, id: 1) and used @instructor class variable, wherever required. &amp;lt;br/&amp;gt;&lt;br /&gt;
[[File:Peer_review.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Rename variable names and remove hardcoded paramters.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Changed :i_dont_care to :no_particular_topic. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *:i_dont_care was used in the /app/views/student_review/_set_dynamic_review.html.erb as a flag to store if student is interested in any particular topic or doesn't care which topic to review.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *It was also used in review_mapping_controller.rb to check if student has selected any particular topic.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Since, name :i_dont_care was very difficult to understand, we replaced it with something logical such as :no_particular_topic. It gives hint about what the symbol stores.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Changed :add_reviewer to :assign_reviewer_dynamically. &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. Replace switch statements with subclasses methods &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; We used &amp;quot;check_num_reviews_args&amp;quot; function to represent the switch statements in &amp;quot;automatic review mapping&amp;quot; function to simply it.&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br/&amp;gt; [[File:Subfunc_for_switch.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Create models for the subclasses&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; We created 3 modules and put relative subclasses methods in to make the controller more organized.&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br/&amp;gt; [[File:3_modules.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Added one test case and modified &amp;quot;select_metaviewver&amp;quot; to check if a mapping can be found correctly.&lt;br /&gt;
&amp;lt;br/&amp;gt;[[File:Test_case.png|1000px]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
=== Rspec Unit Tests === &lt;br /&gt;
&lt;br /&gt;
Since this is a Refactoring Project, We made sure that the changes made did not break any functionality.&lt;br /&gt;
&lt;br /&gt;
[[File:rspec_test_passed.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Capybara Integration and Functional Tests === &lt;br /&gt;
&lt;br /&gt;
Our project passed the Travis CI build test.&lt;br /&gt;
&lt;br /&gt;
[[File:Build_pass.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
== Code Coverage == &lt;br /&gt;
&lt;br /&gt;
Code Coverage for Controllers section climbed up. &lt;br /&gt;
&lt;br /&gt;
[https://coveralls.io/builds/43657457/source?filename=app%2Fcontrollers%2Freview_mapping_controller.rb] # Link for the COVERALLS stats of our pull request.&lt;br /&gt;
&lt;br /&gt;
[[File:Coverall.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
== Project Mentor ==&lt;br /&gt;
&lt;br /&gt;
Jialin Cui (jcui9@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
== Team Members ==&lt;br /&gt;
&lt;br /&gt;
Yi Li (yli273@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
Zijun Lu (zlu5@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
Huangxing Chen (hchen63@ncsu.edu)&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2124._Refactor_review_mapping_controller.rb&amp;diff=139845</id>
		<title>CSC/ECE 517 Fall 2021 - E2124. Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2124._Refactor_review_mapping_controller.rb&amp;diff=139845"/>
		<updated>2021-10-21T03:42:27Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Capybara Integration and Functional Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is for the description of changes made under E2124 OSS assignment for Fall 2021, CSC/ECE 517.&lt;br /&gt;
== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is an open source project based on [http://rubyonrails.org/ Ruby on Rails] framework. Expertiza allows the instructor to create new assignments and customize new or existing assignments. It also allows the instructor to create a list of topics the students can sign up for. Students can form teams in Expertiza to work on various projects and assignments. Students can also peer review other students' submissions. Expertiza supports submission across various document types, including the URLs and wiki pages.&lt;br /&gt;
&lt;br /&gt;
== Description of the project ==&lt;br /&gt;
The focus of the project is on a controller named ReviewMappingController and the primary goal is to make changes to the internal structure of the controller to make it easier to read and cheaper to maintain without changing its observable behavior. This can be achieved through refactoring some of the more complex methods, modifying some of the language to make it more Ruby friendly, removing redundant code, etc. &amp;lt;br/&amp;gt;&lt;br /&gt;
Link to the Pull Request Submitted: [https://github.com/expertiza/expertiza/pull/2060] &amp;lt;br/&amp;gt;&lt;br /&gt;
link to the deployed project: [http://152.46.17.120:8080/] &amp;lt;br/&amp;gt;&lt;br /&gt;
Link to the Repository: [https://github.com/JesseChen1031/expertiza] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Functionality of review_mapping_controller ==&lt;br /&gt;
The functionality of review_mapping_controller is to provide mapping for reviewer and assignment. Basically, the controller handles assignment of reviews to different teams or single student user, such as the event of peer review and self review. Also, this controller is responsible to respond student user request for extra bonus reviews based on assignment policy.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
&lt;br /&gt;
The  review_mapping_controller is a long and complex file. Most of the methods are sparsely commented on. Some methods are way too long to understand, please break them down into pieces for better understanding. Also, the few instances of code duplication that exist should also be removed.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
-Refactor the long methods in review_mapping_controller.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
-Rename variable names such as student_review_num, submission_review_num, calibrated_artifacts_num, participants_hash to convey what they are actually used for&amp;lt;br/&amp;gt;&lt;br /&gt;
-Replace switch statements with subclasses methods &amp;lt;br/&amp;gt;&lt;br /&gt;
-Create models for the subclasses&amp;lt;br/&amp;gt;&lt;br /&gt;
-Remove hardcoded parameters&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
[[File:Work_flow.png|1000px]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
We were tasked to refactor the review_mapping_controller.rb and solve any cascading issues or bugs we could find. We followed the above work plan to complete this task. There were many times when all the Rspec and Cucumber tests passed locally but ran into an issue when we uploaded the changes on GitHub. Prompt feedback from the TRAVIS CI helped us recognize the issue. Then we went on local machine and followed the whole process of refactoring again. In this way, we covered every refactoring we did and ensured that the TRAVIS CI get passed with minimum issues on the code-climate.&lt;br /&gt;
&lt;br /&gt;
== Files modified/created in the current project ==&lt;br /&gt;
&lt;br /&gt;
1. review_mapping_controller.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
2. review_mapping_controller_spec.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
3. select_reviewer.html.haml &amp;lt;br/&amp;gt;&lt;br /&gt;
4. app/views/assignments/edit/_calibration.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
5. app/views/review_mapping/select_reviewer.html.haml&amp;lt;br/&amp;gt;&lt;br /&gt;
6. app/views/student_quizzes/_set_dynamic_quiz.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
7. app/views/student_review/_set_dynamic_review.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
8. config/routes.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
9. db/schema.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
10. spec/controllers/review_mapping_controller_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
11. spec/features/assignment_creation_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
12. spec/features/review_assignment_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
13. spec/features/review_mapping_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ReviewMappingController ===&lt;br /&gt;
 &lt;br /&gt;
This controller will map the submissions made by the teams to the students for facilitating peer-reviewing. A couple of '''long''' and '''complex methods''' such as '''peer_review_strategy''' and '''automatic_review_mapping''' were refactored from this controller along with the '''removal''' of some '''non-related methods''' such as '''add_calibration''' and '''assign_quiz_dynamically'''. Variable names have been changed and code has been modularized and helper methods were separated from the important methods into a module and were included in the class.&lt;br /&gt;
&lt;br /&gt;
Test Cases were created for the newly created controllers such as assign_quiz_controller etc.&lt;br /&gt;
&lt;br /&gt;
=== review_mapping_controller_spec.rb ===&lt;br /&gt;
 &lt;br /&gt;
Added a test in this file.&lt;br /&gt;
&lt;br /&gt;
=== _set_dynamic_review.html.erb &amp;amp; review_assignment_spec.rb &amp;amp; review_mapping_spec.rb &amp;amp; routes.rb &amp;amp; assignment_creation_review_strategy_spec.rb &amp;amp; assignment_creation_spec.rb ===&lt;br /&gt;
 &lt;br /&gt;
Modified due to the variable name change.&lt;br /&gt;
&lt;br /&gt;
=== views/partials ===&lt;br /&gt;
&lt;br /&gt;
Routes were changed in the views and partials.&lt;br /&gt;
&lt;br /&gt;
==== Modified View Files: ====&lt;br /&gt;
app\views\review_mapping\select_reviewer.html.haml   &amp;lt;br&amp;gt;&lt;br /&gt;
app/views/student_quizzes/_set_dynamic_quiz.html.erb &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Details of the changes made==&lt;br /&gt;
1. A couple of long and coplex methods such as peer_review_strategy were refactored from this controller. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *A random participant_id is generated from the possible pool of candidates but the code block for that is kind of a query, i.e. it does not change or set anything.  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *And it is equally complex enough to confuse the reader. So this has been put into a helper method with an expressive name to increase readability. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Removed code redundancy from review_mapping_controller#peer_review_strategy. Long and reusable code were sorted out to form a new helper function.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Replaced the one in the before(:each) loop by @instructor = build(:instructor, id: 1) and used @instructor class variable, wherever required. &amp;lt;br/&amp;gt;&lt;br /&gt;
[[File:Peer_review.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Rename variable names and remove hardcoded paramters.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Changed :i_dont_care to :no_particular_topic. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *:i_dont_care was used in the /app/views/student_review/_set_dynamic_review.html.erb as a flag to store if student is interested in any particular topic or doesn't care which topic to review.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *It was also used in review_mapping_controller.rb to check if student has selected any particular topic.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Since, name :i_dont_care was very difficult to understand, we replaced it with something logical such as :no_particular_topic. It gives hint about what the symbol stores.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Replace switch statements with subclasses methods &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; We used &amp;quot;check_num_reviews_args&amp;quot; function to represent the switch statements in &amp;quot;automatic review mapping&amp;quot; function to simply it.&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br/&amp;gt; [[File:Subfunc_for_switch.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Create models for the subclasses&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; We created 3 modules and put relative subclasses methods in to make the controller more organized.&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br/&amp;gt; [[File:3_modules.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Added one test case and modified &amp;quot;select_metaviewver&amp;quot; to check if a mapping can be found correctly.&lt;br /&gt;
&amp;lt;br/&amp;gt;[[File:Test_case.png|1000px]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
=== Rspec Unit Tests === &lt;br /&gt;
&lt;br /&gt;
Since this is a Refactoring Project, We made sure that the changes made did not break any functionality.&lt;br /&gt;
&lt;br /&gt;
[[File:rspec_test_passed.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Capybara Integration and Functional Tests === &lt;br /&gt;
&lt;br /&gt;
Our project passed the Travis CI build test.&lt;br /&gt;
&lt;br /&gt;
[[File:Build_pass.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
== Code Coverage == &lt;br /&gt;
&lt;br /&gt;
Code Coverage for Controllers section climbed up. &lt;br /&gt;
&lt;br /&gt;
[https://coveralls.io/builds/43657457/source?filename=app%2Fcontrollers%2Freview_mapping_controller.rb] # Link for the COVERALLS stats of our pull request.&lt;br /&gt;
&lt;br /&gt;
[[File:Coverall.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
== Project Mentor ==&lt;br /&gt;
&lt;br /&gt;
Jialin Cui (jcui9@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
== Team Members ==&lt;br /&gt;
&lt;br /&gt;
Yi Li (yli273@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
Zijun Lu (zlu5@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
Huangxing Chen (hchen63@ncsu.edu)&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Build_pass.png&amp;diff=139844</id>
		<title>File:Build pass.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Build_pass.png&amp;diff=139844"/>
		<updated>2021-10-21T03:42:03Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2124._Refactor_review_mapping_controller.rb&amp;diff=139843</id>
		<title>CSC/ECE 517 Fall 2021 - E2124. Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Fall_2021_-_E2124._Refactor_review_mapping_controller.rb&amp;diff=139843"/>
		<updated>2021-10-21T03:41:54Z</updated>

		<summary type="html">&lt;p&gt;Hchen63: /* Capybara Integration and Functional Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page is for the description of changes made under E2124 OSS assignment for Fall 2021, CSC/ECE 517.&lt;br /&gt;
== About Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is an open source project based on [http://rubyonrails.org/ Ruby on Rails] framework. Expertiza allows the instructor to create new assignments and customize new or existing assignments. It also allows the instructor to create a list of topics the students can sign up for. Students can form teams in Expertiza to work on various projects and assignments. Students can also peer review other students' submissions. Expertiza supports submission across various document types, including the URLs and wiki pages.&lt;br /&gt;
&lt;br /&gt;
== Description of the project ==&lt;br /&gt;
The focus of the project is on a controller named ReviewMappingController and the primary goal is to make changes to the internal structure of the controller to make it easier to read and cheaper to maintain without changing its observable behavior. This can be achieved through refactoring some of the more complex methods, modifying some of the language to make it more Ruby friendly, removing redundant code, etc. &amp;lt;br/&amp;gt;&lt;br /&gt;
Link to the Pull Request Submitted: [https://github.com/expertiza/expertiza/pull/2060] &amp;lt;br/&amp;gt;&lt;br /&gt;
link to the deployed project: [http://152.46.17.120:8080/] &amp;lt;br/&amp;gt;&lt;br /&gt;
Link to the Repository: [https://github.com/JesseChen1031/expertiza] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Functionality of review_mapping_controller ==&lt;br /&gt;
The functionality of review_mapping_controller is to provide mapping for reviewer and assignment. Basically, the controller handles assignment of reviews to different teams or single student user, such as the event of peer review and self review. Also, this controller is responsible to respond student user request for extra bonus reviews based on assignment policy.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
&lt;br /&gt;
The  review_mapping_controller is a long and complex file. Most of the methods are sparsely commented on. Some methods are way too long to understand, please break them down into pieces for better understanding. Also, the few instances of code duplication that exist should also be removed.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
-Refactor the long methods in review_mapping_controller.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
-Rename variable names such as student_review_num, submission_review_num, calibrated_artifacts_num, participants_hash to convey what they are actually used for&amp;lt;br/&amp;gt;&lt;br /&gt;
-Replace switch statements with subclasses methods &amp;lt;br/&amp;gt;&lt;br /&gt;
-Create models for the subclasses&amp;lt;br/&amp;gt;&lt;br /&gt;
-Remove hardcoded parameters&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
[[File:Work_flow.png|1000px]]&lt;br /&gt;
&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
We were tasked to refactor the review_mapping_controller.rb and solve any cascading issues or bugs we could find. We followed the above work plan to complete this task. There were many times when all the Rspec and Cucumber tests passed locally but ran into an issue when we uploaded the changes on GitHub. Prompt feedback from the TRAVIS CI helped us recognize the issue. Then we went on local machine and followed the whole process of refactoring again. In this way, we covered every refactoring we did and ensured that the TRAVIS CI get passed with minimum issues on the code-climate.&lt;br /&gt;
&lt;br /&gt;
== Files modified/created in the current project ==&lt;br /&gt;
&lt;br /&gt;
1. review_mapping_controller.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
2. review_mapping_controller_spec.rb &amp;lt;br/&amp;gt;&lt;br /&gt;
3. select_reviewer.html.haml &amp;lt;br/&amp;gt;&lt;br /&gt;
4. app/views/assignments/edit/_calibration.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
5. app/views/review_mapping/select_reviewer.html.haml&amp;lt;br/&amp;gt;&lt;br /&gt;
6. app/views/student_quizzes/_set_dynamic_quiz.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
7. app/views/student_review/_set_dynamic_review.html.erb&amp;lt;br/&amp;gt;&lt;br /&gt;
8. config/routes.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
9. db/schema.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
10. spec/controllers/review_mapping_controller_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
11. spec/features/assignment_creation_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
12. spec/features/review_assignment_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
13. spec/features/review_mapping_spec.rb&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== ReviewMappingController ===&lt;br /&gt;
 &lt;br /&gt;
This controller will map the submissions made by the teams to the students for facilitating peer-reviewing. A couple of '''long''' and '''complex methods''' such as '''peer_review_strategy''' and '''automatic_review_mapping''' were refactored from this controller along with the '''removal''' of some '''non-related methods''' such as '''add_calibration''' and '''assign_quiz_dynamically'''. Variable names have been changed and code has been modularized and helper methods were separated from the important methods into a module and were included in the class.&lt;br /&gt;
&lt;br /&gt;
Test Cases were created for the newly created controllers such as assign_quiz_controller etc.&lt;br /&gt;
&lt;br /&gt;
=== review_mapping_controller_spec.rb ===&lt;br /&gt;
 &lt;br /&gt;
Added a test in this file.&lt;br /&gt;
&lt;br /&gt;
=== _set_dynamic_review.html.erb &amp;amp; review_assignment_spec.rb &amp;amp; review_mapping_spec.rb &amp;amp; routes.rb &amp;amp; assignment_creation_review_strategy_spec.rb &amp;amp; assignment_creation_spec.rb ===&lt;br /&gt;
 &lt;br /&gt;
Modified due to the variable name change.&lt;br /&gt;
&lt;br /&gt;
=== views/partials ===&lt;br /&gt;
&lt;br /&gt;
Routes were changed in the views and partials.&lt;br /&gt;
&lt;br /&gt;
==== Modified View Files: ====&lt;br /&gt;
app\views\review_mapping\select_reviewer.html.haml   &amp;lt;br&amp;gt;&lt;br /&gt;
app/views/student_quizzes/_set_dynamic_quiz.html.erb &amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Details of the changes made==&lt;br /&gt;
1. A couple of long and coplex methods such as peer_review_strategy were refactored from this controller. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *A random participant_id is generated from the possible pool of candidates but the code block for that is kind of a query, i.e. it does not change or set anything.  &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *And it is equally complex enough to confuse the reader. So this has been put into a helper method with an expressive name to increase readability. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Removed code redundancy from review_mapping_controller#peer_review_strategy. Long and reusable code were sorted out to form a new helper function.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Replaced the one in the before(:each) loop by @instructor = build(:instructor, id: 1) and used @instructor class variable, wherever required. &amp;lt;br/&amp;gt;&lt;br /&gt;
[[File:Peer_review.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
2. Rename variable names and remove hardcoded paramters.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Changed :i_dont_care to :no_particular_topic. &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *:i_dont_care was used in the /app/views/student_review/_set_dynamic_review.html.erb as a flag to store if student is interested in any particular topic or doesn't care which topic to review.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *It was also used in review_mapping_controller.rb to check if student has selected any particular topic.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; *Since, name :i_dont_care was very difficult to understand, we replaced it with something logical such as :no_particular_topic. It gives hint about what the symbol stores.&amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
3. Replace switch statements with subclasses methods &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; We used &amp;quot;check_num_reviews_args&amp;quot; function to represent the switch statements in &amp;quot;automatic review mapping&amp;quot; function to simply it.&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br/&amp;gt; [[File:Subfunc_for_switch.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
4. Create models for the subclasses&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; We created 3 modules and put relative subclasses methods in to make the controller more organized.&lt;br /&gt;
&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp;&amp;amp;nbsp; &amp;lt;br/&amp;gt; [[File:3_modules.png|1000px]] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. Added one test case and modified &amp;quot;select_metaviewver&amp;quot; to check if a mapping can be found correctly.&lt;br /&gt;
&amp;lt;br/&amp;gt;[[File:Test_case.png|1000px]]&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
&lt;br /&gt;
=== Rspec Unit Tests === &lt;br /&gt;
&lt;br /&gt;
Since this is a Refactoring Project, We made sure that the changes made did not break any functionality.&lt;br /&gt;
&lt;br /&gt;
[[File:rspec_test_passed.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
=== Capybara Integration and Functional Tests === &lt;br /&gt;
&lt;br /&gt;
Our project passed the Travis CI build test.&lt;br /&gt;
&lt;br /&gt;
[[File:Build_pass.png]]&lt;br /&gt;
&lt;br /&gt;
== Code Coverage == &lt;br /&gt;
&lt;br /&gt;
Code Coverage for Controllers section climbed up. &lt;br /&gt;
&lt;br /&gt;
[https://coveralls.io/builds/43657457/source?filename=app%2Fcontrollers%2Freview_mapping_controller.rb] # Link for the COVERALLS stats of our pull request.&lt;br /&gt;
&lt;br /&gt;
[[File:Coverall.png|1000px]]&lt;br /&gt;
&lt;br /&gt;
== Project Mentor ==&lt;br /&gt;
&lt;br /&gt;
Jialin Cui (jcui9@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
== Team Members ==&lt;br /&gt;
&lt;br /&gt;
Yi Li (yli273@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
Zijun Lu (zlu5@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
Huangxing Chen (hchen63@ncsu.edu)&lt;/div&gt;</summary>
		<author><name>Hchen63</name></author>
	</entry>
</feed>