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 appointment bug #110

Merged
merged 2 commits into from
Apr 3, 2024
Merged

Conversation

alfaloo
Copy link
Collaborator

@alfaloo alfaloo commented Apr 3, 2024

No description provided.

@alfaloo alfaloo added this to the v1.3 milestone Apr 3, 2024
@alfaloo alfaloo self-assigned this Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.52%. Comparing base (107a1a5) to head (b8de4a7).

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #110      +/-   ##
============================================
+ Coverage     79.49%   79.52%   +0.02%     
  Complexity      673      673              
============================================
  Files           107      107              
  Lines          2063     2066       +3     
  Branches        214      214              
============================================
+ Hits           1640     1643       +3     
  Misses          366      366              
  Partials         57       57              

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

Copy link
Collaborator

@officialchengyud officialchengyud left a comment

Choose a reason for hiding this comment

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

LGTM! Good job Zhiyang.

@@ -11,6 +11,7 @@
import seedu.address.model.Model;
import seedu.address.model.appointment.Appointment;
import seedu.address.model.appointment.exceptions.InvalidAppointmentException;
import seedu.address.model.person.exceptions.PersonNotFoundException;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Good job for adding in an exception.

@@ -160,7 +160,7 @@ private boolean personsAreUnique(List<Person> persons) {
return true;
}

public Person getPersonByNric(Nric nricObj) {
public Person getPersonByNric(Nric nricObj) throws PersonNotFoundException {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice! This looks good to me.

@officialchengyud officialchengyud merged commit f9f8204 into AY2324S2-CS2103T-T15-1:master Apr 3, 2024
5 checks passed
@ararchch ararchch linked an issue Apr 4, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Catch appointment errors
2 participants