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

Unify IndicesOptions constants #6068

Closed

Conversation

javanna
Copy link
Member

@javanna javanna commented May 6, 2014

Renamed IndicesOptions#strict and IndicesOptions#lenient to make it clearer what they actually return, reused methods and introduced new one

Relates to #6059, where two new constants were introduced in IndicesOptions. There were already two constants there though, one of which we could have reused. This commit tries to unify them.

@javanna javanna self-assigned this May 6, 2014
@@ -39,7 +39,7 @@
@Nullable
private String preference;
private String[] types = Strings.EMPTY_ARRAY;
private IndicesOptions indicesOptions = IndicesOptions.lenient();
private IndicesOptions indicesOptions = IndicesOptions.ignoreUnavailableExpandOpenOnly();
Copy link
Contributor

Choose a reason for hiding this comment

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

lenientExpandOpen()

…learer what they actually return, reused methods and introduced new one

Relates to elastic#6059, where two new constants were introduced in IndicesOptions. There were already two constants there though, one of which we could have reused. This commit tries to unify them.
@javanna
Copy link
Member Author

javanna commented May 7, 2014

Merged to master and 1.x

@javanna javanna closed this May 7, 2014
@jpountz jpountz removed the review label May 12, 2014
javanna added a commit that referenced this pull request May 12, 2014
@javanna
Copy link
Member Author

javanna commented May 12, 2014

This change is marked as breaking in master only for Java API users as it removes two public methods (strict and lenient) from IndicesOptions. Restored the methods as deprecated in 1.x: c1a7f3c

javanna added a commit that referenced this pull request May 13, 2014
javanna added a commit that referenced this pull request May 13, 2014
@clintongormley clintongormley added the :Core/Infra/Transport API Transport client API label Jun 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants