-
Notifications
You must be signed in to change notification settings - Fork 5
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
Client Edit, Client Note Edit Bug Fixes #268
Client Edit, Client Note Edit Bug Fixes #268
Conversation
…SpecifiedUnfilteredList_success
Codecov Report
@@ Coverage Diff @@
## master #268 +/- ##
============================================
+ Coverage 87.00% 87.14% +0.14%
- Complexity 926 928 +2
============================================
Files 112 112
Lines 2416 2420 +4
Branches 278 278
============================================
+ Hits 2102 2109 +7
+ Misses 234 233 -1
+ Partials 80 78 -2
Continue to review full report at Codecov.
|
src/main/java/seedu/address/logic/commands/ClientEditCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/seedu/address/logic/commands/ClientEditCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/seedu/address/logic/commands/ClientEditCommand.java
Outdated
Show resolved
Hide resolved
src/main/java/seedu/address/logic/commands/ClientNoteEditCommand.java
Outdated
Show resolved
Hide resolved
src/test/java/seedu/address/logic/commands/ClientEditCommandTest.java
Outdated
Show resolved
Hide resolved
src/test/java/seedu/address/logic/commands/ClientEditCommandTest.java
Outdated
Show resolved
Hide resolved
src/test/java/seedu/address/logic/commands/ClientEditCommandTest.java
Outdated
Show resolved
Hide resolved
src/test/java/seedu/address/logic/commands/ClientEditCommandTest.java
Outdated
Show resolved
Hide resolved
…st.java Removal of redundant assignment Co-authored-by: qwoprocks <46164638+qwoprocks@users.noreply.github.com>
@@ -147,6 +148,7 @@ public void addClient(Client client) { | |||
public void setClient(Client target, Client editedClient) { | |||
requireAllNonNull(target, editedClient); | |||
tbmManager.setClient(target, editedClient); | |||
initialiseTagNoteMap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there anything we can do in tagnotemap that would allow us to replace a client instead of doing re-init?
Bracket Removal Co-authored-by: qwoprocks <46164638+qwoprocks@users.noreply.github.com>
Description
Bug: when editing a non-note field of clients, client note wasn't getting retained.
Fixes #264
Fixes #269
Fixes #272 <== this is a minor display bug
Status: desired behaviour is reached.
Test method: ClientEditCommandTest#execute_changeClientName_preserveExistingClientNotes()
desired behaviuor is seen in the json file:
before:
after command : client edit 1 n/ackerman
Testing
Ref to example screenshot above
Remarks
Regression Test Failure was due to the mutability issue again. The following change has been done to
TypicalClients#getTypicalClients