Support Dynamic References in Dataset Upload Block registration_tags input
#1720
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.
So far, this PR implements the following tests to support each given requirement to enable
registration_tagsto accept both strings and references to other strings and references to other arrays, which will be flattened appropriately.Requirement 1: Should Resolve Referenced Strings
Pattern: ["literal1", "$inputs.string_tag"] where string_tag = "some_string_value" → ["literal1", "some_string_value"]
Schema Parsing Tests (test_schema_parser.py)
Parameter Resolution Tests (test_step_input_assembler.py)
Block-Level Tests (test_v2.py)
Integration Tests (test_workflow_with_active_learning_sink.py)
Requirement 2: Should Resolve Referenced Arrays (with Flattening)
Pattern: ["literal1", "$inputs.string_tag"] where string_tag = ["value1", "value2"] → ["literal1", "value1", "value2"]
Parameter Resolution Tests (test_step_input_assembler.py)
Requirement 3: Should Resolve Literal Strings in Array (Baseline)
Pattern: ["literal1", "A string"] → ["literal1", "A string"]
Schema Parsing Tests (test_schema_parser.py)
Block-Level Tests (test_v2.py)
Requirement 4: Should Resolve Just String
Pattern: reference_tags = "literal1" → ["literal1"]
Schema Parsing Tests (test_schema_parser.py)
Block-Level Tests (test_v2.py)
Requirement 5: Should Resolve Just Selector That's an Array
Pattern: reference_tags = $inputs.string_tag where string_tag = ["value1", "value2"] → ["value1", "value2"]
Schema Parsing Tests (test_schema_parser.py)
Parameter Resolution Tests (test_step_input_assembler.py)
Block-Level Tests (test_v2.py)