Skip to content

Conversation

tlim8772
Copy link

Add fee, need to change a lot of things 😢

@tlim8772 tlim8772 added this to the v1.5 milestone Oct 24, 2024
@tlim8772 tlim8772 requested a review from josh1248 October 24, 2024 04:34
Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 72.85714% with 19 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/main/java/seedu/edulog/model/student/Fee.java 76.47% 2 Missing and 2 partials ⚠️
.../java/seedu/edulog/storage/JsonAdaptedStudent.java 55.55% 2 Missing and 2 partials ⚠️
.../java/seedu/edulog/logic/commands/EditCommand.java 78.57% 1 Missing and 2 partials ⚠️
.../main/java/seedu/edulog/model/student/Student.java 78.57% 2 Missing and 1 partial ⚠️
...a/seedu/edulog/logic/parser/EditCommandParser.java 50.00% 1 Missing and 1 partial ⚠️
...ain/java/seedu/edulog/logic/parser/ParserUtil.java 50.00% 1 Missing and 1 partial ⚠️
src/main/java/seedu/edulog/ui/StudentCard.java 0.00% 1 Missing ⚠️
Files with missing lines Coverage Δ Complexity Δ
src/main/java/seedu/edulog/logic/Messages.java 88.23% <100.00%> (+0.73%) 3.00 <0.00> (ø)
...n/java/seedu/edulog/logic/commands/AddCommand.java 100.00% <ø> (ø) 8.00 <0.00> (ø)
...va/seedu/edulog/logic/parser/AddCommandParser.java 100.00% <100.00%> (ø) 5.00 <0.00> (ø)
...main/java/seedu/edulog/logic/parser/CliSyntax.java 90.90% <100.00%> (+0.90%) 1.00 <0.00> (ø)
src/main/java/seedu/edulog/ui/StudentCard.java 0.00% <0.00%> (ø) 0.00 <0.00> (ø)
...a/seedu/edulog/logic/parser/EditCommandParser.java 86.20% <50.00%> (-6.39%) 11.00 <0.00> (ø)
...ain/java/seedu/edulog/logic/parser/ParserUtil.java 67.27% <50.00%> (-1.36%) 15.00 <1.00> (+1.00) ⬇️
.../java/seedu/edulog/logic/commands/EditCommand.java 94.38% <78.57%> (-3.06%) 13.00 <0.00> (ø)
.../main/java/seedu/edulog/model/student/Student.java 77.58% <78.57%> (-17.87%) 23.00 <1.00> (+1.00) ⬇️
src/main/java/seedu/edulog/model/student/Fee.java 76.47% <76.47%> (ø) 7.00 <7.00> (?)
... and 1 more

@@ -46,6 +46,8 @@ public static String format(Student student) {
.append(student.getAddress())
.append("; Tags: ");
student.getTags().forEach(builder::append);
builder.append("; fee ").append(student.getFee());

Choose a reason for hiding this comment

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

please add this to previous line

@@ -96,13 +101,21 @@ public StudentBuilder withEmail(String email) {
/**
* Sets the {@code hasPaid} of the {@code Student} that we are building.
*/
public StudentBuilder withhasPaid(boolean hasPaid) {
public StudentBuilder withHasPaid(boolean hasPaid) {

Choose a reason for hiding this comment

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

Good use of convention

@@ -31,6 +31,7 @@
<Label fx:id="phone" styleClass="cell_small_label" text="\$phone" />
<Label fx:id="address" styleClass="cell_small_label" text="\$address" />
<Label fx:id="email" styleClass="cell_small_label" text="\$email" />
<Label fx:id="fee" styleClass="cell_small_label" text="\$fee" />

Choose a reason for hiding this comment

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

Good Work updating the UI


/**
* Every field must be present and not null except isPresent.
* Every field must be present and not null except isPresent. I suggest

Choose a reason for hiding this comment

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

please deprecate this constructor

throw new IllegalValueException(Fee.MESSAGE_CONSTRAINTS);
}
Fee modelFee = new Fee(fee);
return new Student(modelName, modelPhone, modelEmail, modelAddress, modelTags, modelFee);

Choose a reason for hiding this comment

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

Good work modifying the model

@Timenikhil Timenikhil merged commit afc02ea into AY2425S1-CS2103T-W09-2:master Oct 24, 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.

2 participants