elastic / elastic/package-spec

[discuss] Sorting of stream configs

Open
#168 8 comments 0 reactions 0 assignees View on GitHub
Team:Integrations
Dominant language
Go
Stars
20
Forks
93
Avg merge
15h 10m
Merged PRs (30d)
12

Description

Today when creating an integration configs, the streams configs inside an input are sorted alphabetical. Unfortunately in the case of the system package, it means on top configs show up like core or entropy which are not used that often. Instead `memory` and others should be at the top.

To solve this issue I'm proposing we add support for an optional "priority/order" config option in the [stream definition](https://github.com/elastic/package-registry/blob/master/dev/packages/example/reference/1.0.0/dataset/reference/manifest.yml#L20).

This would then look similar to:

```
streams:
- input: logs
priority: 1
```

Kibana would then sort first based on priority and second alphabetical. The ones without a priority would go at the end.

![Screenshot 2020-06-17 at 10 21 08](https://user-images.githubusercontent.com/244900/84874095-62530100-b084-11ea-8ba1-fbf3a816793b.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.