Add JSON file import support to task arguments dialog#1892
Open
Mbeaulne wants to merge 1 commit into03-04-bulk_argument_uploadfrom
Open
Add JSON file import support to task arguments dialog#1892Mbeaulne wants to merge 1 commit into03-04-bulk_argument_uploadfrom
Mbeaulne wants to merge 1 commit into03-04-bulk_argument_uploadfrom
Conversation
8 tasks
🎩 To tophat this PR:You can add the following URL parameter to your browser to tophat this PR: |
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
8 tasks
482ea15 to
64c9574
Compare
This was referenced Mar 4, 2026
64c9574 to
f1cd6c2
Compare
3 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Description
Added JSON file import support to the task arguments dialog alongside existing CSV import functionality. Users can now import both CSV and JSON files to populate pipeline input values. The JSON import supports single objects for direct value mapping and arrays of objects for bulk input mode. Non-string values (objects, arrays, numbers) are automatically JSON.stringified for proper handling.
Enhanced the bulk value parser to be structure-aware, preventing incorrect splitting on commas inside JSON objects, arrays, or quoted strings during bulk input processing.
Related Issue and Pull requests
Type of Change
Checklist
Screenshots (if applicable)
Test Instructions
JSON used for testing
[ { "experiment_key": "12345", "predictions": "1234", "config": { "dslName": "experiment_a", "lr": 0.01, "epochs": 100 }, "tags": ["production", "v2"], "metadata": { "owner": "alice", "team": "ml-platform", "priority": 1 }, "script": "import torch\nmodel = torch.load('checkpoint.pt')\nresults = model.evaluate(dataset='train')" }, { "experiment_key": "1", "predictions": "4", "config": { "dslName": "experiment_b", "lr": 0.001, "epochs": 200 }, "tags": ["staging", "v2"], "metadata": { "owner": "bob", "team": "ml-platform", "priority": 2 }, "script": "from sklearn.ensemble import RandomForestClassifier\nclf = RandomForestClassifier(n_estimators=100, max_depth=5)\nclf.fit(X_train, y_train)" }, { "experiment_key": "2", "predictions": "6", "config": { "dslName": "experiment_c", "lr": 0.01, "epochs": 100, "scheduler": { "type": "cosine", "warmup_steps": 500 } }, "tags": ["production", "v3"], "metadata": { "owner": "alice", "team": "recommendations", "priority": 1 }, "script": "params = {\"batch_size\": 32, \"dropout\": 0.1}\nrun_training(**params)" }, { "experiment_key": "9", "predictions": "5", "config": { "dslName": "experiment_d", "lr": 0.02, "epochs": 50, "scheduler": { "type": "linear", "warmup_steps": 100 } }, "tags": ["canary"], "metadata": { "owner": "carol", "team": "recommendations", "priority": 3 }, "script": "data = [x for x in range(100) if x % 2 == 0]\nprint(f'filtered {len(data)} items')" } ]{"input1": "value1", "input2": "value2"}[{"input1": "a"}, {"input1": "b"}]{"config": {"lr": 0.01, "epochs": 100}}Additional Comments
The import button now accepts both
.csvand.jsonfiles and dynamically handles the appropriate parsing logic based on file extension. The UI messaging adapts to show whether CSV or JSON data was imported, including appropriate terminology for ignored columns/keys.