CSC/ECE 517 Spring 2022 - E2245: View for results of bidding: Difference between revisions

From Expertiza_Wiki
Jump to navigation Jump to search
Line 28: Line 28:
=== Change in use cases ===
=== Change in use cases ===


 
[[File:new-usecases.png|800px|Old user cases]]


=== Change in Work Flow Diagram ===
=== Change in Work Flow Diagram ===

Revision as of 23:08, 6 April 2022

CSC/ECE 517 Spring 2022 - E2245: View for results of bidding

Problem Statement

When topics are opened up for bidding, students can see how “hot” each topic is by the color it has on their topic list. However, instructors have no way to view the bidding process except by impersonating students. Furthermore, when the bidding assignment algorithm is run, there is no way to verify that it did in fact assign teams to topics they had chosen.

Project Goal

This project is to create a field for instructors on the topic list that shows how many teams have bid for each project. Since topic lines in the topic list potentially have several fields, including partner advertisements, take care that

  1. the #-of-bids field is not displayed except for projects that use bidding for topics, and
  2. the field is as narrow as feasible.

Previous Work

User Cases

Old user cases

Design Pattern

In-progress of documenting the utilized design patterns

Work Flow Diagram

Popup prototype

Improvement on the Previous Work

Change in use cases

Old user cases

Change in Work Flow Diagram

Controllers:

  • app/controllers/submission_records_controller.rb


Models:

  • app/models/assignment_team.rb


Views:

  • app/views/student_task/view


Rspec:

  • spec/features/staggered_deadline_spec.rb


I. Refactor Code to follow good coding practices
Example:
1. Rename method names more meaningfully and intuitive. 2. Reduce the number of conditional statements checking for mentor. 3. Rename variable names to reduce confusion like changing lowest_team_no to lowest_number_of_teams. 4. Make the code DRYer


II. Correct Previous Design

1. Remove mentors from being included in a team's number of members count.

2. Change the View to make mentor separate from the team.
BEFORE

AFTER


3. Change the conditional statement that checks if a mentor has to be added to the team. (The strength of the team has to be greater than 50% of the team size).

4. Fix the SUBMIT button issue during role selection

III. Code placed in the wrong locations to be moved to the desired locations.
Example:

  1. The email code moved to the email module.
  2. Code written in team file moved to the assignment team file.

Functionalities added

  • The mentor should be able to check submissions of his team.

This is a new functionality, where a mentor when logged in , would be able to view all the teams assigned under him for an assignment, when he clicks view and manage teams. Additionally the respective teams submissions and submission histories could be viewed by the mentor (if and only a submission is available).Existing functions and classes were reused.


Testing

  1. Some existing test cases have been modified, which have been reverted.
  2. Run and pass the existing RSpec Tests.
  3. Test the UI for the deployed project.

UI Testing

Part 1:

  • Login as the instructor6

Part 2:

  • Login as student575 (added to the program by the instructor)


Future Work

  • If a mentor is removed from an assignment, reassignment of mentor has to be done. (edge-case)
  • Rspec for email functionality needs to be implemented.

Team Roster

  • Duy Nguyen - dvnguye3@ncsu.edu
  • Kwon HyeokJun - khyeokj@ncsu.edu
  • Shawn S - ssaleki@ncsu.edu
  • David Glymph - dwglymph@ncsu.edu

Mentor: Ed Gehringer - efg@ncsu.edu

Reference

Previous Work