import-beats: Set var properties#334
Conversation
|
I'm afraid that there is a bug in the While unpacking in the title: Openmetrics collector metrics
release: beta
type: metrics
streams:
- input: openmetrics/metrics
vars:
- name: hosts
type: text
title: Hosts
multi: true
required: true
show_user: true
default:
- localhost:9090
- name: metrics_filters.exclude
type: text
title: Metrics Filters Exclude
multi: true
required: true
show_user: true
default: []The problem is with I would expect here |
|
I submitted an issue: elastic/go-ucfg#159 |
|
Overall the change LGTM, but I would like to have it split up into 2 PR's. One for the go mod updates and the rest if possible so we can separate the two. +1 on getting vendor check as part of mage check. How many places do we have where we have |
Ok, but it will take time to split.
Ok, will do.
I can't give you a straightforward answer at the moment, how many items have
I enforced using the forked branch, but I would like to see a quick fix or workaround pushed. |
|
PR for processing |
ruflin
left a comment
There was a problem hiding this comment.
LGTM.
It is great to ahve some default title inside. We should make sure in our package checklist somewhere is to check it looks good in the UI.
| } | ||
|
|
||
| func toVariableTitle(name string) string { | ||
| name = strings.ReplaceAll(name, "_", " ") |
There was a problem hiding this comment.
We should make sure in our package checklist somewhere is to check it looks good in the UI.
https://github.com/elastic/package-registry/blob/master/CONTRIBUTING.md
Point no 7: Review titles and descriptions in manifest files
| @@ -2,9 +2,9 @@ | |||
| github.com/blang/semver | |||
| # github.com/davecgh/go-spew v1.1.0 | |||
| github.com/davecgh/go-spew/spew | |||
| # github.com/elastic/go-ucfg v0.7.0 | |||
| # github.com/elastic/go-ucfg v0.8.3 => github.com/mtojek/go-ucfg v0.8.4-0.20200409161607-b87b280107a8 | |||
There was a problem hiding this comment.
Lets not forget to revert this when your PR gets merged.
This PR adjusts the
import-beatsscript:Changes:
[]map[string]interface{}withutil.Variablefor having properties defined in ordergo-ucfg(issue: panic: reflect: call of reflect.Value.Type on zero Value go-ucfg#159)docs/api/package.jsondue to changes inutil.Dataset(failingmage test)Closes: #318