Skip to content

Scripting: get context names REST API#48026

Merged
stu-elastic merged 11 commits intoelastic:masterfrom
stu-elastic:feature/47411-painless-script-context-rest_1_name
Oct 16, 2019
Merged

Scripting: get context names REST API#48026
stu-elastic merged 11 commits intoelastic:masterfrom
stu-elastic:feature/47411-painless-script-context-rest_1_name

Conversation

@stu-elastic
Copy link
Copy Markdown
Contributor

Scripting: get context names REST API

Adds GET /_script_context, returning a contexts object with each
available context as a key whose value is an empty object. eg.

{
  "contexts": {
    "aggregation_selector": {},
    "aggs": {},
    "aggs_combine": {},
...
  }
}

refs: #47411

Adds `GET /_script_context`, returning a `contexts` object with each
available context as a key whose value is an empty object. eg.
```
{
  "contexts": {
    "aggregation_selector": {},
    "aggs": {},
    "aggs_combine": {},
...
  }
}
```

refs: elastic#47411
@polyfractal polyfractal added the :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache label Oct 15, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Scripting)

Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! I have a few comments.

Copy link
Copy Markdown
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stu-elastic
Copy link
Copy Markdown
Contributor Author

@elasticmachine run elasticsearch-ci/packaging-sample

@stu-elastic stu-elastic merged commit c6037dc into elastic:master Oct 16, 2019
stu-elastic added a commit to stu-elastic/elasticsearch that referenced this pull request Oct 16, 2019
Adds `GET /_script_context`, returning a `contexts` object with each
available context as a key whose value is an empty object. eg.
```
{
  "contexts": {
    "aggregation_selector": {},
    "aggs": {},
    "aggs_combine": {},
...
  }
}
```

refs: elastic#47411
stu-elastic added a commit that referenced this pull request Oct 17, 2019
Adds `GET /_script_context`, returning a `contexts` object with each
available context as a key whose value is an empty object. eg.
```
{
  "contexts": {
    "aggregation_selector": {},
    "aggs": {},
    "aggs_combine": {},
...
  }
}
```

refs: #47411
@colings86
Copy link
Copy Markdown
Contributor

@stu-elastic Please remember to label all PRs with change type, area and version labels. This is important for the release notes process as well as letting people looking at the PR know quickly where it is targetting

@colings86
Copy link
Copy Markdown
Contributor

I've added some labels I think are appropriate but please check and amend as necessary

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants