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

[Fleet] Use capabilities filter on categories endpoint #1061

Merged
merged 3 commits into from
Jul 25, 2023

Conversation

nchaulet
Copy link
Member

Description

In order to get the correct count in Fleet UI we should probably filter on capabilities for /categories endpoint too.

That PR does that

Test, the capabilities filter is already unit tested

@nchaulet nchaulet added the Team:Fleet Label for the Fleet team label Jul 24, 2023
@nchaulet nchaulet requested review from jsoriano and mrodm July 24, 2023 15:44
@nchaulet nchaulet self-assigned this Jul 24, 2023
@nchaulet nchaulet linked an issue Jul 24, 2023 that may be closed by this pull request
Copy link
Contributor

@mrodm mrodm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @nchaulet , thanks for this PR.
Indeed it is needed to add these new query parameters into categories endpoint to filter the packages.

I started a PR a few days ago to include this query parameter (and spec.min/spec.max query parameters) for the categories endpoint in this other PR #1059.

In any case, this PR could be merged separately since it just adds the capabilities parameter for the endpoint.

It would be just missing a changelog entry. Something like:

  • Add new query parameter "capabilities" in categories endpoint #1061

@nchaulet nchaulet requested a review from mrodm July 25, 2023 12:22
CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Mario Rodriguez Molins <mario.rodriguez@elastic.co>
@nchaulet nchaulet requested a review from mrodm July 25, 2023 12:43
@elasticmachine
Copy link

💚 Build Succeeded

History

cc @nchaulet

@mrodm mrodm changed the title [Fleet] Use capacities filter on categories endpoint [Fleet] Use capabilities filter on categories endpoint Jul 25, 2023
@nchaulet nchaulet merged commit 07b9cc0 into main Jul 25, 2023
@nchaulet nchaulet deleted the filter-capabilities-categories-endpoint branch July 25, 2023 13:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Team:Fleet Label for the Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Search packages based on available features
3 participants