CSC/ECE 517 Fall 2022 - E2281. Reimplement Waitlists: Difference between revisions
Line 51: | Line 51: | ||
models/invitation.rb | models/invitation.rb | ||
* ''remove_waitlists_for_team'' | * ''remove_waitlists_for_team'' | ||
- called within models/signed_up_team.rb | |||
== Testing == | == Testing == |
Revision as of 18:48, 10 November 2022
Topic Overview & Prior Work
Feature Overview
E2240 contains detailed information on the previous team's work with this feature.
A summary of the desired functionality is presented below:
Any instructor or TA can sign students up for a topic. Students are able to sign themselves up for a topic. If the topic is full then the team will be put on a queue or "waitlist" for the topic. If the current team holding that topic drops the topic, then the team at the top of the waitlist will be assigned the topic.
Concerns with current functionality
- What if a team is currently assigned a different topic and waitlisted for a topic that is now available?
- How many topics can a student be waitlisted for?
- If two topics become available at the same time and the same student is at the top of both waitlists, which does it choose?
- How are students notified that they were assigned a new topic?
Overview of Major Changes By Previous Team
Files Modified By Previous Team
- signed_up_team.rb
- waitlist.rb
- sign_up_sheet_controller.rb
- sign_up_sheet.rb
- sign_up_topic.rb
- suggestion_controller.rb
- invitation.rb
Problem Statement
Our goals for this project are as follows:
Code and Documentation Goals
We must explain changes made to files with diagrams and justifications.
Explanations will be provided from these perspectives:
- data flow
- functions
- code comments
Functionality
Planned Work
Move Waitlist Functionality into Waitlist Controller
models/invitation.rb
- remove_waitlists_for_team
- called within models/signed_up_team.rb
Testing
Video Demonstration
Live Demo: Functionality
RSpec Test Demo
Testing Goals and Test Objects
Drawing from the project objectives:
- Verify that Assignments can be created and are saved to the database.
- Ensure that Student ID is shown in the header, and verify via manual UI testing
- Ensure that Assignment ID is shown in the header, and verify via manual UI testing
- Finally, verify that tests can be run without crashing the system.
RSpec Unit Tests
Planned Test Cases
- Factory
#Used for Grading Histories Controller Spec factory :grading_history, class: GradingHistory do id 1 instructor_id 6 assignment_id 1 grading_type 'Submission' grade_receiver_id 1 grade 100 comment 'Good work!' end
- Assignments
Scenario: Assignment Creation with all fields Given: Logged in as an Instructor/Admin When: Create Assignment with all the necessary fields Then: Assignment is saved in the database Scenario: Duplicate Assignment Creation with all fields Given: Logged in as an Instructor/Admin When: Create Assignment with all the necessary fields Then: Assignment already exists message is shown Scenario: Assignment Creation without all fields Given: Logged in as an Instructor/Admin When: Create Assignment without all the necessary fields Then: Message to input fields is shown
- Grading Histories
Scenario: Grading History creation Given: A team exists for a particular assignment and has a submission When: An instructor assigns a grade for that submission Then: The grading history entry is created
- Review Mapping
Scenario: Save Reviewer Grade and Comment Given: A student has given a review for a submission When: An instructor assigns a grade for the review Then: The assigned grade and the accompanying comment are saved
- Grade
Scenario: Save Grade and Comment for Submission Given: A team has made a submission for an assignment When: An instructor assigns a grade for the submission Then: The assigned grade and the accompanying comment are saved
Manual UI Tests
- Student ID in header
Scenario: Student ID/Team ID (Receiver_ID) in grading history view Logged in as an Instructor/Admin On Assignment page, click on Grading History Resulting Grading History Table is shown Receiver ID appears in the header, not in any table columns
- Assignment Name in header
Scenario: Assignment Name in grading history view Logged in as an Instructor/Admin On Assignment page, click on Grading History Resulting Grading History Table is shown Assignment Name appears in the header, not in any table columns
- Color change after Grade is assigned to a submission
Scenario: Team_ID Color changes from blue to brown when grade is assigned Logged in as an Instructor of Course/Admin or TA assigned to Course On Assignment page, click on Etc->View Submissions All submissions for assignment are shown Team name is blue, and grade is not assigned Click on "Assign Grade" under team name Instructor/TA assigns grade, save successfully Back to submissions list, team name is now brown
Conclusion
- Functionality:
- Appearance:
- Testing:
- Future Work:
Useful Links
Contributors
Students
- Nick Aydt (naydt)
- Nagaraj Madamshetti (nmadams)
- Rohan Shiveshwarkar (rsshives)
- Gun Ju Im (gim)
Mentor
- Naman Shrimali (nshrima)