Skip to content

Commit

Permalink
Add test to debug filter execution in ConditionalConnector
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielguarisa committed Sep 10, 2024
1 parent 9154187 commit 2a15de8
Show file tree
Hide file tree
Showing 5 changed files with 490 additions and 7 deletions.
5 changes: 0 additions & 5 deletions retrack/engine/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,6 @@ def __run_node(self, node_id: str, execution: Execution):
node.model_dump(by_alias=True), current_node_filter, execution=execution
)

if input_params is None or (
hasattr(input_params, "empty") and input_params.empty
):
return

# TODO: Remove this condition after adding support for kwargs in the run method for all nodes
if node.kind() == NodeKind.CONNECTOR:
input_params["context"] = execution.context
Expand Down
2 changes: 1 addition & 1 deletion retrack/engine/rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def create(
dynamic_nodes_registry: Registry,
validator_registry: Registry = validators.registry(),
raise_if_null_version: bool = False,
validate_version: bool = True,
validate_version: bool = False,
name: str = None,
):
components_registry = Rule.create_component_registry(
Expand Down
2 changes: 1 addition & 1 deletion retrack/nodes/dynamic/conditional_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def conditional_connector_factory(
input_fields[name] = BaseDynamicNode.create_sub_field(InputConnectionModel)

inputs_model = BaseDynamicIOModel.with_fields(
"CSVTableV0InputsModel", **input_fields
"ConditionalConnectorInputsModel", **input_fields
)

models = {
Expand Down
Loading

0 comments on commit 2a15de8

Please sign in to comment.