Open peluja1012 opened 4 months ago
Pinging @elastic/security-solution (Team: SecuritySolution)
Test env: https://p.elstc.co/paste/TTt5LqFd#snUhCFJSfCU-cHM+srgWhfaZRIrpMpcH6HBAk6AVFPa
The fields duplicated after a new space created and landing on a Security Solution's page. (It fetched 200 fields When landing in the anonymization settings tab without further interaction. I used Devtools to check the count of the index, it did have 200 fields in it.) Therefore, I'm looking into the code where the index is initialised and written.
Current spaces with duplicated fields:
Space s2 with duplicated fields:
Space s2 with No duplicated fields:
I was able to reproduce this sometimes after a new space created in https://new-bc3.kb.us-west2.gcp.elastic-cloud.com/ and landing on http://localhost:5601/s/{spaceId}/app/security/get_started.
It is not necessary to land on the AI settings page to have the fields created twice, so it is very likely that there is something unexpected happened when initialising anonymization fields after a new space get created.
Describe the bug: When new Kibana Spaces are created consecutively, the AI Assistant Anonymization settings tab displays duplicate available anonymization fields.
Kibana/Elasticsearch Stack version: v 8.15.0 BC3
Steps to reproduce: