elastic / package-registry

Elastic Package Registry (EPR)
Other
9 stars 68 forks source link

Implement content packages discovery #1235

Closed jsoriano closed 1 month ago

jsoriano commented 1 month ago

Fixes https://github.com/elastic/package-registry/issues/1229.

Add a new discovery parameter to /search and /categories endpoints, to filter packages based on their discovery fields. It supports a list of fields that has to be passed in the form fields:<comma-separated list of fields>. To pass the filter, packages must include discovery fields in their manifest, and all of them must be included in the list included in the parameter.

For example the following request will return prerelease packages of content type, whose discovery subfields are a subset of ['http.method', 'apache.status.total_bytes'].

GET /search?prerelease=true&type=content&discovery=fields:http.method,apache.status.total_bytes
jsoriano commented 1 month ago

@mrodm do you know how the search-index-all-full.json can be regenerated?

I would like to add content packages there.

mrodm commented 1 month ago

@mrodm do you know how the search-index-all-full.json can be regenerated?

I would like to add content packages there.

The last time I had to add new packages (and update this file), I did it manually. I don't know if there is any automated way to achieve this, sorry :(

elasticmachine commented 1 month ago

:green_heart: Build Succeeded

History

cc @jsoriano