<?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=Lpatel</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=Lpatel"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Lpatel"/>
	<updated>2026-05-22T07:32:39Z</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_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153054</id>
		<title>CSC/ECE 517 Spring 2024 - E2407 Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153054"/>
		<updated>2024-03-23T03:11:56Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: /* Tasks */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page describes changes made under the E2407 OODD assignment for Spring 2024, CSC/ECE 517.&lt;br /&gt;
== Expertiza Background==&lt;br /&gt;
&lt;br /&gt;
Expertiza is an open-source initiative that educators and students at NCSU create and manage. It contains several features that facilitate teacher-student interactions and is built on the Ruby on Rails architecture. Teachers can set homework and grade student submissions. Students organize into groups, turn in assignments, and evaluate the work of their colleagues.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[ Link to the Pull Request Submitted] &amp;lt;br/&amp;gt;&lt;br /&gt;
[ Link to the deployed project] &amp;lt;br/&amp;gt;&lt;br /&gt;
[ Link to the Repository] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Functionality of review_mapping_controller ==&lt;br /&gt;
Review_mapping_controller's function is to supply reviewer and assignment mapping. In essence, the controller manages the assignment of reviews, such as peer and self-reviews, to several teams or to a single student user. Following assignment policy, this controller is also in charge of responding to requests from students for additional bonus evaluations.&lt;br /&gt;
&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 like assign_reviewer_dynamically, add_reviewer, automatic_review_mapping, peer_review_strategy, etc.&lt;br /&gt;
-Rename variable names to convey what they are 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;
-Add meaningful comments and edit/remove/do not unnecessary comments.&amp;lt;br/&amp;gt;&lt;br /&gt;
-Try to increase the test coverage.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
We followed several design patterns while refactoring our code. One of the most common ones is the “Extract Method.” There were several instances where the method was too long and complex. We moved some of the functionality to a different method to make it more readable. This way, it became easier and clearer to understand what the method achieved. &lt;br /&gt;
Another issue we observed with the code was that it had too many conditional statements. We used the “Refactoring conditionals” design pattern, which aims to place the block of code in the conditional statement in a different method and call that method. This improves the readability of our code.&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153053</id>
		<title>CSC/ECE 517 Spring 2024 - E2407 Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153053"/>
		<updated>2024-03-23T03:11:48Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page describes changes made under the E2407 OODD assignment for Spring 2024, CSC/ECE 517.&lt;br /&gt;
== Expertiza Background==&lt;br /&gt;
&lt;br /&gt;
Expertiza is an open-source initiative that educators and students at NCSU create and manage. It contains several features that facilitate teacher-student interactions and is built on the Ruby on Rails architecture. Teachers can set homework and grade student submissions. Students organize into groups, turn in assignments, and evaluate the work of their colleagues.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[ Link to the Pull Request Submitted] &amp;lt;br/&amp;gt;&lt;br /&gt;
[ Link to the deployed project] &amp;lt;br/&amp;gt;&lt;br /&gt;
[ Link to the Repository] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Functionality of review_mapping_controller ==&lt;br /&gt;
Review_mapping_controller's function is to supply reviewer and assignment mapping. In essence, the controller manages the assignment of reviews, such as peer and self-reviews, to several teams or to a single student user. Following assignment policy, this controller is also in charge of responding to requests from students for additional bonus evaluations.&lt;br /&gt;
&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 like assign_reviewer_dynamically, add_reviewer, automatic_review_mapping, peer_review_strategy, etc.&lt;br /&gt;
-Rename variable names to convey what they are 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;
-Add meaningful comments and edit/remove/do not unnecessary comments.&amp;lt;br/&amp;gt;&lt;br /&gt;
-Try to increase the test coverage.&amp;lt;br/&amp;gt;&lt;br /&gt;
-&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
We followed several design patterns while refactoring our code. One of the most common ones is the “Extract Method.” There were several instances where the method was too long and complex. We moved some of the functionality to a different method to make it more readable. This way, it became easier and clearer to understand what the method achieved. &lt;br /&gt;
Another issue we observed with the code was that it had too many conditional statements. We used the “Refactoring conditionals” design pattern, which aims to place the block of code in the conditional statement in a different method and call that method. This improves the readability of our code.&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153052</id>
		<title>CSC/ECE 517 Spring 2024 - E2407 Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153052"/>
		<updated>2024-03-23T03:09:35Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page describes changes made under the E2407 OODD assignment for Spring 2024, CSC/ECE 517.&lt;br /&gt;
== Expertiza Background==&lt;br /&gt;
&lt;br /&gt;
Expertiza is an open-source initiative that educators and students at NCSU create and manage. It contains several features that facilitate teacher-student interactions and is built on the Ruby on Rails architecture. Teachers can set homework and grade student submissions. Students organize into groups, turn in assignments, and evaluate the work of their colleagues.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[ Link to the Pull Request Submitted] &amp;lt;br/&amp;gt;&lt;br /&gt;
[ Link to the deployed project] &amp;lt;br/&amp;gt;&lt;br /&gt;
[ Link to the Repository] &amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Functionality of review_mapping_controller ==&lt;br /&gt;
Review_mapping_controller's function is to supply reviewer and assignment mapping. In essence, the controller manages the assignment of reviews, such as peer and self-reviews, to several teams or to a single student user. Following assignment policy, this controller is also in charge of responding to requests from students for additional bonus evaluations.&lt;br /&gt;
&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;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
We followed several design patterns while refactoring our code. One of the most common ones is the “Extract Method.” There were several instances where the method was too long and complex. We moved some of the functionality to a different method to make it more readable. This way, it became easier and clearer to understand what the method achieved. &lt;br /&gt;
Another issue we observed with the code was that it had too many conditional statements. We used the “Refactoring conditionals” design pattern, which aims to place the block of code in the conditional statement in a different method and call that method. This improves the readability of our code.&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153050</id>
		<title>CSC/ECE 517 Spring 2024 - E2407 Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153050"/>
		<updated>2024-03-23T03:00:36Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page describes changes made under the E2407 OODD assignment for Spring 2024, CSC/ECE 517.&lt;br /&gt;
== Expertiza Background==&lt;br /&gt;
&lt;br /&gt;
Expertiza is an open-source initiative that educators and students at NCSU create and manage. It contains several features that facilitate teacher-student interactions and is built on the Ruby on Rails architecture. Teachers can set homework and grade student submissions. Students organize into groups, turn in assignments, and evaluate the work of their colleagues.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Description of the project ==&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 be removed.   &amp;lt;br/&amp;gt; &amp;lt;br/&amp;gt;&lt;br /&gt;
[https://github.com/expertiza/expertiza/pull/2303 Link to the Pull Request Submitted] &amp;lt;br/&amp;gt;&lt;br /&gt;
[http://152.7.98.87:8080/ Link to the deployed project] &amp;lt;br/&amp;gt;&lt;br /&gt;
[https://github.com/SriPallaviDamuluri/expertiza Link to the Repository] &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;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
We followed several design patterns while refactoring our code. One of the most common ones is the “Extract Method.” There were several instances where the method was too long and complex. We moved some of the functionality to a different method to make it more readable. This way, it became easier and clearer to understand what the method achieved. &lt;br /&gt;
Another issue we observed with the code was that it had too many conditional statements. We used the “Refactoring conditionals” design pattern, which aims to place the block of code in the conditional statement in a different method and call that method. This improves the readability of our code.&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153049</id>
		<title>CSC/ECE 517 Spring 2024 - E2407 Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153049"/>
		<updated>2024-03-23T02:22:33Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This wiki page describes changes made under the E2407 OODD assignment for Spring 2024, CSC/ECE 517.&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153048</id>
		<title>CSC/ECE 517 Spring 2024 - E2407 Refactor review mapping controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2407_Refactor_review_mapping_controller.rb&amp;diff=153048"/>
		<updated>2024-03-23T02:21:45Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: Created page with &amp;quot;hello&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;hello&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024&amp;diff=153047</id>
		<title>CSC/ECE 517 Spring 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024&amp;diff=153047"/>
		<updated>2024-03-23T02:21:29Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[CSC/ECE 517 Spring 2024 - E2407 Refactor review_mapping_controller.rb]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2428 Replicate Roles and Institution UIs ReactJS]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2429 Reimplement student_task list]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2414 Grading Audit Trail]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - ‬NTNX-2‬‭ : Snapshot Functionality for provisioned databases]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2411 : Fix &amp;quot;Back&amp;quot; link on “New Late Policy” page]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2420. Reimplement student_quizzes_controller]]&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024&amp;diff=153046</id>
		<title>CSC/ECE 517 Spring 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024&amp;diff=153046"/>
		<updated>2024-03-23T02:20:45Z</updated>

		<summary type="html">&lt;p&gt;Lpatel: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;* [[CSC/ECE 517 Spring 2024 - E2407 Refactor review_mapping_controller.rb&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2428 Replicate Roles and Institution UIs ReactJS]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2429 Reimplement student_task list]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2414 Grading Audit Trail]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - ‬NTNX-2‬‭ : Snapshot Functionality for provisioned databases]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2411 : Fix &amp;quot;Back&amp;quot; link on “New Late Policy” page]]&lt;br /&gt;
* [[CSC/ECE 517 Spring 2024 - E2420. Reimplement student_quizzes_controller]]&lt;/div&gt;</summary>
		<author><name>Lpatel</name></author>
	</entry>
</feed>