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

Branch add appointment #124

Conversation

cmHuang777
Copy link

This commit adds the AddAppointmentCommand to the project. It also updated the required UI changes to display the appointment on each patient/doctor card. Users should be able to add appointments to the address book and see the newly added appointments in the UI.

However, the tests are currently failing. It will be fixed in the next
PRs, either by me or by my teammates. Additionally, the current way of writing the code may be violating coding principles and may require changes. (more specifically the part on executing the add patient command) I will be looking into it in the next PRs and also discuss it with my teammates.

tanveersingh10 and others added 7 commits October 28, 2023 12:52
This commit adds the AddAppointmentCommand to the project. It also
updated the required UI changes to display the appointment in each
patient/doctor card. Users should be able to add appointments to the
address book and see the newly added appointments in the UI.

However, the tests are currently failing. It will be fixed in the next
PRs, either by me or by my teammates. Additionally, the current way of
writing the code may be violating coding principles and may require
changes. I will be looking into it in the next PRs and also discuss
with my teammates.
@cmHuang777 cmHuang777 added the priority.High Must have. label Oct 30, 2023
@cmHuang777 cmHuang777 added this to the v1.3 milestone Oct 30, 2023
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

Merging #124 (62a7392) into branch-AddAppointment (d586698) will decrease coverage by 0.87%.
The diff coverage is 39.24%.

@@                     Coverage Diff                     @@
##             branch-AddAppointment     #124      +/-   ##
===========================================================
- Coverage                    71.84%   70.97%   -0.87%     
- Complexity                     634      641       +7     
===========================================================
  Files                          100      101       +1     
  Lines                         2216     2281      +65     
  Branches                       243      246       +3     
===========================================================
+ Hits                          1592     1619      +27     
- Misses                         536      583      +47     
+ Partials                        88       79       -9     
Files Coverage Δ
src/main/java/seedu/address/logic/Messages.java 88.88% <100.00%> (+1.38%) ⬆️
...java/seedu/address/logic/commands/EditCommand.java 91.44% <100.00%> (+0.90%) ⬆️
.../address/logic/parser/AddPatientCommandParser.java 95.65% <100.00%> (+0.19%) ⬆️
src/main/java/seedu/address/model/Model.java 100.00% <ø> (ø)
...a/seedu/address/model/person/UniqueDoctorList.java 80.39% <ø> (ø)
.../java/seedu/address/storage/JsonAdaptedDoctor.java 100.00% <100.00%> (+28.57%) ⬆️
...java/seedu/address/storage/JsonAdaptedPatient.java 100.00% <100.00%> (+12.76%) ⬆️
.../java/seedu/address/storage/JsonAdaptedPerson.java 97.56% <100.00%> (+0.41%) ⬆️
...va/seedu/address/logic/commands/RemarkCommand.java 0.00% <0.00%> (ø)
.../seedu/address/logic/parser/AddressBookParser.java 76.00% <0.00%> (-3.17%) ⬇️
... and 13 more

... and 2 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Copy link

@kohkaijie kohkaijie 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 on the feature and test cases. However, codecov for several commands have decreased and new tests need to be added!

@Mohammed-Faizzzz Mohammed-Faizzzz merged commit 157043a into AY2324S1-CS2103T-T09-3:branch-AddAppointment Nov 1, 2023
3 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority.High Must have.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants