PKUHPC / OpenSCOW

Super Computing On Web
https://www.pkuscow.com/
Mulan Permissive Software License, Version 2
219 stars 49 forks source link

fix: 增加获取交互式应用和作业模版JSON.parse错误的处理 #1417

Closed OYX-1 closed 3 months ago

OYX-1 commented 3 months ago

之前的错误:在获取交互式应用和作业模版页,遇到不是json格式的字符串时会报一下错误

image

改动

1. try catch JSON.parse:在获取交互式应用列表时遇到非json格式的字符串,直接跳过;在获取作业模版时遇到非json格式的字符串,返回默认数据;

2. 当作业模版是无效的占位数据时,无法使用和重命名模版

image

changeset-bot[bot] commented 3 months ago

🦋 Changeset detected

Latest commit: bec5b4c67946aeabb7936aa07baa368928f060d0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages | Name | Type | | ------------------- | ----- | | @scow/portal-server | Patch | | @scow/portal-web | Patch | | @scow/auth | Patch | | @scow/gateway | Patch | | @scow/mis-server | Patch | | @scow/mis-web | Patch | | @scow/cli | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR