-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: col, line numbers on mdapi deploy errors #771
Conversation
QA notes: setup: current scenario: ✅
✅ json output {
"status": 1,
"result": {
"checkOnly": false,
"completedDate": "2023-10-09T14:36:37.000Z",
"createdBy": "0058N000004sBPj",
"createdByName": "User User",
"createdDate": "2023-10-09T14:36:35.000Z",
"details": {
"componentFailures": [
{
"changed": false,
"columnNumber": 12,
"componentType": "ApexClass",
"created": false,
"createdDate": "2023-10-09T14:36:36.000Z",
"deleted": false,
"fileName": "zip/classes/GeocodingService.cls",
"fullName": "GeocodingService",
"lineNumber": 2,
"problem": "Unexpected token 'static'.",
"problemType": "Error",
"success": false
},
{
"changed": false,
"columnNumber": 12,
"componentType": "ApexClass",
"created": false,
"createdDate": "2023-10-09T14:36:36.000Z",
"deleted": false,
"fileName": "zip/classes/GeocodingService.cls",
"fullName": "GeocodingService",
"lineNumber": 2,
"problem": "Unexpected token 'static'.",
"problemType": "Error",
"success": false
}
],
"componentSuccesses": [
{
"changed": true,
"componentType": "",
"created": false,
"createdDate": "2023-10-09T14:36:37.000Z",
"deleted": false,
"fileName": "zip/package.xml",
"fullName": "package.xml",
"success": true
}
],
"runTestResult": {
"numFailures": 0,
"numTestsRun": 0,
"totalTime": 0,
"codeCoverage": [],
"codeCoverageWarnings": [],
"failures": [],
"flowCoverage": [],
"flowCoverageWarnings": [],
"successes": []
}
},
"done": true,
"id": "0Af8N00000tvYRWSA2",
"ignoreWarnings": false,
"lastModifiedDate": "2023-10-09T14:36:37.000Z",
"numberComponentErrors": 2,
"numberComponentsDeployed": 0,
"numberComponentsTotal": 2,
"numberTestErrors": 0,
"numberTestsCompleted": 0,
"numberTestsTotal": 0,
"rollbackOnError": true,
"runTestsEnabled": false,
"startDate": "2023-10-09T14:36:36.000Z",
"status": "Failed",
"success": false,
"files": [
{
"error": "Unexpected token 'static'.",
"problemType": "Error",
"columnNumber": 12,
"lineNumber": 2,
"fullName": "GeocodingService",
"type": "ApexClass",
"state": "Failed",
"filePath": "classes/GeocodingService.cls"
},
{
"error": "Unexpected token 'static'.",
"problemType": "Error",
"columnNumber": 12,
"lineNumber": 2,
"fullName": "GeocodingService",
"type": "ApexClass",
"state": "Failed",
"filePath": "classes/GeocodingService.cls"
}
]
},
"warnings": []
} ❓ why do we see 2 component failures for 1 apex class? is this something we can fix in SDR or is just the MD API response? |
I think they came back like that. But we could definitely de-dupe them |
Logged W-14262002 to track this 👍🏼 |
What does this PR do?
What issues does this PR fix or reference?
forcedotcom/cli#356
@W-14247072@