Graylog2 / Graylog2/graylog2-server

Duplicate custom field in alerting is not accepted

Open
#6,059 0 comments 0 reactions 0 assignees View on GitHub
alerting bug triaged
Dominant language
Java
Stars
8.1k
Forks
1.1k
Avg merge
1d 20h
Merged PRs (30d)
217

Description

## Expected Behavior
I expect a duplicate field to be flagged as a validation error.

## Current Behavior
As soon as the new field name is equal to an existing one, the DOM element disappears.

## Possible Solution
Very likely the two components use the same react key, so the DOM element disappears.

## Steps to Reproduce (for bugs)
1. Create an alert definition, enter one field with any name.
2. Create a second custom field, try to enter the same name.

## Context
![duplicate_field_removed](https://user-images.githubusercontent.com/52014/60437154-06426300-9c0e-11e9-8e35-0b19a3facb53.gif)

## Your Environment

* Graylog Version: 3.1 master, alert-definitions-ui

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.