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

Backport: Scripted metric aggregations: add deprecation warning and system #32944

Merged
merged 1 commit into from
Aug 20, 2018
Merged

Backport: Scripted metric aggregations: add deprecation warning and system #32944

merged 1 commit into from
Aug 20, 2018

Commits on Aug 17, 2018

  1. Scripted metric aggregations: add deprecation warning and system

    property to control legacy params (#31597)
    
    * Scripted metric aggregations: add deprecation warning and system
    property to control legacy params
    
    Scripted metric aggregation params._agg/_aggs are replaced by
    state/states context variables. By default the old params are still
    present, and a deprecation warning is emitted when Scripted Metric
    Aggregations are used. A new system property can be used to disable the
    legacy params. This functionality will be removed in a future revision.
    
    * Fix minor style issue and docs test failure
    
    * Disable deprecated params._agg/_aggs in tests and revise tests to use
    state/states instead
    
    * Add integration test covering deprecated scripted metrics aggs
    params._agg/_aggs access
    
    * Disable deprecated params._agg/_aggs in docs integration tests and
    revise stored scripts to use state/states instead
    
    * Revert unnecessary migrations doc change
    
    A relevant note should be added in the changes destined for 7.0; this
    PR is going to be backported to 6.x.
    
    * Replace deprecated _agg param bwc integration test with a couple of
    unit tests
    
    * Fix compatibility test after merge
    
    * Rename backwards compatibility system property per code review
    feedback
    
    * Tweak deprecation warning text per review feedback
    
    buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
    server/src/test/java/org/elasticsearch/search/aggregations/metrics/scrip
    ted/ScriptedMetricAggregatorTests.java
    /Users/colings86/dev/work/git/elasticsearch/.git/worktrees/elasticsearch
    -6.x/CHERRY_PICK_HEAD
    
    buildSrc/src/main/groovy/org/elasticsearch/gradle/BuildPlugin.groovy
    server/src/main/java/org/elasticsearch/script/ScriptedMetricAggContexts.
    java
    server/src/main/java/org/elasticsearch/search/aggregations/metrics/scrip
    ted/InternalScriptedMetric.java
    server/src/main/java/org/elasticsearch/search/aggregations/metrics/scrip
    ted/ScriptedMetricAggregatorFactory.java
    server/src/test/java/org/elasticsearch/search/aggregations/metrics/Scrip
    tedMetricIT.java
    server/src/test/java/org/elasticsearch/search/aggregations/metrics/scrip
    ted/InternalScriptedMetricAggStateV6CompatTests.java
    server/src/test/java/org/elasticsearch/search/aggregations/metrics/scrip
    ted/InternalScriptedMetricTests.java
    server/src/test/java/org/elasticsearch/search/aggregations/metrics/scrip
    ted/ScriptedMetricAggregatorAggStateV6CompatTests.java
    server/src/test/java/org/elasticsearch/search/aggregations/metrics/scrip
    ted/ScriptedMetricAggregatorTests.java
    rationull authored and colings86 committed Aug 17, 2018
    Configuration menu
    Copy the full SHA
    b7d6863 View commit details
    Browse the repository at this point in the history