-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define all the error cases and build UI for it #156529
Comments
Designs will be added to this issue |
Error cases should include validation on the configure step, API key / yml generation failure in the install shipper step, and progress errors in the Collect Logs step (status page). |
Hey @isaclfreire, I have a case where our dataset generator fails and users don't have a hint on why they can not move to the following step, here is a video containing such case Screen.Recording.2023-06-01.at.17.08.24.movHow can we give users some hint on what is happening? I'm afraid they can get frustrated if our generator fails and they don't have anything in the dataset name. I think this is also aplicable to other advanced settings with required fields. |
I think that we should either be able to create a dataset name at all times or have a default one, or both. In this use case, it seems that the user didn't have enough information about what is valid and they get a warning / error because something went wrong on our end. We could also mark the dataset name as required, with the default Eui states instead of a callout. |
@isaclfreire now the we have moved dataset name input out of advanced settings we could go with @gbamparop approach that is letting know users visually that they are missing a required field. IMO all the required inputs that are hidden in advanced settings should have a default value (like the namespace) rather than a autogenerated value (because things could fail in the way and it won't be clear why they are failing or why they cannot continue in the flow) |
Agreed! |
Pinging @elastic/apm-ui (Team:APM) |
Another error case @yngrdyn was able to identify is when users clear the 'dataset name' field in the first step of custom logs onboarding. They shouldn't be able to move forward until they define a name, since the field is required. Here's how the error message should look like: |
Closes #156529. `Dataset name` is a field that is auto populated based on the `Log file path`, if the user deletes the autogenerated value they cannot continue with the next step but before this changes there were no indicative of why they cannot continue. ### Changes - Added validation function to datasetName field. - Added i18n error. #### Before <img width="2199" alt="image" src="https://github.com/elastic/kibana/assets/1313018/24cc166e-c143-4b35-9372-0fcdb4e78f4a"> #### After <img width="2200" alt="image" src="https://github.com/elastic/kibana/assets/1313018/72302aa6-1597-439b-8d80-88e7debf1010">
Closes elastic#156529. `Dataset name` is a field that is auto populated based on the `Log file path`, if the user deletes the autogenerated value they cannot continue with the next step but before this changes there were no indicative of why they cannot continue. ### Changes - Added validation function to datasetName field. - Added i18n error. #### Before <img width="2199" alt="image" src="https://github.com/elastic/kibana/assets/1313018/24cc166e-c143-4b35-9372-0fcdb4e78f4a"> #### After <img width="2200" alt="image" src="https://github.com/elastic/kibana/assets/1313018/72302aa6-1597-439b-8d80-88e7debf1010">
Closes elastic#156529. `Dataset name` is a field that is auto populated based on the `Log file path`, if the user deletes the autogenerated value they cannot continue with the next step but before this changes there were no indicative of why they cannot continue. ### Changes - Added validation function to datasetName field. - Added i18n error. #### Before <img width="2199" alt="image" src="https://github.com/elastic/kibana/assets/1313018/24cc166e-c143-4b35-9372-0fcdb4e78f4a"> #### After <img width="2200" alt="image" src="https://github.com/elastic/kibana/assets/1313018/72302aa6-1597-439b-8d80-88e7debf1010">
Think through all the potential error cases that can happen during onboarding and figure out what we show users.
The text was updated successfully, but these errors were encountered: