-
Notifications
You must be signed in to change notification settings - Fork 3
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
Make Address, Email and phone number optional #41
Make Address, Email and phone number optional #41
Conversation
Let's update the parser and model first, and update the UI later
Fields are compulsory, but insurance agents may not get the info all the time. Let's make them optional by using null, and save them as null in the JSON storage, and not display the field if it is not present
# Conflicts: # src/main/java/seedu/address/logic/commands/AddCommand.java # src/main/java/seedu/address/model/person/Person.java # src/main/java/seedu/address/ui/PersonCard.java # src/main/resources/view/PersonListCard.fxml # src/test/java/seedu/address/logic/parser/AddCommandParserTest.java # src/test/java/seedu/address/storage/JsonAdaptedPersonTest.java # src/test/java/seedu/address/testutil/PersonBuilder.java
Codecov Report
@@ Coverage Diff @@
## master #41 +/- ##
============================================
- Coverage 72.52% 71.93% -0.59%
- Complexity 408 421 +13
============================================
Files 71 71
Lines 1263 1290 +27
Branches 130 147 +17
============================================
+ Hits 916 928 +12
- Misses 312 318 +6
- Partials 35 44 +9
Continue to review full report at Codecov.
|
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.
Note: [] is optional, ... is list.
LGTM
Close #13