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

Complete logging implementation and add logEntries field #76

Merged

Conversation

itsnotsherm
Copy link

close #70

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

Attention: Patch coverage is 67.94872% with 25 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/main/java/seedu/address/ui/ViewWindow.java 0.00% 9 Missing ⚠️
.../java/seedu/address/model/util/SampleDataUtil.java 0.00% 6 Missing ⚠️
.../java/seedu/address/storage/JsonAdaptedPerson.java 60.00% 5 Missing and 1 partial ⚠️
src/main/java/seedu/address/model/person/Log.java 85.71% 1 Missing and 1 partial ⚠️
...edu/address/logic/commands/AppointmentCommand.java 0.00% 1 Missing ⚠️
...c/main/java/seedu/address/model/person/Person.java 66.66% 0 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ Complexity Δ
...java/seedu/address/logic/commands/EditCommand.java 96.93% <100.00%> (+0.16%) 13.00 <0.00> (ø)
.../java/seedu/address/logic/commands/LogCommand.java 78.26% <100.00%> (+78.26%) 7.00 <0.00> (+7.00)
...va/seedu/address/logic/commands/RemarkCommand.java 100.00% <100.00%> (ø) 11.00 <0.00> (ø)
...a/seedu/address/logic/parser/AddCommandParser.java 100.00% <100.00%> (ø) 5.00 <0.00> (ø)
...a/seedu/address/logic/parser/LogCommandParser.java 92.30% <100.00%> (+92.30%) 4.00 <0.00> (+4.00)
.../main/java/seedu/address/model/person/LogList.java 83.33% <100.00%> (+27.08%) 8.00 <3.00> (+4.00)
...edu/address/logic/commands/AppointmentCommand.java 19.23% <0.00%> (-0.77%) 2.00 <0.00> (ø)
...c/main/java/seedu/address/model/person/Person.java 92.30% <66.66%> (+5.03%) 24.00 <0.00> (ø)
src/main/java/seedu/address/model/person/Log.java 82.14% <85.71%> (+82.14%) 12.00 <5.00> (+12.00)
.../java/seedu/address/model/util/SampleDataUtil.java 25.00% <0.00%> (ø) 2.00 <0.00> (ø)
... and 2 more

@@ -77,6 +84,10 @@ public JsonAdaptedPerson(Person source) {
tags.addAll(source.getTags().stream()
.map(JsonAdaptedTag::new)
.collect(Collectors.toList()));
logEntries.addAll(source.getLogEntries()
.getLogs().stream()
.map(Log::toString)

Choose a reason for hiding this comment

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

LGTM

<Label fx:id="email" styleClass="label-bright" text="\$email" />
<Label fx:id="remark" styleClass="label-bright" text="\$remark" />
<Label fx:id="nric" styleClass="label-bright" text="\$nric" />
</VBox>

Choose a reason for hiding this comment

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

LGTM


assertFalse(logCommand1.equals(logCommand2));
}

Choose a reason for hiding this comment

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

LGTM

Copy link

@volleyballkickedme volleyballkickedme left a comment

Choose a reason for hiding this comment

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

Ready to merge

@volleyballkickedme volleyballkickedme merged commit 1eb9963 into AY2425S1-CS2103T-W11-1a:master Oct 31, 2024
3 of 4 checks passed
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.

Add logged information to UI
2 participants