-
Notifications
You must be signed in to change notification settings - Fork 3
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
base: remote-tracking
Are you sure you want to change the base?
Conversation
move profile db call inside if for only specific case
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.
Minor changes, but LGTM.
webapp/graphite/finders/cache.py
Outdated
exists = CarbonLink.precheck(metric, query.startTime) | ||
if exists: | ||
metric_path = metric | ||
# TODO: check any info we need to put into reader @here |
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.
looked through the code, it seems to be fine.
webapp/graphite/finders/cache.py
Outdated
if not has_wildcard: | ||
exists = CarbonLink.precheck(metric, query.startTime) | ||
if exists: | ||
metric_path = metric |
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.
why the assignment to metric_path? is that necessary?
webapp/graphite/carbonlink.py
Outdated
@@ -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): |
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.
I'd suggest calling this some closer to the carbolink query type, like expand_wildcards.
No description provided.