<?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=Vdasi</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=Vdasi"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Vdasi"/>
	<updated>2026-06-30T15:06:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148247</id>
		<title>CSC/ECE 517 Sping 2023 - E2322: Refactor Questionnaire View to display Bookmark Rating</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148247"/>
		<updated>2023-03-23T03:17:33Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: /* Automated Testing with RSpec */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on a different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
==Questionnaires Controller==&lt;br /&gt;
&lt;br /&gt;
Questionnaire is the superclass for all types of questionnaires and rubrics. We can create, display, and manage questionnaires using this controller. Expertiza allows users to create a variety of questionnaires, including reviews, metareviews, teammate reviews, assignments, global surveys, course surveys, and bookmark ratings.&lt;br /&gt;
&lt;br /&gt;
==Problem Statement==&lt;br /&gt;
The following tasks were accomplished in this project:&lt;br /&gt;
&lt;br /&gt;
* Refactoring the methods doing multiple tasks and breaking them in different modules.&lt;br /&gt;
* Refactoring duplicate code into a single method.&lt;br /&gt;
* Add comments to methods and complex lines of code.&lt;br /&gt;
* Removing code that is no longer being used or required&lt;br /&gt;
* Try to fix issues from Code Climate.&lt;br /&gt;
&lt;br /&gt;
==Files Modified==&lt;br /&gt;
&lt;br /&gt;
Below are the files we changed as part of refactoring&lt;br /&gt;
&lt;br /&gt;
=====Bookmarks Controller=====&lt;br /&gt;
&lt;br /&gt;
This is the bookmarks_controller.rb which handles all the CRUD operation performed on bookmarks. Multiple things were done in just one method which we broke in modules doing that specific task. We have the same code repeating in multiple places which we moved into a single method.&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Node=====&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Type Node=====&lt;br /&gt;
In the file app/models/questionnaire_type_node.rb which handles and defines the structure of the questionnaire Node template.&lt;br /&gt;
&lt;br /&gt;
==Refactoring==&lt;br /&gt;
=====Refactor Bookmark Controller===== &lt;br /&gt;
&lt;br /&gt;
The file that is no longer being used in project and was written long ago to add bookmark functionality can be considered as &amp;quot;dead code&amp;quot;. And the bookmark functionality that was originally implemented in this file has been moved to another file in the project, making the original file redundant. To address this issue, the dead code in the form of the original file can be safely removed from the project.&lt;br /&gt;
&lt;br /&gt;
By removing this unused code, we can simplify the codebase and improve the maintainability of the application, as well as potentially reduce the size of the project and improve its performance.&lt;br /&gt;
&lt;br /&gt;
=====Refactor Questionnaire Type Node=====&lt;br /&gt;
The file questionnaire_type_node.rb serves as a template for all the questionnaire nodes which handles the folders list of questionnaires of various types. we have refactored by creating a helper method for the return_nodes_list, which returns a list of folder nodes for the corresponding list of folders.&lt;br /&gt;
&lt;br /&gt;
[[File:questionnaire_type_node_diff.png]]&lt;br /&gt;
&lt;br /&gt;
=====Refactor Questionnaire Node=====&lt;br /&gt;
The file questionnaire_node.rb deals with the attributes associated with questionnaire. This refactored code uses a single method get_attr that takes the name of the attribute as an argument and retrieves it. Then, each of the get_* methods simply calls get_attr with the appropriate attribute name. This eliminates the duplication in the original code and makes it easier to maintain if changes need to be made.&lt;br /&gt;
&lt;br /&gt;
[[File:Questionnaire_node.PNG]]&lt;br /&gt;
&lt;br /&gt;
== Testing  Plan ==&lt;br /&gt;
&lt;br /&gt;
===Testing From UI ===&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating Before creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Initially there will be no bookmarks rating.&lt;br /&gt;
# Click on the Bookmark Rating, there wont be a dropdown as there are no ratings.&lt;br /&gt;
&lt;br /&gt;
*Create new Bookmark Rating&lt;br /&gt;
# As an instructor, go to Manage &amp;gt; Questionnaires,&lt;br /&gt;
# In bookmark Rating field, click on plus button.&lt;br /&gt;
# Create a new Bookmark Rating with required details.&lt;br /&gt;
# After creating Bookmark Rating, Start adding questions.&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating After creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Click on the Bookmark Rating, there will be a dropdown with list of Bookmark Ratings.&lt;br /&gt;
&lt;br /&gt;
=== Automated Testing with RSpec ===&lt;br /&gt;
&lt;br /&gt;
For most of our changes we did not have to create new test cases or modified exiting test cases for all the functionalities that we have been modifying. After refactoring we run the test cases in respective files. &lt;br /&gt;
&lt;br /&gt;
Below is the screenshot of the result after running the test cases.&lt;br /&gt;
&lt;br /&gt;
[[File:testruns.PNG]]&lt;br /&gt;
&lt;br /&gt;
==Team==&lt;br /&gt;
=====Mentor===== &lt;br /&gt;
* Kartiki Bhandakkar&lt;br /&gt;
* Divyang Doshi&lt;br /&gt;
=====Members===== &lt;br /&gt;
* Mithila Reddy Tatigotla, mtatigo&lt;br /&gt;
* Vineeth Dasi, vdasi&lt;br /&gt;
* kalyan Karnati, kkarnat&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
#[https://expertiza.ncsu.edu/ Expertiza]&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/2549 Pull Request to Merge]&lt;br /&gt;
#[http://152.7.177.124:8080/ Deployed Changes Userid - instructor6 and Password - password]&lt;br /&gt;
#[https://github.com/users/mithila-reddy/projects/1 GitHub Project Board]&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Testruns.PNG&amp;diff=148245</id>
		<title>File:Testruns.PNG</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Testruns.PNG&amp;diff=148245"/>
		<updated>2023-03-23T03:16:27Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023&amp;diff=148223</id>
		<title>CSC/ECE 517 Spring 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2023&amp;diff=148223"/>
		<updated>2023-03-23T03:09:01Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: /* OSS Projects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== OSS Projects ==&lt;br /&gt;
[[CSC/ECE 517 Spring_2023 -E2306. Refactor user_controller.rb, user.rb and its child classes]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring_2023 - E2320. Reimplement the Question hierarchy]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring_2023 - E2312 + E2313. Reimplement response.rb and responses_controller.rb]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring_2023 - NTNX-1. Support provisioning MongoDb via NDB Kubernetes Operator]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring_2023 - E2316. Reimplement sign_up_sheet_controller.rb]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring_2023 - E2315. Reimplement signed_up_team.rb, sign_up_topic.rb, sign_up_sheet.rb]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring_2023 - E2323. Refactor DueDate functionality from assignment.rb]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023 - E2317: Reimplement participant.rb]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023 - E2314. Reimplement the response map hierarchy]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023- NTNX-4. Extend NDB operator provision postregresql aws]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023 - E2321. Reimplement QuestionnairesController and QuestionsController]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023 - E2305. Grading audit trail]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023 - E2309. Refactor Node model and its subclasses]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023 - NTNX-2. Support provisioning mySQL databases via NDB Kubernetes Operator]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Spring 2023 - E2300. Refactor E1858. Github metrics integration]]&lt;br /&gt;
&lt;br /&gt;
[[CSC/ECE 517 Sping 2023 - E2322: Refactor Questionnaire View to display Bookmark Rating]]&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Questionnaire_type_node_diff.png&amp;diff=148054</id>
		<title>File:Questionnaire type node diff.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Questionnaire_type_node_diff.png&amp;diff=148054"/>
		<updated>2023-03-22T23:50:14Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: Vdasi uploaded a new version of File:Questionnaire type node diff.png&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Questionnaire_type_node_diff.png&amp;diff=148053</id>
		<title>File:Questionnaire type node diff.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Questionnaire_type_node_diff.png&amp;diff=148053"/>
		<updated>2023-03-22T23:49:07Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148052</id>
		<title>CSC/ECE 517 Sping 2023 - E2322: Refactor Questionnaire View to display Bookmark Rating</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148052"/>
		<updated>2023-03-22T23:48:40Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: /* Refactor Questionnaire Type Node */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on a different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
