Skip to content

[visualizations] Add aggs argument to custom requestHandlers #67916

@lukeelmers

Description

@lukeelmers

Somewhere in between migration to the new platform and the expressions-based vis infrastructure, it seems we are no longer providing an aggs argument to custom requestHandlers.

esaggs (the default request handler) uses aggs, however it appears it was left out of the visualization_function fallback which is used for custom handlers. We should add this argument back so that it doesn't break vis development for folks relying on aggs in custom request handlers.

Related forum thread: https://discuss.elastic.co/t/how-to-access-aggregations-from-within-custom-request-handler/226445

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature:ExpressionLanguageInterpreter expression language (aka canvas pipeline)Feature:VisualizationsGeneric visualization features (in case no more specific feature label is available)bugFixes for quality problems that affect the customer experienceimpact:lowAddressing this issue will have a low level of impact on the quality/strength of our product.loe:smallSmall Level of Effortregression

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions