docs(agent-task/capi): add TODO note for dropping local ID generation
Signed-off-by: Babak K. Shandiz <babakks@github.com>
This commit is contained in:
parent
a108b4ee95
commit
2fe60d9105
1 changed files with 2 additions and 0 deletions
|
|
@ -339,6 +339,8 @@ func (c *CAPIClient) hydrateSessionPullRequestsAndUsers(sessions []session) ([]*
|
|||
for _, session := range sessions {
|
||||
if session.ResourceType == "pull" {
|
||||
prNodeID := session.ResourceGlobalID
|
||||
// TODO: probably this can be dropped since the API should always
|
||||
// keep returning the resource global ID.
|
||||
if session.ResourceGlobalID == "" {
|
||||
prNodeID = generatePullRequestNodeID(int64(session.RepoID), session.ResourceID)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue