Skip to content

Fix: Fail the plan command if the selector expression doesn't return any models#3968

Merged
izeigerman merged 1 commit intomainfrom
fix-fail-plan-on-empty-selector
Mar 11, 2025
Merged

Fix: Fail the plan command if the selector expression doesn't return any models#3968
izeigerman merged 1 commit intomainfrom
fix-fail-plan-on-empty-selector

Conversation

@izeigerman
Copy link
Collaborator

To prevent unexpected behavior and confusing errors we should fail the plan immediately if we discover that the selector expressions provided by the user don't return any models.

@izeigerman izeigerman requested a review from a team March 11, 2025 00:02
@izeigerman izeigerman force-pushed the fix-fail-plan-on-empty-selector branch from 3b95a5d to 168822f Compare March 11, 2025 00:33
Copy link
Contributor

@tobymao tobymao left a comment

Choose a reason for hiding this comment

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

you didn't want to do this at the selector level and check each node?

@izeigerman
Copy link
Collaborator Author

izeigerman commented Mar 11, 2025

you didn't want to do this at the selector level and check each node?

@tobymao, I think we want to warn at the selector level but decision to fail should be made downstream IMHO

@izeigerman izeigerman merged commit 02bf280 into main Mar 11, 2025
22 checks passed
@izeigerman izeigerman deleted the fix-fail-plan-on-empty-selector branch March 11, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants