|
| 1 | +[[release-notes-8.0.5]] |
| 2 | +== Release notes v8.0.5 |
| 3 | + |
| 4 | +[discrete] |
| 5 | +=== Bug fixes |
| 6 | + |
| 7 | +- https://github.com/elastic/elasticsearch-net/pull/7171[#7171] Fix code-gen for IndexTemplate (issue: https://github.com/elastic/elasticsearch-net/issues/7161[#7161]) |
| 8 | +- https://github.com/elastic/elasticsearch-net/pull/7181[#7181] Fix MultiGet response deserialization for non-matched IDs (issue: https://github.com/elastic/elasticsearch-net/issues/7169[#7169]) |
| 9 | +- https://github.com/elastic/elasticsearch-net/pull/7182[#7182] Implement Write method on SourceConfigConverter (issue: https://github.com/elastic/elasticsearch-net/issues/7170[#7170]) |
| 10 | +- https://github.com/elastic/elasticsearch-net/pull/7205[#7205] Update to Elastic.Transport to 0.4.6 which improves the version detection used by the REST API compatibility Accept header |
| 11 | + |
| 12 | +[discrete] |
| 13 | +=== Breaking changes |
| 14 | + |
| 15 | +In the course of fixing the code-generation for index templates to avoid serialization failures, some breaking changes were introduced. |
| 16 | + |
| 17 | +[discrete] |
| 18 | +==== IndexTemplate |
| 19 | + |
| 20 | +`IndexTemplate` forms part of the `IndexTemplateItem` included on `GetIndexTemplateResponse`. |
| 21 | + |
| 22 | +* The type for the `ComposedOf` property has changed from `IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name>` to `IReadOnlyCollection<string>` |
| 23 | +* The type for the `IndexPatterns` property has changed from `Elastic.Clients.Elasticsearch.Names` to `IReadOnlyCollection<string>` |
| 24 | + |
| 25 | +*_Before_* |
| 26 | + |
| 27 | +[source,csharp] |
| 28 | +---- |
| 29 | +public sealed partial class IndexTemplate |
| 30 | +{ |
| 31 | + ... |
| 32 | + public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name> ComposedOf { get; init; } |
| 33 | + public Elastic.Clients.Elasticsearch.Names IndexPatterns { get; init; } |
| 34 | + ... |
| 35 | +} |
| 36 | +---- |
| 37 | + |
| 38 | +*_After_* |
| 39 | + |
| 40 | +[source,csharp] |
| 41 | +---- |
| 42 | +public sealed partial class IndexTemplate |
| 43 | +{ |
| 44 | + ... |
| 45 | + public IReadOnlyCollection<string> ComposedOf { get; init; } |
| 46 | + public IReadOnlyCollection<string> IndexPatterns { get; init; } |
| 47 | + ... |
| 48 | +} |
| 49 | +---- |
| 50 | + |
| 51 | +[discrete] |
| 52 | +==== SimulateIndexTemplateRequest |
| 53 | + |
| 54 | +* The type for the `ComposedOf` property has changed from `IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name>` to `IReadOnlyCollection<string>` |
| 55 | + |
| 56 | +*_Before_* |
| 57 | + |
| 58 | +[source,csharp] |
| 59 | +---- |
| 60 | +public sealed partial class SimulateIndexTemplateRequest |
| 61 | +{ |
| 62 | + ... |
| 63 | + public IReadOnlyCollection<Elastic.Clients.Elasticsearch.Name>? ComposedOf { get; set; } |
| 64 | + ... |
| 65 | +} |
| 66 | +---- |
| 67 | + |
| 68 | +*_After_* |
| 69 | + |
| 70 | +[source,csharp] |
| 71 | +---- |
| 72 | +public sealed partial class SimulateIndexTemplateRequest |
| 73 | +{ |
| 74 | + ... |
| 75 | + public IReadOnlyCollection<string>? ComposedOf { get; set; } |
| 76 | + ... |
| 77 | +} |
| 78 | +---- |
| 79 | + |
| 80 | +[discrete] |
| 81 | +==== SimulateIndexTemplateRequestDescriptor and SimulateIndexTemplateRequestDescriptor<T> |
| 82 | + |
| 83 | +The `ComposedOf` method signature has changed to accept a parameter of `ICollection<string>?` instead of |
| 84 | +`ICollection<Elastic.Clients.Elasticsearch.Name>?`. |
| 85 | + |
| 86 | +*_Before_* |
| 87 | + |
| 88 | +[source,csharp] |
| 89 | +---- |
| 90 | +public SimulateIndexTemplateRequestDescriptor<TDocument> ComposedOf(ICollection<Elastic.Clients.Elasticsearch.Name>? composedOf) |
| 91 | +---- |
| 92 | + |
| 93 | +*_After_* |
| 94 | + |
| 95 | +[source,csharp] |
| 96 | +---- |
| 97 | +public SimulateIndexTemplateRequestDescriptor<TDocument> ComposedOf(ICollection<string>? composedOf) |
| 98 | +---- |
0 commit comments