googleapis / googleapis/google-cloud-cpp

Consider adding error handling for ParseComputeOperationInfo

Open
#14,337 0 comments 0 reactions 0 assignees View on GitHub
type: cleanup
Dominant language
C++
Stars
659
Forks
462
Avg merge
1d 2h
Merged PRs (30d)
89

Description

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`.

Contributor guide

Open the contributing guide

Research direction

Start by locating ParseComputeOperationInfo and its call sites, then inspect the async get and async cancel request-setting paths in AsyncRestLongRunningOperation. Trace how malformed URLs are currently handled. Done means errors can propagate through both paths and ParseComputeOperationInfo returns StatusOr.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.