-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add command add product supplier #115
Add command add product supplier #115
Conversation
Codecov Report
@@ Coverage Diff @@
## master #115 +/- ##
============================================
+ Coverage 69.99% 70.39% +0.40%
- Complexity 551 563 +12
============================================
Files 89 91 +2
Lines 1853 1895 +42
Branches 217 222 +5
============================================
+ Hits 1297 1334 +37
- Misses 508 509 +1
- Partials 48 52 +4
Continue to review full report at Codecov.
|
private final Product productToAdd; | ||
|
||
/** | ||
* Creates an AddCommand to add the specified {@code Supplier} |
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.
This should be AddProductCommand!
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.
@@ -9,8 +9,8 @@ | |||
*/ | |||
public class Tag { | |||
|
|||
public static final String MESSAGE_CONSTRAINTS = "Tags names should be alphanumeric"; | |||
public static final String VALIDATION_REGEX = "\\p{Alnum}+"; | |||
public static final String MESSAGE_CONSTRAINTS = "Tags names should be a word character"; |
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.
I think this message could be clearer! Perhaps something along the lines of "Tag names should contain only 1 word"!
import seedu.clinic.model.supplier.Supplier; | ||
|
||
/** | ||
* Adds a product to a supplier to the CLI-nic app. |
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.
Perhaps this could be "Adds a product to a supplier in the CLI-nic app"!
} | ||
|
||
public static Supplier getSupplierByName(Name supplierName, Model model) throws NoSuchElementException { | ||
return model.getClinic().getSupplierList().stream() |
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.
Just wondering if this violates the law of Demeter?
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.
LGTM
…nd-add-product-supplier Add command add product supplier
…nd-add-product-supplier Add command add product supplier
…nd-add-product-supplier Add command add product supplier
…nd-add-product-supplier Add command add product supplier
No description provided.