Skip to content

Commit

Permalink
Preparation for 7.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ezimuel committed Nov 26, 2019
1 parent 5afb458 commit 44b07a1
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 1 deletion.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## Release 7.4.1

- We added the suppress operator `@` for the deprecation messages `@trigger_error()`.
With this approach we don't break existing application that convert PHP errors in Exception
(e.g. using Laravel with issue https://github.com/babenkoivan/scout-elasticsearch-driver/issues/297)
Using the `@` operator is still possible to intercept the deprecation message using
a custom error handler.
[#973](https://github.com/elastic/elasticsearch-php/pull/973)
- Add missing leading slash in the URL of put mapping endpoint
[#970](https://github.com/elastic/elasticsearch-php/pull/970)
- Fix pre 7.2 endpoint class name with aliases + reapply fix #947.
This PR solved the unexpected BC break introduce in 7.4.0 with the code
generation tool
[#968](https://github.com/elastic/elasticsearch-php/pull/968)

## Release 7.4.0

- Added the code generation for endpoints and namespaces based on
Expand Down
21 changes: 21 additions & 0 deletions docs/build/Elasticsearch/Namespaces/IndicesNamespace.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ The class defines the following methods:
* <<Elasticsearch_Namespaces_IndicesNamespaceupdateAliases_updateAliases,`updateAliases()`>>
* <<Elasticsearch_Namespaces_IndicesNamespaceupgrade_upgrade,`upgrade()`>>
* <<Elasticsearch_Namespaces_IndicesNamespacevalidateQuery_validateQuery,`validateQuery()`>>
* <<Elasticsearch_Namespaces_IndicesNamespacegetAliases_getAliases,`getAliases()`>>



Expand Down Expand Up @@ -970,3 +971,23 @@ $response = $client->indices()->validateQuery($params);
****



[[Elasticsearch_Namespaces_IndicesNamespacegetAliases_getAliases]]
.`getAliases()`
****
[source,php]
----
/*
Alias function to getAlias()
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->indices()->getAliases($params);
----
****


21 changes: 21 additions & 0 deletions docs/build/Elasticsearch/Namespaces/TasksNamespace.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ The class defines the following methods:
* <<Elasticsearch_Namespaces_TasksNamespacecancel_cancel,`cancel()`>>
* <<Elasticsearch_Namespaces_TasksNamespaceget_get,`get()`>>
* <<Elasticsearch_Namespaces_TasksNamespacelist_list,`list()`>>
* <<Elasticsearch_Namespaces_TasksNamespacetasksList_tasksList,`tasksList()`>>



Expand Down Expand Up @@ -83,3 +84,23 @@ $response = $client->tasks()->list($params);
****



[[Elasticsearch_Namespaces_TasksNamespacetasksList_tasksList]]
.`tasksList()`
****
[source,php]
----
/*
Proxy function to list() to prevent BC break since 7.4.0
*/
$params = [
// ...
];
$client = ClientBuilder::create()->build();
$response = $client->tasks()->tasksList($params);
----
****


2 changes: 1 addition & 1 deletion docs/build/renderer.index
Original file line number Diff line number Diff line change
@@ -1 +1 @@
C:19:"Sami\Renderer\Index":944:{a:3:{i:0;a:9:{s:20:"Elasticsearch\Client";s:40:"9eb6a91412561cbe36b6b571bc9851c278c85ccd";s:27:"Elasticsearch\ClientBuilder";s:40:"79318bc922f47119ea3a1b79e46c0133e42f55fe";s:37:"Elasticsearch\Namespaces\CatNamespace";s:40:"18615bfcca0fff8ff4604bfc4a7d3cb522beb842";s:41:"Elasticsearch\Namespaces\ClusterNamespace";s:40:"2ffe6325d7b0bf3c80411d845d4f2513774d120b";s:41:"Elasticsearch\Namespaces\IndicesNamespace";s:40:"18d027b1a6a041842f89ac736cd271afff70f084";s:40:"Elasticsearch\Namespaces\IngestNamespace";s:40:"230c5581ec9b9bcc011ae40c3079739ddf70a2c6";s:39:"Elasticsearch\Namespaces\NodesNamespace";s:40:"8cacfd1262fa5f34665c73972d17be0d8e243a17";s:42:"Elasticsearch\Namespaces\SnapshotNamespace";s:40:"b580a93f8731697fcf62c841ceae7399205bb8be";s:39:"Elasticsearch\Namespaces\TasksNamespace";s:40:"f6e32ea21f0b60f65a22d33228fb24599f665462";}i:1;a:1:{i:0;s:6:"master";}i:2;a:2:{i:0;s:13:"Elasticsearch";i:1;s:24:"Elasticsearch\Namespaces";}}}
C:19:"Sami\Renderer\Index":944:{a:3:{i:0;a:9:{s:20:"Elasticsearch\Client";s:40:"498c4d5be950c9bd8aea481182d66604a88e28f3";s:27:"Elasticsearch\ClientBuilder";s:40:"4a02663ab50b5d678afd8fc06f8b3840d116e9f6";s:37:"Elasticsearch\Namespaces\CatNamespace";s:40:"8d5a7545dc03dede1231b99b255e93830d82dd43";s:41:"Elasticsearch\Namespaces\ClusterNamespace";s:40:"76efc72f51c81c55d786b6f1a5b991153409e754";s:41:"Elasticsearch\Namespaces\IndicesNamespace";s:40:"45eb11f7e963d832b6cf9a07559b38ae199d010a";s:40:"Elasticsearch\Namespaces\IngestNamespace";s:40:"45161815593d106eac15f02aaab8c9b4c945389d";s:39:"Elasticsearch\Namespaces\NodesNamespace";s:40:"fbc57ed03a175214b326243dcedd39d23e0e79af";s:42:"Elasticsearch\Namespaces\SnapshotNamespace";s:40:"d85d989bb5d31c674c7e75dd9efd43bd7c9b867e";s:39:"Elasticsearch\Namespaces\TasksNamespace";s:40:"36025b3b27666f4cf825bebe058e6cd5f6079ab1";}i:1;a:1:{i:0;s:6:"master";}i:2;a:2:{i:0;s:13:"Elasticsearch";i:1;s:24:"Elasticsearch\Namespaces";}}}

0 comments on commit 44b07a1

Please sign in to comment.