<?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=Hpullag</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=Hpullag"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Hpullag"/>
	<updated>2026-05-12T06:56:49Z</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_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117307</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117307"/>
		<updated>2018-05-02T17:09:47Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Test Plan Old */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:New Badge.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Adding Badges to Assignments ==&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:Awarded Badges.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== Routes===&lt;br /&gt;
* Routes for badges was added&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have tested:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without a valid image name  &lt;br /&gt;
&lt;br /&gt;
Unit Tests were written for newly added code in the badges model. &lt;br /&gt;
&lt;br /&gt;
New rspec file was added in spec/models/badge_spec.rb. Test cases were written to validate the different conditions of creating a new badge.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for a newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable instructors to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[https://youtu.be/GZrZTBlH7GQ Link to Screen-cast of out implementation]&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117198</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117198"/>
		<updated>2018-04-29T02:59:17Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:New Badge.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Adding Badges to Assignments ==&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:Awarded Badges.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== Routes===&lt;br /&gt;
* Routes for badges was added&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for a newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable instructors to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[https://youtu.be/GZrZTBlH7GQ Link to Screen-cast of out implementation]&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117176</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117176"/>
		<updated>2018-04-29T01:47:40Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Visibility of assigned badges to Students */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:New Badge.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Adding Badges to Assignments ==&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:Awarded Badges.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== Routes===&lt;br /&gt;
* Routes for badges was added&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for a newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable instructors to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Awarded_Badges.png&amp;diff=117174</id>
		<title>File:Awarded Badges.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Awarded_Badges.png&amp;diff=117174"/>
		<updated>2018-04-29T01:47:14Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117163</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117163"/>
		<updated>2018-04-29T01:32:20Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Creation of new badges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:New Badge.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Adding Badges to Assignments ==&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== Routes===&lt;br /&gt;
* Routes for badges was added&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117162</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117162"/>
		<updated>2018-04-29T01:32:07Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Creation of new badges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:New Badge.png]]&lt;br /&gt;
&lt;br /&gt;
== Adding Badges to Assignments ==&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== Routes===&lt;br /&gt;
* Routes for badges was added&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:New_Badge.png&amp;diff=117160</id>
		<title>File:New Badge.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:New_Badge.png&amp;diff=117160"/>
		<updated>2018-04-29T01:31:35Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117159</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117159"/>
		<updated>2018-04-29T01:31:22Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Creation of new badges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Adding Badges to Assignments ==&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== Routes===&lt;br /&gt;
* Routes for badges was added&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117153</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117153"/>
		<updated>2018-04-29T01:28:20Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Files modified */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== Routes===&lt;br /&gt;
* Routes for badges was added&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117151</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117151"/>
		<updated>2018-04-29T01:26:31Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* New Files */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117150</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117150"/>
		<updated>2018-04-29T01:26:17Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Views */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb - Modification to display all available badges to badges tab as checkbox was done. Also a link to creating a new badge is provided&lt;br /&gt;
* expertiza/app/views/badges/new.html.erb - New file to create a new badge was added to this file&lt;br /&gt;
* expertiza/app/views/badges/_form.html.erb - New file to create a form for  badge was added to this file&lt;br /&gt;
* expetiza/app/views/response/response.html.erb - Modification to display checkbox questions in review questioner was added to this file&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117149</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117149"/>
		<updated>2018-04-29T01:17:05Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Models */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/assignment_badge.rb - create badges without threshold method was added&lt;br /&gt;
*  expertiza/app/models/assignment_form.rb - update assigned badges method was added. this method modifies the db entries for assignment_badges table based on the checkbox entries&lt;br /&gt;
* expertiza/app/models/awarded_badge.rb - suggest badge method was added, which is called when badge is suggested by student by checking the checkbox in questioner. &lt;br /&gt;
* expertiza/app/models/badge.rb - functionality to get image name from name was added&lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117146</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117146"/>
		<updated>2018-04-29T01:06:51Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Files modified */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses from checkbox about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117145</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117145"/>
		<updated>2018-04-29T01:05:20Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Files modified */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*   expertiza/app/controllers/assignments_controller.rb - Modifications were done to include the functionality of displaying all badges in the badges tab and check box based selection process &lt;br /&gt;
*  expertiza/app/controllers/badges_controller.rb - This was a new file added in this implementation . Code on handling new badge creation, in create method was added. &lt;br /&gt;
* expertiza/app/controllers/response_controller.rb -  Modification to process question responses about badges were added to this file&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117142</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117142"/>
		<updated>2018-04-29T00:54:21Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Design Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps taken during the course of this project. Two major flows exist in this project , one being new badge creation and associating them with the assignment. Second one is modifying the flow for good teammate and reviewer badges to be present in appropriate question section.  &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117137</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117137"/>
		<updated>2018-04-29T00:50:26Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image and letting the instructor add them to the assignment&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117136</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117136"/>
		<updated>2018-04-29T00:47:37Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Creation of new badges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save, entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117135</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117135"/>
		<updated>2018-04-29T00:46:30Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Design Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg|center]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117134</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117134"/>
		<updated>2018-04-29T00:45:59Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Design Description */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[[File:Badges list.png]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117133</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117133"/>
		<updated>2018-04-29T00:45:34Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Creation of new badges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
[File:Badges list.png]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Badges_list.png&amp;diff=117132</id>
		<title>File:Badges list.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Badges_list.png&amp;diff=117132"/>
		<updated>2018-04-29T00:44:50Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117109</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117109"/>
		<updated>2018-04-28T22:21:24Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Files modified */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
=Implementation Details=&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117108</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117108"/>
		<updated>2018-04-28T22:17:38Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Creation of new badges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. The view is changed to display all the available badges and a check box to select each of them. It was initially present as a badge vs threshold display. Once the user clicks save entries are modified in the data base. &lt;br /&gt;
&lt;br /&gt;
To add a new badge which is a new functionality,  we display a button, at the end of the badges tab, which redirects the user to a page enabling him to create a New badge. The new form fields include ''Badge Name'', ''Image'' and ''Description''. Upon saving the user is again redirected back to the earlier assignments display display.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117107</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117107"/>
		<updated>2018-04-28T21:56:17Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[https://github.com/expertiza/expertiza/pull/1176 Pull Request for present implementation] &lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117091</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117091"/>
		<updated>2018-04-27T22:13:03Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Future Work */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI. A separate flow to enable the user to do that would be useful&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117090</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117090"/>
		<updated>2018-04-27T22:11:12Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Future Work */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
#The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. Workflow to change the status by the instructor must be implemented. &lt;br /&gt;
#There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
#Instructors cannot directly assign “Good Reviewer” badge through the UI.&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117089</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117089"/>
		<updated>2018-04-27T22:06:44Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Future Work */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
The approval workflow is currently missing - when a student assigns a badge to a peer, the approval status is set to 0 and it will never appear in the other student’s homepage. This needs to be implemented.&lt;br /&gt;
There is currently no way for any newly created badge to be assigned to a student through the UI, even if it has been added to an assignment. This needs to be implemented.&lt;br /&gt;
Instructors cannot directly assign “Good Reviewer” badge through the UI.&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117088</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117088"/>
		<updated>2018-04-27T22:04:10Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Files to be modified */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117086</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117086"/>
		<updated>2018-04-27T22:03:09Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Approval of badges by instructor */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. A db migrate was run to include this column.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117085</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117085"/>
		<updated>2018-04-27T22:01:29Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Reviewer-badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Reviewer-badge.png&amp;diff=117084</id>
		<title>File:Reviewer-badge.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Reviewer-badge.png&amp;diff=117084"/>
		<updated>2018-04-27T22:01:06Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117083</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117083"/>
		<updated>2018-04-27T22:00:29Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
[[File:Teammate badge.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Teammate_badge.png&amp;diff=117082</id>
		<title>File:Teammate badge.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Teammate_badge.png&amp;diff=117082"/>
		<updated>2018-04-27T22:00:03Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117080</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117080"/>
		<updated>2018-04-27T21:57:37Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate badge, in the existing workflow, good reviewer was also assigned based on score and threshold. This is modified in our implementation, in a similar way as that of teammate badge. We add a &amp;quot;Good Reviewer check box&amp;quot; as a question in the feedback of the reviews given page. An entry is made to the awarded badges table with the approval status as 0. Once this field is changed to 1, it would display badges in the assignment row .&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117079</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117079"/>
		<updated>2018-04-27T21:45:03Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Implementation Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Design Description =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate bagge&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117078</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117078"/>
		<updated>2018-04-27T21:42:31Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Teammate&amp;quot; badges by student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Similar to Good Teammate bagge&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review_new.png&amp;diff=117077</id>
		<title>File:Team mate review new.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review_new.png&amp;diff=117077"/>
		<updated>2018-04-27T21:35:30Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: uploaded a new version of &amp;amp;quot;File:Team mate review new.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review_new.png&amp;diff=117076</id>
		<title>File:Team mate review new.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review_new.png&amp;diff=117076"/>
		<updated>2018-04-27T21:34:56Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117075</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117075"/>
		<updated>2018-04-27T21:33:49Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Teammate&amp;quot; badges by student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review_new.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review.png&amp;diff=117071</id>
		<title>File:Team mate review.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review.png&amp;diff=117071"/>
		<updated>2018-04-27T21:31:52Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: uploaded a new version of &amp;amp;quot;File:Team mate review.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Team mate badge review location&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review.png&amp;diff=117070</id>
		<title>File:Team mate review.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_mate_review.png&amp;diff=117070"/>
		<updated>2018-04-27T21:30:54Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: uploaded a new version of &amp;amp;quot;File:Team mate review.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Team mate badge review location&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117069</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117069"/>
		<updated>2018-04-27T21:30:19Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Teammate&amp;quot; badges by student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page.&lt;br /&gt;
 &lt;br /&gt;
In this implementation, the earlier flow was changed to allow participant to be able to suggest these badges to their fellow students. To enable this process, a new question in the format of a checkbox, was added into the teammate review questionnaire. This question appears after the Additional Comments section.&lt;br /&gt;
&lt;br /&gt;
Upon selection of this check box an entry is made into the assigned badges table with the participant id and approval status being 0, implying that it is pending with the instructor, for approval before displaying. &lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117063</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117063"/>
		<updated>2018-04-27T21:14:21Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Teammate&amp;quot; badges by student */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of this badges is done automatically based on a threshold, which is set during assignment creation. The score is calculated based on answers to questions on the review page. &lt;br /&gt;
I this implementation, we would like to allow students to be able to suggest these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117056</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117056"/>
		<updated>2018-04-27T21:00:31Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
#Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
#Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of these badges is done based on a threshold, which is assigned by the TA. We would like to allow students to be able to directly add these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117055</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117055"/>
		<updated>2018-04-27T20:59:59Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#[Allowing Instructor to create new badges - which involves adding name and badge image.]&lt;br /&gt;
#[Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.]&lt;br /&gt;
#[Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.]&lt;br /&gt;
#[Create a pipeline to enable instructor to manually approve badges suggested by students]&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of these badges is done based on a threshold, which is assigned by the TA. We would like to allow students to be able to directly add these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117054</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117054"/>
		<updated>2018-04-27T20:59:46Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
#[Allowing Instructor to create new badges - which involves adding name and badge image.]&lt;br /&gt;
&lt;br /&gt;
#[Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.]&lt;br /&gt;
&lt;br /&gt;
#[Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.]&lt;br /&gt;
&lt;br /&gt;
#[Create a pipeline to enable instructor to manually approve badges suggested by students]&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of these badges is done based on a threshold, which is assigned by the TA. We would like to allow students to be able to directly add these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117052</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117052"/>
		<updated>2018-04-27T20:58:39Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
*. Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
&lt;br /&gt;
2. Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
&lt;br /&gt;
3. Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
&lt;br /&gt;
4. Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of these badges is done based on a threshold, which is assigned by the TA. We would like to allow students to be able to directly add these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117051</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117051"/>
		<updated>2018-04-27T20:58:17Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
1. Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
&lt;br /&gt;
2. Students must be able to suggest &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
&lt;br /&gt;
3. Students must be able to suggest &amp;quot;Good Reviewer&amp;quot; badges, for reviews received.&lt;br /&gt;
&lt;br /&gt;
4. Create a pipeline to enable instructor to manually approve badges suggested by students&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of these badges is done based on a threshold, which is assigned by the TA. We would like to allow students to be able to directly add these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117040</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117040"/>
		<updated>2018-04-27T20:47:25Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Assignment of &amp;quot;Good Reviewer&amp;quot; badges */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
1. Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
&lt;br /&gt;
2. Students must be able to assign &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
&lt;br /&gt;
3. Instructors and TAs must be able to manually assign &amp;quot;Good Reviewer&amp;quot; badges.&lt;br /&gt;
&lt;br /&gt;
4. All badges assigned, must require the approval of the instructor, who would manually accept/deny them before final posting.&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of these badges is done based on a threshold, which is assigned by the TA. We would like to allow students to be able to directly add these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117038</id>
		<title>CSC/ECE 517 Spring 2018- Project E1822: Extend the functionality of badging</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2018-_Project_E1822:_Extend_the_functionality_of_badging&amp;diff=117038"/>
		<updated>2018-04-27T20:44:32Z</updated>

		<summary type="html">&lt;p&gt;Hpullag: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Problem Statement =&lt;br /&gt;
The aim of this project is to extend the functionality of badging that was implemented previously. [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly (Previous Implementation)]].&lt;br /&gt;
&lt;br /&gt;
The primary objectives for this project are as follows:&lt;br /&gt;
&lt;br /&gt;
1. Allowing Instructor to create new badges - which involves adding name and badge image.&lt;br /&gt;
&lt;br /&gt;
2. Students must be able to assign &amp;quot;Good Teammate&amp;quot; badges during the teammate review periods.&lt;br /&gt;
&lt;br /&gt;
3. Instructors and TAs must be able to manually assign &amp;quot;Good Reviewer&amp;quot; badges.&lt;br /&gt;
&lt;br /&gt;
4. All badges assigned, must require the approval of the instructor, who would manually accept/deny them before final posting.&lt;br /&gt;
&lt;br /&gt;
= Background And Motivation =&lt;br /&gt;
&lt;br /&gt;
==Previous Implementation==&lt;br /&gt;
&lt;br /&gt;
The use of badges will encourage students to have a visual motivation based on their achievements and thus perform better.  This has the ability to improve the overall class performance. &lt;br /&gt;
&lt;br /&gt;
With such an aim of improving the over all class performance, badging system for Expertiza was implemented, as an [[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly earlier project]]. In that implementation, certain students are awarded badges when certain criteria are met which may include exceptional academic performance in assignments, project submissions etc. Two such badges, Good Reviewer and Good Team mater were implemented, with students receiving them automatically based on a threshold score in those categories. This was a static system with fixed number of badges.&lt;br /&gt;
&lt;br /&gt;
The team had implemented the system, by introduction of 3 new badge related tables &lt;br /&gt;
&lt;br /&gt;
1. “badges” :- id , name, description &lt;br /&gt;
&lt;br /&gt;
2. “assignment_badges” :- id, badge_id, assignment_id, threshold&lt;br /&gt;
&lt;br /&gt;
3. “awarded_badges” :- id, badge_id,participant_id&lt;br /&gt;
&lt;br /&gt;
==Motivation==&lt;br /&gt;
&lt;br /&gt;
The primary motivation behind this project is to give more flexibility to the instructor to assign badges instead of relying solely on automatic scoring. Also, allowing students to suggest ''Good Teammate'' and ''Good Reviewer'' badges for their peers will give them an incentive to put in more effort towards carefully reviewing other's work, and encourage them to actively participate in team projects.&lt;br /&gt;
&lt;br /&gt;
= Team Members =&lt;br /&gt;
Students who collaborated to work on this problem statement are :&lt;br /&gt;
&lt;br /&gt;
1. Akshay Ravichandran&lt;br /&gt;
&lt;br /&gt;
2. Arunkumar Krishnamoorthy&lt;br /&gt;
&lt;br /&gt;
3. Harish Pullagurla&lt;br /&gt;
&lt;br /&gt;
4. Krithika Sekhar&lt;br /&gt;
&lt;br /&gt;
Mentor:- Zhewei Hu (zhu6@ncsu.edu)&lt;br /&gt;
&lt;br /&gt;
= Implementation Plan =&lt;br /&gt;
The following steps briefly describe the implementation steps planned to be taken during the course of this project &lt;br /&gt;
&lt;br /&gt;
== Usecase Diagram ==&lt;br /&gt;
&lt;br /&gt;
[[File:Usecase.jpg]]&lt;br /&gt;
&lt;br /&gt;
== Creation of new badges ==&lt;br /&gt;
When an assignment is created/edited, there is a checkbox called ''&amp;quot;Has Badges?&amp;quot;''. Checking this renders the ''&amp;quot;Badges&amp;quot;'' tab. This tab currently lists the two available badges namely '''&amp;quot;Good Reviewer&amp;quot;''' and '''&amp;quot;Good Teammate&amp;quot;''' as specified in '''expertiza/app/views/assignments/edit/_badges.html.erb'''.&lt;br /&gt;
&lt;br /&gt;
We intend to change this view to allow an instructor to add a new badge, and select all badges that will be applicable to this assignment. For this, we intend to display a link called '''&amp;quot;Add&amp;quot;''' and list all the available badges as a series checkboxes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Clicking on '''&amp;quot;Add&amp;quot;''' would redirect to a new view, where there is a simple form to add a new badge. The form fields would include ''Badge Name'', ''Image'' and ''Description''.&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Teammate&amp;quot; badges by student ==&lt;br /&gt;
&lt;br /&gt;
Presently, the assignment of these badges is done based on a threshold, which is assigned by the TA. We would like to allow students to be able to directly add these badges to their fellow students.&lt;br /&gt;
&lt;br /&gt;
In order to allow students to assign &amp;quot;Good Teammate&amp;quot; badges, the '''expertiza/app/views/student_teams/view.html.erb''' view needs to be edited. The UI we have in mind is as shown below:&lt;br /&gt;
&lt;br /&gt;
[[File:Team_mate_review.png|center|]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Assignment of &amp;quot;Good Reviewer&amp;quot; badges ==&lt;br /&gt;
&lt;br /&gt;
Instructors and TAs can see a review report for an assignment that they are managing as given in the '''expertiza/app/views/review_mapping/_review_report.html.erb''' view. They can add grades and comments to every reviewer. We would like to add another column to this view to allow that allows the instructor/TA to click on a checkbox to indicate if this reviewer is a &amp;quot;Good Reviewer&amp;quot;. The view we have in mind will look as follows:&lt;br /&gt;
&lt;br /&gt;
[[File:Badge_good_reviewer.png | center]]&lt;br /&gt;
&lt;br /&gt;
== Approval of badges by instructor ==&lt;br /&gt;
&lt;br /&gt;
Currently, the '''awarded_badges''' table has no column to indicate the approval status of an awarded badge. We would need to run a db migration to include this column. Also, a new view needs to be created to allow instructors to approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
== Visibility of assigned badges to Students ==&lt;br /&gt;
&lt;br /&gt;
Once approved by the instructor, the badges assigned would be visible in the assignment tab of the website as shown in the image. Badges corresponding to each of the assignments will be seen on the row of that particular assignment.&lt;br /&gt;
&lt;br /&gt;
[[File:badge_final_view.png|center]]&lt;br /&gt;
&lt;br /&gt;
== Files to be modified ==&lt;br /&gt;
&lt;br /&gt;
=== Models ===&lt;br /&gt;
*       expertiza/app/models/awarded_badge.rb &lt;br /&gt;
&lt;br /&gt;
=== Controllers ===&lt;br /&gt;
*    expertiza/app/controllers/badge_controller.rb (to be added)&lt;br /&gt;
&lt;br /&gt;
=== Views ===&lt;br /&gt;
*	expertiza/app/views/assignments/edit/_badges.html.erb&lt;br /&gt;
*	expertiza/app/views/student_teams/view.html.erb&lt;br /&gt;
*	expertiza/app/views/review_mapping/_review_report.html.erb&lt;br /&gt;
*       expertiza/app/views/student_task/list.html.erb&lt;br /&gt;
&lt;br /&gt;
=== Database changes ===&lt;br /&gt;
*       Add a new column 'approval_status' in the awarded_badges table&lt;br /&gt;
&lt;br /&gt;
=== New Files ===&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_add_new_badge.html.erb&lt;br /&gt;
*       expertiza/app/views/assignments/edit/_approve_badge.html.erb&lt;br /&gt;
&lt;br /&gt;
= Test Plan =&lt;br /&gt;
All new code to be added would be thoroughly tested using TDD methodology.&lt;br /&gt;
&lt;br /&gt;
Here are some tests we have in mind:&lt;br /&gt;
&lt;br /&gt;
1. Can save a badge with a valid name, description, and image.&lt;br /&gt;
&lt;br /&gt;
2. Cannot save a badge with an invalid name.&lt;br /&gt;
&lt;br /&gt;
3. Cannot save a badge with empty description.&lt;br /&gt;
&lt;br /&gt;
4. Cannot save a badge without an image path.&lt;br /&gt;
&lt;br /&gt;
5. Check that all badge names are rendered in the &amp;quot;Badges&amp;quot; tab.&lt;br /&gt;
&lt;br /&gt;
6. Check that an instructor can approve student-suggested badges.&lt;br /&gt;
&lt;br /&gt;
7. Check that an approved badge is rendered on student's assignments page if it is approved.&lt;br /&gt;
&lt;br /&gt;
8. Check that a student can not see a badge on assignments page if it is not approved.&lt;br /&gt;
&lt;br /&gt;
= Future Work =&lt;br /&gt;
&lt;br /&gt;
= References=&lt;br /&gt;
&lt;br /&gt;
#[https://github.com/expertiza/expertiza Expertiza on GitHub]&lt;br /&gt;
#[http://expertiza.ncsu.edu/ The live Expertiza website]&lt;br /&gt;
#[http://wiki.expertiza.ncsu.edu/index.php/CSC/ECE_517_Fall_2017/E17A2._Lightweight_badging_system_based_on_Credly Previous Badge implementation page ]&lt;/div&gt;</summary>
		<author><name>Hpullag</name></author>
	</entry>
</feed>