[PLT-3337] SDK - Workflow Management Remove input tests #2031
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Format updated by linter
Description
In the SDK, remove a limitation in workflow management so nodes can accept multiple inputs from different nodes, and not just from initial nodes.
Tests:
In the Labelbox platform, create a new project
For 1. change the workflow like the following:
Create a second project
From the SDK, update the values and run the following scripts:
Fixes PLT-3337
Type of change
Please delete options that are not relevant.
All Submissions
New Feature Submissions
Changes to Core Features
Note
Enables multi-input nodes from any predecessors by relaxing validation rules.
WorkflowValidator.validate_node_connectionsto remove the check that all predecessors must be initial nodes; still enforces at least one incoming for non-initial and at least one outgoing for non-terminal nodestest_workflow_allows_multiple_incoming_from_non_initial_nodesintests/integration/test_workflow.pytests/unit/test_workflow_utils_validation.pyto verify multiple incoming from non-initial nodes is allowed and that missing incoming connections are still flaggedWritten by Cursor Bugbot for commit fb13a5f. This will update automatically on new commits. Configure here.