Skip to content

Commit

Permalink
[EBT] fix browser-side elasticsearch context schema (elastic#172676)
Browse files Browse the repository at this point in the history
## Summary

The `cluster_build_flavor` was propagated to the browser-side and then
used in the context, but without being explicitly defined in the schema.

this PR fixes it by properly adding the field.

(cherry picked from commit 754c298)
  • Loading branch information
pgayvallet committed Dec 7, 2023
1 parent 2a4a765 commit 0f1109d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ export class AnalyticsService {
type: 'keyword',
_meta: { description: 'The Cluster version', optional: true },
},
cluster_build_flavor: {
type: 'keyword',
_meta: { description: 'The Cluster build flavor', optional: true },
},
},
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface InjectedMetadataClusterInfo {
cluster_uuid?: string;
cluster_name?: string;
cluster_version?: string;
cluster_build_flavor?: string;
}

/** @internal */
Expand Down

0 comments on commit 0f1109d

Please sign in to comment.