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

Add noorul json patient edit #84

Merged

Conversation

itssodium
Copy link
Collaborator

Please review my code for the part to includes reading and saving the Patient details in a class.

Noorul Azlina added 2 commits October 11, 2020 15:42
* 'master' of https://github.com/AY2021S1-CS2103T-W12-1/tp:
  Add ListRoomCommand and UI for both ListRoom and FindRoomCommand
  Add ListRoomCommand and UI for both ListRoom and FindRoomCommand
  Add ListRoomCommand and UI for both ListRoom and FindRoomCommand
@codecov-io
Copy link

codecov-io commented Oct 11, 2020

Codecov Report

Merging #84 into master will increase coverage by 0.82%.
The diff coverage is 93.75%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #84      +/-   ##
============================================
+ Coverage     67.07%   67.90%   +0.82%     
- Complexity      581      636      +55     
============================================
  Files           102      110       +8     
  Lines          2017     2203     +186     
  Branches        236      274      +38     
============================================
+ Hits           1353     1496     +143     
- Misses          588      617      +29     
- Partials         76       90      +14     
Impacted Files Coverage Δ Complexity Δ
...main/java/seedu/address/model/patient/Patient.java 80.76% <ø> (ø) 21.00 <0.00> (ø)
...eedu/address/storage/JsonSerializableRoomList.java 100.00% <ø> (ø) 3.00 <0.00> (ø)
src/main/java/seedu/address/model/room/Room.java 60.93% <55.55%> (-7.69%) 20.00 <7.00> (+4.00) ⬇️
...ain/java/seedu/address/model/task/DateTimeDue.java 91.42% <100.00%> (+10.78%) 12.00 <1.00> (+3.00)
...c/main/java/seedu/address/model/task/TaskList.java 73.46% <100.00%> (-13.20%) 14.00 <1.00> (+3.00) ⬇️
...in/java/seedu/address/storage/JsonAdaptedRoom.java 100.00% <100.00%> (ø) 12.00 <10.00> (+9.00)
...in/java/seedu/address/storage/JsonAdaptedTask.java 100.00% <100.00%> (ø) 3.00 <3.00> (?)
...eedu/address/storage/JsonSerializableTaskList.java 100.00% <100.00%> (ø) 3.00 <3.00> (?)
...rc/main/java/seedu/address/model/ModelManager.java 62.63% <0.00%> (-19.72%) 29.00% <0.00%> (ø%)
... and 34 more

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 d52e04c...31678f5. Read the comment docs.

Copy link
Collaborator

@LeeMingDe LeeMingDe left a comment

Choose a reason for hiding this comment

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

lgtm!

Noorul Azlina added 3 commits October 12, 2020 20:17
…ed not be recognised previously but now has
…ed not be recognised previously but now has to be

Make changes to fix bugs.

Pass checkstyle as well.
Copy link
Collaborator

@raymondge raymondge left a comment

Choose a reason for hiding this comment

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

Nice Job! LGTM!

src/main/java/seedu/address/model/patient/Patient.java Outdated Show resolved Hide resolved
return roomNumber == room.roomNumber
&& isOccupied == room.isOccupied
&& taskList.equals(room.getTaskList());
if (taskList == null && patient == null) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice job to separate to more cases!

@@ -25,7 +25,9 @@ public void addTask_nullTask_throwsNullPointerException() {
public void addTask_validTask_success() {
Room room = new RoomBuilder(ROOM_PATIENT_ALICE_NO_TASK).build();
room.addTask(REMIND_PATIENT);

System.out.println(room.getTaskList().getInternalList().size());
Copy link
Collaborator

Choose a reason for hiding this comment

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

remember to remove the system.out.print after doing the "actual" testing

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Okay, thanks for noticing.

Copy link
Collaborator

@LeeMingDe LeeMingDe left a comment

Choose a reason for hiding this comment

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

some minor changes to be made. good job and effort!

@itssodium itssodium added this to the v1.2 milestone Oct 12, 2020
@itssodium itssodium merged commit 17b3289 into AY2021S1-CS2103T-W12-1:master Oct 12, 2020
@w-yeehong w-yeehong added Priority.Medium Type.Enhancement A small tweak to a feature labels Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority.Medium Type.Enhancement A small tweak to a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants