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

[API] Avoid instantiating an array of valid params for each request, each time it is called #550

Merged
merged 9 commits into from
Oct 23, 2018

Conversation

estolfo
Copy link
Contributor

@estolfo estolfo commented Oct 19, 2018

This pull request introduces a ParamsRegistry for each api namespace so that valid params can be looked up instead of defined as a new array every time a method is called.

@estolfo estolfo force-pushed the valid-params-const branch 4 times, most recently from 412d650 to f9019cf Compare October 22, 2018 12:28
@estolfo estolfo closed this Oct 22, 2018
@estolfo estolfo reopened this Oct 22, 2018
@estolfo estolfo force-pushed the valid-params-const branch from f9019cf to 8e238d2 Compare October 22, 2018 13:57
@estolfo estolfo force-pushed the valid-params-const branch from 8e238d2 to 5da9089 Compare October 22, 2018 16:48
@estolfo estolfo merged commit 6184fc5 into elastic:6.x Oct 23, 2018
estolfo added a commit that referenced this pull request Oct 23, 2018
…each time it is called (#550)

* [API] Add ParamsRegistry for non-namespaced actions

* [API] Add ParamsRegistry for cat actions

* [API] Add ParamsRegistry for cluster actions

* [API] Add ParamsRegistry for indices actions

* [API] Add ParamsRegistry for ingest actions

* [API] Add ParamsRegistry for nodes actions

* [API] Add ParamsRegistry for snapshot actions

* [API] Add ParamsRegistry for tasks actions

* [API] Fix typos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant