ProblemVersion 创建时的错误处理 #3

Closed
opened 2023-12-22 14:10:17 +08:00 by Paul · 0 comments
Owner

internal/api/problem/create_version.go

创建问题版本时,目前的流程是:

  1. 写数据库,其中 context 为空
  2. 发送 ProblemBuildrunner

runner 返回错误,后续操作需要特殊处理

检查一下以下几个问题是否存在:

  • Problemis_enable 属性需要判断 context (cc2c42bded)
  • Submit 时需要确定 is_enable 属性 (6a72198541)

同时,错误的提交占据了 ProblemVersion 序列号

  • 检查错误的历史版本是否影响工作
`internal/api/problem/create_version.go` 创建问题版本时,目前的流程是: 1. 写数据库,其中 `context` 为空 2. 发送 `ProblemBuild` 到 `runner` 若 `runner` 返回错误,后续操作需要特殊处理 检查一下以下几个问题是否存在: - [x] `Problem` 的 `is_enable` 属性需要判断 `context` (cc2c42bded7b53966448eb20564a7b883f8f1db1) - [x] `Submit` 时需要确定 `is_enable` 属性 (6a72198541ef29c9e269c89a81bae452eba17c2f) 同时,错误的提交占据了 `ProblemVersion` 序列号 - [ ] 检查错误的历史版本是否影响工作
Paul added this to the (deleted) project 2023-12-22 14:10:17 +08:00
Paul added this to the 1.3.0 milestone 2023-12-22 14:10:21 +08:00
Paul self-assigned this 2023-12-22 14:12:51 +08:00
Paul closed this issue 2023-12-27 22:30:17 +08:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: woj/woj-server#3
No description provided.