Closed leizor closed 1 year ago
@Civil Would love if you could take a look! The refactor to interfaces.Evaluator
might be a pretty opinionated change but @carrieedwards and I have done quite a bit of acceptance testing around it and we think it looks pretty good.
This PR adds an implementation for the
aliasQuery
function.Graphite doc: https://graphite.readthedocs.io/en/latest/functions.html#graphite.render.functions.aliasQuery Graphite-web implementation: https://github.com/graphite-project/graphite-web/blob/02bc0c836269e07b38175fbfe3b5689afc87b4fa/webapp/graphite/render/functions.py#L2587-L2610
As part of this implementation, this PR changes the interface of
interfaces.Evaluator
from this:to this:
This decouples the fetching of raw data from the evaluation of expressions and allows implementations of
interface.Evaluator
to implement fetching from alternate backends with greater flexibility.