-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Fix the system-tag cli help default values #1219
Conversation
There is already a |
stats/system_tag.go
Outdated
@@ -70,6 +71,17 @@ func (i *SystemTagSet) Map() TagSet { | |||
return m | |||
} | |||
|
|||
// SetString is returns comma separeted list of the string representation of all values in the set |
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.
Typo in "is returns".
And also, should this method named List()
, for alignment with Map()
above? And actually return a slice instead.
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.
Fixed the typo and did some .. performance optimizations (not actually needed I am sure).
I don't think it's worth it to add a generic way to get a list of the set values from the SystemTags ... this is literally the only place where it's used ...
Codecov Report
@@ Coverage Diff @@
## master #1219 +/- ##
==========================================
+ Coverage 73.75% 73.75% +<.01%
==========================================
Files 147 147
Lines 10675 10681 +6
==========================================
+ Hits 7873 7878 +5
- Misses 2343 2344 +1
Partials 459 459
Continue to review full report at Codecov.
|
stats/system_tag.go
Outdated
@@ -70,6 +70,17 @@ func (i *SystemTagSet) Map() TagSet { | |||
return m | |||
} | |||
|
|||
// SetString returns comma separeted list of the string representation of all values in the set |
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.
Typo: "separeted"
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 besides the small typo.
this was broken in #1148