Skip to content
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

[Infra UI] Settings doesn't handle errors #190083

Open
neptunian opened this issue Aug 7, 2024 · 7 comments
Open

[Infra UI] Settings doesn't handle errors #190083

neptunian opened this issue Aug 7, 2024 · 7 comments
Labels
bug Fixes for quality problems that affect the customer experience needs-refinement A reason and acceptance criteria need to be defined for this issue RBAC Role Based Access Control stale Used to mark issues that were closed for being stale Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team

Comments

@neptunian
Copy link
Contributor

neptunian commented Aug 7, 2024

When selecting one of the settings registered using uiSettings, errors aren't handled if the request fails and instead a success message is shown and changes are not saved. In this case the user doesn't have the advanced settings privilege.

  • Inputs for fields that are not accessible should be disabled. You can use the advancedSettings.save UI capability to test for this on the front end.
  • Requests that fail should display the error
Screen.Recording.2024-08-07.at.12.29.39.PM.mov

Related:

@neptunian neptunian added the Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team label Aug 7, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services)

@neptunian neptunian changed the title [Infra UI] Settings doesn't handle failed errors [Infra UI] Settings doesn't handle errors Aug 7, 2024
@neptunian neptunian added the bug Fixes for quality problems that affect the customer experience label Aug 7, 2024
@smith smith added the needs-refinement A reason and acceptance criteria need to be defined for this issue label Aug 7, 2024
@crespocarlos
Copy link
Contributor

@roshan-elastic we need to prioritize this

@roshan-elastic
Copy link

Cheers @crespocarlos - put it v high on the backlog

@crespocarlos
Copy link
Contributor

I wonder if we should hide settings from advance settings in this case.

@crespocarlos crespocarlos added the RBAC Role Based Access Control label Aug 23, 2024
@crespocarlos
Copy link
Contributor

APM handles the error, but I think we should display a better message

Image

Whatever we do here we should make sure it's consistent with APM

@smith
Copy link
Contributor

smith commented Aug 23, 2024

Whatever we do here we should make sure it's consistent with APM

...and they both should be consistent with the global advanced settings page.

I wonder if we should hide settings from advance settings in this case.

It probably should disable them with a note, similar to when you use uiSettings.overrides in your kibana.yml:

CleanShot 2024-08-23 at 15 22 34@2x

@crespocarlos crespocarlos changed the title [Infra UI] Settings doesn't handle errors [Infra UI][Serverless] Settings doesn't handle errors Aug 26, 2024
@crespocarlos crespocarlos changed the title [Infra UI][Serverless] Settings doesn't handle errors [Infra UI] Settings doesn't handle errors Aug 26, 2024
@botelastic
Copy link

botelastic bot commented Feb 22, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@botelastic botelastic bot added the stale Used to mark issues that were closed for being stale label Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience needs-refinement A reason and acceptance criteria need to be defined for this issue RBAC Role Based Access Control stale Used to mark issues that were closed for being stale Team:obs-ux-infra_services Observability Infrastructure & Services User Experience Team
Projects
None yet
Development

No branches or pull requests

5 participants