Skip to content
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

Update AddCommand.java params #28

Merged
merged 11 commits into from
Mar 19, 2024

Conversation

ryanlimdx
Copy link

No description provided.

@ryanlimdx ryanlimdx added this to the v1.2 milestone Mar 15, 2024
Copy link

codecov bot commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.50%. Comparing base (b4dfc39) to head (48576f5).
Report is 30 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master      #28      +/-   ##
============================================
- Coverage     75.33%   72.50%   -2.83%     
- Complexity      419      438      +19     
============================================
  Files            71       75       +4     
  Lines          1342     1495     +153     
  Branches        126      148      +22     
============================================
+ Hits           1011     1084      +73     
- Misses          301      360      +59     
- Partials         30       51      +21     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ryanlimdx ryanlimdx linked an issue Mar 15, 2024 that may be closed by this pull request
+ PREFIX_ADDRESS + "ADDRESS "
+ PREFIX_IC + "IC "
+ PREFIX_DOB + "DOB "
+ PREFIX_ADMISSION_DATE + "EMAIL "
Copy link

Choose a reason for hiding this comment

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

Should this be "ADMISSION DATE "?

@@ -23,20 +24,21 @@ public class AddCommand extends Command {
public static final String MESSAGE_USAGE = COMMAND_WORD + ": Adds a person to the address book. "
+ "Parameters: "
+ PREFIX_NAME + "NAME "
+ PREFIX_PHONE + "PHONE "
+ PREFIX_EMAIL + "EMAIL "
Copy link

Choose a reason for hiding this comment

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

Should we include the optional fields in MESSAGE_USAGE as well? like phone, email, address
Since we include tags as well

Copy link

@iamtr iamtr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

@erv-teo erv-teo left a comment

Choose a reason for hiding this comment

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

LGTM!

@erv-teo erv-teo merged commit b9ff02f into AY2324S2-CS2103T-F10-1:master Mar 19, 2024
4 of 5 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.

[Add Command] Modify AddCommand to support updated parameters
4 participants