<?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=Tpardes</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=Tpardes"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Tpardes"/>
	<updated>2026-05-10T19:29:03Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156065</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management (Phase 2)</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156065"/>
		<updated>2024-04-23T18:10:57Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Automated Rspec Testing  Scenarios */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Expertiza ==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This project is the continuation of [https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management/ E2304] for the implementation of the Mentor-meeting management in the Expertiza system for mentored teams. We are now required to add functionality to add mentors to the topics and then assign them to the teams when they pick up that topic.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The following tasks are required for the project:&lt;br /&gt;
#&amp;lt;b&amp;gt;Enhancing Code Clarity:&amp;lt;/b&amp;gt; This involves renaming methods from Project 3 with ambiguous names, optimizing loops and adding comments for unclear lines of code&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Mentored teams:&amp;lt;/b&amp;gt; Reimplement the Mentored team delegate to the Assignment team to reduce complexity and to follow best principles of Object Oriented Design&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Sign Up Sheet or Topics:&amp;lt;/b&amp;gt; Reimplement the SignUpSheet controller to automatically add the mentor to when a topic is created and automatically assign the same mentor to a team when they choose the topic&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for mentor meetings models:&amp;lt;/b&amp;gt; More tests have to be written for Mentor Meeting model&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the mentor meetings controller:&amp;lt;/b&amp;gt; More tests should be written for Mentor meeting controller&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the signup sheet controller:&amp;lt;/b&amp;gt; Additional tests should be written for signup sheet controller to test the new functionality&lt;br /&gt;
&lt;br /&gt;
== Objectives ==&lt;br /&gt;
We have 3 main objectives for this project.&lt;br /&gt;
* Refactoring of the Mentor-meeting model and controller created for the Project 3&lt;br /&gt;
* Reimplementation of Mentored Teams model and controller for the Project 4&lt;br /&gt;
* Reimplementation of SignUp Sheet controller for the Project 4 to automatically assign mentors to the topics&lt;br /&gt;
&lt;br /&gt;
== Design Goal ==&lt;br /&gt;
While fulfilling all the objectives, the following design rules have to be ensured:&lt;br /&gt;
* Validate proper functioning of all existing and anticipated methods, making any required enhancements or adjustments.&lt;br /&gt;
* Establish loose coupling and tight cohesion for the model and controller to enhance code organization and maintainability.&lt;br /&gt;
* Refactor redundant code in the previous implementation's controller and model methods using DRY principle, eliminating functionality duplication already present in the Expertiza system.&lt;br /&gt;
* Confirm the continued effectiveness of existing test cases following the aforementioned modifications and generate additional test cases as per the need.&lt;br /&gt;
&lt;br /&gt;
== Class UML Diagram ==&lt;br /&gt;
[[File:OODD Proj4 E2403 - Entity Diagram 2.png ‎| 610px]]&lt;br /&gt;
&lt;br /&gt;
== Classes and Relationships ==&lt;br /&gt;
=== Existing Structure ===&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has a &amp;lt;b&amp;gt;Node&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;Team&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;MentorMeeting&amp;lt;/b&amp;gt;&lt;br /&gt;
=== Proposed Structure Structure ===&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; to be delegated from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; instead of inheriting from it&lt;br /&gt;
&lt;br /&gt;
== Implementation Plan ==&lt;br /&gt;
=== Modify newly created controller, model and view ===&lt;br /&gt;
==== mentor_meeting_controller.rb ====&lt;br /&gt;
* Edit function names to make them more descriptive&lt;br /&gt;
* Add more descriptive comments for the functions&lt;br /&gt;
==== mentor_meetings_helper.rb ====&lt;br /&gt;
* Move the &amp;quot;get_dates_for_team&amp;quot; function to the model&lt;br /&gt;
* Rename the function to make it more descriptive&lt;br /&gt;
==== _entry_assignments.html.erb ====&lt;br /&gt;
* Add more descriptive comments for the JavaScript functions&lt;br /&gt;
* Move the Ruby code from the template to a helper or the controller&lt;br /&gt;
==== mentored_team.rb ====&lt;br /&gt;
* This file needs to be modified to implement the functionality of delegation instead of inheritance&lt;br /&gt;
* The &amp;quot;add_member&amp;quot; method must function as previously intended during reimplementation&lt;br /&gt;
&lt;br /&gt;
=== Modify existing controller model and view ===&lt;br /&gt;
==== teams/_team.html.erb ====&lt;br /&gt;
* As the mentored team will now be delegated from the assignment team, we need to change the if condition on the top as we are changing MentoredTeam to be delegated from the AssignmentTeam&lt;br /&gt;
==== teams_controller.rb ====&lt;br /&gt;
* This file has to be modified to work with the delegated MentoredTeam&lt;br /&gt;
* These lines will not work as MentoredTeam will not be a model&lt;br /&gt;
[[File:Teams con1.png ‎| 600px]]&lt;br /&gt;
==== sign_up_sheet_controller.rb ====&lt;br /&gt;
* This controller has to be modified to automatically assign mentors or manually add mentors to the topics when they are created&lt;br /&gt;
* This will be followed by a change in schema&lt;br /&gt;
[[File:Signup con1.png | 600px]]&lt;br /&gt;
==== _topic.html.erb ====&lt;br /&gt;
* If we manually have to assign mentors to the topic, we have to include a input field to enter the mentor&lt;br /&gt;
[[File:Topic html.png | 600px]]&lt;br /&gt;
==== schema.rb ====&lt;br /&gt;
* As we are adding a new field to the table, we need to modify the schema&lt;br /&gt;
* We need to write 1 migration to add the field to the table to update the schema file&lt;br /&gt;
[[File:Schema E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== Mailer Changes ===&lt;br /&gt;
====team.rb====&lt;br /&gt;
* The team model must be altered to use delegation for cases where a team would previously be a mentored team. &lt;br /&gt;
====add_member====&lt;br /&gt;
* The add member function must be altered such that the call to mail a user is better named, and that it calls directly to the mailer rather than the mailer helper. &lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
====mailer_helper====&lt;br /&gt;
* The mailer_helper will be altered such that the send_team_confimration_to_user will be moved and renamed in the Mailer.rb class instead since using generic_message as such is leading to an unclear design. &lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
====mailer.rb====&lt;br /&gt;
* A new function to specifically handle messaging users when added to teams will be built in the mailer, rather than just overusing the generic_message function.&lt;br /&gt;
&lt;br /&gt;
== UI Changes ==&lt;br /&gt;
=== UI Changes before Phase 2 code changes ===&lt;br /&gt;
* The mentored assignment teams page has the modified UI from the Phase 1 as it is also a mentored assignemnt&lt;br /&gt;
* But the teams do not have a TA as the automated assignment of mentors has not been implmeneted.&lt;br /&gt;
[[File:UI1 E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== UI Changes after Phase 2 code changes ===&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
The mentored assignment teams with topic now has the new UI and the automated mentor assignemnt&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Files Modified/Added ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
When the project was pulled from the main repository, there are not enough tests to cover the additional functionalities that we added. We are planning on using the test skeletons by Mustafa Olmez, as a reference to how and what kind of tests should be written. Test cases for mentor management were already written and we wrote new test cases for the new functionalities we added. Here are the four test case scenarios we covered and the actual ruby code for the Rspec tests&lt;br /&gt;
&lt;br /&gt;
=== Automated Rspec Testing  Scenarios===&lt;br /&gt;
1. &amp;lt;b&amp;gt;Test scenario 1:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with different team counts for the assignment, Then it should return the mentor with the lowest team count&lt;br /&gt;
  it &amp;quot;returns the mentor with the lowest team count for the given assignment&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 2]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
2. &amp;lt;b&amp;gt;Test scenario 2:&amp;lt;/b&amp;gt; Given an assignment_id, When there is only one mentor available for the assignment, Then it should return that mentor&lt;br /&gt;
  it &amp;quot;should return that mentor if there's only one available&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 0]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
3. &amp;lt;b&amp;gt;Test scenario 3:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with the same lowest team count for the assignment, Then it should return the first mentor in the list&lt;br /&gt;
  it &amp;quot;returns the first mentor in the list if there's a tie for lowest team count&amp;quot; do&lt;br /&gt;
        # Arrange&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 1],])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor &lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
4. &amp;lt;b&amp;gt;Test scenario 4:&amp;lt;/b&amp;gt; Given an assignment_id, When there are no mentors available for the assignment, Then it should return nil&lt;br /&gt;
  it &amp;quot;returns nil&amp;quot; do&lt;br /&gt;
        # Create a new assignment&lt;br /&gt;
        a = FactoryBot.create(:assignment, id: 997, directory_path: 'OSS_project', auto_assign_mentor: true)&lt;br /&gt;
        # Since there are no mentors associated with this assignment, should return nil&lt;br /&gt;
        expect(MentorManagement.select_mentor(a.id)).to eq nil&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
=== Manual UI Testing ===&lt;br /&gt;
Apart from the automated Rspec tests, we are providing manual testing cases that can be used to verify the functioning of the website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
Link to the [https://www.youtube.com/ video] to find help on testing these cases&lt;br /&gt;
&lt;br /&gt;
==== Scenario 1 - Creating an mentored team ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Auto assign mentors when team hits &amp;gt; 50% capacity?&amp;quot; option is checked&lt;br /&gt;
[[File:MT 1-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
[[File:MT 1-2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
==== Scenario 2 - Adding, editing, deleting mentor meeting dates ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Assigments&lt;br /&gt;
# Assuming you have created a mentored assignment and added participants to it, proceed to the teams page&lt;br /&gt;
# Try entering dates into it teams row and the date should persist&lt;br /&gt;
# You can edit and delete the dates from the rows&lt;br /&gt;
# Team with less than 50% capacity will have the mentor meeting dates disabled&lt;br /&gt;
[[File:MT 2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Scenario 3 - Creating an mentored team with topic ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Has topics?&amp;quot; option is checked and a topic is created using the Topics tab&lt;br /&gt;
[[File:MT 3-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Coverage ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
We used SimpleCov to generate a coverage report for the Rspec test cases implemeted for the model and controllers. The test coverage indicated &amp;lt;b&amp;gt;x%&amp;lt;/b&amp;gt; percent of code was covered through the testcases. &lt;br /&gt;
&lt;br /&gt;
== Test Login Credentials ==&lt;br /&gt;
* UserId: instructor6&lt;br /&gt;
* Password: password&lt;br /&gt;
&lt;br /&gt;
== Demo Video ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
This is our [https://www.youtube.com/ demo video] which explain how to create courses, assignments, mentored teams and mentored teams with topics. This video also show how to run the tests of our code changes.&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO::&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/xxxx&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156064</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management (Phase 2)</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156064"/>
		<updated>2024-04-23T18:10:05Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Automated Rspec Testing  Scenarios */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Expertiza ==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This project is the continuation of [https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management/ E2304] for the implementation of the Mentor-meeting management in the Expertiza system for mentored teams. We are now required to add functionality to add mentors to the topics and then assign them to the teams when they pick up that topic.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The following tasks are required for the project:&lt;br /&gt;
#&amp;lt;b&amp;gt;Enhancing Code Clarity:&amp;lt;/b&amp;gt; This involves renaming methods from Project 3 with ambiguous names, optimizing loops and adding comments for unclear lines of code&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Mentored teams:&amp;lt;/b&amp;gt; Reimplement the Mentored team delegate to the Assignment team to reduce complexity and to follow best principles of Object Oriented Design&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Sign Up Sheet or Topics:&amp;lt;/b&amp;gt; Reimplement the SignUpSheet controller to automatically add the mentor to when a topic is created and automatically assign the same mentor to a team when they choose the topic&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for mentor meetings models:&amp;lt;/b&amp;gt; More tests have to be written for Mentor Meeting model&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the mentor meetings controller:&amp;lt;/b&amp;gt; More tests should be written for Mentor meeting controller&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the signup sheet controller:&amp;lt;/b&amp;gt; Additional tests should be written for signup sheet controller to test the new functionality&lt;br /&gt;
&lt;br /&gt;
== Objectives ==&lt;br /&gt;
We have 3 main objectives for this project.&lt;br /&gt;
* Refactoring of the Mentor-meeting model and controller created for the Project 3&lt;br /&gt;
* Reimplementation of Mentored Teams model and controller for the Project 4&lt;br /&gt;
* Reimplementation of SignUp Sheet controller for the Project 4 to automatically assign mentors to the topics&lt;br /&gt;
&lt;br /&gt;
== Design Goal ==&lt;br /&gt;
While fulfilling all the objectives, the following design rules have to be ensured:&lt;br /&gt;
* Validate proper functioning of all existing and anticipated methods, making any required enhancements or adjustments.&lt;br /&gt;
* Establish loose coupling and tight cohesion for the model and controller to enhance code organization and maintainability.&lt;br /&gt;
* Refactor redundant code in the previous implementation's controller and model methods using DRY principle, eliminating functionality duplication already present in the Expertiza system.&lt;br /&gt;
* Confirm the continued effectiveness of existing test cases following the aforementioned modifications and generate additional test cases as per the need.&lt;br /&gt;
&lt;br /&gt;
== Class UML Diagram ==&lt;br /&gt;
[[File:OODD Proj4 E2403 - Entity Diagram 2.png ‎| 610px]]&lt;br /&gt;
&lt;br /&gt;
== Classes and Relationships ==&lt;br /&gt;
=== Existing Structure ===&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has a &amp;lt;b&amp;gt;Node&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;Team&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;MentorMeeting&amp;lt;/b&amp;gt;&lt;br /&gt;
=== Proposed Structure Structure ===&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; to be delegated from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; instead of inheriting from it&lt;br /&gt;
&lt;br /&gt;
== Implementation Plan ==&lt;br /&gt;
=== Modify newly created controller, model and view ===&lt;br /&gt;
==== mentor_meeting_controller.rb ====&lt;br /&gt;
* Edit function names to make them more descriptive&lt;br /&gt;
* Add more descriptive comments for the functions&lt;br /&gt;
==== mentor_meetings_helper.rb ====&lt;br /&gt;
* Move the &amp;quot;get_dates_for_team&amp;quot; function to the model&lt;br /&gt;
* Rename the function to make it more descriptive&lt;br /&gt;
==== _entry_assignments.html.erb ====&lt;br /&gt;
* Add more descriptive comments for the JavaScript functions&lt;br /&gt;
* Move the Ruby code from the template to a helper or the controller&lt;br /&gt;
==== mentored_team.rb ====&lt;br /&gt;
* This file needs to be modified to implement the functionality of delegation instead of inheritance&lt;br /&gt;
* The &amp;quot;add_member&amp;quot; method must function as previously intended during reimplementation&lt;br /&gt;
&lt;br /&gt;
=== Modify existing controller model and view ===&lt;br /&gt;
==== teams/_team.html.erb ====&lt;br /&gt;
* As the mentored team will now be delegated from the assignment team, we need to change the if condition on the top as we are changing MentoredTeam to be delegated from the AssignmentTeam&lt;br /&gt;
==== teams_controller.rb ====&lt;br /&gt;
* This file has to be modified to work with the delegated MentoredTeam&lt;br /&gt;
* These lines will not work as MentoredTeam will not be a model&lt;br /&gt;
[[File:Teams con1.png ‎| 600px]]&lt;br /&gt;
==== sign_up_sheet_controller.rb ====&lt;br /&gt;
* This controller has to be modified to automatically assign mentors or manually add mentors to the topics when they are created&lt;br /&gt;
* This will be followed by a change in schema&lt;br /&gt;
[[File:Signup con1.png | 600px]]&lt;br /&gt;
==== _topic.html.erb ====&lt;br /&gt;
* If we manually have to assign mentors to the topic, we have to include a input field to enter the mentor&lt;br /&gt;
[[File:Topic html.png | 600px]]&lt;br /&gt;
==== schema.rb ====&lt;br /&gt;
* As we are adding a new field to the table, we need to modify the schema&lt;br /&gt;
* We need to write 1 migration to add the field to the table to update the schema file&lt;br /&gt;
[[File:Schema E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== Mailer Changes ===&lt;br /&gt;
====team.rb====&lt;br /&gt;
* The team model must be altered to use delegation for cases where a team would previously be a mentored team. &lt;br /&gt;
====add_member====&lt;br /&gt;
* The add member function must be altered such that the call to mail a user is better named, and that it calls directly to the mailer rather than the mailer helper. &lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
====mailer_helper====&lt;br /&gt;
* The mailer_helper will be altered such that the send_team_confimration_to_user will be moved and renamed in the Mailer.rb class instead since using generic_message as such is leading to an unclear design. &lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
====mailer.rb====&lt;br /&gt;
* A new function to specifically handle messaging users when added to teams will be built in the mailer, rather than just overusing the generic_message function.&lt;br /&gt;
&lt;br /&gt;
== UI Changes ==&lt;br /&gt;
=== UI Changes before Phase 2 code changes ===&lt;br /&gt;
* The mentored assignment teams page has the modified UI from the Phase 1 as it is also a mentored assignemnt&lt;br /&gt;
* But the teams do not have a TA as the automated assignment of mentors has not been implmeneted.&lt;br /&gt;
[[File:UI1 E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== UI Changes after Phase 2 code changes ===&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
The mentored assignment teams with topic now has the new UI and the automated mentor assignemnt&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Files Modified/Added ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
When the project was pulled from the main repository, there are not enough tests to cover the additional functionalities that we added. We are planning on using the test skeletons by Mustafa Olmez, as a reference to how and what kind of tests should be written. Test cases for mentor management were already written and we wrote new test cases for the new functionalities we added. Here are the four test case scenarios we covered and the actual ruby code for the Rspec tests&lt;br /&gt;
&lt;br /&gt;
=== Automated Rspec Testing  Scenarios===&lt;br /&gt;
1. &amp;lt;b&amp;gt;Test scenario 1:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with different team counts for the assignment, Then it should return the mentor with the lowest team count&lt;br /&gt;
  it &amp;quot;returns the mentor with the lowest team count for the given assignment&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 2]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
2. &amp;lt;b&amp;gt;Test scenario 2:&amp;lt;/b&amp;gt; Given an assignment_id, When there is only one mentor available for the assignment, Then it should return that mentor&lt;br /&gt;
  it &amp;quot;should return that mentor if there's only one available&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 0]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
3. &amp;lt;b&amp;gt;Test scenario 3:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with the same lowest team count for the assignment, Then it should return the first mentor in the list&lt;br /&gt;
  it &amp;quot;returns the first mentor in the list if there's a tie for lowest team count&amp;quot; do&lt;br /&gt;
        # Arrange&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 1],])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor  # Can return either mentor in a tie&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
4. &amp;lt;b&amp;gt;Test scenario 4:&amp;lt;/b&amp;gt; Given an assignment_id, When there are no mentors available for the assignment, Then it should return nil&lt;br /&gt;
  it &amp;quot;returns nil&amp;quot; do&lt;br /&gt;
        # Create a new assignment&lt;br /&gt;
        a = FactoryBot.create(:assignment, id: 997, directory_path: 'OSS_project', auto_assign_mentor: true)&lt;br /&gt;
        # Since there are no mentors associated with this assignment, should return nil&lt;br /&gt;
        expect(MentorManagement.select_mentor(a.id)).to eq nil&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
=== Manual UI Testing ===&lt;br /&gt;
Apart from the automated Rspec tests, we are providing manual testing cases that can be used to verify the functioning of the website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
Link to the [https://www.youtube.com/ video] to find help on testing these cases&lt;br /&gt;
&lt;br /&gt;
==== Scenario 1 - Creating an mentored team ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Auto assign mentors when team hits &amp;gt; 50% capacity?&amp;quot; option is checked&lt;br /&gt;
[[File:MT 1-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
[[File:MT 1-2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
==== Scenario 2 - Adding, editing, deleting mentor meeting dates ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Assigments&lt;br /&gt;
# Assuming you have created a mentored assignment and added participants to it, proceed to the teams page&lt;br /&gt;
# Try entering dates into it teams row and the date should persist&lt;br /&gt;
# You can edit and delete the dates from the rows&lt;br /&gt;
# Team with less than 50% capacity will have the mentor meeting dates disabled&lt;br /&gt;
[[File:MT 2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Scenario 3 - Creating an mentored team with topic ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Has topics?&amp;quot; option is checked and a topic is created using the Topics tab&lt;br /&gt;
[[File:MT 3-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Coverage ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
We used SimpleCov to generate a coverage report for the Rspec test cases implemeted for the model and controllers. The test coverage indicated &amp;lt;b&amp;gt;x%&amp;lt;/b&amp;gt; percent of code was covered through the testcases. &lt;br /&gt;
&lt;br /&gt;
== Test Login Credentials ==&lt;br /&gt;
* UserId: instructor6&lt;br /&gt;
* Password: password&lt;br /&gt;
&lt;br /&gt;
== Demo Video ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
This is our [https://www.youtube.com/ demo video] which explain how to create courses, assignments, mentored teams and mentored teams with topics. This video also show how to run the tests of our code changes.&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO::&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/xxxx&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156063</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management (Phase 2)</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156063"/>
		<updated>2024-04-23T18:09:43Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Expertiza ==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This project is the continuation of [https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management/ E2304] for the implementation of the Mentor-meeting management in the Expertiza system for mentored teams. We are now required to add functionality to add mentors to the topics and then assign them to the teams when they pick up that topic.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The following tasks are required for the project:&lt;br /&gt;
#&amp;lt;b&amp;gt;Enhancing Code Clarity:&amp;lt;/b&amp;gt; This involves renaming methods from Project 3 with ambiguous names, optimizing loops and adding comments for unclear lines of code&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Mentored teams:&amp;lt;/b&amp;gt; Reimplement the Mentored team delegate to the Assignment team to reduce complexity and to follow best principles of Object Oriented Design&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Sign Up Sheet or Topics:&amp;lt;/b&amp;gt; Reimplement the SignUpSheet controller to automatically add the mentor to when a topic is created and automatically assign the same mentor to a team when they choose the topic&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for mentor meetings models:&amp;lt;/b&amp;gt; More tests have to be written for Mentor Meeting model&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the mentor meetings controller:&amp;lt;/b&amp;gt; More tests should be written for Mentor meeting controller&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the signup sheet controller:&amp;lt;/b&amp;gt; Additional tests should be written for signup sheet controller to test the new functionality&lt;br /&gt;
&lt;br /&gt;
== Objectives ==&lt;br /&gt;
We have 3 main objectives for this project.&lt;br /&gt;
* Refactoring of the Mentor-meeting model and controller created for the Project 3&lt;br /&gt;
* Reimplementation of Mentored Teams model and controller for the Project 4&lt;br /&gt;
* Reimplementation of SignUp Sheet controller for the Project 4 to automatically assign mentors to the topics&lt;br /&gt;
&lt;br /&gt;
== Design Goal ==&lt;br /&gt;
While fulfilling all the objectives, the following design rules have to be ensured:&lt;br /&gt;
* Validate proper functioning of all existing and anticipated methods, making any required enhancements or adjustments.&lt;br /&gt;
* Establish loose coupling and tight cohesion for the model and controller to enhance code organization and maintainability.&lt;br /&gt;
* Refactor redundant code in the previous implementation's controller and model methods using DRY principle, eliminating functionality duplication already present in the Expertiza system.&lt;br /&gt;
* Confirm the continued effectiveness of existing test cases following the aforementioned modifications and generate additional test cases as per the need.&lt;br /&gt;
&lt;br /&gt;
== Class UML Diagram ==&lt;br /&gt;
[[File:OODD Proj4 E2403 - Entity Diagram 2.png ‎| 610px]]&lt;br /&gt;
&lt;br /&gt;
== Classes and Relationships ==&lt;br /&gt;
=== Existing Structure ===&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has a &amp;lt;b&amp;gt;Node&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;Team&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;MentorMeeting&amp;lt;/b&amp;gt;&lt;br /&gt;
=== Proposed Structure Structure ===&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; to be delegated from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; instead of inheriting from it&lt;br /&gt;
&lt;br /&gt;
== Implementation Plan ==&lt;br /&gt;
=== Modify newly created controller, model and view ===&lt;br /&gt;
==== mentor_meeting_controller.rb ====&lt;br /&gt;
* Edit function names to make them more descriptive&lt;br /&gt;
* Add more descriptive comments for the functions&lt;br /&gt;
==== mentor_meetings_helper.rb ====&lt;br /&gt;
* Move the &amp;quot;get_dates_for_team&amp;quot; function to the model&lt;br /&gt;
* Rename the function to make it more descriptive&lt;br /&gt;
==== _entry_assignments.html.erb ====&lt;br /&gt;
* Add more descriptive comments for the JavaScript functions&lt;br /&gt;
* Move the Ruby code from the template to a helper or the controller&lt;br /&gt;
==== mentored_team.rb ====&lt;br /&gt;
* This file needs to be modified to implement the functionality of delegation instead of inheritance&lt;br /&gt;
* The &amp;quot;add_member&amp;quot; method must function as previously intended during reimplementation&lt;br /&gt;
&lt;br /&gt;
=== Modify existing controller model and view ===&lt;br /&gt;
==== teams/_team.html.erb ====&lt;br /&gt;
* As the mentored team will now be delegated from the assignment team, we need to change the if condition on the top as we are changing MentoredTeam to be delegated from the AssignmentTeam&lt;br /&gt;
==== teams_controller.rb ====&lt;br /&gt;
* This file has to be modified to work with the delegated MentoredTeam&lt;br /&gt;
* These lines will not work as MentoredTeam will not be a model&lt;br /&gt;
[[File:Teams con1.png ‎| 600px]]&lt;br /&gt;
==== sign_up_sheet_controller.rb ====&lt;br /&gt;
* This controller has to be modified to automatically assign mentors or manually add mentors to the topics when they are created&lt;br /&gt;
* This will be followed by a change in schema&lt;br /&gt;
[[File:Signup con1.png | 600px]]&lt;br /&gt;
==== _topic.html.erb ====&lt;br /&gt;
* If we manually have to assign mentors to the topic, we have to include a input field to enter the mentor&lt;br /&gt;
[[File:Topic html.png | 600px]]&lt;br /&gt;
==== schema.rb ====&lt;br /&gt;
* As we are adding a new field to the table, we need to modify the schema&lt;br /&gt;
* We need to write 1 migration to add the field to the table to update the schema file&lt;br /&gt;
[[File:Schema E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== Mailer Changes ===&lt;br /&gt;
====team.rb====&lt;br /&gt;
* The team model must be altered to use delegation for cases where a team would previously be a mentored team. &lt;br /&gt;
====add_member====&lt;br /&gt;
* The add member function must be altered such that the call to mail a user is better named, and that it calls directly to the mailer rather than the mailer helper. &lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
====mailer_helper====&lt;br /&gt;
* The mailer_helper will be altered such that the send_team_confimration_to_user will be moved and renamed in the Mailer.rb class instead since using generic_message as such is leading to an unclear design. &lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
====mailer.rb====&lt;br /&gt;
* A new function to specifically handle messaging users when added to teams will be built in the mailer, rather than just overusing the generic_message function.&lt;br /&gt;
&lt;br /&gt;
== UI Changes ==&lt;br /&gt;
=== UI Changes before Phase 2 code changes ===&lt;br /&gt;
* The mentored assignment teams page has the modified UI from the Phase 1 as it is also a mentored assignemnt&lt;br /&gt;
* But the teams do not have a TA as the automated assignment of mentors has not been implmeneted.&lt;br /&gt;
[[File:UI1 E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== UI Changes after Phase 2 code changes ===&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
The mentored assignment teams with topic now has the new UI and the automated mentor assignemnt&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Files Modified/Added ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
When the project was pulled from the main repository, there are not enough tests to cover the additional functionalities that we added. We are planning on using the test skeletons by Mustafa Olmez, as a reference to how and what kind of tests should be written. Test cases for mentor management were already written and we wrote new test cases for the new functionalities we added. Here are the four test case scenarios we covered and the actual ruby code for the Rspec tests&lt;br /&gt;
&lt;br /&gt;
=== Automated Rspec Testing  Scenarios===&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 1:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with different team counts for the assignment, Then it should return the mentor with the lowest team count&lt;br /&gt;
  it &amp;quot;returns the mentor with the lowest team count for the given assignment&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 2]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 2:&amp;lt;/b&amp;gt; Given an assignment_id, When there is only one mentor available for the assignment, Then it should return that mentor&lt;br /&gt;
  it &amp;quot;should return that mentor if there's only one available&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 0]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 3:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with the same lowest team count for the assignment, Then it should return the first mentor in the list&lt;br /&gt;
  it &amp;quot;returns the first mentor in the list if there's a tie for lowest team count&amp;quot; do&lt;br /&gt;
        # Arrange&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 1],])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor  # Can return either mentor in a tie&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 4:&amp;lt;/b&amp;gt; Given an assignment_id, When there are no mentors available for the assignment, Then it should return nil&lt;br /&gt;
  it &amp;quot;returns nil&amp;quot; do&lt;br /&gt;
        # Create a new assignment&lt;br /&gt;
        a = FactoryBot.create(:assignment, id: 997, directory_path: 'OSS_project', auto_assign_mentor: true)&lt;br /&gt;
        # Since there are no mentors associated with this assignment, should return nil&lt;br /&gt;
        expect(MentorManagement.select_mentor(a.id)).to eq nil&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
=== Manual UI Testing ===&lt;br /&gt;
Apart from the automated Rspec tests, we are providing manual testing cases that can be used to verify the functioning of the website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
Link to the [https://www.youtube.com/ video] to find help on testing these cases&lt;br /&gt;
&lt;br /&gt;
==== Scenario 1 - Creating an mentored team ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Auto assign mentors when team hits &amp;gt; 50% capacity?&amp;quot; option is checked&lt;br /&gt;
[[File:MT 1-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
[[File:MT 1-2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
==== Scenario 2 - Adding, editing, deleting mentor meeting dates ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Assigments&lt;br /&gt;
# Assuming you have created a mentored assignment and added participants to it, proceed to the teams page&lt;br /&gt;
# Try entering dates into it teams row and the date should persist&lt;br /&gt;
# You can edit and delete the dates from the rows&lt;br /&gt;
# Team with less than 50% capacity will have the mentor meeting dates disabled&lt;br /&gt;
[[File:MT 2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Scenario 3 - Creating an mentored team with topic ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Has topics?&amp;quot; option is checked and a topic is created using the Topics tab&lt;br /&gt;
[[File:MT 3-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Coverage ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
We used SimpleCov to generate a coverage report for the Rspec test cases implemeted for the model and controllers. The test coverage indicated &amp;lt;b&amp;gt;x%&amp;lt;/b&amp;gt; percent of code was covered through the testcases. &lt;br /&gt;
&lt;br /&gt;
== Test Login Credentials ==&lt;br /&gt;
* UserId: instructor6&lt;br /&gt;
* Password: password&lt;br /&gt;
&lt;br /&gt;
== Demo Video ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
This is our [https://www.youtube.com/ demo video] which explain how to create courses, assignments, mentored teams and mentored teams with topics. This video also show how to run the tests of our code changes.&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO::&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/xxxx&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156061</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management (Phase 2)</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156061"/>
		<updated>2024-04-23T18:08:09Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Expertiza ==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This project is the continuation of [https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management/ E2304] for the implementation of the Mentor-meeting management in the Expertiza system for mentored teams. We are now required to add functionality to add mentors to the topics and then assign them to the teams when they pick up that topic.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The following tasks are required for the project:&lt;br /&gt;
#&amp;lt;b&amp;gt;Enhancing Code Clarity:&amp;lt;/b&amp;gt; This involves renaming methods from Project 3 with ambiguous names, optimizing loops and adding comments for unclear lines of code&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Mentored teams:&amp;lt;/b&amp;gt; Reimplement the Mentored team delegate to the Assignment team to reduce complexity and to follow best principles of Object Oriented Design&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Sign Up Sheet or Topics:&amp;lt;/b&amp;gt; Reimplement the SignUpSheet controller to automatically add the mentor to when a topic is created and automatically assign the same mentor to a team when they choose the topic&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for mentor meetings models:&amp;lt;/b&amp;gt; More tests have to be written for Mentor Meeting model&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the mentor meetings controller:&amp;lt;/b&amp;gt; More tests should be written for Mentor meeting controller&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the signup sheet controller:&amp;lt;/b&amp;gt; Additional tests should be written for signup sheet controller to test the new functionality&lt;br /&gt;
&lt;br /&gt;
== Objectives ==&lt;br /&gt;
We have 3 main objectives for this project.&lt;br /&gt;
* Refactoring of the Mentor-meeting model and controller created for the Project 3&lt;br /&gt;
* Reimplementation of Mentored Teams model and controller for the Project 4&lt;br /&gt;
* Reimplementation of SignUp Sheet controller for the Project 4 to automatically assign mentors to the topics&lt;br /&gt;
&lt;br /&gt;
== Design Goal ==&lt;br /&gt;
While fulfilling all the objectives, the following design rules have to be ensured:&lt;br /&gt;
* Validate proper functioning of all existing and anticipated methods, making any required enhancements or adjustments.&lt;br /&gt;
* Establish loose coupling and tight cohesion for the model and controller to enhance code organization and maintainability.&lt;br /&gt;
* Refactor redundant code in the previous implementation's controller and model methods using DRY principle, eliminating functionality duplication already present in the Expertiza system.&lt;br /&gt;
* Confirm the continued effectiveness of existing test cases following the aforementioned modifications and generate additional test cases as per the need.&lt;br /&gt;
&lt;br /&gt;
== Class UML Diagram ==&lt;br /&gt;
[[File:OODD Proj4 E2403 - Entity Diagram 2.png ‎| 610px]]&lt;br /&gt;
&lt;br /&gt;
== Classes and Relationships ==&lt;br /&gt;
=== Existing Structure ===&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has a &amp;lt;b&amp;gt;Node&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;Team&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;MentorMeeting&amp;lt;/b&amp;gt;&lt;br /&gt;
=== Proposed Structure Structure ===&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; to be delegated from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; instead of inheriting from it&lt;br /&gt;
&lt;br /&gt;
== Implementation Plan ==&lt;br /&gt;
=== Modify newly created controller, model and view ===&lt;br /&gt;
==== mentor_meeting_controller.rb ====&lt;br /&gt;
* Edit function names to make them more descriptive&lt;br /&gt;
* Add more descriptive comments for the functions&lt;br /&gt;
==== mentor_meetings_helper.rb ====&lt;br /&gt;
* Move the &amp;quot;get_dates_for_team&amp;quot; function to the model&lt;br /&gt;
* Rename the function to make it more descriptive&lt;br /&gt;
==== _entry_assignments.html.erb ====&lt;br /&gt;
* Add more descriptive comments for the JavaScript functions&lt;br /&gt;
* Move the Ruby code from the template to a helper or the controller&lt;br /&gt;
==== mentored_team.rb ====&lt;br /&gt;
* This file needs to be modified to implement the functionality of delegation instead of inheritance&lt;br /&gt;
* The &amp;quot;add_member&amp;quot; method must function as previously intended during reimplementation&lt;br /&gt;
&lt;br /&gt;
=== Modify existing controller model and view ===&lt;br /&gt;
==== teams/_team.html.erb ====&lt;br /&gt;
* As the mentored team will now be delegated from the assignment team, we need to change the if condition on the top as we are changing MentoredTeam to be delegated from the AssignmentTeam&lt;br /&gt;
==== teams_controller.rb ====&lt;br /&gt;
* This file has to be modified to work with the delegated MentoredTeam&lt;br /&gt;
* These lines will not work as MentoredTeam will not be a model&lt;br /&gt;
[[File:Teams con1.png ‎| 600px]]&lt;br /&gt;
==== sign_up_sheet_controller.rb ====&lt;br /&gt;
* This controller has to be modified to automatically assign mentors or manually add mentors to the topics when they are created&lt;br /&gt;
* This will be followed by a change in schema&lt;br /&gt;
[[File:Signup con1.png | 600px]]&lt;br /&gt;
==== _topic.html.erb ====&lt;br /&gt;
* If we manually have to assign mentors to the topic, we have to include a input field to enter the mentor&lt;br /&gt;
[[File:Topic html.png | 600px]]&lt;br /&gt;
==== schema.rb ====&lt;br /&gt;
* As we are adding a new field to the table, we need to modify the schema&lt;br /&gt;
* We need to write 1 migration to add the field to the table to update the schema file&lt;br /&gt;
[[File:Schema E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== Mailer Changes ===&lt;br /&gt;
====team.rb====&lt;br /&gt;
* The team model must be altered to use delegation for cases where a team would previously be a mentored team. &lt;br /&gt;
====add_member====&lt;br /&gt;
* The add member function must be altered such that the call to mail a user is better named, and that it calls directly to the mailer rather than the mailer helper. &lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
====mailer_helper====&lt;br /&gt;
* The mailer_helper will be altered such that the send_team_confimration_to_user will be moved and renamed in the Mailer.rb class instead since using generic_message as such is leading to an unclear design. &lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
====mailer.rb====&lt;br /&gt;
* A new function to specifically handle messaging users when added to teams will be built in the mailer, rather than just overusing the generic_message function.&lt;br /&gt;
&lt;br /&gt;
== UI Changes ==&lt;br /&gt;
=== UI Changes before Phase 2 code changes ===&lt;br /&gt;
* The mentored assignment teams page has the modified UI from the Phase 1 as it is also a mentored assignemnt&lt;br /&gt;
* But the teams do not have a TA as the automated assignment of mentors has not been implmeneted.&lt;br /&gt;
[[File:UI1 E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== UI Changes after Phase 2 code changes ===&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
The mentored assignment teams with topic now has the new UI and the automated mentor assignemnt&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Files Modified/Added ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
When the project was pulled from the main repository, there are not enough tests to cover the additional functionalities that we added. We are planning on using the test skeletons by Mustafa Olmez, as a reference to how and what kind of tests should be written. &lt;br /&gt;
&lt;br /&gt;
=== Automated Rspec Testing  Scenarios===&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 1:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with different team counts for the assignment, Then it should return the mentor with the lowest team count&lt;br /&gt;
  it &amp;quot;returns the mentor with the lowest team count for the given assignment&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 2]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 2:&amp;lt;/b&amp;gt; Given an assignment_id, When there is only one mentor available for the assignment, Then it should return that mentor&lt;br /&gt;
  it &amp;quot;should return that mentor if there's only one available&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 0]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 3:&amp;lt;/b&amp;gt; Given an assignment_id, When there are multiple mentors with the same lowest team count for the assignment, Then it should return the first mentor in the list&lt;br /&gt;
  it &amp;quot;returns the first mentor in the list if there's a tie for lowest team count&amp;quot; do&lt;br /&gt;
        # Arrange&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 1],])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor  # Can return either mentor in a tie&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;b&amp;gt;Test scenario 4:&amp;lt;/b&amp;gt; Given an assignment_id, When there are no mentors available for the assignment, Then it should return nil&lt;br /&gt;
  it &amp;quot;returns nil&amp;quot; do&lt;br /&gt;
        # Create a new assignment&lt;br /&gt;
        a = FactoryBot.create(:assignment, id: 997, directory_path: 'OSS_project', auto_assign_mentor: true)&lt;br /&gt;
        # Since there are no mentors associated with this assignment, should return nil&lt;br /&gt;
        expect(MentorManagement.select_mentor(a.id)).to eq nil&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
=== Manual UI Testing ===&lt;br /&gt;
Apart from the automated Rspec tests, we are providing manual testing cases that can be used to verify the functioning of the website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
Link to the [https://www.youtube.com/ video] to find help on testing these cases&lt;br /&gt;
&lt;br /&gt;
==== Scenario 1 - Creating an mentored team ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Auto assign mentors when team hits &amp;gt; 50% capacity?&amp;quot; option is checked&lt;br /&gt;
[[File:MT 1-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
[[File:MT 1-2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
==== Scenario 2 - Adding, editing, deleting mentor meeting dates ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Assigments&lt;br /&gt;
# Assuming you have created a mentored assignment and added participants to it, proceed to the teams page&lt;br /&gt;
# Try entering dates into it teams row and the date should persist&lt;br /&gt;
# You can edit and delete the dates from the rows&lt;br /&gt;
# Team with less than 50% capacity will have the mentor meeting dates disabled&lt;br /&gt;
[[File:MT 2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Scenario 3 - Creating an mentored team with topic ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Has topics?&amp;quot; option is checked and a topic is created using the Topics tab&lt;br /&gt;
[[File:MT 3-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Coverage ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
We used SimpleCov to generate a coverage report for the Rspec test cases implemeted for the model and controllers. The test coverage indicated &amp;lt;b&amp;gt;x%&amp;lt;/b&amp;gt; percent of code was covered through the testcases. &lt;br /&gt;
&lt;br /&gt;
== Test Login Credentials ==&lt;br /&gt;
* UserId: instructor6&lt;br /&gt;
* Password: password&lt;br /&gt;
&lt;br /&gt;
== Demo Video ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
This is our [https://www.youtube.com/ demo video] which explain how to create courses, assignments, mentored teams and mentored teams with topics. This video also show how to run the tests of our code changes.&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO::&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/xxxx&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156059</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management (Phase 2)</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management_(Phase_2)&amp;diff=156059"/>
		<updated>2024-04-23T18:04:24Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Expertiza ==&lt;br /&gt;
&lt;br /&gt;
[http://expertiza.ncsu.edu/ Expertiza] is a [http://rubyonrails.org/ Ruby on Rails] based open source project. Instructors have the ability to add new projects, assignments, etc., as well as edit existing ones. Later on, they can view student submissions and grade them. Students can also use Expertiza to organize into teams to work on different projects and assignments and submit their work. They can also review other students' submissions.&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
This project is the continuation of [https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management/ E2304] for the implementation of the Mentor-meeting management in the Expertiza system for mentored teams. We are now required to add functionality to add mentors to the topics and then assign them to the teams when they pick up that topic.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The following tasks are required for the project:&lt;br /&gt;
#&amp;lt;b&amp;gt;Enhancing Code Clarity:&amp;lt;/b&amp;gt; This involves renaming methods from Project 3 with ambiguous names, optimizing loops and adding comments for unclear lines of code&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Mentored teams:&amp;lt;/b&amp;gt; Reimplement the Mentored team delegate to the Assignment team to reduce complexity and to follow best principles of Object Oriented Design&lt;br /&gt;
#&amp;lt;b&amp;gt;Reimplement Sign Up Sheet or Topics:&amp;lt;/b&amp;gt; Reimplement the SignUpSheet controller to automatically add the mentor to when a topic is created and automatically assign the same mentor to a team when they choose the topic&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for mentor meetings models:&amp;lt;/b&amp;gt; More tests have to be written for Mentor Meeting model&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the mentor meetings controller:&amp;lt;/b&amp;gt; More tests should be written for Mentor meeting controller&lt;br /&gt;
#&amp;lt;b&amp;gt;Writing tests for the signup sheet controller:&amp;lt;/b&amp;gt; Additional tests should be written for signup sheet controller to test the new functionality&lt;br /&gt;
&lt;br /&gt;
== Objectives ==&lt;br /&gt;
We have 3 main objectives for this project.&lt;br /&gt;
* Refactoring of the Mentor-meeting model and controller created for the Project 3&lt;br /&gt;
* Reimplementation of Mentored Teams model and controller for the Project 4&lt;br /&gt;
* Reimplementation of SignUp Sheet controller for the Project 4 to automatically assign mentors to the topics&lt;br /&gt;
&lt;br /&gt;
== Design Goal ==&lt;br /&gt;
While fulfilling all the objectives, the following design rules have to be ensured:&lt;br /&gt;
* Validate proper functioning of all existing and anticipated methods, making any required enhancements or adjustments.&lt;br /&gt;
* Establish loose coupling and tight cohesion for the model and controller to enhance code organization and maintainability.&lt;br /&gt;
* Refactor redundant code in the previous implementation's controller and model methods using DRY principle, eliminating functionality duplication already present in the Expertiza system.&lt;br /&gt;
* Confirm the continued effectiveness of existing test cases following the aforementioned modifications and generate additional test cases as per the need.&lt;br /&gt;
&lt;br /&gt;
== Class UML Diagram ==&lt;br /&gt;
[[File:OODD Proj4 E2403 - Entity Diagram 2.png ‎| 610px]]&lt;br /&gt;
&lt;br /&gt;
== Classes and Relationships ==&lt;br /&gt;
=== Existing Structure ===&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has a &amp;lt;b&amp;gt;Node&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;Assignment&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;Team&amp;lt;/b&amp;gt;&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; is inherited from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt;&lt;br /&gt;
* Every &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; has many &amp;lt;b&amp;gt;MentorMeeting&amp;lt;/b&amp;gt;&lt;br /&gt;
=== Proposed Structure Structure ===&lt;br /&gt;
* &amp;lt;b&amp;gt;MentoredTeam&amp;lt;/b&amp;gt; to be delegated from &amp;lt;b&amp;gt;AssignmentTeam&amp;lt;/b&amp;gt; instead of inheriting from it&lt;br /&gt;
&lt;br /&gt;
== Implementation Plan ==&lt;br /&gt;
=== Modify newly created controller, model and view ===&lt;br /&gt;
==== mentor_meeting_controller.rb ====&lt;br /&gt;
* Edit function names to make them more descriptive&lt;br /&gt;
* Add more descriptive comments for the functions&lt;br /&gt;
==== mentor_meetings_helper.rb ====&lt;br /&gt;
* Move the &amp;quot;get_dates_for_team&amp;quot; function to the model&lt;br /&gt;
* Rename the function to make it more descriptive&lt;br /&gt;
==== _entry_assignments.html.erb ====&lt;br /&gt;
* Add more descriptive comments for the JavaScript functions&lt;br /&gt;
* Move the Ruby code from the template to a helper or the controller&lt;br /&gt;
==== mentored_team.rb ====&lt;br /&gt;
* This file needs to be modified to implement the functionality of delegation instead of inheritance&lt;br /&gt;
* The &amp;quot;add_member&amp;quot; method must function as previously intended during reimplementation&lt;br /&gt;
&lt;br /&gt;
=== Modify existing controller model and view ===&lt;br /&gt;
==== teams/_team.html.erb ====&lt;br /&gt;
* As the mentored team will now be delegated from the assignment team, we need to change the if condition on the top as we are changing MentoredTeam to be delegated from the AssignmentTeam&lt;br /&gt;
==== teams_controller.rb ====&lt;br /&gt;
* This file has to be modified to work with the delegated MentoredTeam&lt;br /&gt;
* These lines will not work as MentoredTeam will not be a model&lt;br /&gt;
[[File:Teams con1.png ‎| 600px]]&lt;br /&gt;
==== sign_up_sheet_controller.rb ====&lt;br /&gt;
* This controller has to be modified to automatically assign mentors or manually add mentors to the topics when they are created&lt;br /&gt;
* This will be followed by a change in schema&lt;br /&gt;
[[File:Signup con1.png | 600px]]&lt;br /&gt;
==== _topic.html.erb ====&lt;br /&gt;
* If we manually have to assign mentors to the topic, we have to include a input field to enter the mentor&lt;br /&gt;
[[File:Topic html.png | 600px]]&lt;br /&gt;
==== schema.rb ====&lt;br /&gt;
* As we are adding a new field to the table, we need to modify the schema&lt;br /&gt;
* We need to write 1 migration to add the field to the table to update the schema file&lt;br /&gt;
[[File:Schema E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== Mailer Changes ===&lt;br /&gt;
====team.rb====&lt;br /&gt;
* The team model must be altered to use delegation for cases where a team would previously be a mentored team. &lt;br /&gt;
====add_member====&lt;br /&gt;
* The add member function must be altered such that the call to mail a user is better named, and that it calls directly to the mailer rather than the mailer helper. &lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
====mailer_helper====&lt;br /&gt;
* The mailer_helper will be altered such that the send_team_confimration_to_user will be moved and renamed in the Mailer.rb class instead since using generic_message as such is leading to an unclear design. &lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
====mailer.rb====&lt;br /&gt;
* A new function to specifically handle messaging users when added to teams will be built in the mailer, rather than just overusing the generic_message function.&lt;br /&gt;
&lt;br /&gt;
== UI Changes ==&lt;br /&gt;
=== UI Changes before Phase 2 code changes ===&lt;br /&gt;
* The mentored assignment teams page has the modified UI from the Phase 1 as it is also a mentored assignemnt&lt;br /&gt;
* But the teams do not have a TA as the automated assignment of mentors has not been implmeneted.&lt;br /&gt;
[[File:UI1 E2403.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
=== UI Changes after Phase 2 code changes ===&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
The mentored assignment teams with topic now has the new UI and the automated mentor assignemnt&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Files Modified/Added ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Plan ==&lt;br /&gt;
When the project was pulled from the main repository, there are not enough tests to cover the additional functionalities that we added. We are planning on using the test skeletons by Mustafa Olmez, as a reference to how and what kind of tests should be written. &lt;br /&gt;
&lt;br /&gt;
=== Automated Rspec Testing  Scenarios===&lt;br /&gt;
# Test scenario 1 : Given an assignment_id, When there are multiple mentors with different team counts for the assignment, Then it should return the mentor with the lowest team count&lt;br /&gt;
  it &amp;quot;returns the mentor with the lowest team count for the given assignment&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 2]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# Test scenario 2: Given an assignment_id, When there is only one mentor available for the assignment, Then it should return that mentor&lt;br /&gt;
  it &amp;quot;should return that mentor if there's only one available&amp;quot; do&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 0]])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# Test scenario 3: Given an assignment_id, When there are multiple mentors with the same lowest team count for the assignment, Then it should return the first mentor in the list&lt;br /&gt;
  it &amp;quot;returns the first mentor in the list if there's a tie for lowest team count&amp;quot; do&lt;br /&gt;
        # Arrange&lt;br /&gt;
        allow(MentorManagement).to receive(:zip_mentors_with_team_count)&lt;br /&gt;
                                     .with(assignment.id)&lt;br /&gt;
                                     .and_return([[mentor.id, 1], [998, 1],])&lt;br /&gt;
        allow(User).to receive(:where).with(id: mentor.id).and_return([mentor])&lt;br /&gt;
        selected_mentor = MentorManagement.select_mentor(assignment.id)&lt;br /&gt;
        expect(selected_mentor).to eq mentor  # Can return either mentor in a tie&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
# Test scenario 4: Given an assignment_id, When there are no mentors available for the assignment, Then it should return nil&lt;br /&gt;
  it &amp;quot;returns nil&amp;quot; do&lt;br /&gt;
        # Create a new assignment&lt;br /&gt;
        a = FactoryBot.create(:assignment, id: 997, directory_path: 'OSS_project', auto_assign_mentor: true)&lt;br /&gt;
        # Since there are no mentors associated with this assignment, should return nil&lt;br /&gt;
        expect(MentorManagement.select_mentor(a.id)).to eq nil&lt;br /&gt;
   end&lt;br /&gt;
&lt;br /&gt;
=== Manual UI Testing ===&lt;br /&gt;
Apart from the automated Rspec tests, we are providing manual testing cases that can be used to verify the functioning of the website.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
Link to the [https://www.youtube.com/ video] to find help on testing these cases&lt;br /&gt;
&lt;br /&gt;
==== Scenario 1 - Creating an mentored team ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Auto assign mentors when team hits &amp;gt; 50% capacity?&amp;quot; option is checked&lt;br /&gt;
[[File:MT 1-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
[[File:MT 1-2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
==== Scenario 2 - Adding, editing, deleting mentor meeting dates ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Assigments&lt;br /&gt;
# Assuming you have created a mentored assignment and added participants to it, proceed to the teams page&lt;br /&gt;
# Try entering dates into it teams row and the date should persist&lt;br /&gt;
# You can edit and delete the dates from the rows&lt;br /&gt;
# Team with less than 50% capacity will have the mentor meeting dates disabled&lt;br /&gt;
[[File:MT 2.png | 600px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Scenario 3 - Creating an mentored team with topic ====&lt;br /&gt;
# Log into Expertiza using the test credential and navigate to the home page&lt;br /&gt;
# Go to Manage &amp;gt; Courses&lt;br /&gt;
# Assuming you have created a course and added participants to it, proceed to create a team&lt;br /&gt;
# Make sure &amp;quot;Has topics?&amp;quot; option is checked and a topic is created using the Topics tab&lt;br /&gt;
[[File:MT 3-1.png | 600px]]&lt;br /&gt;
* Create team for the assignment and you can see that the team with more than 50% capacity gets a mentor assigned automatically&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Test Coverage ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt; &lt;br /&gt;
We used SimpleCov to generate a coverage report for the Rspec test cases implemeted for the model and controllers. The test coverage indicated &amp;lt;b&amp;gt;x%&amp;lt;/b&amp;gt; percent of code was covered through the testcases. &lt;br /&gt;
&lt;br /&gt;
== Test Login Credentials ==&lt;br /&gt;
* UserId: instructor6&lt;br /&gt;
* Password: password&lt;br /&gt;
&lt;br /&gt;
== Demo Video ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO:: &amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
This is our [https://www.youtube.com/ demo video] which explain how to create courses, assignments, mentored teams and mentored teams with topics. This video also show how to run the tests of our code changes.&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
&amp;lt;i&amp;gt;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;TODO::&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&amp;lt;/i&amp;gt;&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/xxxx&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154132</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154132"/>
		<updated>2024-03-25T00:29:23Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Create a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates should not be editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Show user information in the view.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent.&lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== Modified generic_message ====&lt;br /&gt;
[[File:mod_generic_message.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We modified the generic_message function to include the team name as that's something that would be included in most messages. This function then uses the partials seen below to build the exact message our students/mentors will receive in their inbox. (note: generic_message is in mailer.rb under the mailer folder)&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
==== New Mentor Meeting Management View ====&lt;br /&gt;
&lt;br /&gt;
As you can see in the Problem Statement section that the team listing view is not very intuitive. We have built a new view as shown in the screenshot below which has more functionality and is more easy to understand. This view also has input fields for the teams where the instructors or mentors can add the dates when the mentor meeting was conducted. &lt;br /&gt;
&lt;br /&gt;
This view also has a lot of the user and team information present in the same table such as team name, member names, member IDs, mentor names and member email IDs.&lt;br /&gt;
&lt;br /&gt;
You can also see that some dates are already present in the input fields. If meetings have already been conducted and fed to the system, they will show up in the appropriate rows as you can see in the screenshot. Only the instructors have the ability to edit any of these dates and the mentors can only edit the dates for their teams only. Apart from this, you can also see that the last row with team member capacity less than 50% is disabled for any kind of entry in the meeting date input fields. This is because only teams having capacity more than 50% can have mentor meetings. &lt;br /&gt;
&lt;br /&gt;
[[File:New Mentor Meeting Mangement View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
==== Code changes in the views ====&lt;br /&gt;
&lt;br /&gt;
We added a small code change the teams view where we have written code to render the new view. &lt;br /&gt;
&lt;br /&gt;
[[File:Team View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
The actual code for the new view is written in the tree_display view where we have modified the table and also added JavaScript code for validations and calling controllers asynchronously. &lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
==== Code changes in the controller ====&lt;br /&gt;
&lt;br /&gt;
We added a new controller(mentor_meeting.rb) to perform the CRUD operations on the mentor meeting table.&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor Meeting Controller.png|900px]]&lt;br /&gt;
&lt;br /&gt;
==== Helper code ====&lt;br /&gt;
&lt;br /&gt;
We also wrote a helper code to map all the team IDs in the mentor meeting table to the appropriate meeting dates.&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor Meeting Helper.png|900px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2772&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Mentor_Meeting_Helper.png&amp;diff=154127</id>
		<title>File:Mentor Meeting Helper.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Mentor_Meeting_Helper.png&amp;diff=154127"/>
		<updated>2024-03-25T00:28:42Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Mentor_Meeting_Controller.png&amp;diff=154124</id>
		<title>File:Mentor Meeting Controller.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Mentor_Meeting_Controller.png&amp;diff=154124"/>
		<updated>2024-03-25T00:28:00Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:New_Mentor_Meeting_View.png&amp;diff=154122</id>
		<title>File:New Mentor Meeting View.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:New_Mentor_Meeting_View.png&amp;diff=154122"/>
		<updated>2024-03-25T00:27:48Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_View.png&amp;diff=154103</id>
		<title>File:Team View.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Team_View.png&amp;diff=154103"/>
		<updated>2024-03-25T00:24:28Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154095</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154095"/>
		<updated>2024-03-25T00:21:42Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Create a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates should not be editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Show user information in the view.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent.&lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== Modified generic_message ====&lt;br /&gt;
[[File:mod_generic_message.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We modified the generic_message function to include the team name as that's something that would be included in most messages. This function then uses the partials seen below to build the exact message our students/mentors will receive in their inbox. (note: generic_message is in mailer.rb under the mailer folder)&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
==== New Mentor Meeting Mangement View ====&lt;br /&gt;
&lt;br /&gt;
As you can see in the Problem Statement section that the team listing view is not very intuitive. We have built a new view as shown in the screenshot below which has more functionality and is more easy to understand. This view also has input fields for the teams where the instructors or mentors can add the dates when the mentor meeting was conducted. &lt;br /&gt;
&lt;br /&gt;
This view also has a lot of the user and team information present in the same table such as team name, member names, member IDs, mentor names and member email IDs.&lt;br /&gt;
&lt;br /&gt;
You can also see that some dates are already present in the input fields. If meetings have already been conducted and fed to the system, they will show up in the appropriate rows as you can see in the screenshot. Only the instructors have the ability to edit any of these dates and the mentors can only edit the dates for their teams only. Apart from this, you can also see that the last row with team member capacity less than 50% is disabled for any kind of entry in the meeting date input fields. This is because only teams having capacity more than 50% can have mentor meetings. &lt;br /&gt;
&lt;br /&gt;
[[File:New Mentor Meeting Mangement View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2772&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154081</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154081"/>
		<updated>2024-03-25T00:17:49Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* New Mentor Meeting Mangement View */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Create a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates should not be editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Show user information in the view.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent.&lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== Modified generic_message ====&lt;br /&gt;
[[File:mod_generic_message.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We modified the generic_message function to include the team name as that's something that would be included in most messages. This function then uses the partials seen below to build the exact message our students/mentors will receive in their inbox. (note: generic_message is in mailer.rb under the mailer folder)&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
==== New Mentor Meeting Mangement View ====&lt;br /&gt;
&lt;br /&gt;
As you can see in the [[Problem Statement]] section that the team listing view is not very intuitive. We have built a new view as shown in the screenshot below which has more functionality and is more easy to understand. This view also has input fields for the teams where the instructors or mentors can add the dates when the mentor meeting was conducted. &lt;br /&gt;
&lt;br /&gt;
You can also see that some dates are already present in the input fields. If meetings have already been conducted and fed to the system, they will show up in the appropriate rows as you can see in the screenshot. Only the instructors have the ability to edit any of these dates and the mentors can only edit the dates for their teams only. Apart from this, you can also see that the last row with team member capacity less than 50% is disabled for any kind of entry in the meeting date input fields. This is because only teams having capacity more than 50% can have mentor meetings. &lt;br /&gt;
&lt;br /&gt;
[[File:New Mentor Meeting Mangement View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2772&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154078</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154078"/>
		<updated>2024-03-25T00:17:35Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* New Mentor Meeting Mangement View */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Create a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates should not be editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Show user information in the view.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent.&lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== Modified generic_message ====&lt;br /&gt;
[[File:mod_generic_message.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We modified the generic_message function to include the team name as that's something that would be included in most messages. This function then uses the partials seen below to build the exact message our students/mentors will receive in their inbox. (note: generic_message is in mailer.rb under the mailer folder)&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
=== New Mentor Meeting Mangement View ===&lt;br /&gt;
&lt;br /&gt;
As you can see in the Problem Statement section that the team listing view is not very intuitive. We have built a new view as shown in the screenshot below which has more functionality and is more easy to understand. This view also has input fields for the teams where the instructors or mentors can add the dates when the mentor meeting was conducted. &lt;br /&gt;
&lt;br /&gt;
You can also see that some dates are already present in the input fields. If meetings have already been conducted and fed to the system, they will show up in the appropriate rows as you can see in the screenshot. Only the instructors have the ability to edit any of these dates and the mentors can only edit the dates for their teams only. Apart from this, you can also see that the last row with team member capacity less than 50% is disabled for any kind of entry in the meeting date input fields. This is because only teams having capacity more than 50% can have mentor meetings. &lt;br /&gt;
&lt;br /&gt;
[[File:New Mentor Meeting Mangement View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2772&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154076</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=154076"/>
		<updated>2024-03-25T00:16:51Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Create a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates should not be editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Show user information in the view.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent.&lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== Modified generic_message ====&lt;br /&gt;
[[File:mod_generic_message.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We modified the generic_message function to include the team name as that's something that would be included in most messages. This function then uses the partials seen below to build the exact message our students/mentors will receive in their inbox. (note: generic_message is in mailer.rb under the mailer folder)&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
== New Mentor Meeting Mangement View ==&lt;br /&gt;
&lt;br /&gt;
As you can see in the Problem Statement section that the team listing view is not very intuitive. We have built a new view as shown in the screenshot below which has more functionality and is more easy to understand. This view also has input fields for the teams where the instructors or mentors can add the dates when the mentor meeting was conducted. &lt;br /&gt;
&lt;br /&gt;
You can also see that some dates are already present in the input fields. If meetings have already been conducted and fed to the system, they will show up in the appropriate rows as you can see in the screenshot. Only the instructors have the ability to edit any of these dates and the mentors can only edit the dates for their teams only. Apart from this, you can also see that the last row with team member capacity less than 50% is disabled for any kind of entry in the meeting date input fields. This is because only teams having capacity more than 50% can have mentor meetings. &lt;br /&gt;
&lt;br /&gt;
[[File:New Mentor Meeting Mangement View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2772&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153997</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153997"/>
		<updated>2024-03-24T23:44:41Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Create a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates should not be editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Show user information in the view.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent.&lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== Modified generic_message ====&lt;br /&gt;
[[File:mod_generic_message.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We modified the generic_message function to include the team name as that's something that would be included in most messages. This function then uses the partials seen below to build the exact message our students/mentors will receive in their inbox. (note: generic_message is in mailer.rb under the mailer folder)&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2772&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153928</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153928"/>
		<updated>2024-03-24T23:01:49Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Mentor Meeting Management */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Create a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates should not be editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Show user information in the view.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent. &lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153926</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153926"/>
		<updated>2024-03-24T23:00:42Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Mentor Meeting Management */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Created a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Added input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Ability to add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The meeting dates are not editable for teams having capacity less than 50%.&amp;lt;br/&amp;gt;&lt;br /&gt;
- The view has also been modified so that user information can be seen in the table.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent. &lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153924</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153924"/>
		<updated>2024-03-24T23:00:27Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Mentor Meeting Management */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
- Created a new view that shows the team listing in a more intuitive and easy way.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Added input fields for each team where mentors and instructors can enter new, view, edit dates when mentor meetings were conducted.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Instructors can edit all dates for mentor meetings regardless of the team.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Mentors can also edit dates but only for the team they are mentoring.&amp;lt;br/&amp;gt;&lt;br /&gt;
- Ability to add more than three dates for the mentor meetings easily by pressing the + icon at the end of the view.&lt;br /&gt;
- The meeting dates are not editable for teams having capacity less than 50%.&lt;br /&gt;
- The view has also been modified so that user information can be seen in the table.&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent. &lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
[[File:team_confirm.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153914</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153914"/>
		<updated>2024-03-24T22:55:46Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent. &lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor. This function discerns the user email, subject, name of user, team name, and assignment name before calling upon the generic_message function in the mailer class to send an actual email.&lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153890</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153890"/>
		<updated>2024-03-24T22:48:47Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot below).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|900px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent. &lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor.&lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153888</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153888"/>
		<updated>2024-03-24T22:48:26Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot below).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|800px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered.  &lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent. &lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
[[File:add_member_email.png | 900px]]&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
[[File:new_add_member_email.png | 888px]]&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor.&lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153878</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153878"/>
		<updated>2024-03-24T22:45:42Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot below).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|800px]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot below).  &lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|800px|Screenshot 2. The new team listing view]]&lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
First, we added to the add_member functions in both the Team and MentoredTeam models. This is because, as has already been stated, when a member is added, that is when we want the notification to be sent. &lt;br /&gt;
&lt;br /&gt;
==== add_member ====&lt;br /&gt;
&lt;br /&gt;
We added a check for the assignment_id parameter since there are some cases where add_member is called without an assignment. Additionally, we checked whether a user was a mentor or not, as that will be the determining factor as to which email the user will receive. Of course, we didn't want to do a type check, however, we saw no better options unless we went outside the scope of the assignment and added a whole new mentor class (since mentor is not an actual class in the system). We also had to check that the user is not a participant, as there are some odd scenarios where participants are passed as the user parameter in add_member. Our assignment has nothing to do with the participant class, only the user class, so we simply did a type check to make sure we didn't send emails to participants. Again, we wouldn't normally choose to do a type check, but since it involves code completely outside the scope of this project &amp;quot;participants&amp;quot; we chose to simply check that users aren't participants. &lt;br /&gt;
&lt;br /&gt;
==== New Code in add_member ====&lt;br /&gt;
&lt;br /&gt;
Once we know what type of user we are working with, we call the MailerHelper.send_team_confirmation_mail_to_user to send the correct email to the student/mentor.&lt;br /&gt;
&lt;br /&gt;
==== send_team_confirmation_mail_to_user ====&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153871</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153871"/>
		<updated>2024-03-24T22:43:41Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px|left|thumb|Screenshot 1. The old team listing view]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  &lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|500px|left|thumb|Screenshot 2. The new team listing view]]&lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153870</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153870"/>
		<updated>2024-03-24T22:43:10Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px|left|thumb|Screenshot 1. The old team listing view]]&lt;br /&gt;
&lt;br /&gt;
Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  &lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|500px|center|thumb|Screenshot 2. The new team listing view]]&lt;br /&gt;
&lt;br /&gt;
The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153864</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153864"/>
		<updated>2024-03-24T22:40:44Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153863</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153863"/>
		<updated>2024-03-24T22:39:59Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Design Pattern */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px|left|thumb|Screenshot 1. The old team listing view]]&lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|500px|center|thumb|Screenshot 2. The new team listing view]]&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153861</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153861"/>
		<updated>2024-03-24T22:38:36Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px|left|thumb|Screenshot 1. The old team listing view]]&lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|500px|center|thumb|Screenshot 2. The new team listing view]]&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153857</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153857"/>
		<updated>2024-03-24T22:35:52Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px|thumb|Screenshot 1. The old team listing view]]&lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|500px|thumb|Screenshot 2. The new team listing view]]&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153855</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153855"/>
		<updated>2024-03-24T22:34:56Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px|Screenshot 1. The old team listing view]]&lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|500px|Screenshot 2. The new team listing view]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153852</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153852"/>
		<updated>2024-03-24T22:33:27Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px]]&lt;br /&gt;
&lt;br /&gt;
[[File:New_Mentor_Meeting_Mangement_View.png|500px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:New_Mentor_Meeting_Mangement_View.png&amp;diff=153849</id>
		<title>File:New Mentor Meeting Mangement View.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:New_Mentor_Meeting_Mangement_View.png&amp;diff=153849"/>
		<updated>2024-03-24T22:33:03Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153848</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153848"/>
		<updated>2024-03-24T22:32:47Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: /* Problem Statement */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
[[File:Old_Mentor_Meeting_Mangement_View.png|500px]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student HTML Partial ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor HTML Partial ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Old_Mentor_Meeting_Mangement_View.png&amp;diff=153846</id>
		<title>File:Old Mentor Meeting Mangement View.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Old_Mentor_Meeting_Mangement_View.png&amp;diff=153846"/>
		<updated>2024-03-24T22:31:42Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153824</id>
		<title>CSC/ECE 517 Spring 2024 - E2403 Mentor-Meeting Management</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2024_-_E2403_Mentor-Meeting_Management&amp;diff=153824"/>
		<updated>2024-03-24T22:20:55Z</updated>

		<summary type="html">&lt;p&gt;Tpardes: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;__TOC__&lt;br /&gt;
==Background==&lt;br /&gt;
Expertiza is an open-source course management web application, that is maintained by students and teaching staff across NC State and other universities. Specifically, Expertiza is used as a platform to help students learn how to work collaboratively on large Object Oriented Programming Assignments. If you would like to learn more about Expertiza, please check the Expertiza wiki[https://wiki.expertiza.ncsu.edu/index.php?title=Main_Page], or the GitHub page [https://github.com/expertiza]. For our project in particular, we were tasked with improving the mentor management system on Expertiza.&lt;br /&gt;
&lt;br /&gt;
== What is a Mentor? ==&lt;br /&gt;
On Expertiza some users are known as mentors. These mentors can both be added to teams manually and automatically assigned if the assignment moderator chooses to select an option where mentors are automatically assigned to teams above 50% capacity. In practice, this means that if you have a max team size of 3, and 2 teammates have been added to team X then team X will automatically be given a mentor.&lt;br /&gt;
&lt;br /&gt;
== Problem Statement ==&lt;br /&gt;
The problem we have been faced with is multifaceted. First, we found that when teams are automatically built, students are not getting notified of when they are added to a team. Even more alarming is that when mentors are being added to teams, they aren't getting any type of specialized notification letting them know. Mentors should know when they are mentoring a new team, and students should know when they've been added to a team. &lt;br /&gt;
&lt;br /&gt;
The other problem we have fixed as part of this project is improving the view displaying the listing of the teams. The only listing of teams is on the “Create Teams” page for the assignment.  It shows each team member on a separate line, with the mentor in an arbitrary place on the team(Check Screenshot 1 below). Expertiza doesn’t know when mentors met with teams, so there would have to be text fields where this information could be entered(Check Screenshot 2 below).  The page would have to be accessible to all mentors and course intructors, but a mentor could only enter meetings for the teams they mentored (except that the instructor could edit any of the meeting dates for any mentor).&lt;br /&gt;
&lt;br /&gt;
Our project sought to fix these issues.&lt;br /&gt;
&lt;br /&gt;
== Tasks ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
- Add new mailer function for team addition confirmation&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add HTML partials for both the mentor-specific and student-specific emails&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add correct mailer function calls where users/mentors are added&amp;lt;br/&amp;gt;&lt;br /&gt;
- Add tests&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mentor Meeting Management ===&lt;br /&gt;
&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
-&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Implementation ==&lt;br /&gt;
&lt;br /&gt;
=== Email Notifications ===&lt;br /&gt;
&lt;br /&gt;
==== Student Emails ====&lt;br /&gt;
&lt;br /&gt;
Student emails are built with the following HTML partial:&lt;br /&gt;
&lt;br /&gt;
[[File:Student_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
==== Mentor Emails ====&lt;br /&gt;
Mentors should also be emailed when added to a team, however, their email should look a bit different: &lt;br /&gt;
&lt;br /&gt;
[[File:Mentor_Email.png | 888px]]&lt;br /&gt;
&lt;br /&gt;
== Design Pattern ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Relevant Links ==&lt;br /&gt;
* '''Github Repository:''' https://github.com/ExtremeMachine12/expertiza&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/2769&lt;br /&gt;
* '''Pull Request:''' https://github.com/expertiza/expertiza/pull/&lt;br /&gt;
&lt;br /&gt;
== Team ==&lt;br /&gt;
=== Mentor ===&lt;br /&gt;
* Ed Gehringer (efg)&lt;br /&gt;
&lt;br /&gt;
=== Team Members ===&lt;br /&gt;
* Samuel Kwiatkowski-Martin (slkwiatk)&lt;br /&gt;
* Tanmay Pardeshi (tpardes)&lt;br /&gt;
* Bala Logesh Sudalaimuthu Pandian (bsudala)&lt;/div&gt;</summary>
		<author><name>Tpardes</name></author>
	</entry>
</feed>