Skip to content

[8.x] [Rule Migration] Add PackageClient to fetch integrations (#207197)#207391

Merged
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-207197
Jan 21, 2025
Merged

[8.x] [Rule Migration] Add PackageClient to fetch integrations (#207197)#207391
kibanamachine merged 1 commit intoelastic:8.xfrom
kibanamachine:backport/8.x/pr-207197

Conversation

@kibanamachine
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

)

## Summary

Awaiting the changes to the EPR API to include datasets we temporarily
included a JSON file to simulate the expected outcome so we could move
forward while waiting.

Since the changes is now done, the calls to
https://epr.elastic.co/search? now returns data_streams in their
responses so this PR replaces the temp JSON with the proper
PackageClient implementation.

Tested a few migrations with both prebuilt rule matches and without, and
seems to be working as intended. The integration count also seems to be
consistent with what to be expected.

(cherry picked from commit 1e5abbe)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jan 21, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) January 21, 2025 15:52
@kibanamachine kibanamachine merged commit 5c3e96f into elastic:8.x Jan 21, 2025
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

cc @P1llus

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.

3 participants