Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

mt-index-cat tags valid filter #817

Merged
merged 4 commits into from
Jan 11, 2018
Merged

Conversation

Dieterbe
Copy link
Contributor

@Dieterbe Dieterbe commented Jan 10, 2018

if approved, i'll port the changes to schema lib also of course.

@Dieterbe Dieterbe force-pushed the mt-index-cat-tags-valid-filter branch from dc1a377 to 8ede421 Compare January 10, 2018 16:23
@@ -157,6 +172,22 @@ func main() {
for _, d := range defs {
if prefix == "" || strings.HasPrefix(d.Metric, prefix) {
if substr == "" || strings.Contains(d.Metric, substr) {
if tags != "" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unimportant: the above two ifs could also be inverted and result in continue if true, just to reduce the number of nested blocks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, adjusted. looks better now!

Copy link
Contributor

@replay replay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Dieterbe Dieterbe merged commit 773b420 into master Jan 11, 2018
Dieterbe added a commit to raintank/schema that referenced this pull request Jan 11, 2018
@Dieterbe Dieterbe deleted the mt-index-cat-tags-valid-filter branch September 18, 2018 09:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants