[9.0] [Fleet] Replace call to registry when deleting kibana assets for custom packages (#224886)#225288
Merged
criamico merged 1 commit intoelastic:9.0from Jun 25, 2025
Merged
Conversation
…om packages (elastic#224886) Fixes elastic#224191 ## Summary Bugfix - Replace call to registry when deleting kibana assets for packages of type "custom" and "bundled". Also replaced the call to `fetchInfo.registry` on another code path to avoid errors in the same situation - - These calls are replaced with `getPackageInfo`, that has some internal functionalities to decide when the packageInfo should be fetched from the cache, ES or the registry. - Added additional logging to the delete assets functions ### Testing - Install a custom integration that has some assets (a dashboard for instance) - Uninstall it and check that the asset is correctly removed and there are no errors: <img width="1453" alt="Screenshot 2025-06-25 at 11 02 39" src="https://github.com/user-attachments/assets/32fb07f3-2628-4e30-be92-16610043b3ae" /> ### Checklist - [ ] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios --------- Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> (cherry picked from commit 550b9d5) # Conflicts: # x-pack/platform/plugins/shared/fleet/server/services/epm/kibana/assets/install.ts # x-pack/platform/plugins/shared/fleet/server/services/epm/packages/remove.ts
1 task
Contributor
|
Pinging @elastic/fleet (Team:Fleet) |
juliaElastic
approved these changes
Jun 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto9.0:Questions ?
Please refer to the Backport tool documentation