Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete student module command #40

Merged

Conversation

blaukc
Copy link

@blaukc blaukc commented Mar 21, 2024

Implemented delete_module command (delete_module i/INDEX m/MODULECODE)

Added some SLAP to add_module as well

Closes: #22

@blaukc blaukc requested a review from a team March 21, 2024 17:30
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 57 lines in your changes are missing coverage. Please review.

Project coverage is 67.10%. Comparing base (9a22769) to head (c5b1194).

Files Patch % Lines
...ess/logic/commands/DeleteStudentModuleCommand.java 0.00% 29 Missing ⚠️
...logic/parser/DeleteStudentModuleCommandParser.java 0.00% 12 Missing ⚠️
src/main/java/seedu/address/model/AddressBook.java 0.00% 11 Missing ⚠️
...rc/main/java/seedu/address/model/ModelManager.java 0.00% 2 Missing ⚠️
...main/java/seedu/address/model/student/Student.java 0.00% 2 Missing ⚠️
.../seedu/address/logic/parser/AddressBookParser.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master      #40      +/-   ##
============================================
- Coverage     69.56%   67.10%   -2.46%     
  Complexity      433      433              
============================================
  Files            81       83       +2     
  Lines          1528     1584      +56     
  Branches        142      150       +8     
============================================
  Hits           1063     1063              
- Misses          430      486      +56     
  Partials         35       35              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@blaukc blaukc modified the milestones: v1.2b, v1.2 Mar 21, 2024
Copy link

@taufiq taufiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

solid

@taufiq taufiq merged commit 9dd5351 into AY2324S2-CS2103T-W12-2:master Mar 22, 2024
1 of 3 checks passed
Comment on lines +119 to +122
* Adds a module to a student in the address book.
*
* @param m The module code to be added.
* @param s The student to whom the module is to be added.
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The comments on this function are wrong

Comment on lines +96 to +98
* Checks if module `m` is held within the student
* @param m Module to check
* @return true if module is taken by student
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are wrong

Comment on lines +87 to +89
* Checks if module `m` is held within the student
* @param m Module to check
* @return true if module is taken by student
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comments are wrong

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

As a student, I can delete which modules my friend is taking this semester
3 participants