==Questionnaires Controller==&lt;br /&gt;
&lt;br /&gt;
Questionnaire is the superclass for all types of questionnaires and rubrics. We can create, display, and manage questionnaires using this controller. Expertiza allows users to create a variety of questionnaires, including reviews, metareviews, teammate reviews, assignments, global surveys, course surveys, and bookmark ratings.&lt;br /&gt;
&lt;br /&gt;
==Problem Statement==&lt;br /&gt;
The following tasks were accomplished in this project:&lt;br /&gt;
&lt;br /&gt;
* Refactoring the methods doing multiple tasks and breaking them in different modules.&lt;br /&gt;
* Refactoring duplicate code into a single method.&lt;br /&gt;
* Add comments to methods and complex lines of code.&lt;br /&gt;
* Removing code that is no longer being used or required&lt;br /&gt;
* Try to fix issues from Code Climate.&lt;br /&gt;
&lt;br /&gt;
==Files Modified==&lt;br /&gt;
&lt;br /&gt;
Below are the files we changed as part of refactoring&lt;br /&gt;
&lt;br /&gt;
=====Bookmarks Controller=====&lt;br /&gt;
&lt;br /&gt;
This is the bookmarks_controller.rb which handles all the CRUD operation performed on bookmarks. Multiple things were done in just one method which we broke in modules doing that specific task. We have the same code repeating in multiple places which we moved into a single method.&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Node=====&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Type Node=====&lt;br /&gt;
In the file app/models/questionnaire_type_node.rb which handles and defines the structure of the questionnaire Node template.&lt;br /&gt;
&lt;br /&gt;
==Refactoring==&lt;br /&gt;
=====Refactor Bookmark Controller===== &lt;br /&gt;
&lt;br /&gt;
The file that is no longer being used in project and was written long ago to add bookmark functionality can be considered as &amp;quot;dead code&amp;quot;. And the bookmark functionality that was originally implemented in this file has been moved to another file in the project, making the original file redundant. To address this issue, the dead code in the form of the original file can be safely removed from the project.&lt;br /&gt;
&lt;br /&gt;
By removing this unused code, we can simplify the codebase and improve the maintainability of the application, as well as potentially reduce the size of the project and improve its performance.&lt;br /&gt;
&lt;br /&gt;
=====Refactor Questionnaire Type Node=====&lt;br /&gt;
The file questionnaire_type_node.rb servers as a template for all the questionnaire nodes which handles the folders list of questionnaires of various types. we have refactored by creating a helper method for the return_nodes_list, which returns a list of folder nodes for the corresponding list of folders.&lt;br /&gt;
&lt;br /&gt;
[[File:questionnaire_type_node_diff.png]]&lt;br /&gt;
&lt;br /&gt;
== Testing  Plan ==&lt;br /&gt;
&lt;br /&gt;
===Testing From UI ===&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating Before creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Initially there will be no bookmarks rating.&lt;br /&gt;
# Click on the Bookmark Rating, there wont be a dropdown as there are no ratings.&lt;br /&gt;
&lt;br /&gt;
*Create new Bookmark Rating&lt;br /&gt;
# As an instructor, go to Manage &amp;gt; Questionnaires,&lt;br /&gt;
# In bookmark Rating field, click on plus button.&lt;br /&gt;
# Create a new Bookmark Rating with required details.&lt;br /&gt;
# After creating Bookmark Rating, Start adding questions.&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating After creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Click on the Bookmark Rating, there will be a dropdown with list of Bookmark Ratings.&lt;br /&gt;
&lt;br /&gt;
=== Automated Testing with RSpec ===&lt;br /&gt;
&lt;br /&gt;
For most of our changes we did not have to create new test cases or modified exiting test cases for all the functionalities that we have been modifying. After refactoring we run the test cases in respective files. &lt;br /&gt;
&lt;br /&gt;
Below is the screenshot of the result after running the test cases.&lt;br /&gt;
&lt;br /&gt;
==Team==&lt;br /&gt;
=====Mentor===== &lt;br /&gt;
* Kartiki Bhandakkar&lt;br /&gt;
* Divyang Doshi&lt;br /&gt;
=====Members===== &lt;br /&gt;
* Mithila Reddy Tatigotla, mtatigo&lt;br /&gt;
* Vineeth Dasi, vdasi&lt;br /&gt;
* kalyan Karnati, kkarnat&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
#[https://expertiza.ncsu.edu/ Expertiza]&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/2549 Pull Request to Merge]&lt;br /&gt;
#[http://152.7.177.124:8080/ Deployed Changes Userid - instructor6 and Password - password]&lt;br /&gt;
#[https://github.com/users/mithila-reddy/projects/1 GitHub Project Board]&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148051</id>
		<title>CSC/ECE 517 Sping 2023 - E2322: Refactor Questionnaire View to display Bookmark Rating</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148051"/>
		<updated>2023-03-22T23:46:51Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: /* Questionnaire Type Node */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on a different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
==Questionnaires Controller==&lt;br /&gt;
&lt;br /&gt;
Questionnaire is the superclass for all types of questionnaires and rubrics. We can create, display, and manage questionnaires using this controller. Expertiza allows users to create a variety of questionnaires, including reviews, metareviews, teammate reviews, assignments, global surveys, course surveys, and bookmark ratings.&lt;br /&gt;
&lt;br /&gt;
==Problem Statement==&lt;br /&gt;
The following tasks were accomplished in this project:&lt;br /&gt;
&lt;br /&gt;
* Refactoring the methods doing multiple tasks and breaking them in different modules.&lt;br /&gt;
* Refactoring duplicate code into a single method.&lt;br /&gt;
* Add comments to methods and complex lines of code.&lt;br /&gt;
* Removing code that is no longer being used or required&lt;br /&gt;
* Try to fix issues from Code Climate.&lt;br /&gt;
&lt;br /&gt;
==Files Modified==&lt;br /&gt;
&lt;br /&gt;
Below are the files we changed as part of refactoring&lt;br /&gt;
&lt;br /&gt;
=====Bookmarks Controller=====&lt;br /&gt;
&lt;br /&gt;
This is the bookmarks_controller.rb which handles all the CRUD operation performed on bookmarks. Multiple things were done in just one method which we broke in modules doing that specific task. We have the same code repeating in multiple places which we moved into a single method.&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Node=====&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Type Node=====&lt;br /&gt;
In the file app/models/questionnaire_type_node.rb which handles and defines the structure of the questionnaire Node template.&lt;br /&gt;
&lt;br /&gt;
==Refactoring==&lt;br /&gt;
=====Refactor Bookmark Controller===== &lt;br /&gt;
&lt;br /&gt;
The file that is no longer being used in project and was written long ago to add bookmark functionality can be considered as &amp;quot;dead code&amp;quot;. And the bookmark functionality that was originally implemented in this file has been moved to another file in the project, making the original file redundant. To address this issue, the dead code in the form of the original file can be safely removed from the project.&lt;br /&gt;
&lt;br /&gt;
By removing this unused code, we can simplify the codebase and improve the maintainability of the application, as well as potentially reduce the size of the project and improve its performance.&lt;br /&gt;
&lt;br /&gt;
=====Refactor Questionnaire Type Node=====&lt;br /&gt;
The file questionnaire_type_node.rb servers as a template for all the questionnaire nodes which handles the folders list of questionnaires of various types. we have refactored by creating a helper method for the return_nodes_list, which returns a list of folder nodes for the corresponding list of folders.&lt;br /&gt;
&lt;br /&gt;
== Testing  Plan ==&lt;br /&gt;
&lt;br /&gt;
===Testing From UI ===&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating Before creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Initially there will be no bookmarks rating.&lt;br /&gt;
# Click on the Bookmark Rating, there wont be a dropdown as there are no ratings.&lt;br /&gt;
&lt;br /&gt;
*Create new Bookmark Rating&lt;br /&gt;
# As an instructor, go to Manage &amp;gt; Questionnaires,&lt;br /&gt;
# In bookmark Rating field, click on plus button.&lt;br /&gt;
# Create a new Bookmark Rating with required details.&lt;br /&gt;
# After creating Bookmark Rating, Start adding questions.&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating After creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Click on the Bookmark Rating, there will be a dropdown with list of Bookmark Ratings.&lt;br /&gt;
&lt;br /&gt;
=== Automated Testing with RSpec ===&lt;br /&gt;
&lt;br /&gt;
For most of our changes we did not have to create new test cases or modified exiting test cases for all the functionalities that we have been modifying. After refactoring we run the test cases in respective files. &lt;br /&gt;
&lt;br /&gt;
Below is the screenshot of the result after running the test cases.&lt;br /&gt;
&lt;br /&gt;
==Team==&lt;br /&gt;
=====Mentor===== &lt;br /&gt;
* Kartiki Bhandakkar&lt;br /&gt;
* Divyang Doshi&lt;br /&gt;
=====Members===== &lt;br /&gt;
* Mithila Reddy Tatigotla, mtatigo&lt;br /&gt;
* Vineeth Dasi, vdasi&lt;br /&gt;
* kalyan Karnati, kkarnat&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
#[https://expertiza.ncsu.edu/ Expertiza]&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/2549 Pull Request to Merge]&lt;br /&gt;
#[http://152.7.177.124:8080/ Deployed Changes Userid - instructor6 and Password - password]&lt;br /&gt;
#[https://github.com/users/mithila-reddy/projects/1 GitHub Project Board]&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148042</id>
		<title>CSC/ECE 517 Sping 2023 - E2322: Refactor Questionnaire View to display Bookmark Rating</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148042"/>
		<updated>2023-03-22T23:44:46Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: /* Refactoring */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on a different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
