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] Fix Graphite aliasByNode & aliasByMetric to use robust path expr extraction and add neg indexing to substr #3576

Merged
merged 4 commits into from
Jun 30, 2021

Conversation

robskillington
Copy link
Collaborator

What this PR does / why we need it:

Fixes aliasByNode and aliasByMetric to use robust path expr, there was a case when there was a single non-dot path separated path as a function argument that path extraction wasn't properly working (since patterns that didn't include special chars {[*-. were being treated as functions by the parse grammar step).

Also adds missing negative indexing support to substr which was missing and is supported by Graphite.
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

… expr extraction and add neg indexing to substr
Copy link
Collaborator

@arnikola arnikola left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@robskillington robskillington enabled auto-merge (squash) June 30, 2021 03:24
@robskillington robskillington merged commit 0865ebc into master Jun 30, 2021
@robskillington robskillington deleted the r/fix-aliasbynode-aliasbymetric-substr branch June 30, 2021 03:27
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