Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ NOTE: As semantic versioning states all 0.y.z releases can contain breaking chan
- [#43](https://github.com/kobsio/kobs/pull/43): Fix `hosts` and `gateways` list for VirtualService in the Helm chart.
- [#44](https://github.com/kobsio/kobs/pull/44): Add default logo for teams, which is shown when a team doesn't provide a logo and improve metrics lookup for Prometheus plugin.
- [#50](https://github.com/kobsio/kobs/pull/50): Fix determination of the root span in the Jaeger plugin.
- [#54](https://github.com/kobsio/kobs/pull/54): Fix fields handling in Elasticsearch plugin.

### Changed

Expand Down
2 changes: 1 addition & 1 deletion app/src/plugins/elasticsearch/ElasticsearchLogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ const ElasticsearchLogs: React.FunctionComponent<IElasticsearchLogsProps> = ({
buckets: tmpLogsResponse.bucketsList,
documents: parsedLogs,
error: '',
fields: getFields(parsedLogs.slice(parsedLogs.length > 10 ? 10 : parsedLogs.length)),
fields: getFields(parsedLogs.length > 10 ? parsedLogs.slice(10) : parsedLogs),
hits: tmpLogsResponse.hits,
isLoading: false,
scrollID: tmpLogsResponse.scrollid,
Expand Down
5 changes: 4 additions & 1 deletion app/src/plugins/elasticsearch/ElasticsearchPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ const ElasticsearchPage: React.FunctionComponent<IPluginPageProps> = ({ name, de
// changeOptions is used to change the options for an Elasticsearch query. Instead of directly modifying the options
// state we change the URL parameters.
const changeOptions = (opts: IElasticsearchOptions): void => {
const fields = opts.fields ? opts.fields.map((field) => `&field=${field}`) : undefined;
const params = new URLSearchParams(location.search);
const fields = opts.fields
? opts.fields.map((field) => `&field=${field}`)
: params.getAll('field').map((field) => `&field=${field}`);

history.push({
pathname: location.pathname,
Expand Down