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

Use asset build with most specific filters #4990

Merged
merged 1 commit into from
Apr 17, 2023

Conversation

amdprophet
Copy link
Member

@amdprophet amdprophet commented Apr 17, 2023

What is this change?

Updates asset.FilteredManager to evaluate all asset build filters and returns the asset build with the most specific (highest number of filters) matching the entity. This is a breaking change as it can alter which asset build is installed on existing clusters.

Why is this change necessary?

Closes #3655
Closes #4455

Does your change need a Changelog entry?

Yes.

Do you need clarification on anything?

No.

Were there any complications while making this change?

No.

Have you reviewed and updated the documentation for this change? Is new documentation required?

The docs should be updated to describe this behaviour.
sensu/sensu-docs#4185

How did you verify this change?

I used TDD to define the behaviour before I made the change. The tests should be sufficient.

Is this change a patch?

No.

Signed-off-by: Justin Kolberg <amd.prophet@gmail.com>
Copy link
Contributor

@echlebek echlebek left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@echlebek echlebek added this to the 7.0.0 milestone Apr 17, 2023
@amdprophet amdprophet merged commit 2a2dd81 into main Apr 17, 2023
@amdprophet amdprophet deleted the most-specific-asset-filtering branch April 17, 2023 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants