AY2425S1-CS2103-F12-1 / tp

MIT License
0 stars 4 forks source link

Modify storage for add claim command #99

Closed RezwanAhmed123 closed 2 weeks ago

RezwanAhmed123 commented 2 weeks ago

Enable Long term storage of claims

Claims are forgotten once the app is closed.

This makes the app unusable to the user.

Let's add claims objects to long term storage to make the app more useful for users.

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 12.87879% with 115 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../model/person/insurance/InsurancePlansManager.java 17.02% 36 Missing and 3 partials :warning:
.../seedu/address/logic/commands/AddClaimCommand.java 0.00% 24 Missing :warning:
...du/address/model/person/insurance/claim/Claim.java 0.00% 20 Missing :warning:
...du/address/logic/parser/AddClaimCommandParser.java 0.00% 15 Missing :warning:
...in/java/seedu/address/logic/parser/ParserUtil.java 0.00% 11 Missing :warning:
.../java/seedu/address/storage/JsonAdaptedPerson.java 50.00% 2 Missing and 1 partial :warning:
src/main/java/seedu/address/logic/Messages.java 0.00% 2 Missing :warning:
.../seedu/address/logic/parser/AddressBookParser.java 0.00% 1 Missing :warning:
Files with missing lines Coverage Δ Complexity Δ
...du/address/logic/commands/AddInsuranceCommand.java 21.42% <ø> (ø) 3.00 <0.00> (ø)
...ain/java/seedu/address/logic/parser/CliSyntax.java 88.88% <100.00%> (+3.17%) 1.00 <0.00> (ø)
.../address/model/person/insurance/InsurancePlan.java 87.50% <100.00%> (+4.16%) 6.00 <0.00> (ø)
.../seedu/address/logic/parser/AddressBookParser.java 91.30% <0.00%> (-8.70%) 14.00 <0.00> (ø)
src/main/java/seedu/address/logic/Messages.java 80.00% <0.00%> (-8.89%) 3.00 <0.00> (ø)
.../java/seedu/address/storage/JsonAdaptedPerson.java 94.64% <50.00%> (-5.36%) 12.00 <0.00> (ø)
...in/java/seedu/address/logic/parser/ParserUtil.java 73.58% <0.00%> (-19.28%) 15.00 <0.00> (ø)
...du/address/logic/parser/AddClaimCommandParser.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...du/address/model/person/insurance/claim/Claim.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
.../seedu/address/logic/commands/AddClaimCommand.java 0.00% <0.00%> (ø) 0.00 <0.00> (?)
... and 1 more
RezwanAhmed123 commented 2 weeks ago

refer to PR #101