[Security GenAI] When a "global" Knowledge Base entry is updated to "private", a duplicate "private" entry gets created and the global entry remains unchanged #197157
Describe the bug:
When a "global" Knowledge Base entry is updated to "private", a duplicate "private" entry gets created and the global entry remains unchanged. Global KB entries should have the ability to be updated to private entries.
Kibana/Elasticsearch Stack version:
8.16 BC1
Steps to reproduce:
Create an document KB entry with a sharing value of "global" in Stack Management -> AI Assistants -> Knowledge Base.
Update this document entry in the UI and set the sharing value to "private". Save.
Notice how the "global" entry remains and a new "private" entry is created.
Describe the bug: When a "global" Knowledge Base entry is updated to "private", a duplicate "private" entry gets created and the global entry remains unchanged. Global KB entries should have the ability to be updated to private entries.
Kibana/Elasticsearch Stack version: 8.16 BC1
Steps to reproduce:
Screenshots: Screen recording: https://github.com/user-attachments/assets/ac4e9f4c-0dc4-4a60-b3b7-76507044a810
Screenshot: