Skip to content
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

Merged
merged 3 commits into from
Mar 17, 2021

Conversation

robskillington
Copy link
Collaborator

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?:

NONE

Does this PR require updating code package or user-facing documentation?:

NONE

@robskillington robskillington enabled auto-merge (squash) March 17, 2021 19:25
@codecov
Copy link

codecov bot commented Mar 17, 2021

Codecov Report

Merging #3367 (a4f2b96) into master (b0e147d) will decrease coverage by 0.0%.
The diff coverage is 92.9%.

❗ Current head a4f2b96 differs from pull request most recent head 0077ce3. Consider uploading reports for the commit 0077ce3 to get more accurate results

Impacted file tree graph

@@            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     
Flag Coverage Δ
aggregator 76.8% <ø> (-0.1%) ⬇️
cluster 84.9% <ø> (-0.1%) ⬇️
collector 84.3% <ø> (ø)
dbnode 78.9% <ø> (-0.1%) ⬇️
m3em 74.4% <ø> (ø)
m3ninx 73.5% <ø> (ø)
metrics 19.8% <ø> (ø)
msg 74.5% <ø> (-0.1%) ⬇️
query 67.0% <92.9%> (+<0.1%) ⬆️
x 80.3% <ø> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b0e147d...0077ce3. Read the comment docs.

Copy link
Collaborator

@wesleyk wesleyk left a 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") {
Copy link
Collaborator

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),
Copy link
Collaborator

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?

@robskillington robskillington merged commit 4cd3435 into master Mar 17, 2021
@robskillington robskillington deleted the r/sort-by-name branch March 17, 2021 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants