-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Ingest Manager] Send kibana version on requests to package registry #71443
[Ingest Manager] Send kibana version on requests to package registry #71443
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
…h/kibana into 64868-send-kibana-version-to-registry
@ph It seems that a lot of the packages we have in https://epr-snapshot.ea-web.elastic.dev/ are excluded when This would mean that if we merge this now, Please advise how to proceed. Thanks! |
💚 Build SucceededBuild metrics@kbn/optimizer bundle module count
History
To update your PR or re-run it, just comment with: |
After looking some packages, the issue is because version check are really specifics, see https://github.com/elastic/integrations/blob/master/packages/kafka/manifest.yml#L12 So I think we can do the following:
|
…lastic#71443) * Send kibana version on requests to registry search. * Only use semver part of kibanaVersion. * Adjust test. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
…istry (#71443) (#71702) * [Ingest Manager] Send kibana version on requests to package registry (#71443) * Send kibana version on requests to registry search. * Only use semver part of kibanaVersion. * Adjust test. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com> * Adjust test to 7.x. Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@@ -47,6 +48,10 @@ export async function fetchList(params?: SearchParams): Promise<RegistrySearchRe | |||
url.searchParams.set('experimental', params.experimental.toString()); | |||
} | |||
} | |||
const kibanaVersion = appContextService.getKibanaVersion().split('-')[0]; // may be 8.0.0-SNAPSHOT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@skh Did you try if sending 8.0.0-SNAPSHOT
works? I wonder if the registry should support this somehow?
The fact that it didn't work and broke CI (because CI sends |
@skh Good to know. Will take a look at the registry to see if we should support it there. |
Summary
Implements #64868
This change adds the parameter
kibana.version
to all requests to the package registry's/search
endpoint. See also elastic/package-registry#518 for the query parameter.How to test this
Unfortunately, there is no easy way to test this, other than verifying that the integrations in Ingest Manager still appear and are installable as expected.
To see how the new parameter affects the registry's response, visit the following links and play around with the package name and the version number in the query string.
For example, a package with this
condition
in itsmanifest.yml
will not appear when the version sent is earlier than7.9.0
: