elastic / kibana

Your window into the Elastic Stack
https://www.elastic.co/products/kibana
Other
19.73k stars 8.14k forks source link

Duplicate name error in index template creation is signaled only at the end of the wizard #105822

Open monfera opened 3 years ago

monfera commented 3 years ago

Kibana version: 7.14

Elasticsearch version:

Server OS version:

Browser version:

Browser OS version:

Original install method (e.g. download page, yum, from source, etc.):

Describe the bug:

Steps to reproduce:

  1. Create an index template with a duplicate name
  2. Go through the pages
  3. You only get an error once you want to save it

Expected behavior: It should be like when an index pattern is missing: it should stop the user right then and there on the suboptimally named "Logistics" page

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

Any additional context:

cc @yuliacech

elasticmachine commented 3 years ago

Pinging @elastic/kibana-stack-management (Team:Stack Management)

monfera commented 3 years ago

There is a likely related issue: changing the name from a duplicate name to a legit name doesn't remove the error, and it doesn't even yield the same treatment that adding the original bad name yielded (which did NOT show an error until trying to save it):

https://user-images.githubusercontent.com/1548516/125839810-e6c984ff-357b-46db-869f-ccfa32c2ffa2.mp4

Of course, there's some chance that some other user, or the user herself/himself creates an identically named index template in another browser tab. So the validation at the end is needed. But it's still better UX to validate early, at the location and time of specifying the name

fdartayre commented 3 years ago

To be noted, it is possible to create index patterns with the same name:

This doesn't appear to be very consistent.

elasticmachine commented 4 days ago

Pinging @elastic/kibana-management (Team:Kibana Management)