-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bug] Fix issue with partition mapping handling in the EntityMatches …
…condition (#25278) ## Summary & Motivation As title. For self-dependent assets, the inference logic that determines the direction we should map partitions in does not work for self-dependent assets, as these are always upstream of themselves, meaning from_key will always be a parent of to_key, and we will always take the first branch. This solves the issue by adding an optional direction parameter to the EntityMatches condition, and threads that through to the underlying mapping function, allowing us to determine what direction we should map our partitions in. ## How I Tested These Changes ## Changelog Fixed an issue which could cause incorrect evaluation results when using self-dependent partition mappings with `AutomationConditions` that operate over dependencies.
- Loading branch information
1 parent
dfb8e60
commit abf0d54
Showing
5 changed files
with
94 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters