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

support wildcard search #5

Open
wants to merge 11 commits into
base: remote-tracking
Choose a base branch
from
Open

support wildcard search #5

wants to merge 11 commits into from

Conversation

yunstanford
Copy link
Collaborator

No description provided.

Copy link

@toumorokoshi toumorokoshi left a comment

Choose a reason for hiding this comment

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

Minor changes, but LGTM.

exists = CarbonLink.precheck(metric, query.startTime)
if exists:
metric_path = metric
# TODO: check any info we need to put into reader @here

Choose a reason for hiding this comment

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

looked through the code, it seems to be fine.

if not has_wildcard:
exists = CarbonLink.precheck(metric, query.startTime)
if exists:
metric_path = metric

Choose a reason for hiding this comment

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

why the assignment to metric_path? is that necessary?

@@ -97,6 +97,12 @@ def precheck(self, metric, timestamp=None):
log.cache("CarbonLink cache-query-precheck request for %s" % (metric))
return results["exists"]

def expand_query(self, metric):

Choose a reason for hiding this comment

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

I'd suggest calling this some closer to the carbolink query type, like expand_wildcards.

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.

3 participants