elastic / kibana

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

[Snapshot & Restore] Improve validation errors display #187065

Open yuliacech opened 5 months ago

yuliacech commented 5 months ago

When there is a validation error on the repository creation endpoint, the error message has duplicate information in it. That is probably caused by the schema in this file. We should improve this display, so that the error is only displayed once.

Steps to reproduce

  1. Start Kibana and ES with yarn es snapshot --license=trial -E path.repo=/tmp/es-backups and yarn start
  2. Navigate to repos list and try creating a new repo
  3. Fill data that would fail validation, for example, type in a repo name that is longer that 1000 chars.
  4. Check the error message when trying to save the repo.

    Screenshot

Screenshot 2024-06-27 at 14 17 52
elasticmachine commented 5 months ago

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