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
Modify the /review/send endpoint to retrieve the WorkspaceCodeGraph URL and include it in the Stakwork payload response. The URL should be retrieved based on the workspace UUID associated with the feature.
Implementation Details
1. Modify PostTicketDataToStakwork Function
Add code graph URL retrieval and include it in the Stakwork payload:
// In PostTicketDataToStakwork handlervar (
productBrief, featureBrief, codeGraphURLstringfeature db.WorkspaceFeatures
)
ifticket.FeatureUUID!="" {
feature=th.db.GetFeatureByUuid(ticket.FeatureUUID)
iffeature.Uuid=="" {
// ... existing error handling ...
}
// Get code graph URL for the workspaceiffeature.WorkspaceUuid!="" {
codeGraph, err:=th.db.GetCodeGraphByWorkspaceUUID(feature.WorkspaceUuid)
iferr==nil {
codeGraphURL=codeGraph.Url
}
// Note: We don't error if code graph isn't found - it's optional
}
// ... existing feature brief and product brief retrieval ...
}
// Update stakwork payload to include codeGraphstakworkPayload:=map[string]interface{}{
"name": "Hive Ticket Builder",
"workflow_id": 37324,
"workflow_params": map[string]interface{}{
"set_var": map[string]interface{}{
"attributes": map[string]interface{}{
"vars": map[string]interface{}{
// ... existing fields ..."codeGraph": codeGraphURL, // Add this line
},
},
},
},
}
Task List
Update variable declarations in PostTicketDataToStakwork
Add code graph retrieval logic after feature validation
Modify Stakwork payload to include code graph URL
Test endpoint with and without code graph present
Update unit tests
Acceptance Criteria
Code graph URL is retrieved when available
URL is correctly included in Stakwork payload
Empty string is sent when no code graph exists
Existing functionality remains unchanged
Error handling follows existing patterns
The text was updated successfully, but these errors were encountered:
Description
Modify the
/review/send
endpoint to retrieve the WorkspaceCodeGraph URL and include it in the Stakwork payload response. The URL should be retrieved based on the workspace UUID associated with the feature.Implementation Details
1. Modify PostTicketDataToStakwork Function
Add code graph URL retrieval and include it in the Stakwork payload:
Task List
Acceptance Criteria
The text was updated successfully, but these errors were encountered: