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

UG: explain product update editClient #304

Merged
merged 7 commits into from
Nov 6, 2022
Merged

Conversation

Thing1Thing2
Copy link

image

@Thing1Thing2 Thing1Thing2 added this to the v1.4 milestone Nov 2, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 2, 2022

Codecov Report

Base: 65.18% // Head: 65.68% // Increases project coverage by +0.50% 🎉

Coverage data is based on head (10a7326) compared to base (86ef9eb).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #304      +/-   ##
============================================
+ Coverage     65.18%   65.68%   +0.50%     
- Complexity      684      725      +41     
============================================
  Files           113      114       +1     
  Lines          2275     2352      +77     
  Branches        260      277      +17     
============================================
+ Hits           1483     1545      +62     
- Misses          686      693       +7     
- Partials        106      114       +8     
Impacted Files Coverage Δ
...c/main/java/seedu/address/model/client/Client.java 81.81% <0.00%> (-3.04%) ⬇️
src/main/java/seedu/address/model/util/Date.java 86.66% <0.00%> (ø)
...ddress/logic/parser/DeleteClientCommandParser.java 83.33% <0.00%> (+1.51%) ⬆️
.../java/seedu/address/model/meeting/MeetingDate.java 84.84% <0.00%> (+2.08%) ⬆️
...dress/logic/parser/DeleteMeetingCommandParser.java 80.00% <0.00%> (+2.22%) ⬆️
...address/logic/parser/ViewMeetingCommandParser.java 77.77% <0.00%> (+2.77%) ⬆️
...eedu/address/logic/commands/ListClientCommand.java 42.85% <0.00%> (+11.27%) ⬆️
...main/java/seedu/address/model/client/Birthday.java 34.14% <0.00%> (+12.27%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@@ -399,6 +399,7 @@ Format: `editClient i/INDEX [n/NAME] [p/PHONE_NUMBER] [a/ADDRESS] [e/EMAIL] [b/B
* `INDEX` **must be a positive integer** 1, 2, 3, …​
* At least one optional detail must be modified.
* Maintain value of details not edited by the command.
* Editing the client's products removes all existing products and adds all products specified.
Copy link
Member

Choose a reason for hiding this comment

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

perhaps a more succinct way to put it is 'replaces', but this is clear enough.

Copy link

@ThomasHoooo ThomasHoooo left a comment

Choose a reason for hiding this comment

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

I think it doesn't mention the use that it can take in multiple product prefixes?

@Thing1Thing2
Copy link
Author

Thing1Thing2 commented Nov 6, 2022

okk i will update to say multiple product prefixes are allowed, but currently this is not mentioned in addClient, so repeating the same there as well.

@@ -323,7 +323,7 @@ Format: `addClient n/NAME p/PHONE_NUMBER [a/ADDRESS] [e/EMAIL] [b/BIRTHDAY] [pd/
* `PHONE_NUMBER` should contain only numbers and be at least 8 digits long.
* `EMAIL`, `BIRTHDAY`, `ADDRESS` and `PRODUCT` are optional.
* `BIRTHDAY` in the future are not acceptable.
* `PRODUCT` must exists already.
* `PRODUCT` must exists already. Reuse `pd\` prefix to add each product to the client.

Choose a reason for hiding this comment

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

I think this description is not clear enough. A better way could be You can add multiple products to the client.
Then add one example to show how the user can add multiple products. Please do the same for editClient as well.

Copy link
Author

Choose a reason for hiding this comment

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

Ok, made the changes. Please have a look, thank you.

@@ -323,7 +323,7 @@ Format: `addClient n/NAME p/PHONE_NUMBER [a/ADDRESS] [e/EMAIL] [b/BIRTHDAY] [pd/
* `PHONE_NUMBER` should contain only numbers and be at least 8 digits long.
* `EMAIL`, `BIRTHDAY`, `ADDRESS` and `PRODUCT` are optional.
* `BIRTHDAY` in the future are not acceptable.
* `PRODUCT` must exists already.
* `PRODUCT` must exists already. You can add multiple products to the client. Reuse `pd\` prefix to add each product to the client.

Choose a reason for hiding this comment

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

it should be pd/

Copy link
Author

Choose a reason for hiding this comment

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

ok

Copy link

@ThomasHoooo ThomasHoooo left a comment

Choose a reason for hiding this comment

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

LGTM

@sikai00 sikai00 merged commit 4dfb88e into master Nov 6, 2022
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.

4 participants