Azure / Azure/BatchExplorer

Batch Explorer dropping outputFiles when creating task

Open
#2,276 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
205
Forks
75
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Parts of JSON pasted in editor gets removed at Add Task view.

I'm trying to create/add task with outputFiles configuration, however it seems like Batch Explorer couldn't parse outputFiles section properly hence removing it.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to 'Jobs' on the left menu
2. Click on a job (in my case, jobtest)
3. Click 'Add task'
4. Click 'JSON editor'
5. Paste task json into editor
6. Switch over to classic form or 'Add and close'
7. Check the task's configuration in JSON mode and see outputFiles section is removed

**Expected behavior**
outputFiles section should be parsed and not removed

**Screenshots**
1. Pasting the task into JSON editor
![image](https://user-images.githubusercontent.com/5071602/106839586-da3c6d00-66e1-11eb-9900-eb32b9233e84.png)
2. Switch to classic form then back to JSON editor
![image](https://user-images.githubusercontent.com/5071602/106839620-ec1e1000-66e1-11eb-8f2a-93d4b41716c9.png)
3. The submitted task
![image](https://user-images.githubusercontent.com/5071602/106840139-e2e17300-66e2-11eb-9b0d-96975434bd24.png)

For comparison, here is the same task.json (but with only task ID changed) created via az-cli
![image](https://user-images.githubusercontent.com/5071602/106839817-4b7c2000-66e2-11eb-9fb3-fba62116aeb7.png)

**Logs(Click profile > View Logs > app.log, client.log)**
[logs.zip](https://github.com/Azure/BatchExplorer/files/5922912/logs.zip)

**Version (please complete the following information):**
- OS: Windows
- Version 2.8.0-stable.484

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.