Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EPM] fix /packages response to return older packages #62623

Merged
merged 3 commits into from
Apr 6, 2020

Conversation

neptunian
Copy link
Contributor

@neptunian neptunian commented Apr 6, 2020

Fixess #61679

The handler for api/ingest_manager/epm/packages compared against packages from the registry using the id which is {pkgName}-{version}. This caused packages that were not the latest version that were installed to not show up in the installed tab.

  • changes handler to find all epm packages instead of creating search objects of the entire registry package list of only the latest packages to search through saved objects
  • uses name instead of id to compare if a package is installed in saved objects

Test:

  1. POST an old version of nginx:
    POST http://localhost:5603/ssg/api/ingest_manager/epm/packages/nginx-0.0.1

  2. Go to installed packages and it should show up where before it was not

Screen Shot 2020-04-06 at 11 21 51 AM

@neptunian neptunian added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:EPM Fleet team's Elastic Package Manager (aka Integrations) project v7.8 Team:Fleet Team label for Observability Data Collection Fleet team labels Apr 6, 2020
@neptunian neptunian requested review from jfsiii and a team April 6, 2020 14:30
@neptunian neptunian self-assigned this Apr 6, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ingest-management (Feature:EPM)

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@neptunian neptunian merged commit ee02df4 into elastic:master Apr 6, 2020
neptunian added a commit to neptunian/kibana that referenced this pull request Apr 6, 2020
* compare package list by name

* use the internal property, adding as saved object attribute

* remove HiddenPackages type
@rayafratkina rayafratkina added v7.8.0 and removed v7.8 labels Apr 6, 2020
neptunian added a commit that referenced this pull request Apr 6, 2020
* compare package list by name

* use the internal property, adding as saved object attribute

* remove HiddenPackages type
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:EPM Fleet team's Elastic Package Manager (aka Integrations) project release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants