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

Fix bug #215 #217

Merged

Conversation

sc-arecrow
Copy link
Collaborator

Fix bug #215

Summary

A student can be edited to have the same NUSNET ID of another existing
student in the list.

A student is identified only by their NUSNET ID, all other fields are
not identity fields.

Let's fix the isSameStudent method to reflect this design.
Closes #215

Type of change

<Select all that apply, in the form [x]>

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

A student can be edited to have the same NUSNET ID of another existing
student in the list.

A student is identified only by their NUSNET ID, all other fields are
not identity fields.

Let's fix the isSameStudent method to reflect this design.
@sc-arecrow sc-arecrow added this to the v1.4 milestone Nov 7, 2020
@codecov
Copy link

codecov bot commented Nov 7, 2020

Codecov Report

Merging #217 (a8a6ca0) into master (a53e443) will decrease coverage by 0.02%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #217      +/-   ##
============================================
- Coverage     79.59%   79.57%   -0.03%     
+ Complexity      692      688       -4     
============================================
  Files            97       97              
  Lines          1985     1983       -2     
  Branches        243      240       -3     
============================================
- Hits           1580     1578       -2     
  Misses          298      298              
  Partials        107      107              
Impacted Files Coverage Δ Complexity Δ
...n/java/seedu/taskmaster/model/student/Student.java 97.56% <100.00%> (-0.12%) 18.00 <0.00> (-4.00)
...eedu/taskmaster/model/session/SessionDateTime.java 92.30% <0.00%> (ø) 9.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a53e443...a8a6ca0. Read the comment docs.

Copy link

@jaya-r3 jaya-r3 left a comment

Choose a reason for hiding this comment

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

LGTM

@jaya-r3 jaya-r3 merged commit 4e68fd7 into AY2021S1-CS2103-F09-1:master Nov 7, 2020
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.

Student can be edited to have the same NusnetId of another existing student
2 participants