AY2425S1-CS2103T-F14A-3 / tp

https://ay2425s1-cs2103t-f14a-3.github.io/tp/
MIT License
0 stars 5 forks source link

Archive command #155

Closed jktang14 closed 1 week ago

jktang14 commented 2 weeks ago

Added archive command and archive-list command

  1. Archived list is purely a read only list, if you perform add, edit etc, all of it will be operating on the main address book
  2. Duplicate checking: Checks both archived address book and main address book, so you won't be able to add a client that is not in the address book but is in the archived address book
  3. When you archive a client from the main address book, it is removed from the address book permanently and added to the archived address book
  4. Archived address book data is stored and will load up even if the app is closed, reopened and the archive-list command is entered.

Might possibly need to implement a command to unarchive the clients in the future?

codecov[bot] commented 2 weeks ago

Codecov Report

Attention: Patch coverage is 78.16901% with 31 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/main/java/seedu/address/MainApp.java 0.00% 7 Missing :warning:
src/main/java/seedu/address/ui/MainWindow.java 0.00% 7 Missing :warning:
...rc/main/java/seedu/address/model/ModelManager.java 81.48% 3 Missing and 2 partials :warning:
...ain/java/seedu/address/storage/StorageManager.java 63.63% 4 Missing :warning:
...ddress/storage/JsonArchivedAddressBookStorage.java 85.71% 3 Missing :warning:
...rc/main/java/seedu/address/logic/LogicManager.java 75.00% 1 Missing :warning:
.../java/seedu/address/logic/commands/AddCommand.java 0.00% 0 Missing and 1 partial :warning:
...java/seedu/address/logic/commands/EditCommand.java 50.00% 0 Missing and 1 partial :warning:
.../seedu/address/logic/parser/AddressBookParser.java 50.00% 1 Missing :warning:
.../java/seedu/address/model/ArchivedAddressBook.java 96.00% 1 Missing :warning:
Files with missing lines Coverage Δ Complexity Δ
...a/seedu/address/logic/commands/ArchiveCommand.java 100.00% <100.00%> (ø) 7.00 <7.00> (?)
...ava/seedu/address/logic/commands/ClearCommand.java 100.00% <100.00%> (ø) 2.00 <0.00> (ø)
...edu/address/logic/commands/ListArchiveCommand.java 100.00% <100.00%> (ø) 2.00 <2.00> (?)
...edu/address/logic/parser/ArchiveCommandParser.java 100.00% <100.00%> (ø) 2.00 <2.00> (?)
src/main/java/seedu/address/model/Model.java 100.00% <ø> (ø) 1.00 <0.00> (ø)
...rc/main/java/seedu/address/logic/LogicManager.java 76.66% <75.00%> (-0.26%) 3.00 <0.00> (ø)
.../java/seedu/address/logic/commands/AddCommand.java 94.73% <0.00%> (-5.27%) 8.00 <0.00> (ø)
...java/seedu/address/logic/commands/EditCommand.java 95.49% <50.00%> (-0.87%) 13.00 <0.00> (ø)
.../seedu/address/logic/parser/AddressBookParser.java 80.00% <50.00%> (-2.61%) 13.00 <0.00> (+1.00) :arrow_down:
.../java/seedu/address/model/ArchivedAddressBook.java 96.00% <96.00%> (ø) 11.00 <11.00> (?)
... and 5 more