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

[DX] Version method #1152

Merged
merged 3 commits into from
Aug 8, 2016
Merged

[DX] Version method #1152

merged 3 commits into from
Aug 8, 2016

Conversation

oleg-andreyev
Copy link
Contributor

adding getVersion method to Client.

Case: For large platforms it's critical to upgrade incrementally/step-by-step, for this purpose we need to know current version on ES

@oleg-andreyev oleg-andreyev force-pushed the version-method branch 3 times, most recently from 19dc1f0 to 77e89e3 Compare July 28, 2016 08:26
public function getVersion()
{
if ($this->_version) {
return $this->_version;
Copy link
Owner

Choose a reason for hiding this comment

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

Is there a reason you "cache" the version? Do you expect that this call is happening more then once during the lifetime of a Client?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's possible. Imagine two repositories: A, B both are using ES, both should be B/C with 1.7 and 2.0.

@ruflin
Copy link
Owner

ruflin commented Jul 31, 2016

Thanks, definitively a useful addition. See my comments above.

@ruflin ruflin merged commit 9ef242b into ruflin:master Aug 8, 2016
@ruflin
Copy link
Owner

ruflin commented Aug 8, 2016

@oleg-andreyev Thanks. Merged. This will be part of the next release.

@oleg-andreyev oleg-andreyev deleted the version-method branch June 18, 2018 10:42
@oleg-andreyev oleg-andreyev restored the version-method branch June 27, 2018 12:37
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