You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
…ist-filter UI fix#2479 (#2510)
* fix a bug, add validation when submitting job by json
bug issue:
#2375
* fix a bug: Job List-filter UI
issue: #2479
this issue has two parts, the first was fixed before, this commit fix the second.
* Update the code to make it more standardized
Organization Name:
Mircosoft
Short summary about the issue/question:
Submitting job by "import json" has a validataion, but sumbitting by "edit json" without.
OpenPAI Environment:
Test Case
invalid submit json :
{
"jobName": "123",
"image": "",
"authFile": "",
"dataDir": "",
"outputDir": "",
"codeDir": "",
"virtualCluster": "default",
"gpuType": "",
"retryCount": 0,
"taskRoles": [
{
"name": "123",
"taskNumber": 1,
"cpuNumber": 1,
"memoryMB": 1000,
"shmMB": 64,
"gpuNumber": 0,
"minFailedTaskCount": 1,
"minSucceededTaskCount": null,
"command": "123",
"portList": []
}
],
"jobEnvs": {},
"extras": {}
}
should alert:
Please fix the invalid parameters: image: Value must match the pattern ^\S+$
valid submit json:
{
"jobName": "123",
"image": "123",
"authFile": "",
"dataDir": "",
"outputDir": "",
"codeDir": "",
"virtualCluster": "default",
"gpuType": "",
"retryCount": 0,
"taskRoles": [
{
"name": "123",
"taskNumber": 1,
"cpuNumber": 1,
"memoryMB": 1000,
"shmMB": 64,
"gpuNumber": 0,
"minFailedTaskCount": 1,
"minSucceededTaskCount": null,
"command": "123",
"portList": []
}
],
"jobEnvs": {},
"extras": {}
}
should save values
The text was updated successfully, but these errors were encountered: