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

Add template simulation API for simulating template composition #56842

Merged
merged 6 commits into from
May 18, 2020

Commits on May 15, 2020

  1. Add template simulation API for simulating template composition

    This adds an API for simulating template composition with or without an index template.
    
    It looks like:
    
    ```
    POST /_index_template/_simulate/my-template
    ```
    
    To simulate a template named `my-template` that already exists, or, to simulate a template that does
    not already exist:
    
    ```
    POST /_index_template/_simulate
    {
      "index_patterns": ["my-index"]
      "composed_of": ["ct1", "ct2"],
    }
    ```
    
    This is related to elastic#55686, which adds an API to simulate composition based on an index name (hence
    the `_simulate_index` vs `_simulate`).
    
    This commit also adds reference documentation for both simulation APIs.
    
    Relates to elastic#53101
    Resolves elastic#56390
    Resolves elastic#56255
    dakrone committed May 15, 2020
    Configuration menu
    Copy the full SHA
    581d635 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6ff715f View commit details
    Browse the repository at this point in the history

Commits on May 18, 2020

  1. Add example output to docs

    dakrone committed May 18, 2020
    Configuration menu
    Copy the full SHA
    b275601 View commit details
    Browse the repository at this point in the history
  2. Update server/src/main/java/org/elasticsearch/action/admin/indices/te…

    …mplate/post/TransportSimulateTemplateAction.java
    
    Co-authored-by: Andrei Dan <andrei.dan@elastic.co>
    dakrone and andreidan committed May 18, 2020
    Configuration menu
    Copy the full SHA
    4b6164b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2f0c4ca View commit details
    Browse the repository at this point in the history
  4. More docs

    dakrone committed May 18, 2020
    Configuration menu
    Copy the full SHA
    9916b81 View commit details
    Browse the repository at this point in the history