googleapis / googleapis/google-cloud-cpp
Consider adding error handling for ParseComputeOperationInfo
未关闭
type: cleanup
- 主要语言
- C++
- 星标
- 659
- 派生
- 462
- 平均合并
- 1 天 2 小时
- 30 天内合并 PR
- 89
描述
The call sites for `ParseComputeOperationInfo` do not provide the ability to propagate an error if `ParseComputeOperationInfo` detected one, such as a malformed URL. Consider enhancing the async get and async cancel request setting mechanism in `AsyncRestLongRunningOperation` to handle errors and refactor `ParseComputeOperationInfo` to return a `StatusOr`.
贡献指南
调研方向
首先定位 ParseComputeOperationInfo 及其调用点,然后检查 AsyncRestLongRunningOperation 中 async get 和 async cancel 的请求设置路径。跟踪当前如何处理格式错误的 URL。完成的标准是错误可以通过这两条路径传播,并且 ParseComputeOperationInfo 返回 StatusOr。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp
- 领域
- api
- Issue 类型
- 重构
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100