-
Notifications
You must be signed in to change notification settings - Fork 454
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
[query] Add Graphite sortByName natural and reverse args and generic sortBy #3367
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3367 +/- ##
=========================================
- Coverage 72.4% 72.3% -0.1%
=========================================
Files 1099 1099
Lines 102244 102289 +45
=========================================
- Hits 74044 74041 -3
- Misses 23097 23134 +37
- Partials 5103 5114 +11
Flags with carried forward coverage won't be shown. Click here to find out more. 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.
LGTM
result ts.SeriesList | ||
err error | ||
) | ||
if strings.HasPrefix(fn, "min") { |
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.
is there a var we can ref for min?
|
||
constValues := newTestSeriesValues(ctx, 1000, []float64{1, 2, 3, 4}) | ||
series := []*Series{ | ||
NewSeries(ctx, "server1", time.Now(), constValues), |
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.
can we add coverage for "server01" style strings?
What this PR does / why we need it:
Adds natural and reverse args to sortByName and implements the generic sortBy function.
Special notes for your reviewer:
Does this PR introduce a user-facing and/or backwards incompatible change?:
Does this PR require updating code package or user-facing documentation?: