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
This file contains hidden or 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
Why: The suggestion correctly identifies that the existing HandleAuditPlanToken function uses tokenExpire without it being defined, and it proposes adding a tokenExpire time.Duration parameter to fix the issue. However, this change will require updating all call sites accordingly, so while it addresses a critical compile-time issue, it adds a broader impact that must be managed.
Why: The suggestion correctly identifies that tokenExpire is undefined in the function and proposes to add it as a parameter, which prevents potential compile errors and improves code correctness.
Why: The suggestion correctly identifies a critical bug where the undefined variable tokenExpire is used in GenerateInstanceAuditPlanToken. By adding tokenExpire as a parameter, it ensures that the function receives the necessary expiry duration, thereby preventing potential runtime errors.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
关联的 issue
#3045
描述你的变更
sql管控列表页面增加token超时任务的提示
确认项(pr提交后操作)
Tip
请在指定复审人之前,确认并完成以下事项,完成后✅
not_compatible
need_update_doc
Description
重置扫描任务token接口
调整token生成与刷新逻辑
更新swagger文档描述
添加异常状态及token过期字段
Changes walkthrough 📝
4 files
更新实例扫描任务token刷新接口
重构token处理及辅助函数逻辑
增加异常状态与token过期字段输出
新增获取活动任务辅助查询方法
3 files
更新swagger文档中token接口描述
调整swagger.json中token接口信息
修改swagger.yaml中token接口说明