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

Fix 6.8.0 release adding missing class alises #1114

Merged
merged 3 commits into from
Mar 22, 2021
Merged

Fix 6.8.0 release adding missing class alises #1114

merged 3 commits into from
Mar 22, 2021

Conversation

ezimuel
Copy link
Contributor

@ezimuel ezimuel commented Mar 15, 2021

This PR fixes #1112 adding the following missing class aliases for 6.7 BC:

  • Elasticsearch\Endpoints\Indices\Aliases\Update
  • Elasticsearch\Endpoints\Indices\Exists\Types
  • Elasticsearch\Endpoints\Indices\Field\Get

Moreover, it adds a missing function getAliases() (proxy of getAlias()) in Elasticsearch\Namespaces\IndicesNamespace.

@ezimuel ezimuel added this to the 6.8.1 milestone Mar 15, 2021
@ezimuel ezimuel requested review from ruflin and philkra March 15, 2021 17:07
@ezimuel
Copy link
Contributor Author

ezimuel commented Mar 15, 2021

@reedy, @phroggar, @ruflin this should fix the 6.8.0 issue. Let me know if you review, thanks!

src/autoload.php Outdated
'\Elasticsearch\Endpoints\Snapshot\Repository\Get' => '\Elasticsearch\Endpoints\Snapshot\GetRepository',
'\Elasticsearch\Endpoints\Snapshot\Repository\Verify' => '\Elasticsearch\Endpoints\Snapshot\VerifyRepository',
'\Elasticsearch\Endpoints\Source\Get' => '\Elasticsearch\Endpoints\GetSource',
'\Elasticsearch\Endpoints\Tasks\TasksList' => '\Elasticsearch\Endpoints\Tasks\ListTasks'
Copy link
Contributor

@reedy reedy Mar 15, 2021

Choose a reason for hiding this comment

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

I note the whitespace changes make this a little harder to review (on GitHub in a browser) :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed the indentation.

Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

LGTM.

@reedy Any chance you could try this on your end if it fixes all the issues?

@ezimuel ezimuel removed the request for review from philkra March 16, 2021 11:32
Copy link
Contributor

@reedy reedy left a comment

Choose a reason for hiding this comment

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

Our CI stack seems happy with this change :)

@ezimuel ezimuel merged commit 285ed33 into elastic:6.8.x Mar 22, 2021
ezimuel added a commit that referenced this pull request Mar 22, 2021
* Update Transport.php

* Fix 6.8.0 release adding missing class alises (#1114)

* Fix for #1112 issue. Adding endpoint aliases + IndicesNamespace::getAliases()

* Reverted array alias to class in src/autoload.php + added unit tests for missing class aliases in 6.8

* Fixed indentation in src/ autoload.php

* Added TransportTest

Co-authored-by: Enrico Zimuel <e.zimuel@gmail.com>
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.

3 participants