Skip to content

[8.x] [Entity Analytics] [Entity Store] Refactor entity store enablement (server side) (#199638)#200873

Closed
tiansivive wants to merge 1 commit intoelastic:8.xfrom
tiansivive:backport/8.x/pr-199638
Closed

[8.x] [Entity Analytics] [Entity Store] Refactor entity store enablement (server side) (#199638)#200873
tiansivive wants to merge 1 commit intoelastic:8.xfrom
tiansivive:backport/8.x/pr-199638

Conversation

@tiansivive
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

…erver side) (elastic#199638)

## Summary

This PR adds 2 new endpoints regarding enablement of the Entity Store:
* `api/entity_store/enable`, which initializes entity engines for both
`user` and `host` entities
* `api/entity_store/status`, which computes a global store status based
on the individual engine status

In addition, running initialization of multiple engines in parallel is
now allowed.

### How to test

1. Use dev tools to call `POST kbn:/api/entity_store/enable`
2. Check that two engines were created and that the status is
`installing` by calling `GET kbn:/api/entity_store/status`
3. Wait a few seconds and keep calling the `status` endpoint. Once
initialization finishes, the status should switch to `running`

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 3757e64)

# Conflicts:
#	oas_docs/output/kibana.serverless.yaml
#	oas_docs/output/kibana.yaml
@tiansivive tiansivive added the backport This PR is a backport of another PR label Nov 20, 2024
@tiansivive tiansivive enabled auto-merge (squash) November 20, 2024 09:48
@tiansivive tiansivive closed this Nov 20, 2024
auto-merge was automatically disabled November 20, 2024 09:49

Pull request was closed

@tiansivive tiansivive deleted the backport/8.x/pr-199638 branch November 20, 2024 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant