Skip to content

Simplify dependency ready filters to use IsAvailable directly#674

Open
mandre wants to merge 1 commit intok-orc:mainfrom
shiftstack:ensure-deps-available
Open

Simplify dependency ready filters to use IsAvailable directly#674
mandre wants to merge 1 commit intok-orc:mainfrom
shiftstack:ensure-deps-available

Conversation

@mandre
Copy link
Collaborator

@mandre mandre commented Feb 5, 2026

Since IsAvailable implies Status.ID is set, the redundant check for
Status.ID != nil can be removed. Made IsAvailable generic to allow
passing it directly as a filter function, eliminating boilerplate
lambdas across all controllers.

This makes the code more concise and ensures consistent availability
checking for all dependencies.

@github-actions github-actions bot added the semver:major Breaking change label Feb 5, 2026
@mandre
Copy link
Collaborator Author

mandre commented Feb 5, 2026

I'll split this PR into 2 changes to avoid the fix being part of a breaking change.

@mandre
Copy link
Collaborator Author

mandre commented Feb 5, 2026

Backward compatible PR submitted here. I'll repurpose this one for the cleanup, that we'll merge later.

Since IsAvailable implies Status.ID is set, the redundant check for
Status.ID != nil can be removed. Made IsAvailable generic to allow
passing it directly as a filter function, eliminating boilerplate
lambdas across all controllers.

This makes the code more concise and ensures consistent availability
checking for all dependencies.
@mandre mandre force-pushed the ensure-deps-available branch from 0e71cc5 to 712780b Compare February 5, 2026 15:54
@mandre mandre changed the title Ensure port dependencies are available Simplify dependency ready filters to use IsAvailable directly Feb 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver:major Breaking change

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant