-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(portal): 提交作业和提交交互式应用时显示可用分区 (#977)
### 做了什么 修改提交作业和提交交互式应用时账户及分区获取逻辑 修改为选择的账户为用户可以使用的正常未封锁账户(账户状态未封锁,用户在账户下状态未封锁) 选择账户时获取该账户的可用分区并短暂保存 当切换集群或刷新账户或刷新分区的时候会重新发起请求获取新的数据 ### 修改后提交作业页面 1.不使用模板值时 账户,分区,QOS为可选列表的第一项 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/1e646071-14eb-4655-9019-4f6b13a651e8) 集群,账户,分区发生变更时,重置下级关联项为可选列表第一项 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/8ade113c-78ec-433b-adac-60ecb2a511d6) ![image](https://github.com/PKUHPC/SCOW/assets/43978285/9b809d95-e596-47b0-ad6a-0696450018c9) 2.使用模板值时无论是否仍为当前可选列表中的值都可以直接填入 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/e2d6006e-54f9-4776-abc7-735b15ee5c15) 集群出现错误时会在页面直接报错 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/66c35b6f-ba57-44fe-9167-3d9e7511bb5f) 账户出现错误时当前为允许提交但是作业无法正常运行 分区等信息出现错误时会直接报错 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/f9c40a09-48e3-47b7-8969-c42a03e6ac61) 使用模板值时,集群,账户,分区任意值发生变化时,下级关联项目将重置为可选列表的第一项, 节点数gpu卡数等内容正常开始校验 ### 修改后创建交互式应用页面 1. 没有上一次提交记录时 打开页面账户,分区,qos分别为可选列表的第一项 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/9d7cd8ae-6181-43bb-9687-4224dc67da6a) 适当选择填入不同值 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/c4ed7a76-0aef-46ca-b128-c902c381bf4c) 上一级条件发生变更时下一级条件重置为可选列表第一项,gpu卡数或节点数更新为默认值1 ![image](https://github.com/PKUHPC/SCOW/assets/43978285/a84710fd-117d-4108-863e-07436d00f464) 2.当上一次提交记录存在 如果仍然为当前可选列表值则打开页面后正常填入 如果不可选则自动更新为可选列表的第一项 之后动作与1相同
- Loading branch information
Showing
23 changed files
with
779 additions
and
187 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@scow/portal-server": patch | ||
"@scow/mis-server": patch | ||
"@scow/portal-web": patch | ||
"@scow/mis-web": patch | ||
--- | ||
|
||
修改门户系统下提交作业或交互式应用时可以选择的账号为用户维度未封锁账号,分区为该用户在该集群下对应账号的可用分区;修改从模板提交作业时模板值可以直接提交 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/grpc-api": minor | ||
--- | ||
|
||
在 common/config 下新增 getAvailablePartitionsForCluster 作为门户/管理系统共用 proto,管理系统下原 proto 标记为已过时;在 listAccounts 下新增可选 AccountStatusFilter 查询参数 |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.