<?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=Slee82</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=Slee82"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Slee82"/>
	<updated>2026-05-15T18:48:42Z</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_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=149152</id>
		<title>CSC/ECE 517 Spring 2023 - E2337. Reimplement node hierarchy</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=149152"/>
		<updated>2023-04-07T22:14:04Z</updated>

		<summary type="html">&lt;p&gt;Slee82: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
Packages of information are distributed based on the context that they are delivered. For courses, information and functionalities are packaged into Course nodes and team information is packaged into Team nodes. These nodes are supplemented by the base node class in order to inherit basic functionality/attributes such as the type of node, the parent id, identifying whether the node is a leaf or not, etc. This hierarchical structure allows for code reuse and custom implementations to exist alongside default implementations in order to keep functionalities modular and isolated, minimizing the risk of breakage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
The node models have a dry problem in two major areas. First off, Node.rb defines a number of functions to fetch a given property such as name, directory, creation_date, etc. These functions all fetch data from the same entity with the same filter parameters. Instead of having five functions, we can consolidate down to one function where a given parameter would be passed in. This parameter could specify which field we want to fetch on a given entity. For example, we could fetch the creation date of an entity by invoking a call like such: node.getProperty(&amp;quot;creation_date&amp;quot;). The getProperty function would be responsible for parsing the parameter and determining which field needs to be returned to the user.&lt;br /&gt;
&lt;br /&gt;
===Class Hierarchy===&lt;br /&gt;
[[File:UML_Diagram_nodes.jpg|1000px|]]&lt;br /&gt;
&lt;br /&gt;
The node.rb model is the base class from which all other nodes inherit from. The children of the node model are assignment_node.rb, course_node.rb, folder_node.rb, questionnaire_node.rb, questionnaire_type_node.rb, team_node.rb, and team_user_node.rb. The functionalities of these nodes are implemented by polymorphism and the subclasses implement the specifications of the base class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ course_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Method !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || create_course_node || Tests if a course node is saved with data&lt;br /&gt;
|-&lt;br /&gt;
| 2 || get_course_query_conditions || Tests when show and current user are set and you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 3 || table || Tests that the table returns courses&lt;br /&gt;
|-&lt;br /&gt;
| 4 || get_course_query_conditions || Tests when show and current user are set and you are a TA&lt;br /&gt;
|-&lt;br /&gt;
| 5 || get_courses_managed_by_user || Tests that user id is returned when you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 6 || get_parent_id || Tests returning id of parent folder when parent is found&lt;br /&gt;
|-&lt;br /&gt;
| 7 || get_parent_id || Tests returning nil when parent is not found&lt;br /&gt;
|-&lt;br /&gt;
| 8 || get_children || Tests returning assignment node when children are found&lt;br /&gt;
|-&lt;br /&gt;
| 9 || get_private || Tests whether the course returned is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || get_survey_distribution_id || Tests that the course returns a survey distribution id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Method !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || get || Tests the questionnaire returns when the user is a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 2 || get || Tests the questionnaire returns when the user is not a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 3 || get  || Tests the questionnaire returns with association with student when the user is not a teaching assistant and show is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 4 || get || Tests the questionnaire returns with association with student when the user is a teaching assistant and show is enabled and parent id is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 5 || table || Tests the return of name of table&lt;br /&gt;
|-&lt;br /&gt;
| 6 || is_leaf || Test whether the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 7 || get_modified_date || Test when the questionnaire was last changed&lt;br /&gt;
|-&lt;br /&gt;
| 8 || get_created_date|| Test when the questionnaire was created&lt;br /&gt;
|-&lt;br /&gt;
| 9 || get_private || Test when the questionnaire is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || get_instructor_id || Test whether the instructor id is associated with questionnaire&lt;br /&gt;
|-&lt;br /&gt;
| 11 || get_name || Test whether the questionnaire name is returned&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_type_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Method !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || get_name || Tests the name of the table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || get || Tests the nodes that are associated with the parent&lt;br /&gt;
|-&lt;br /&gt;
| 3 || get_partial_name || Tests the return of the questionnaire_type_actions&lt;br /&gt;
|-&lt;br /&gt;
| 4 || get || Tests the return of the name of the associated tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || get_children || Tests the return of the children&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ folder_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Method !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || get_name || Tests the name of the folder is found&lt;br /&gt;
|-&lt;br /&gt;
| 2 || get|| Tests fetching of folder node where type is unknown and the parent is not known&lt;br /&gt;
|-&lt;br /&gt;
| 3 || get_partial_name || Tests the partial name is returned correctly&lt;br /&gt;
|-&lt;br /&gt;
| 4 || get_child_type || Tests the return of child type from the tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || get_children || Tests the return of children with the given parameters&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ assignment_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Method !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || table || Tests the return of the assignments table&lt;br /&gt;
|-&lt;br /&gt;
| 2 || get || Tests the list of assignment nodes are returned based on query parameters&lt;br /&gt;
|-&lt;br /&gt;
| 3 || is_leaf || Tests if the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 4 || belongs_to_course || Tests if the node belongs to course&lt;br /&gt;
|-&lt;br /&gt;
| 5 || get_instructor_id  || Tests the instructor id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 6 || retrieve_institution_id  || Tests the institution id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 7 || get_private  || Tests the private field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 8 || get_max_team_size  || Tests the max team size is returned&lt;br /&gt;
|-&lt;br /&gt;
| 9 || get_is_intelligent  || Tests the is_intelligent field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 10 || get_require_quiz  || Tests the get_required_quiz field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 11 || get_allow_suggestions || Tests the get_allow_suggestions field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 12 || get_teams || Tests the get_teams field is returned&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Method !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || table || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || get || Tests that the team node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || get_name || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || get_children || Tests the children of the node are fetched properly&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_user_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Method !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || table || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || get_name || Tests that the team user node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || get || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || is_leaf || Tests that the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Slee82</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=148874</id>
		<title>CSC/ECE 517 Spring 2023 - E2337. Reimplement node hierarchy</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=148874"/>
		<updated>2023-04-06T19:51:27Z</updated>

		<summary type="html">&lt;p&gt;Slee82: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
Packages of information are distributed based on the context that they are delivered. For courses, information and functionalities are packaged into Course nodes and team information is packaged into Team nodes. These nodes are supplemented by the base node class in order to inherit basic functionality/attributes such as the type of node, the parent id, identifying whether the node is a leaf or not, etc. This hierarchical structure allows for code reuse and custom implementations to exist alongside default implementations in order to keep functionalities modular and isolated, minimizing the risk of breakage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
First off, the node models have a dry problem in two major areas. First off, Node.rb defines a number of functions to fetch a given property such as name, directory, creation_date, etc. These functions all fetch data from the same entity with the same filter parameters. Instead of having five functions, we can consolidate down to one function where a given parameter would be passed in. This parameter could specify which field we want to fetch on a given entity. For example, we could fetch the creation date of an entity by invoking a call like such: node.getProperty(&amp;quot;creation_date&amp;quot;). The getProperty function would be responsible for parsing the parameter and determine which field needs to be returned back to the user.&lt;br /&gt;
&lt;br /&gt;
Secondly, there are methods that are repetitive between assignment_node.rb and course_node.rb. In order to reduce repetition, the shared methods can be pulled out into a module, which then the two node models would import in order to use the methods. Some of these repetitive methods are get_instructor_id, retrieve_institution_id, get_private, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Class Hierarchy===&lt;br /&gt;
[[File:UML_Diagram_nodes.jpg|1000px|]]&lt;br /&gt;
&lt;br /&gt;
The node.rb model is the base class from which all other nodes inherit from. The children of the node model are assignment_node.rb, course_node.rb, folder_node.rb, questionnaire_node.rb, questionnaire_type_node.rb, team_node.rb, and team_user_node.rb. The functionalities of these nodes are implemented by polymorphism and the subclasses implement the specifications of the base class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ course_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests if a course node is saved with data&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests when show and current user are set and you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests that the table returns courses&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests when show and current user are set and you are a TA&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests that user id is returned when you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Tests returning id of parent folder when parent is found&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Tests returning nil when parent is not found&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Tests returning assignment node when children are found&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Tests whether the course returned is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Tests that the course returns a survey distribution id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the questionnaire returns when the user is a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the questionnaire returns when the user is not a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the questionnaire returns with association with student when the user is not a teaching assistant and show is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the questionnaire returns with association with student when the user is a teaching assistant and show is enabled and parent id is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of name of table&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Test whether the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Test when the questionnaire was last changed&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Test when the questionnaire was created&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Test when the questionnaire is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Test whether the instructor id is associated with questionnaire&lt;br /&gt;
|-&lt;br /&gt;
| 11 || Test whether the questionnaire name is returned&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_type_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the name of the table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the nodes that are associated with the parent&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the return of the questionnaire_type_actions&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the return of the name of the associated tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of the children object&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ folder_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the name of the folder is found&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests fetching of folder node where type is unknown and the parent is not known&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the partial name is returned correctly&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the return of child type from the tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of children with the given parameters&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ assignment_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the return of the assignments table&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the list of assignment nodes are returned based on query parameters&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests if the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests if the node belongs to course&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the instructor id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Tests the institution id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Tests the private field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Tests the max team size is returned&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Tests the is_intelligent field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Tests the get_required_quiz field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 11 || Tests the get_allow_suggestions field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 12 || Tests the get_teams field is returned&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests that the team node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the children of the node are fetched properly&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_user_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests that the team user node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests that the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Slee82</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=148873</id>
		<title>CSC/ECE 517 Spring 2023 - E2337. Reimplement node hierarchy</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=148873"/>
		<updated>2023-04-06T19:51:00Z</updated>

		<summary type="html">&lt;p&gt;Slee82: /* Introduction */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
Packages of information are distributed based on the context that they are delivered. For courses, information and functionalities are packaged into Course nodes and team information is packaged into Team nodes. These nodes are supplemented by the base node class in order to inherit basic functionality/attributes such as the type of node, the parent id, identifying whether the node is a leaf or not, etc. This hierarchical structure allows for code reuse and custom implementations to exist alongside default implementations in order to keep functionalities modular and isolated, minimizing the risk of breakage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
First off, the node models have a dry problem in two major areas. First off, Node.rb defines a number of functions to fetch a given property such as name, directory, creation_date, etc. These functions all fetch data from the same entity with the same filter parameters. Instead of having five functions, we can consolidate down to one function where a given parameter would be passed in. This parameter could specify which field we want to fetch on a given entity. For example, we could fetch the creation date of an entity by invoking a call like such: node.getProperty(&amp;quot;creation_date&amp;quot;). The getProperty function would be responsible for parsing the parameter and determine which field needs to be returned back to the user.&lt;br /&gt;
&lt;br /&gt;
Secondly, there are methods that are repetitive between assignment_node.rb and course_node.rb. In order to reduce repetition, the shared methods can be pulled out into a module, which then the two node models would import in order to use the methods. Some of these repetitive methods are get_instructor_id, retrieve_institution_id, get_private, etc.&lt;br /&gt;
&lt;br /&gt;
===Class Hierarchy===&lt;br /&gt;
[[File:UML_Diagram_nodes.jpg|1000px|]]&lt;br /&gt;
&lt;br /&gt;
The node.rb model is the base class from which all other nodes inherit from. The children of the node model are assignment_node.rb, course_node.rb, folder_node.rb, questionnaire_node.rb, questionnaire_type_node.rb, team_node.rb, and team_user_node.rb. The functionalities of these nodes are implemented by polymorphism and the subclasses implement the specifications of the base class.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ course_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests if a course node is saved with data&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests when show and current user are set and you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests that the table returns courses&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests when show and current user are set and you are a TA&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests that user id is returned when you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Tests returning id of parent folder when parent is found&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Tests returning nil when parent is not found&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Tests returning assignment node when children are found&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Tests whether the course returned is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Tests that the course returns a survey distribution id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the questionnaire returns when the user is a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the questionnaire returns when the user is not a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the questionnaire returns with association with student when the user is not a teaching assistant and show is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the questionnaire returns with association with student when the user is a teaching assistant and show is enabled and parent id is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of name of table&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Test whether the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Test when the questionnaire was last changed&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Test when the questionnaire was created&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Test when the questionnaire is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Test whether the instructor id is associated with questionnaire&lt;br /&gt;
|-&lt;br /&gt;
| 11 || Test whether the questionnaire name is returned&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_type_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the name of the table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the nodes that are associated with the parent&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the return of the questionnaire_type_actions&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the return of the name of the associated tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of the children object&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ folder_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the name of the folder is found&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests fetching of folder node where type is unknown and the parent is not known&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the partial name is returned correctly&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the return of child type from the tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of children with the given parameters&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ assignment_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the return of the assignments table&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the list of assignment nodes are returned based on query parameters&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests if the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests if the node belongs to course&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the instructor id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Tests the institution id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Tests the private field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Tests the max team size is returned&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Tests the is_intelligent field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Tests the get_required_quiz field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 11 || Tests the get_allow_suggestions field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 12 || Tests the get_teams field is returned&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests that the team node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the children of the node are fetched properly&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_user_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests that the team user node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests that the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Slee82</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=148872</id>
		<title>CSC/ECE 517 Spring 2023 - E2337. Reimplement node hierarchy</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2337._Reimplement_node_hierarchy&amp;diff=148872"/>
		<updated>2023-04-06T19:48:52Z</updated>

		<summary type="html">&lt;p&gt;Slee82: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
Packages of information are distributed based on the context that they are delivered. For courses, information and functionalities are packaged into Course nodes and team information is packaged into Team nodes. These nodes are supplemented by the base node class in order to inherit basic functionality/attributes such as the type of node, the parent id, identifying whether the node is a leaf or not, etc. This hierarchical structure allows for code reuse and custom implementations to exist alongside default implementations in order to keep functionalities modular and isolated, minimizing the risk of breakage.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Problem Statement===&lt;br /&gt;
First off, the node models have a dry problem in two major areas. First off, Node.rb defines a number of functions to fetch a given property such as name, directory, creation_date, etc. These functions all fetch data from the same entity with the same filter parameters. Instead of having five functions, we can consolidate down to one function where a given parameter would be passed in. This parameter could specify which field we want to fetch on a given entity. For example, we could fetch the creation date of an entity by invoking a call like such: node.getProperty(&amp;quot;creation_date&amp;quot;). The getProperty function would be responsible for parsing the parameter and determine which field needs to be returned back to the user.&lt;br /&gt;
&lt;br /&gt;
Secondly, there are methods that are repetitive between assignment_node.rb and course_node.rb. In order to reduce repetition, the shared methods can be pulled out into a module, which then the two node models would import in order to use the methods. Some of these repetitive methods are get_instructor_id, retrieve_institution_id, get_private, etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Test Plan===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ course_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests if a course node is saved with data&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests when show and current user are set and you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests that the table returns courses&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests when show and current user are set and you are a TA&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests that user id is returned when you are not a TA&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Tests returning id of parent folder when parent is found&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Tests returning nil when parent is not found&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Tests returning assignment node when children are found&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Tests whether the course returned is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Tests that the course returns a survey distribution id&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the questionnaire returns when the user is a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the questionnaire returns when the user is not a teaching assistant&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the questionnaire returns with association with student when the user is not a teaching assistant and show is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the questionnaire returns with association with student when the user is a teaching assistant and show is enabled and parent id is enabled&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of name of table&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Test whether the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Test when the questionnaire was last changed&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Test when the questionnaire was created&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Test when the questionnaire is private&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Test whether the instructor id is associated with questionnaire&lt;br /&gt;
|-&lt;br /&gt;
| 11 || Test whether the questionnaire name is returned&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ questionnaire_type_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the name of the table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the nodes that are associated with the parent&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the return of the questionnaire_type_actions&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the return of the name of the associated tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of the children object&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ folder_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the name of the folder is found&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests fetching of folder node where type is unknown and the parent is not known&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the partial name is returned correctly&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the return of child type from the tree folder&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the return of children with the given parameters&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ assignment_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the return of the assignments table&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests the list of assignment nodes are returned based on query parameters&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests if the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests if the node belongs to course&lt;br /&gt;
|-&lt;br /&gt;
| 5 || Tests the instructor id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 6 || Tests the institution id is returned&lt;br /&gt;
|-&lt;br /&gt;
| 7 || Tests the private field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 8 || Tests the max team size is returned&lt;br /&gt;
|-&lt;br /&gt;
| 9 || Tests the is_intelligent field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 10 || Tests the get_required_quiz field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 11 || Tests the get_allow_suggestions field is returned&lt;br /&gt;
|-&lt;br /&gt;
| 12 || Tests the get_teams field is returned&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests that the team node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests the children of the node are fetched properly&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|+ team_user_node_test.rb&lt;br /&gt;
|-&lt;br /&gt;
! Test No. !! Description &lt;br /&gt;
|-&lt;br /&gt;
| 1 || Tests the teams table is returned&lt;br /&gt;
|-&lt;br /&gt;
| 2 || Tests that the team user node is fetched by parent id&lt;br /&gt;
|-&lt;br /&gt;
| 3 || Tests the name is returned correctly by ip address&lt;br /&gt;
|-&lt;br /&gt;
| 4 || Tests that the node is a leaf&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===Class Hierarchy===&lt;br /&gt;
[[File:UML_Diagram_nodes.jpg|1000px|]]&lt;br /&gt;
&lt;br /&gt;
The node.rb model is the base class from which all other nodes inherit from. The children of the node model are assignment_node.rb, course_node.rb, folder_node.rb, questionnaire_node.rb, questionnaire_type_node.rb, team_node.rb, and team_user_node.rb. The functionalities of these nodes are implemented by polymorphism and the subclasses implement the specifications of the base class.&lt;/div&gt;</summary>
		<author><name>Slee82</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:C1.png&amp;diff=148554</id>
		<title>File:C1.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:C1.png&amp;diff=148554"/>
		<updated>2023-03-28T02:18:14Z</updated>

		<summary type="html">&lt;p&gt;Slee82: Slee82 uploaded a new version of File:C1.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Slee82</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2312_%2B_E2313._Reimplement_response.rb_and_responses_controller.rb&amp;diff=148219</id>
		<title>CSC/ECE 517 Spring 2023 - E2312 + E2313. Reimplement response.rb and responses controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2312_%2B_E2313._Reimplement_response.rb_and_responses_controller.rb&amp;diff=148219"/>
		<updated>2023-03-23T03:07:51Z</updated>

		<summary type="html">&lt;p&gt;Slee82: /* 1 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
In order to accommodate issues with another team, our team picked up another member and did both projects. The summaries of the projects are combined here to reflect that.&lt;br /&gt;
&lt;br /&gt;
= E2312 Reimplement Response =&lt;br /&gt;
&lt;br /&gt;
== Summary of Changes ==&lt;br /&gt;
&lt;br /&gt;
The previous version of response.rb was described as &amp;quot;a mess.&amp;quot; The goal of E2312 was to reimplement it to follow better coding standards.&lt;br /&gt;
&lt;br /&gt;
* Made method names clearer, most method names were opaque&lt;br /&gt;
* Moved many functionalities to mixins or helper classes to not violate Single-Responsibility&lt;br /&gt;
* Reduced usage of class methods&lt;br /&gt;
&lt;br /&gt;
== Functionality Moved ==&lt;br /&gt;
&lt;br /&gt;
This section covers the functionality that was moved out of the response model.&lt;br /&gt;
&lt;br /&gt;
=== Score Calculation ===&lt;br /&gt;
&lt;br /&gt;
Score calculation is not inherently tied to the idea of a response.&lt;br /&gt;
Any object with multiple scores could take advantage of a mixin that provided methods to do calculations on those scores.&lt;br /&gt;
Functionality for calculating total, average, and maximum scores were all moved to a new Scorable mixin which can be leveraged by other models moving forward.&lt;br /&gt;
&lt;br /&gt;
=== Emails ===&lt;br /&gt;
&lt;br /&gt;
The response model provided a method for creating emails. This was moved to a new MailMixin, which can be expanded to provide email functionality to more models in the future.&lt;br /&gt;
&lt;br /&gt;
=== Metrics ===&lt;br /&gt;
&lt;br /&gt;
The response model provided a method for getting the volume of review comments on a response. This was moved to a ReviewCommentMixin as it is not necessarily specific to response models.&lt;br /&gt;
&lt;br /&gt;
== Improved Naming ==&lt;br /&gt;
&lt;br /&gt;
Renamed concatenate_all_review_comments to get_all_review comments.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
Many other parts of the software were stubbed out in the implementation project in order to run unit tests. The existing test suite was run against the implementation and passed successfully.&lt;br /&gt;
&lt;br /&gt;
= E2313 Reimplement Response Controller =&lt;br /&gt;
&lt;br /&gt;
== Summary of Changes ==&lt;br /&gt;
&lt;br /&gt;
The previous version of response_controller.rb was too long. It included too many functions besides the basic CRUD methods. The goal of E2313 was to reimplement it to follow better coding standards.&lt;br /&gt;
&lt;br /&gt;
* Made method name to follow plural convention not singular convention. &lt;br /&gt;
* Moved many functionalities to mixins or helper classes&lt;br /&gt;
&lt;br /&gt;
== Functionality Moved ==&lt;br /&gt;
&lt;br /&gt;
This section covers the functionality that was moved out of the responses controller.&lt;br /&gt;
&lt;br /&gt;
=== Authentication and Authorization ===&lt;br /&gt;
&lt;br /&gt;
There were authentication and authorization methods in the response controller. These were moved to authorization helper.&lt;br /&gt;
&lt;br /&gt;
=== Redirect ===&lt;br /&gt;
&lt;br /&gt;
There was a redirect function that helps redirect by params. It is moved to response helper.&lt;br /&gt;
&lt;br /&gt;
=== Sort Reviews ===&lt;br /&gt;
&lt;br /&gt;
There was functionality to sort reviews. We made a new function named sortReviews to perform this functionality and placed it in the response model&lt;br /&gt;
&lt;br /&gt;
== Singular convention to Plural convention ==&lt;br /&gt;
&lt;br /&gt;
There were some function and classes that followed singular conventions, but were changed to follow plural convention.&lt;br /&gt;
&lt;br /&gt;
== Reducing code ==&lt;br /&gt;
&lt;br /&gt;
There were multiple method invocations to set parameters (assign_action_parameters, set_content). We used the macro, before_action, so that we reduced the number of calls for these methods.&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
TODO&lt;/div&gt;</summary>
		<author><name>Slee82</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2312_%2B_E2313._Reimplement_response.rb_and_responses_controller.rb&amp;diff=147643</id>
		<title>CSC/ECE 517 Spring 2023 - E2312 + E2313. Reimplement response.rb and responses controller.rb</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023_-_E2312_%2B_E2313._Reimplement_response.rb_and_responses_controller.rb&amp;diff=147643"/>
		<updated>2023-03-21T23:30:46Z</updated>

		<summary type="html">&lt;p&gt;Slee82: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
In order to accommodate issues with another team, our team picked up another member and did both projects. The summaries of the projects are combined here to reflect that.&lt;br /&gt;
&lt;br /&gt;
= E2312 Reimplement Response =&lt;br /&gt;
&lt;br /&gt;
== Summary of Changes ==&lt;br /&gt;
&lt;br /&gt;
The previous version of response.rb was described as &amp;quot;a mess.&amp;quot; The goal of E2312 was to reimplement it to follow better coding standards.&lt;br /&gt;
&lt;br /&gt;
* Made method names clearer, most method names were opaque&lt;br /&gt;
* Moved many functionalities to mixins or helper classes to not violate Single-Responsibility&lt;br /&gt;
* Reduced usage of class methods&lt;br /&gt;
&lt;br /&gt;
== Functionality Moved ==&lt;br /&gt;
&lt;br /&gt;
This section covers the functionality that was moved out of the response model.&lt;br /&gt;
&lt;br /&gt;
=== Score Calculation ===&lt;br /&gt;
&lt;br /&gt;
Score calculation is not inherently tied to the idea of a response.&lt;br /&gt;
Any object with multiple scores could take advantage of a mixin that provided methods to do calculations on those scores.&lt;br /&gt;
Functionality for calculating total, average, and maximum scores were all moved to a new Scorable mixin which can be leveraged by other models moving forward.&lt;br /&gt;
&lt;br /&gt;
=== Emails ===&lt;br /&gt;
&lt;br /&gt;
The response model provided methods for creating emails. This was moved to a new mixin which can be expanded on to provide email functionality to more models in the future.&lt;br /&gt;
&lt;br /&gt;
=== Metrics ===&lt;br /&gt;
&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
== Improved Naming ==&lt;br /&gt;
&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
TODO&lt;br /&gt;
&lt;br /&gt;
= E2313 Reimplement Response Controller =&lt;br /&gt;
&lt;br /&gt;
== Summary of Changes ==&lt;br /&gt;
&lt;br /&gt;
The previous version of response_controller.rb was too long. It included too many functions besides the basic CRUD methods. The goal of E2313 was to reimplement it to follow better coding standards.&lt;br /&gt;
&lt;br /&gt;
* Made method name to follow plural convention not singular convention. &lt;br /&gt;
* Moved many functionalities to mixins or helper classes&lt;br /&gt;
&lt;br /&gt;
== Functionality Moved ==&lt;br /&gt;
&lt;br /&gt;
This section covers the functionality that was moved out of the responses controller.&lt;br /&gt;
&lt;br /&gt;
=== Authentication and Authorization ===&lt;br /&gt;
&lt;br /&gt;
There were authentication and authorization methods in the response controller. These were moved to authorization helper.&lt;br /&gt;
&lt;br /&gt;
=== Redirect ===&lt;br /&gt;
&lt;br /&gt;
There was a redirect function that helps redirect by params. It is moved to response helper.&lt;br /&gt;
&lt;br /&gt;
=== Sort Reviews ===&lt;br /&gt;
&lt;br /&gt;
There was a functionality to sort reviews. We made new function named sortReviews for doing this stuff and placed it on the response model &lt;br /&gt;
&lt;br /&gt;
== Singular convention to Plural convention ==&lt;br /&gt;
&lt;br /&gt;
There were some functions, classes that followed singular convention. Theses were changed to follow plural convention.&lt;br /&gt;
&lt;br /&gt;
== Reducing code ==&lt;br /&gt;
&lt;br /&gt;
=== 1 ===&lt;br /&gt;
&lt;br /&gt;
There were multiple methods call to set parameters (assign_action_parameters, set_content). We used before_action so that we reduced the number of call of these methods.&lt;br /&gt;
 &lt;br /&gt;
== Testing ==&lt;br /&gt;
&lt;br /&gt;
TODO&lt;/div&gt;</summary>
		<author><name>Slee82</name></author>
	</entry>
</feed>