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

[8.15] [Obs AI Assistant] Fix AI Assistant Settings when plugin disabled (#188160) #188347

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.15:

Questions ?

Please refer to the Backport tool documentation

…astic#188160)

## Summary

Fixes elastic#187977

AI Assistant settings page doesn't load when the plugin is disabled.

### Changes

- fixes not checking for object before accessing property
- simplifies message so it makes sense for all possible states (read
only, disabled in space, plugin disabled)

### Testing steps
- create a Viewer user
- go to Stack Management -> Advanced Settings -> AI Assistant
- page should load with message that the feature is disabled

<img width="804" alt="Screenshot 2024-07-11 at 4 57 59 PM"
src="https://github.com/user-attachments/assets/98cf85a2-913f-43fd-a5f0-df4494faaf1f">

(cherry picked from commit d4ba879)
@kibanamachine kibanamachine merged commit 269f0bc into elastic:8.15 Jul 15, 2024
23 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
aiAssistantManagementSelection 45.4KB 45.4KB -8.0B

cc @neptunian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants