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

Latest version class #897

Merged
merged 2 commits into from
Jul 28, 2015
Merged

Latest version class #897

merged 2 commits into from
Jul 28, 2015

Conversation

webdevsHub
Copy link
Contributor

description of this PR: #893

another option would be to just use Version140 as default QueryBuilder version without Latest class but it could be misunderstood as "Elastica is outdated".

I will add changelog entry after discussion.

@ruflin
Copy link
Owner

ruflin commented Jul 28, 2015

I like the Latest as it always refers to the dependency in the README file. Hopefully the ES API does not change every time. This could even be mentioned in the doc block of Latest.

@ruflin
Copy link
Owner

ruflin commented Jul 28, 2015

I would merged this pull request, if there are no objections.

@webdevsHub
Copy link
Contributor Author

What exactly do you want to mention in the comments?

@ruflin
Copy link
Owner

ruflin commented Jul 28, 2015

That Latest references to the version mentioned in the README.md file. Like this it is always clear which one is meant as the README is also versioned and it is not confused with the latest version of elasticsearch.

@webdevsHub
Copy link
Contributor Author

I had a small log in the comment, but deleted it because it would require changing this file on every release. I could add it again

/*
 * no changes since 1.4.0:
 *  - 1.5.0 (March 23, 2015)
 *  - 1.6.0 (June 09, 2015)
 *  - 1.7.0 (July 16, 2015)
 */

/**
* Latest elasticsearch DSL.
*
* @link https://www.elastic.co/guide/en/elasticsearch/reference/current/index.html
Copy link
Owner

Choose a reason for hiding this comment

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

@webdevsHub Here I would add a comment: Latest always refer to the version mentioned in README.md

Like this it never has to be updated here :-)

@ruflin
Copy link
Owner

ruflin commented Jul 28, 2015

See my comment in the code. I would leave out the comment that has to be changed every time.

@webdevsHub
Copy link
Contributor Author

comment added

@ruflin ruflin merged commit 5b22387 into ruflin:master Jul 28, 2015
@ruflin
Copy link
Owner

ruflin commented Jul 28, 2015

Merged. Thx.

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.

2 participants