<?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=Bzhong2</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=Bzhong2"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Bzhong2"/>
	<updated>2026-09-30T14:15:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool&amp;diff=133657</id>
		<title>CSC/ECE 517 Spring 2020 E2016 Revision planning tool</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_E2016_Revision_planning_tool&amp;diff=133657"/>
		<updated>2020-04-16T17:25:22Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: /* Database Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=Introduction=&lt;br /&gt;
&lt;br /&gt;
==About our team==&lt;br /&gt;
&lt;br /&gt;
Team members:&lt;br /&gt;
*Tianji Gao (tgao5@ncsu.edu)&lt;br /&gt;
*Guoyi Wang (gwang25@ncsu.edu)&lt;br /&gt;
*Yulin Zhang (yzhan114@ncsu.edu)&lt;br /&gt;
*Boxuan Zhong (bzhong2@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
Project mentor: Edward Gehringer (efg@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
==What is Revision Planning?==&lt;br /&gt;
&lt;br /&gt;
In the first round of the Expertiza reviews, reviewers are asked 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. Revision planning is a mechanism used to carry the interaction one step further by having authors to supply a revision plan based on the previous round reviews. That is, the authors would derive their plan for code improvement from the previous round reviews and reviewers would later assess how well they did it. &lt;br /&gt;
&lt;br /&gt;
Revision planning is helpful because it makes the author think about what's necessary to improve the work before putting forth the effort to improve it.  This leads to a more reflective work process and is likely to produce a better-finished product.  When reviewers have an opportunity to give feedback to the author, they too will learn what a good revision plan looks like.&lt;br /&gt;
&lt;br /&gt;
According to the given instructions, a revision plan consists of a description of the plan, followed by any number of questions that would later be appended to the future review questionnaire. The revision plan is per AssignmentTeam-based, which means the authors’ questions would only be used to evaluate their submission and not anyone else. By adding the functionality of revision planning, it helps researchers study the effect of the reviewer’s suggestions on the code improvement.&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
This functionality has previously been done by a team of students from the Fall semester of 2018. Their implementation was merged into the master branch but was reverted due to the following design concerns:&lt;br /&gt;
*The relationship between `Questionnaire` and `SubmissionRecord` is unclear.&lt;br /&gt;
*Uses a lot of '''special-purpose''' code when existing codes may fulfill the same job.&lt;br /&gt;
*Revision planning cannot be enabled or disabled for an assignment.&lt;br /&gt;
*Numeric labelings for the revision plan questions begin from 1 again, instead of continuing after the original rubric questions.&lt;br /&gt;
*Codebase contains commented codes that are no longer wanted.&lt;br /&gt;
Check out the wiki page and the pull request on GitHub if you would like to learn more about the previous implementation of this project.&lt;br /&gt;
*http://wiki.expertiza.ncsu.edu/index.php/E1875_Revision_Planning_Tool&lt;br /&gt;
*https://github.com/expertiza/expertiza/pull/1302&lt;br /&gt;
Please note that unlike the other teams we have reviewed, this project is a complete redo rather than modifications built upon the previous team’s codes because our approach to this problem would be different than theirs. Therefore, we will not mention the previous implementation in the later content.&lt;br /&gt;
&lt;br /&gt;
==Problem Statement==&lt;br /&gt;
&lt;br /&gt;
For this project, we identified 4 major work items that together fulfill the stated requirements.&lt;br /&gt;
&lt;br /&gt;
'''Sort out the relationship among classes and introduce the new abstraction of the revision plan to the system in a way that it doesn’t interfere with the majority of codes'''&lt;br /&gt;
&lt;br /&gt;
We decided to relate each &amp;lt;code&amp;gt;Question&amp;lt;/code&amp;gt; object with team_id. A &amp;lt;code&amp;gt;ReviewQuestionnaire&amp;lt;/code&amp;gt; may have both questions with no &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; and some questions with a &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt;. A question with no team_id indicates that it does not belong to any assignment teams so it is a question set up by the instructor, that will appear on review forms for '''all''' submissions. A question with a team_id, in contrast, indicates that it belongs to a particular team so it is a revision plan question. Both types of questions will be saved under the same questionnaire used for a given round. In this way, we can maximize the usage of existing codes and the only major change should be contained within the &amp;lt;code&amp;gt;Question&amp;lt;/code&amp;gt; class.&lt;br /&gt;
&lt;br /&gt;
'''Modify the existing views and controllers to accommodate the new functionality which includes'''&lt;br /&gt;
*Allowing teaching staff to enable/disable revision planning for an assignment.&lt;br /&gt;
*Allowing team members to create/edit their revision plan during each submission period after the first round.&lt;br /&gt;
*Allowing both rubric questions and revision plan questions to appear on the same page and be serialized correctly.&lt;br /&gt;
*Allowing feedback on the revision plan only to be viewed by the team that creates the plan and that team's instructor.&lt;br /&gt;
&lt;br /&gt;
This will involve some minor changes such as appending an optional trailing parameter to some method signatures, adding interactive elements to the views, and slightly adjusting the structure of certain view templates.&lt;br /&gt;
&lt;br /&gt;
In addition, we planned to:&lt;br /&gt;
*Provide an adequate amount of tests to improve code coverage.&lt;br /&gt;
*Do necessary refactoring and resolve any CodeClimate issues.&lt;br /&gt;
&lt;br /&gt;
After communicated with our mentor Dr. Gehringer, we have been clarified with the following two problem statements.&lt;br /&gt;
&lt;br /&gt;
'''Every new question must be linked to the second-round questionnaire.'''&lt;br /&gt;
&lt;br /&gt;
This means both questions from the team’s revision plan and questions from the review rubric should be displayed together in the frontend. Since we decided to add revision plan questions to the review rubric of the round, we automatically linked every new question to the questionnaire of that round. &lt;br /&gt;
&lt;br /&gt;
'''Every new question must be linked to the author’s submission'''&lt;br /&gt;
&lt;br /&gt;
By saying every new question must be linked to the author’s submission, it means that there should be some relationships between the team and the team’s revision plan questions presented in the database. We addressed this problem by associating them with a team_id field. See Database Design section for more details.  This will probably involve a DB migration to add the team_id field to the questions table.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Control Flow Diagram==&lt;br /&gt;
&lt;br /&gt;
The below image shows the control flow of the revision planning functionality.&lt;br /&gt;
&lt;br /&gt;
[[File:E2016_control_flow_diagram.png]]  [Better to test if you are in a resubmission period, since there are method calls to do that.  If you tested if Round 1 had ended, you'd have to write queries and then do calculations on the data.]&lt;br /&gt;
&lt;br /&gt;
The below image shows the control flow of the revision planning functionality. It involves 3 types of actors, student (reviewee), student (reviewer) and instructor/TA who manages the assignment and review processes. To understand each actor’s responsibility, trace each colored line that arose from each actor in the direction specified by the arrows. The diamond shape represents a decision or precondition, that is, only after the condition meets can the next action proceeds.&lt;br /&gt;
&lt;br /&gt;
Summary of actions&lt;br /&gt;
*A TA/Instructor can&lt;br /&gt;
*#Enable revision planning&lt;br /&gt;
*#Impersonate students to perform their responsibility&lt;br /&gt;
*#View feedback report of all teams&lt;br /&gt;
*A student (reviewee) can&lt;br /&gt;
*#Make revision during the second round submission period, which includes reading first-round feedback and adding revision plan questions according to that feedback.&lt;br /&gt;
*#View feedback report of the team it belongs to&lt;br /&gt;
*A student (reviewer) can&lt;br /&gt;
*#Give feedback on the team’s revised work by answering each question (including the team's revision plan questions) appeared on the review page.&lt;br /&gt;
*#View the feedback it wrote to the team.&lt;br /&gt;
&lt;br /&gt;
==UI Design==&lt;br /&gt;
&lt;br /&gt;
A revision plan should be similar to other review questionnaires. Since functionalities on the review questionnaire have been maturely implemented, we expected to make the least amount of interface changes by utilizing the existing view templates whenever possible. The subsections listed the changes we planned to make.&lt;br /&gt;
&lt;br /&gt;
===Enabling revision planning===&lt;br /&gt;
&lt;br /&gt;
Implementation of enabling/disabling revision planning for each assignment can be rather straightforward. We looked to add an additional checkbox under the &amp;quot;Review strategy&amp;quot; tab of the assignment’s edit page. This checkbox is labeled as &amp;quot;Enable Revision Planning?&amp;quot; to indicate whether the instructor wants to include this functionality in the newly-created assignment. It is most reasonable to place the checkbox here because it is review related and other similar functionalities like Self Reviews are also implemented in this manner.&lt;br /&gt;
&lt;br /&gt;
[[File:E2016_enabling_revision_planning.png]]&lt;br /&gt;
&lt;br /&gt;
===Link to the revision planning page===&lt;br /&gt;
&lt;br /&gt;
If the instructor decided to include revision planning in this assignment, then the link to “Revision Planning” would appear on the student’s assignment page but would stay disabled during the first round. After that, It would become clickable during every submission period and greyed again during every review period. By clicking it, students would be redirected to a whole new page explained under the ‘Revision planning page’ subsection.  [Revision planning should surely come before &amp;quot;Your scores&amp;quot;.]&lt;br /&gt;
&lt;br /&gt;
[[File:E2016_link_to_the_revision_planning_page.png]]&lt;br /&gt;
&lt;br /&gt;
===Revision planning page===&lt;br /&gt;
&lt;br /&gt;
The revision plan is just like other questionnaires in that it contains a set of questions for reviewers to answer. The only difference is that the revision plan comes with an additional description to help reviewers understand what changes have been made so far. Therefore, it should make use of most existing view templates and controller codes with minimized changes. As the image is shown, the only modification made from the existing questionnaire creation template would be to include a link that redirects students to the submission page, where the uploading of the revision plan will be handled by the existing implementation. The advantage to upload an external link rather than typing everything to the textbox element is that the description can be well-formatted if it displays outside the form and not causing a distraction effect for reviewers during the review. We also decided to leave out (or hide) the place where instructors set the configuration stuff like the range of scores and the questionnaire's visibility. These configurations should use default values defined in the system rather than having students come up with their own.&lt;br /&gt;
&lt;br /&gt;
[[File:E2016_revision_planning_page.png]]&lt;br /&gt;
&lt;br /&gt;
===Review page===&lt;br /&gt;
&lt;br /&gt;
The format of the review page remains almost exactly the same. To distinguish between rubric questions set up by the instructor and the revision plan questions created by the team under review, all the revision plan questions are placed after the rubric questions, split by an enlarged “Revision planning” subheader. [Having a &amp;quot;Revision planning&amp;quot; header is reasonable, but if the author changes a sequence number to put one of their questions earlier in the rubric, that should be allowed.]&lt;br /&gt;
[[File:E2016_review_page.png]]&lt;br /&gt;
&lt;br /&gt;
[[File:E2016_review_page_2.png]]&lt;br /&gt;
&lt;br /&gt;
===Feedback report===&lt;br /&gt;
&lt;br /&gt;
Teaching staff and students have different windows to access the feedback report. &lt;br /&gt;
*'''Teaching staff''': Manage-&amp;gt;Assignments-&amp;gt;Edit Assignment-&amp;gt;Other stuff-&amp;gt;View scores&lt;br /&gt;
*'''Students''': Assignments-&amp;gt;View Assignment-&amp;gt;Alternative View&lt;br /&gt;
In addition, either instructor and TA can impersonate students to access the feedback report from their views. We would like to consider both cases and illustrate each of them separately.&lt;br /&gt;
&lt;br /&gt;
====TA/Instructor====&lt;br /&gt;
&lt;br /&gt;
Scores for the second round review rubric and the author’s revision plan questions will be displayed on the same table and are serialized correctly. See the figure below for an example. Let say the second round rubric has only 5 questions, the remaining questions (6-10) will be revision planning questions written by a particular team.&lt;br /&gt;
&lt;br /&gt;
[[File:E2016_feedback_report_instructor.png]]&lt;br /&gt;
&lt;br /&gt;
For reviewer: if you reviewed our first draft design, you should notice that we originally chose to place revision plan scores on a distinct table. After our mentor clarified to us, we realized that there can be possibly more than 2 rounds of submission and review periods for a given assignment. Therefore, scores for revision planning questions can vary round by round. Therefore, our previous solution will not work since it confuses the user of which round the revision plan scores refer to.&lt;br /&gt;
[It would be nice if there was a way to distinguish instructor questions from questions added by students.  This might be done with a special symbol, or by shading the background of the cell with the question number, etc.]&lt;br /&gt;
&lt;br /&gt;
====Student====&lt;br /&gt;
&lt;br /&gt;
The revision planning section will be added to the students’ view as shown in the snapshot below. It displays in the same order as how the review page does. A “Revision Planning” subheader is also used here to indicate the starting of the revision planning section.&lt;br /&gt;
&lt;br /&gt;
[[File:E2016_feedback_report_student.png]]&lt;br /&gt;
&lt;br /&gt;
==Database Design==&lt;br /&gt;
&lt;br /&gt;
Here we present the diagram of our database design. As the yellow borders show, we only plan to modify the structure of the Question table and the Assignment table. &lt;br /&gt;
&lt;br /&gt;
[[File:E2016_database_design.png]]&lt;br /&gt;
&lt;br /&gt;
In the Assignment table, the column &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; will be needed to indicate whether the instructor would like to incorporate the revision planning feature. &lt;br /&gt;
&lt;br /&gt;
Additionally, we add &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; to each &amp;lt;code&amp;gt;Question&amp;lt;/code&amp;gt; object to distinguish where each question belongs to. A &amp;lt;code&amp;gt;Question&amp;lt;/code&amp;gt; object with an empty &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; value will be the question under the original rubric, while the object with a non-empty team_id field will be the question created by the team associated with the team_id. That is, instead of creating a whole new &amp;lt;code&amp;gt;RevisionPlanQuestionnaire&amp;lt;/code&amp;gt; class, we decided to dump all the revision plan questions that are created in a given round to the rubric that is used for that round. In this way, we minimize the change to the system to make the original rubric questions and the revision planning questions retrieved together more easily.&lt;br /&gt;
&lt;br /&gt;
==Code Modifications==&lt;br /&gt;
&lt;br /&gt;
===Controllers===&lt;br /&gt;
&lt;br /&gt;
app/controllers/questionnaires_controller.rb&lt;br /&gt;
*edit_revision_plan: a new method added to the &amp;lt;code&amp;gt;QuestionnaireController&amp;lt;/code&amp;gt; that prepares view template and supplies revision planning questions that belong only to the current team&lt;br /&gt;
*update_revision_plan: a new method added to the &amp;lt;code&amp;gt;QuestionnaireController&amp;lt;/code&amp;gt; that saves revision plan questions under the current round rubric&lt;br /&gt;
*Require some refactoring to share some existing functionalities with the two new methods we described above&lt;br /&gt;
app/controllers/response_controller.rb&lt;br /&gt;
*Replace all the occurrences of &amp;lt;code&amp;gt;@questionnaire.questions&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;@questionnaire.questions(@map.reviewee_id)&amp;lt;/code&amp;gt; so it not only gets questions from the original rubric but also from the revision plan proposed by the team with the corresponding &amp;lt;code&amp;gt;reviewee_id&amp;lt;/code&amp;gt;.&lt;br /&gt;
app/controllers/grades_controller.rb&lt;br /&gt;
*Call the retrieve_questions method every time with an extra parameter “&amp;lt;code&amp;gt;@team_id&amp;lt;/code&amp;gt;”.&lt;br /&gt;
&lt;br /&gt;
===Models ===&lt;br /&gt;
&lt;br /&gt;
app/models/question.rb&lt;br /&gt;
*Form association relationship with &amp;lt;code&amp;gt;Team&amp;lt;/code&amp;gt; via &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt;&lt;br /&gt;
**e.g. &amp;lt;code&amp;gt;belongs_to :team, class_name: ‘AssignmentTeam’, foreign_key: ‘team_id’&amp;lt;/code&amp;gt;&lt;br /&gt;
*questions: change the method signature to &amp;lt;code&amp;gt;questions(team_id=nil)&amp;lt;/code&amp;gt; which uses nil as the parameter &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt;’s default value, so users can choose to supply a team_id argument or not. When team_id is supplied, it returns both questions with no team_id as well as questions that have this team_id. In addition, it will add to the return list an unsaved “Revision Planning” QuestionnaireHeader so the list can be displayed nicely on the browser with each section separated.&lt;br /&gt;
app/models/assignment_team.rb&lt;br /&gt;
*Form aggregation relationship with &amp;lt;code&amp;gt;Question&amp;lt;/code&amp;gt; via &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt;&lt;br /&gt;
**e.g. &amp;lt;code&amp;gt;has_many :revision_plan_questions, class_name: ‘Question’, foreign_key: ‘team_id’&amp;lt;/code&amp;gt;&lt;br /&gt;
app/models/response.rb&lt;br /&gt;
*Replace all the occurrences of &amp;lt;code&amp;gt;questionnaire.questions&amp;lt;/code&amp;gt; with &amp;lt;code&amp;gt;questionnaire.questions(self.response_map.reviewee_id)&amp;lt;/code&amp;gt; so it not only gets questions from the original rubric but also from the revision plan proposed by the team with the corresponding &amp;lt;code&amp;gt;reviewee_id&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
===Views===&lt;br /&gt;
&lt;br /&gt;
app/views/questionnaires/edit_revision_plan.html.erb &lt;br /&gt;
*It is a newly-added view file for students to create and edit their revision plan. It will utilize some existing codes from the ''app/views/questionnaires/_questionnaire.html.erb'' view file to reduce code redundancy.&lt;br /&gt;
app/views/questionnaires/_questions.html.erb&lt;br /&gt;
*Extract codes from the ''app/views/questionnaires/_questionnaire.html.erb'' view file to make it a standalone partial template that will later be loaded by the ''app/views/questionnaires/edit_revision_plan.html.erb'' view file described above.&lt;br /&gt;
app/views/student_task/view.html.erb&lt;br /&gt;
*Add a “Revision Planning” link for students to edit their revision plan. The link will lead students to the “Edit Revision Plan” page. If the revision planning feature is enabled, this link will appear disabled at first and only become clickable during each submission period after round 1.&lt;br /&gt;
app/views/assignments/edit/_review_strategy.html.erb&lt;br /&gt;
*Add “Enable Revision Planning?” checkbox for each assignment because not every assignment needs this feature. TA/instructor have the option to include this feature more flexibly. The “Revision Planning” link will disappear from the assignment page if the checkbox is not checked.&lt;br /&gt;
&lt;br /&gt;
===Helpers===&lt;br /&gt;
&lt;br /&gt;
app/helpers/grades_helper.rb&lt;br /&gt;
*retrieve_questions: add an extra parameter &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; whose default value is set to be nil. It then invoke &amp;lt;code&amp;gt;Questionnaire&amp;lt;/code&amp;gt; model’s &amp;lt;code&amp;gt;questions&amp;lt;/code&amp;gt; method with this &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; and retrieve a proper question set for each team.&lt;br /&gt;
&lt;br /&gt;
===Schema===&lt;br /&gt;
&lt;br /&gt;
*Assignment table: add one column named &amp;lt;code&amp;gt;is_revision_planning_enabled?&amp;lt;/code&amp;gt; to indicate whether this feature has been activated.&lt;br /&gt;
*Question table: add one column named &amp;lt;code&amp;gt;team_id&amp;lt;/code&amp;gt; to distinguish whether the question is from the official review rubric or from a particular team's revision plan.&lt;br /&gt;
&lt;br /&gt;
=Testing=&lt;br /&gt;
&lt;br /&gt;
==RSpec Test Plan==&lt;br /&gt;
&lt;br /&gt;
'''Controllers'''&lt;br /&gt;
*spec/controllers/questionnaires_controller_spec.rb&lt;br /&gt;
**Describe ‘#edit_revision_plan’&lt;br /&gt;
***Context ‘when params[:id] is valid’&lt;br /&gt;
***Context ‘when params[:id] is not valid'&lt;br /&gt;
**Describe ‘#update_revision_plan’&lt;br /&gt;
***Context 'when params[:add_new_questions] is not nil'&lt;br /&gt;
***Context 'when params[:view_advice] is not nil'&lt;br /&gt;
***Context 'when both params[:add_new_questions] and params[:view_advice] are nil'&lt;br /&gt;
*spec/controllers/grades_controller_spec.rb&lt;br /&gt;
**Describe ‘#view’&lt;br /&gt;
***Context ‘When the revision plan is included in one round’&lt;br /&gt;
**Describe ‘#view_my_scores’&lt;br /&gt;
***Context ‘When the revision plan is included in one round’&lt;br /&gt;
*spec/controllers/response_controller_spec.rb&lt;br /&gt;
**Fix all failed tests to accommodate modified codes.&lt;br /&gt;
**Add more tests regarding revision planning.&lt;br /&gt;
&lt;br /&gt;
'''Models'''&lt;br /&gt;
*spec/models/question_spec.rb&lt;br /&gt;
**Describe ‘#questions’&lt;br /&gt;
***Context ‘when team_id is supplied’&lt;br /&gt;
***Context ‘when team_id is not supplied’&lt;br /&gt;
&lt;br /&gt;
==UI Testing Instructions (For Reviewers)==&lt;br /&gt;
&lt;br /&gt;
'''Setup'''&lt;br /&gt;
&lt;br /&gt;
Login information&lt;br /&gt;
*Visit xxx [expertiza deployment link]&lt;br /&gt;
    User name: instructor6/student8030/student8031&lt;br /&gt;
    Password: password&lt;br /&gt;
Enable/Disable Revision Planning&lt;br /&gt;
*Login as instructor6.&lt;br /&gt;
*Go to an assignment’s edit page. Under the “'''Review strategy'''” tab, check the checkbox labeled “'''Enable Revision Planning?'''” to enable the revision planning feature. &lt;br /&gt;
Enable/Disable the “Revision Planning” link&lt;br /&gt;
*After the instructor configures the assignment to include the revision planning feature, the “'''Revision Planning'''” link will appear on the student's assignment page but will remain disabled and only be enabled during each submission period after round 1. Therefore, to enable the link:&lt;br /&gt;
**Login as instructor6.&lt;br /&gt;
**Go to an assignment’s edit page. Under the “'''Due dates'''” tab, change the round 2 submission date to whenever date in the future.&lt;br /&gt;
*To disable the link after round 2 submission period:&lt;br /&gt;
**Login as instructor6.&lt;br /&gt;
**Go to an assignment’s edit page. Under the “'''Due dates'''” tab, change the round 2 submission date to whenever date from the past and change the round 2 review date to whenever date in the future.&lt;br /&gt;
Create teams for the assignment&lt;br /&gt;
*Login as instructor6.&lt;br /&gt;
*Go to an assignment’s edit page. Under the “'''Other stuff'''” tab, click “'''Add participant'''”.&lt;br /&gt;
*In the new page, add two students, student8030 and student8031, so one student can create revision plan questions during the submission period while the other can respond to these questions during the review period.&lt;br /&gt;
*Go back to the assignment’s edit page. Under the “'''Other stuff'''” tab, click “'''Create teams'''”.&lt;br /&gt;
*In the new page, group the two added students to separate teams.&lt;br /&gt;
&lt;br /&gt;
'''Functionalities'''&lt;br /&gt;
&lt;br /&gt;
Edit a Revision Plan&lt;br /&gt;
*Login as student8030.&lt;br /&gt;
*In the assignment page, click on the “'''Revision Planning'''” link. which redirects the user to a new page used to create a revision plan. Fill the blanks and click on the “'''Save review questionnaire'''” button, and the revision plan should be saved.&lt;br /&gt;
Test retrieval of revision plan questions for a specific team&lt;br /&gt;
*Login as student8030.&lt;br /&gt;
*In the assignment page, click on the “'''Revision Planning'''” link after steps under '''Edit a Revision Plan''' have been done. The “'''Revision Planning'''” link should redirect the user to the Revision Planning edit page that is populated with previously saved questions.&lt;br /&gt;
Check the Revision Plan questions in the questionnaire.&lt;br /&gt;
*Login as instructor6.&lt;br /&gt;
*Adjust the time frame to the second round review period.&lt;br /&gt;
*Log out and log in again as student8031.&lt;br /&gt;
*In the assignment page, click on the “'''Others’ work'''” link, which takes the user to the review page where one requests a new team’s submission to review. Go to the only other team’s review page and check if the questions are properly displayed under the “Revision Planning” subheader.&lt;br /&gt;
Check responses to the Revision Plan questions&lt;br /&gt;
*Login again as student8030.&lt;br /&gt;
*In the assignment page, click on the “'''Alternative View'''” link, and see if student8030 gets responses for both the original rubric questions as well as its revision plan questions.&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132180</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132180"/>
		<updated>2020-03-29T21:33:39Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
Expertiza is an online web application for educational purpose, and is developed using Ruby on Rails. Instructors are able to create, modify, delete and view assignments and students are able to form teams, submit assignments and make reviews using this application.&lt;br /&gt;
&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
=='''Problem Statement'''==&lt;br /&gt;
&lt;br /&gt;
==='''Background'''===&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==='''Issue1'''===&lt;br /&gt;
&lt;br /&gt;
There may be unused methods in the controller or java script file due to previous development, maintenance and refactoring.&lt;br /&gt;
&lt;br /&gt;
==='''Issue2'''===&lt;br /&gt;
&lt;br /&gt;
Loading speed of the web page is slowed down by repeated interface with database regarding to same variables but by different methods.&lt;br /&gt;
&lt;br /&gt;
=='''Used Methods'''==&lt;br /&gt;
&lt;br /&gt;
To find out unused methods in dynamically typed language like Ruby is difficult, thus our team is focusing on the suspicious methods which have neither comments nor references showing in github. All suspicious methods are tested and following shows the confirmed used methods as well as their functionality.&lt;br /&gt;
&lt;br /&gt;
===goto_... Methods===&lt;br /&gt;
&lt;br /&gt;
goto_... Methods are called when the instructor clicks on the corresponding node under the &amp;quot;Manage&amp;quot; menu (e.g. &amp;quot;goto_quetionnaires&amp;quot; is called when clicking on &amp;quot;Questionnaire&amp;quot; node.) and the user will get redirected to corresponding pages.&lt;br /&gt;
&lt;br /&gt;
===confirm===&lt;br /&gt;
&lt;br /&gt;
confirm method is called when the instructor tries to delete a course/assignment/review and chooses &amp;quot;yes&amp;quot; at the confirmation page.&lt;br /&gt;
&lt;br /&gt;
===folder_node_ng_getter===&lt;br /&gt;
&lt;br /&gt;
folder_node_ng_getter functions to render json of the node. (e.g. Returning all the courses data when clicking on &amp;quot;Course&amp;quot; node.)&lt;br /&gt;
&lt;br /&gt;
=='''Unused Methods'''==&lt;br /&gt;
&lt;br /&gt;
1. We found one unused method bridge_to_is_available and delete it. &lt;br /&gt;
&lt;br /&gt;
[[File:del_bridge.jpg]]&lt;br /&gt;
&lt;br /&gt;
=='''OSS Code Changes'''==&lt;br /&gt;
&lt;br /&gt;
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx&lt;br /&gt;
&lt;br /&gt;
[[File:month.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. We found the goto_* functions in file app/controllers/tree_display_controller.rb are not necessary and can be replaced with the goto_controller(name_parameter). However, they are called outside of the files in our scope and we did not modify them for now.&lt;br /&gt;
&lt;br /&gt;
[[File:goto.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. We found a confusing variable name &amp;quot;res2&amp;quot; in file app/controllers/tree_display_controller.rb and changed.&lt;br /&gt;
&lt;br /&gt;
[[File:confusing_variable_name.png]]&lt;br /&gt;
&lt;br /&gt;
4. We found two confusing method names &amp;quot;update_is_available&amp;quot; and &amp;quot;update_is_available_2&amp;quot; and that &amp;quot;update_is_available&amp;quot; is used for checking the accessibility of users who are tas/owners while &amp;quot;update_is_available_2&amp;quot; is used for checking the accessibility of user who are instructors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;update_is_available&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_owner_ta&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;update_is_available_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_instructor&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. We found three confusing method names &amp;quot;initialize_fnode_2&amp;quot; and &amp;quot;children_node_2_ng&amp;quot; and that &amp;quot;res_node_for_child_2&amp;quot; for corresponding nested chidren nodes (the subfolders in the tree display).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;initialize_fnode_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;initialize_fnode_nested&amp;lt;/pre&amp;gt;, &amp;lt;pre&amp;gt;children_node_2_ng&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;children_node_ng_nested&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;res_node_for_child_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;res_node_for_child_nested&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
6. We renamed a few variable and method names related to update_tmp_obj&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;update_tmp_obj&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_assignment_info&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;tmp_object&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;assignment_obj&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=='''Test Plan'''==&lt;br /&gt;
&lt;br /&gt;
==='''Test from UI'''===&lt;br /&gt;
&lt;br /&gt;
The tree_display.js and tree_display_controller.rb are mainly related to the &amp;quot;Manage&amp;quot; tab and its child nodes. Thus, the following steps are needed to test the functionality from UI:&lt;br /&gt;
&lt;br /&gt;
1. Log in as an instructor.&lt;br /&gt;
&lt;br /&gt;
2. Click on the &amp;quot;Manage&amp;quot; tab as well as its child node on the tool bar and to test if they are redirected to the correct page. (Child node means &amp;quot;Users&amp;quot;, &amp;quot;Questionnaires&amp;quot;, &amp;quot;Courses&amp;quot;, etc. under &amp;quot;Manage&amp;quot; menu or &amp;quot;Review Rubrics&amp;quot;, &amp;quot;Metareview Rubrics&amp;quot;, etc. under &amp;quot;Questionnaires&amp;quot; menu. And the reason calling it &amp;quot;child node&amp;quot; is because it is the variable name used in code.) &lt;br /&gt;
&lt;br /&gt;
3. Click on the displayed contents to test if the details can be displayed properly.&lt;br /&gt;
&lt;br /&gt;
==='''Test by Travis CI build'''===&lt;br /&gt;
&lt;br /&gt;
We passed all Travis CI build and Codeclimate checks.&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132176</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132176"/>
		<updated>2020-03-29T21:01:29Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: /* Unused Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
Expertiza is an online web application for educational purpose, and is developed using Ruby on Rails. Instructors are able to create, modify, delete and view assignments and students are able to form teams, submit assignments and make reviews using this application.&lt;br /&gt;
&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
=='''Problem Statement'''==&lt;br /&gt;
&lt;br /&gt;
==='''Background'''===&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==='''Issue1'''===&lt;br /&gt;
&lt;br /&gt;
There may be unused methods in the controller or java script file due to previous development, maintenance and refactoring.&lt;br /&gt;
&lt;br /&gt;
==='''Issue2'''===&lt;br /&gt;
&lt;br /&gt;
Loading speed of the web page is slowed down by repeated interface with database regarding to same variables but by different methods.&lt;br /&gt;
&lt;br /&gt;
=='''Used Methods'''==&lt;br /&gt;
&lt;br /&gt;
To find out unused methods in dynamically typed language like Ruby is difficult, thus our team is focusing on the suspicious methods which have neither comments nor references showing in github. All suspicious methods are tested and following shows the confirmed used methods as well as their functionality.&lt;br /&gt;
&lt;br /&gt;
===goto_... Methods===&lt;br /&gt;
&lt;br /&gt;
goto_... Methods are called when the instructor clicks on the corresponding node under the &amp;quot;Manage&amp;quot; menu (e.g. &amp;quot;goto_quetionnaires&amp;quot; is called when clicking on &amp;quot;Questionnaire&amp;quot; node.) and the user will get redirected to corresponding pages.&lt;br /&gt;
&lt;br /&gt;
===confirm===&lt;br /&gt;
&lt;br /&gt;
confirm method is called when the instructor tries to delete a course/assignment/review and chooses &amp;quot;yes&amp;quot; at the confirmation page.&lt;br /&gt;
&lt;br /&gt;
===folder_node_ng_getter===&lt;br /&gt;
&lt;br /&gt;
folder_node_ng_getter functions to render json of the node. (e.g. Returning all the courses data when clicking on &amp;quot;Course&amp;quot; node.)&lt;br /&gt;
&lt;br /&gt;
=='''Unused Methods'''==&lt;br /&gt;
&lt;br /&gt;
1. We found one unused method bridge_to_is_available and delete it. &lt;br /&gt;
&lt;br /&gt;
[[File:del_bridge.jpg]]&lt;br /&gt;
&lt;br /&gt;
=='''OSS Code Changes'''==&lt;br /&gt;
&lt;br /&gt;
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx&lt;br /&gt;
&lt;br /&gt;
[[File:month.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. We found the goto_* functions in file app/controllers/tree_display_controller.rb are not necessary and can be replaced with the goto_controller(name_parameter). However, they are called outside of the files in our scope and we did not modify them for now.&lt;br /&gt;
&lt;br /&gt;
[[File:goto.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. We found a confusing variable name &amp;quot;res2&amp;quot; in file app/controllers/tree_display_controller.rb and changed.&lt;br /&gt;
&lt;br /&gt;
[[File:confusing_variable_name.png]]&lt;br /&gt;
&lt;br /&gt;
4. We found two confusing method names &amp;quot;update_is_available&amp;quot; and &amp;quot;update_is_available_2&amp;quot; and that &amp;quot;update_is_available&amp;quot; is used for checking the accessibility of users who are tas/owners while &amp;quot;update_is_available_2&amp;quot; is used for checking the accessibility of user who are instructors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;update_is_available&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_owner_ta&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;update_is_available_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_instructor&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. We found three confusing method names &amp;quot;initialize_fnode_2&amp;quot; and &amp;quot;children_node_2_ng&amp;quot; and that &amp;quot;res_node_for_child_2&amp;quot; for corresponding nested chidren nodes (the subfolders in the tree display).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;initialize_fnode_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;initialize_fnode_nested&amp;lt;/pre&amp;gt;, &amp;lt;pre&amp;gt;children_node_2_ng&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;children_node_ng_nested&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;res_node_for_child_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;res_node_for_child_nested&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=='''Test Plan'''==&lt;br /&gt;
&lt;br /&gt;
==='''Test from UI'''===&lt;br /&gt;
&lt;br /&gt;
The tree_display.js and tree_display_controller.rb are mainly related to the &amp;quot;Manage&amp;quot; tab and its child nodes. Thus, the following steps are needed to test the functionality from UI:&lt;br /&gt;
&lt;br /&gt;
1. Log in as an instructor.&lt;br /&gt;
&lt;br /&gt;
2. Click on the &amp;quot;Manage&amp;quot; tab as well as its child node on the tool bar and to test if they are redirected to the correct page. (Child node means &amp;quot;Users&amp;quot;, &amp;quot;Questionnaires&amp;quot;, &amp;quot;Courses&amp;quot;, etc. under &amp;quot;Manage&amp;quot; menu or &amp;quot;Review Rubrics&amp;quot;, &amp;quot;Metareview Rubrics&amp;quot;, etc. under &amp;quot;Questionnaires&amp;quot; menu. And the reason calling it &amp;quot;child node&amp;quot; is because it is the variable name used in code.) &lt;br /&gt;
&lt;br /&gt;
3. Click on the displayed contents to test if the details can be displayed properly.&lt;br /&gt;
&lt;br /&gt;
==='''Test by Travis CI build'''===&lt;br /&gt;
&lt;br /&gt;
We passed all Travis CI build and Codeclimate checks.&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132175</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132175"/>
		<updated>2020-03-29T21:01:13Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: /* Unused Methods */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
Expertiza is an online web application for educational purpose, and is developed using Ruby on Rails. Instructors are able to create, modify, delete and view assignments and students are able to form teams, submit assignments and make reviews using this application.&lt;br /&gt;
&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
=='''Problem Statement'''==&lt;br /&gt;
&lt;br /&gt;
==='''Background'''===&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==='''Issue1'''===&lt;br /&gt;
&lt;br /&gt;
There may be unused methods in the controller or java script file due to previous development, maintenance and refactoring.&lt;br /&gt;
&lt;br /&gt;
==='''Issue2'''===&lt;br /&gt;
&lt;br /&gt;
Loading speed of the web page is slowed down by repeated interface with database regarding to same variables but by different methods.&lt;br /&gt;
&lt;br /&gt;
=='''Used Methods'''==&lt;br /&gt;
&lt;br /&gt;
To find out unused methods in dynamically typed language like Ruby is difficult, thus our team is focusing on the suspicious methods which have neither comments nor references showing in github. All suspicious methods are tested and following shows the confirmed used methods as well as their functionality.&lt;br /&gt;
&lt;br /&gt;
===goto_... Methods===&lt;br /&gt;
&lt;br /&gt;
goto_... Methods are called when the instructor clicks on the corresponding node under the &amp;quot;Manage&amp;quot; menu (e.g. &amp;quot;goto_quetionnaires&amp;quot; is called when clicking on &amp;quot;Questionnaire&amp;quot; node.) and the user will get redirected to corresponding pages.&lt;br /&gt;
&lt;br /&gt;
===confirm===&lt;br /&gt;
&lt;br /&gt;
confirm method is called when the instructor tries to delete a course/assignment/review and chooses &amp;quot;yes&amp;quot; at the confirmation page.&lt;br /&gt;
&lt;br /&gt;
===folder_node_ng_getter===&lt;br /&gt;
&lt;br /&gt;
folder_node_ng_getter functions to render json of the node. (e.g. Returning all the courses data when clicking on &amp;quot;Course&amp;quot; node.)&lt;br /&gt;
&lt;br /&gt;
=='''Unused Methods'''==&lt;br /&gt;
&lt;br /&gt;
1. We found one unused method bridge_to_is_available and delete it. &lt;br /&gt;
[[File:del_bridge.jpg]]&lt;br /&gt;
&lt;br /&gt;
=='''OSS Code Changes'''==&lt;br /&gt;
&lt;br /&gt;
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx&lt;br /&gt;
&lt;br /&gt;
[[File:month.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. We found the goto_* functions in file app/controllers/tree_display_controller.rb are not necessary and can be replaced with the goto_controller(name_parameter). However, they are called outside of the files in our scope and we did not modify them for now.&lt;br /&gt;
&lt;br /&gt;
[[File:goto.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. We found a confusing variable name &amp;quot;res2&amp;quot; in file app/controllers/tree_display_controller.rb and changed.&lt;br /&gt;
&lt;br /&gt;
[[File:confusing_variable_name.png]]&lt;br /&gt;
&lt;br /&gt;
4. We found two confusing method names &amp;quot;update_is_available&amp;quot; and &amp;quot;update_is_available_2&amp;quot; and that &amp;quot;update_is_available&amp;quot; is used for checking the accessibility of users who are tas/owners while &amp;quot;update_is_available_2&amp;quot; is used for checking the accessibility of user who are instructors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;update_is_available&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_owner_ta&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;update_is_available_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_instructor&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. We found three confusing method names &amp;quot;initialize_fnode_2&amp;quot; and &amp;quot;children_node_2_ng&amp;quot; and that &amp;quot;res_node_for_child_2&amp;quot; for corresponding nested chidren nodes (the subfolders in the tree display).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;initialize_fnode_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;initialize_fnode_nested&amp;lt;/pre&amp;gt;, &amp;lt;pre&amp;gt;children_node_2_ng&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;children_node_ng_nested&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;res_node_for_child_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;res_node_for_child_nested&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=='''Test Plan'''==&lt;br /&gt;
&lt;br /&gt;
==='''Test from UI'''===&lt;br /&gt;
&lt;br /&gt;
The tree_display.js and tree_display_controller.rb are mainly related to the &amp;quot;Manage&amp;quot; tab and its child nodes. Thus, the following steps are needed to test the functionality from UI:&lt;br /&gt;
&lt;br /&gt;
1. Log in as an instructor.&lt;br /&gt;
&lt;br /&gt;
2. Click on the &amp;quot;Manage&amp;quot; tab as well as its child node on the tool bar and to test if they are redirected to the correct page. (Child node means &amp;quot;Users&amp;quot;, &amp;quot;Questionnaires&amp;quot;, &amp;quot;Courses&amp;quot;, etc. under &amp;quot;Manage&amp;quot; menu or &amp;quot;Review Rubrics&amp;quot;, &amp;quot;Metareview Rubrics&amp;quot;, etc. under &amp;quot;Questionnaires&amp;quot; menu. And the reason calling it &amp;quot;child node&amp;quot; is because it is the variable name used in code.) &lt;br /&gt;
&lt;br /&gt;
3. Click on the displayed contents to test if the details can be displayed properly.&lt;br /&gt;
&lt;br /&gt;
==='''Test by Travis CI build'''===&lt;br /&gt;
&lt;br /&gt;
We passed all Travis CI build and Codeclimate checks.&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132174</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132174"/>
		<updated>2020-03-29T21:00:56Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: /* OSS Code Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
Expertiza is an online web application for educational purpose, and is developed using Ruby on Rails. Instructors are able to create, modify, delete and view assignments and students are able to form teams, submit assignments and make reviews using this application.&lt;br /&gt;
&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
=='''Problem Statement'''==&lt;br /&gt;
&lt;br /&gt;
==='''Background'''===&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==='''Issue1'''===&lt;br /&gt;
&lt;br /&gt;
There may be unused methods in the controller or java script file due to previous development, maintenance and refactoring.&lt;br /&gt;
&lt;br /&gt;
==='''Issue2'''===&lt;br /&gt;
&lt;br /&gt;
Loading speed of the web page is slowed down by repeated interface with database regarding to same variables but by different methods.&lt;br /&gt;
&lt;br /&gt;
=='''Used Methods'''==&lt;br /&gt;
&lt;br /&gt;
To find out unused methods in dynamically typed language like Ruby is difficult, thus our team is focusing on the suspicious methods which have neither comments nor references showing in github. All suspicious methods are tested and following shows the confirmed used methods as well as their functionality.&lt;br /&gt;
&lt;br /&gt;
===goto_... Methods===&lt;br /&gt;
&lt;br /&gt;
goto_... Methods are called when the instructor clicks on the corresponding node under the &amp;quot;Manage&amp;quot; menu (e.g. &amp;quot;goto_quetionnaires&amp;quot; is called when clicking on &amp;quot;Questionnaire&amp;quot; node.) and the user will get redirected to corresponding pages.&lt;br /&gt;
&lt;br /&gt;
===confirm===&lt;br /&gt;
&lt;br /&gt;
confirm method is called when the instructor tries to delete a course/assignment/review and chooses &amp;quot;yes&amp;quot; at the confirmation page.&lt;br /&gt;
&lt;br /&gt;
===folder_node_ng_getter===&lt;br /&gt;
&lt;br /&gt;
folder_node_ng_getter functions to render json of the node. (e.g. Returning all the courses data when clicking on &amp;quot;Course&amp;quot; node.)&lt;br /&gt;
&lt;br /&gt;
=='''Unused Methods'''==&lt;br /&gt;
&lt;br /&gt;
Basically all the methods that showing no reference in github are tested and their functionalities are determined, and no unused method is discovered.&lt;br /&gt;
&lt;br /&gt;
=='''OSS Code Changes'''==&lt;br /&gt;
&lt;br /&gt;
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx&lt;br /&gt;
&lt;br /&gt;
[[File:month.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. We found the goto_* functions in file app/controllers/tree_display_controller.rb are not necessary and can be replaced with the goto_controller(name_parameter). However, they are called outside of the files in our scope and we did not modify them for now.&lt;br /&gt;
&lt;br /&gt;
[[File:goto.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. We found a confusing variable name &amp;quot;res2&amp;quot; in file app/controllers/tree_display_controller.rb and changed.&lt;br /&gt;
&lt;br /&gt;
[[File:confusing_variable_name.png]]&lt;br /&gt;
&lt;br /&gt;
4. We found two confusing method names &amp;quot;update_is_available&amp;quot; and &amp;quot;update_is_available_2&amp;quot; and that &amp;quot;update_is_available&amp;quot; is used for checking the accessibility of users who are tas/owners while &amp;quot;update_is_available_2&amp;quot; is used for checking the accessibility of user who are instructors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;update_is_available&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_owner_ta&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;update_is_available_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_instructor&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. We found three confusing method names &amp;quot;initialize_fnode_2&amp;quot; and &amp;quot;children_node_2_ng&amp;quot; and that &amp;quot;res_node_for_child_2&amp;quot; for corresponding nested chidren nodes (the subfolders in the tree display).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;initialize_fnode_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;initialize_fnode_nested&amp;lt;/pre&amp;gt;, &amp;lt;pre&amp;gt;children_node_2_ng&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;children_node_ng_nested&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;res_node_for_child_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;res_node_for_child_nested&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=='''Test Plan'''==&lt;br /&gt;
&lt;br /&gt;
==='''Test from UI'''===&lt;br /&gt;
&lt;br /&gt;
The tree_display.js and tree_display_controller.rb are mainly related to the &amp;quot;Manage&amp;quot; tab and its child nodes. Thus, the following steps are needed to test the functionality from UI:&lt;br /&gt;
&lt;br /&gt;
1. Log in as an instructor.&lt;br /&gt;
&lt;br /&gt;
2. Click on the &amp;quot;Manage&amp;quot; tab as well as its child node on the tool bar and to test if they are redirected to the correct page. (Child node means &amp;quot;Users&amp;quot;, &amp;quot;Questionnaires&amp;quot;, &amp;quot;Courses&amp;quot;, etc. under &amp;quot;Manage&amp;quot; menu or &amp;quot;Review Rubrics&amp;quot;, &amp;quot;Metareview Rubrics&amp;quot;, etc. under &amp;quot;Questionnaires&amp;quot; menu. And the reason calling it &amp;quot;child node&amp;quot; is because it is the variable name used in code.) &lt;br /&gt;
&lt;br /&gt;
3. Click on the displayed contents to test if the details can be displayed properly.&lt;br /&gt;
&lt;br /&gt;
==='''Test by Travis CI build'''===&lt;br /&gt;
&lt;br /&gt;
We passed all Travis CI build and Codeclimate checks.&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132173</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=132173"/>
		<updated>2020-03-29T21:00:19Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
Expertiza is an online web application for educational purpose, and is developed using Ruby on Rails. Instructors are able to create, modify, delete and view assignments and students are able to form teams, submit assignments and make reviews using this application.&lt;br /&gt;
&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
=='''Problem Statement'''==&lt;br /&gt;
&lt;br /&gt;
==='''Background'''===&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==='''Issue1'''===&lt;br /&gt;
&lt;br /&gt;
There may be unused methods in the controller or java script file due to previous development, maintenance and refactoring.&lt;br /&gt;
&lt;br /&gt;
==='''Issue2'''===&lt;br /&gt;
&lt;br /&gt;
Loading speed of the web page is slowed down by repeated interface with database regarding to same variables but by different methods.&lt;br /&gt;
&lt;br /&gt;
=='''Used Methods'''==&lt;br /&gt;
&lt;br /&gt;
To find out unused methods in dynamically typed language like Ruby is difficult, thus our team is focusing on the suspicious methods which have neither comments nor references showing in github. All suspicious methods are tested and following shows the confirmed used methods as well as their functionality.&lt;br /&gt;
&lt;br /&gt;
===goto_... Methods===&lt;br /&gt;
&lt;br /&gt;
goto_... Methods are called when the instructor clicks on the corresponding node under the &amp;quot;Manage&amp;quot; menu (e.g. &amp;quot;goto_quetionnaires&amp;quot; is called when clicking on &amp;quot;Questionnaire&amp;quot; node.) and the user will get redirected to corresponding pages.&lt;br /&gt;
&lt;br /&gt;
===confirm===&lt;br /&gt;
&lt;br /&gt;
confirm method is called when the instructor tries to delete a course/assignment/review and chooses &amp;quot;yes&amp;quot; at the confirmation page.&lt;br /&gt;
&lt;br /&gt;
===folder_node_ng_getter===&lt;br /&gt;
&lt;br /&gt;
folder_node_ng_getter functions to render json of the node. (e.g. Returning all the courses data when clicking on &amp;quot;Course&amp;quot; node.)&lt;br /&gt;
&lt;br /&gt;
=='''Unused Methods'''==&lt;br /&gt;
&lt;br /&gt;
Basically all the methods that showing no reference in github are tested and their functionalities are determined, and no unused method is discovered.&lt;br /&gt;
&lt;br /&gt;
=='''OSS Code Changes'''==&lt;br /&gt;
&lt;br /&gt;
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx&lt;br /&gt;
&lt;br /&gt;
[[File:month.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. We found the goto_* functions in file app/controllers/tree_display_controller.rb are not necessary and can be replaced with the goto_controller(name_parameter). However, they are called outside of the files in our scope and we did not modify them for now.&lt;br /&gt;
&lt;br /&gt;
[[File:goto.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. We found a confusing variable name &amp;quot;res2&amp;quot; in file app/controllers/tree_display_controller.rb and changed.&lt;br /&gt;
&lt;br /&gt;
[[File:confusing_variable_name.png]]&lt;br /&gt;
&lt;br /&gt;
4. We found two confusing method names &amp;quot;update_is_available&amp;quot; and &amp;quot;update_is_available_2&amp;quot; and that &amp;quot;update_is_available&amp;quot; is used for checking the accessibility of users who are tas/owners while &amp;quot;update_is_available_2&amp;quot; is used for checking the accessibility of user who are instructors.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;update_is_available&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_owner_ta&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;update_is_available_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;update_is_available_instructor&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
5. We found one unused method bridge_to_is_available and delete it. &lt;br /&gt;
[[File:del_bridge.jpg]]&lt;br /&gt;
&lt;br /&gt;
6. We found three confusing method names &amp;quot;initialize_fnode_2&amp;quot; and &amp;quot;children_node_2_ng&amp;quot; and that &amp;quot;res_node_for_child_2&amp;quot; for corresponding nested chidren nodes (the subfolders in the tree display).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;initialize_fnode_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;initialize_fnode_nested&amp;lt;/pre&amp;gt;, &amp;lt;pre&amp;gt;children_node_2_ng&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;children_node_ng_nested&amp;lt;/pre&amp;gt; and &amp;lt;pre&amp;gt;res_node_for_child_2&amp;lt;/pre&amp;gt; is changed to &amp;lt;pre&amp;gt;res_node_for_child_nested&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=='''Test Plan'''==&lt;br /&gt;
&lt;br /&gt;
==='''Test from UI'''===&lt;br /&gt;
&lt;br /&gt;
The tree_display.js and tree_display_controller.rb are mainly related to the &amp;quot;Manage&amp;quot; tab and its child nodes. Thus, the following steps are needed to test the functionality from UI:&lt;br /&gt;
&lt;br /&gt;
1. Log in as an instructor.&lt;br /&gt;
&lt;br /&gt;
2. Click on the &amp;quot;Manage&amp;quot; tab as well as its child node on the tool bar and to test if they are redirected to the correct page. (Child node means &amp;quot;Users&amp;quot;, &amp;quot;Questionnaires&amp;quot;, &amp;quot;Courses&amp;quot;, etc. under &amp;quot;Manage&amp;quot; menu or &amp;quot;Review Rubrics&amp;quot;, &amp;quot;Metareview Rubrics&amp;quot;, etc. under &amp;quot;Questionnaires&amp;quot; menu. And the reason calling it &amp;quot;child node&amp;quot; is because it is the variable name used in code.) &lt;br /&gt;
&lt;br /&gt;
3. Click on the displayed contents to test if the details can be displayed properly.&lt;br /&gt;
&lt;br /&gt;
==='''Test by Travis CI build'''===&lt;br /&gt;
&lt;br /&gt;
We passed all Travis CI build and Codeclimate checks.&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Del_bridge.jpg&amp;diff=132172</id>
		<title>File:Del bridge.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Del_bridge.jpg&amp;diff=132172"/>
		<updated>2020-03-29T20:53:58Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Goto.png&amp;diff=131746</id>
		<title>File:Goto.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Goto.png&amp;diff=131746"/>
		<updated>2020-03-23T17:38:13Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Confusing_variable_name.png&amp;diff=131745</id>
		<title>File:Confusing variable name.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Confusing_variable_name.png&amp;diff=131745"/>
		<updated>2020-03-23T17:37:41Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131743</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131743"/>
		<updated>2020-03-23T17:37:27Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==OSS Code Changes==&lt;br /&gt;
&lt;br /&gt;
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx&lt;br /&gt;
&lt;br /&gt;
[[File:month.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
2. We found the goto_* functions in file app/controllers/tree_display_controller.rb are not necessary and can be replaced with the goto_controller(name_parameter). However, they are called outside of the files in our scope and we did not modify them for now.&lt;br /&gt;
&lt;br /&gt;
[[File:goto.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3. We found a confusing variable name &amp;quot;res2&amp;quot; in file app/controllers/tree_display_controller.rb and changed.&lt;br /&gt;
&lt;br /&gt;
[[File:confusing_variable_name.png]]&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Month.png&amp;diff=131742</id>
		<title>File:Month.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Month.png&amp;diff=131742"/>
		<updated>2020-03-23T17:31:30Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131741</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131741"/>
		<updated>2020-03-23T17:31:05Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: /* OSS Code Changes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==OSS Code Changes==&lt;br /&gt;
&lt;br /&gt;
1. We simplified the month string representation in file app/assets/javascripts/tree_display.jsx as follow&lt;br /&gt;
[[File:month.png]]&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131740</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131740"/>
		<updated>2020-03-23T17:27:15Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails.&lt;br /&gt;
&lt;br /&gt;
==OSS Code Changes==&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131738</id>
		<title>CSC/ECE 517 Spring 2020 - E2013. Refactor tree-display.js and tree display controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2020_-_E2013._Refactor_tree-display.js_and_tree_display_controller.rb&amp;diff=131738"/>
		<updated>2020-03-23T17:26:31Z</updated>

		<summary type="html">&lt;p&gt;Bzhong2: Created page with &amp;quot;=='''Introduction'''== The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=='''Introduction'''==&lt;br /&gt;
The tree-display.js and its tree_display_controller.rb files are designed to allow Expertiza users to view their Assignments, Courses and Questionnaires at one place. This is the primary control page, as well as the home page for instructors on Expertiza which allows them to create, modify, delete and view Assignments.&lt;br /&gt;
The primary problem with this is that both the files, due to their bulky and unoptimized methods, slow the rendering of UI on screen. The methods in these files can be studied and refactored to improve the overall performance of this controller and its corresponding UI. Moreover, any obsolete or unused methods can be removed and DRY principle should be implemented. This project mostly revolves around these 2 files, and would involve refactoring JavaScript more than Ruby on Rails. &lt;br /&gt;
&lt;br /&gt;
==OSS Code Changes==&lt;/div&gt;</summary>
		<author><name>Bzhong2</name></author>
	</entry>
</feed>