-
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
Update DG for CountryNotesManager #245
Update DG for CountryNotesManager #245
Conversation
Codecov Report
@@ Coverage Diff @@
## master #245 +/- ##
=========================================
Coverage 87.47% 87.47%
Complexity 900 900
=========================================
Files 109 109
Lines 2299 2299
Branches 251 251
=========================================
Hits 2011 2011
Misses 218 218
Partials 70 70 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.
Regarding the sequence diagram, I'm guessing the intermediate portions where AddressBookParser
calls CountryNoteAddCommandParser
is supposed to be abstracted out for brevity? Also, there is an intermediate call to AddressBook
from Model
before CountryNotesManager
.
docs/DeveloperGuide.md
Outdated
|
||
Given below is a sequence diagram that shows how the `country note add` command works. | ||
For brevity, the full command `country note add c/COUNTRY_CODE nt/NOTE_STRING` will be substituted by `country note add`. | ||
Note that the `AddressBookParser` parses the user input and returns a `CountryNote` object, which will be passed as an argument to the constructor of `CountryNoteAddCommand`. |
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.
Slightly inaccurate as AddressBookParser
returns a Command
type. Maybe talk about CountryNoteAddCommandParser
which extracts Country
and Note
into CountryNote
?
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.
Yea thanks for catching that mistake, will mention about CountryNoteAddCommandParser
and also say that it will be excluded from the sequence diagram for brevity.
Added the intermediate call to Addressbook#addCountryNote(countryNote)
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.
Looks good! Not sure if the sizing of the diagram will be an issue but can be merged for now.
Description
Include Class Diagram for CountryNote-related classes in model + Sequence Diagram for Country Note Add.
Fixes #238
Testing
No tests were added.
Remarks
NIL