-
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
Standardise Storage and Loading Order for Client Notes #320
Standardise Storage and Loading Order for Client Notes #320
Conversation
Codecov Report
@@ Coverage Diff @@
## master #320 +/- ##
============================================
- Coverage 87.26% 87.21% -0.05%
+ Complexity 961 958 -3
============================================
Files 113 113
Lines 2512 2510 -2
Branches 287 286 -1
============================================
- Hits 2192 2189 -3
Misses 235 235
- Partials 85 86 +1
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.
Please add in countryNotesManager.clear()
in TbmManager#setCountryNotes
method. This is quite important. Otherwise I'm ok with the changes.
*/ | ||
public void setNotes(List<Note> notes) { | ||
countryNotesManager.clear(); |
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 is important!! don't delete this
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.
my bad, added it back
@@ -61,11 +61,10 @@ public TbmManager toModelType() throws IllegalValueException { | |||
} | |||
tbmManager.addClient(client); | |||
} | |||
for (JsonAdaptedNote note: notes) { | |||
for (JsonAdaptedNote note: countryNotes) { |
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.
Renaming note
to countryNote
might be clearer
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.
renamed to jsonAdaptedCountryNote
"countryCode": "NULL_CC", | ||
"tags": ["godLike"] | ||
"countryNotes": [ { | ||
"contents": "too hot, hot damn", |
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.
Made me chuckle
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
Description
As per title.
Fixes #319
Testing
NIL, just works man:
Remarks
NIL