==Questionnaires Controller==&lt;br /&gt;
&lt;br /&gt;
Questionnaire is the superclass for all types of questionnaires and rubrics. We can create, display, and manage questionnaires using this controller. Expertiza allows users to create a variety of questionnaires, including reviews, metareviews, teammate reviews, assignments, global surveys, course surveys, and bookmark ratings.&lt;br /&gt;
&lt;br /&gt;
==Problem Statement==&lt;br /&gt;
The following tasks were accomplished in this project:&lt;br /&gt;
&lt;br /&gt;
* Refactoring the methods doing multiple tasks and breaking them in different modules.&lt;br /&gt;
* Refactoring duplicate code into a single method.&lt;br /&gt;
* Add comments to methods and complex lines of code.&lt;br /&gt;
* Removing code that is no longer being used or required&lt;br /&gt;
* Try to fix issues from Code Climate.&lt;br /&gt;
&lt;br /&gt;
==Files Modified==&lt;br /&gt;
&lt;br /&gt;
Below are the files we changed as part of refactoring&lt;br /&gt;
&lt;br /&gt;
=====Bookmarks Controller=====&lt;br /&gt;
&lt;br /&gt;
This is the bookmarks_controller.rb which handles all the CRUD operation performed on bookmarks. Multiple things were done in just one method which we broke in modules doing that specific task. We have the same code repeating in multiple places which we moved into a single method.&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Node=====&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Type Node=====&lt;br /&gt;
In the file app/models/questionnaire_type_node.rb which handles and defines the structure of the questionnaire Node template. we have refactored by creating a helper method for the return_nodes_list, which returns a list of folder nodes for the corresponding list of folders.&lt;br /&gt;
&lt;br /&gt;
==Refactoring==&lt;br /&gt;
=====Refactor Bookmark Controller===== &lt;br /&gt;
&lt;br /&gt;
The file that is no longer being used in project and was written long ago to add bookmark functionality can be considered as &amp;quot;dead code&amp;quot;. And the bookmark functionality that was originally implemented in this file has been moved to another file in the project, making the original file redundant. To address this issue, the dead code in the form of the original file can be safely removed from the project.&lt;br /&gt;
&lt;br /&gt;
By removing this unused code, we can simplify the codebase and improve the maintainability of the application, as well as potentially reduce the size of the project and improve its performance.&lt;br /&gt;
&lt;br /&gt;
=====Refactor Questionnaire Type Node=====&lt;br /&gt;
The file questionnaire_type_node.rb servers as a template for all the questionnaire nodes which handles the folders list of questionnaires of various types. we have refactored by creating a helper method for the return_nodes_list, which returns a list of folder nodes for the corresponding list of folders.&lt;br /&gt;
&lt;br /&gt;
== Testing  Plan ==&lt;br /&gt;
&lt;br /&gt;
===Testing From UI ===&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating Before creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Initially there will be no bookmarks rating.&lt;br /&gt;
# Click on the Bookmark Rating, there wont be a dropdown as there are no ratings.&lt;br /&gt;
&lt;br /&gt;
*Create new Bookmark Rating&lt;br /&gt;
# As an instructor, go to Manage &amp;gt; Questionnaires,&lt;br /&gt;
# In bookmark Rating field, click on plus button.&lt;br /&gt;
# Create a new Bookmark Rating with required details.&lt;br /&gt;
# After creating Bookmark Rating, Start adding questions.&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating After creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Click on the Bookmark Rating, there will be a dropdown with list of Bookmark Ratings.&lt;br /&gt;
&lt;br /&gt;
=== Automated Testing with RSpec ===&lt;br /&gt;
&lt;br /&gt;
For most of our changes we did not have to create new test cases or modified exiting test cases for all the functionalities that we have been modifying. After refactoring we run the test cases in respective files. &lt;br /&gt;
&lt;br /&gt;
Below is the screenshot of the result after running the test cases.&lt;br /&gt;
&lt;br /&gt;
==Team==&lt;br /&gt;
=====Mentor===== &lt;br /&gt;
* Kartiki Bhandakkar&lt;br /&gt;
* Divyang Doshi&lt;br /&gt;
=====Members===== &lt;br /&gt;
* Mithila Reddy Tatigotla, mtatigo&lt;br /&gt;
* Vineeth Dasi, vdasi&lt;br /&gt;
* kalyan Karnati, kkarnat&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
#[https://expertiza.ncsu.edu/ Expertiza]&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/2549 Pull Request to Merge]&lt;br /&gt;
#[http://152.7.177.124:8080/ Deployed Changes Userid - instructor6 and Password - password]&lt;br /&gt;
#[https://github.com/users/mithila-reddy/projects/1 GitHub Project Board]&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148040</id>
		<title>CSC/ECE 517 Sping 2023 - E2322: Refactor Questionnaire View to display Bookmark Rating</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Sping_2023_-_E2322:_Refactor_Questionnaire_View_to_display_Bookmark_Rating&amp;diff=148040"/>
		<updated>2023-03-22T23:40:59Z</updated>

		<summary type="html">&lt;p&gt;Vdasi: /* Questionnaire Type Node */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Expertiza==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on a different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
==Questionnaires Controller==&lt;br /&gt;
&lt;br /&gt;
Questionnaire is the superclass for all types of questionnaires and rubrics. We can create, display, and manage questionnaires using this controller. Expertiza allows users to create a variety of questionnaires, including reviews, metareviews, teammate reviews, assignments, global surveys, course surveys, and bookmark ratings.&lt;br /&gt;
&lt;br /&gt;
==Problem Statement==&lt;br /&gt;
The following tasks were accomplished in this project:&lt;br /&gt;
&lt;br /&gt;
* Refactoring the methods doing multiple tasks and breaking them in different modules.&lt;br /&gt;
* Refactoring duplicate code into a single method.&lt;br /&gt;
* Add comments to methods and complex lines of code.&lt;br /&gt;
* Removing code that is no longer being used or required&lt;br /&gt;
* Try to fix issues from Code Climate.&lt;br /&gt;
&lt;br /&gt;
==Files Modified==&lt;br /&gt;
&lt;br /&gt;
Below are the files we changed as part of refactoring&lt;br /&gt;
&lt;br /&gt;
=====Bookmarks Controller=====&lt;br /&gt;
&lt;br /&gt;
This is the bookmarks_controller.rb which handles all the CRUD operation performed on bookmarks. Multiple things were done in just one method which we broke in modules doing that specific task. We have the same code repeating in multiple places which we moved into a single method.&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Node=====&lt;br /&gt;
&lt;br /&gt;
=====Questionnaire Type Node=====&lt;br /&gt;
In the file app/models/questionnaire_type_node.rb which handles and defines the structure of the questionnaire Node template. we have refactored by creating a helper method for the return_nodes_list, which returns a list of folder nodes for the corresponding list of folders.&lt;br /&gt;
&lt;br /&gt;
==Refactoring==&lt;br /&gt;
=====Refactor Bookmark Controller===== &lt;br /&gt;
&lt;br /&gt;
The file that is no longer being used in project and was written long ago to add bookmark functionality can be considered as &amp;quot;dead code&amp;quot;. And the bookmark functionality that was originally implemented in this file has been moved to another file in the project, making the original file redundant. To address this issue, the dead code in the form of the original file can be safely removed from the project.&lt;br /&gt;
&lt;br /&gt;
By removing this unused code, we can simplify the codebase and improve the maintainability of the application, as well as potentially reduce the size of the project and improve its performance.&lt;br /&gt;
&lt;br /&gt;
== Testing  Plan ==&lt;br /&gt;
&lt;br /&gt;
===Testing From UI ===&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating Before creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Initially there will be no bookmarks rating.&lt;br /&gt;
# Click on the Bookmark Rating, there wont be a dropdown as there are no ratings.&lt;br /&gt;
&lt;br /&gt;
*Create new Bookmark Rating&lt;br /&gt;
# As an instructor, go to Manage &amp;gt; Questionnaires,&lt;br /&gt;
# In bookmark Rating field, click on plus button.&lt;br /&gt;
# Create a new Bookmark Rating with required details.&lt;br /&gt;
# After creating Bookmark Rating, Start adding questions.&lt;br /&gt;
&lt;br /&gt;
* View Bookmark Rating After creation&lt;br /&gt;
# After logging in as instructor, go to Manage &amp;gt; Questionnaires.&lt;br /&gt;
# Click on the Bookmark Rating, there will be a dropdown with list of Bookmark Ratings.&lt;br /&gt;
&lt;br /&gt;
=== Automated Testing with RSpec ===&lt;br /&gt;
&lt;br /&gt;
For most of our changes we did not have to create new test cases or modified exiting test cases for all the functionalities that we have been modifying. After refactoring we run the test cases in respective files. &lt;br /&gt;
&lt;br /&gt;
Below is the screenshot of the result after running the test cases.&lt;br /&gt;
&lt;br /&gt;
==Team==&lt;br /&gt;
=====Mentor===== &lt;br /&gt;
* Kartiki Bhandakkar&lt;br /&gt;
* Divyang Doshi&lt;br /&gt;
=====Members===== &lt;br /&gt;
* Mithila Reddy Tatigotla, mtatigo&lt;br /&gt;
* Vineeth Dasi, vdasi&lt;br /&gt;
* kalyan Karnati, kkarnat&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
#[https://expertiza.ncsu.edu/ Expertiza]&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza GitHub]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/2549 Pull Request to Merge]&lt;br /&gt;
#[http://152.7.177.124:8080/ Deployed Changes Userid - instructor6 and Password - password]&lt;br /&gt;
#[https://github.com/users/mithila-reddy/projects/1 GitHub Project Board]&lt;/div&gt;</summary>
		<author><name>Vdasi</name></author>
	</entry>
</feed>