-
Notifications
You must be signed in to change notification settings - Fork 19
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
Sm/error json #450
Sm/error json #450
Conversation
QA Notes🟡
🔴 Contract changed on toolbelt
plugin-source
🟢 Absolute paths are being used as described
🟡 toolbelt
plugin-source
🟡 toolbelt
plugin-source
🟢 Contract on 🔴 Contract changed on pull! toolbelt
plugin-source
🟢 Contract the same on 🔴 Contract different on toolbelt
plugin-source
|
Only thing that I didn't test was a failure on |
You can get an error from conflicts (change something remote and local and then try to pull) |
|
Also coming from SDR/metadata api. Let's leave them so they're consistent with the other commands unless we hear otherwise. |
Got pull errors. The top level keys are the same, but there are some differences. Could you look over the following and confirm we are ok with the variations? toolbelt {
"status": 1,
"result": [
{
"state": "Conflict",
"fullName": "CP_Toolbelt_2__c",
"type": "CustomObject",
"filePath": "force-app/main/default/objects/CP_Toolbelt_2__c/CP_Toolbelt_2__c.object-meta.xml"
}
],
"name": "sourceConflictDetected",
"message": "Source conflict(s) detected.",
"exitCode": 1,
"commandName": "SourcePullCommand",
"data": [
{
"state": "Conflict",
"fullName": "CP_Toolbelt_2__c",
"type": "CustomObject",
"filePath": "force-app/main/default/objects/CP_Toolbelt_2__c/CP_Toolbelt_2__c.object-meta.xml"
}
],
"stack": "sourceConflictDetected: Source conflict(s) detected.\n at ALMError (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/salesforce-alm/dist/lib/core/almError.js:42:19)\n at /Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/salesforce-alm/dist/lib/source/sourcePullCommand.js:45:31\n at async SourcePullCommand.execLegacyCommand (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/salesforce-alm/dist/ToolbeltCommand.js:149:29)\n at async SourcePullCommand._run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@salesforce/command/lib/sfdxCommand.js:81:40)\n at async Config.runCommand (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/config.js:173:24)\n at async SfdxMain.run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/main.js:27:9)\n at async SfdxMain._run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/command.js:43:20)\n at async Object.run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/dist/cli.js:162:47)\nOuter stack:\n at Function.wrap (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@salesforce/core/lib/sfdxError.js:171:27)\n at SourcePullCommand.catch (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/salesforce-alm/dist/ToolbeltCommand.js:253:46)\n at async SourcePullCommand._run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@salesforce/command/lib/sfdxCommand.js:85:13)\n at async Config.runCommand (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/config.js:173:24)\n at async SfdxMain.run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/main.js:27:9)\n at async SfdxMain._run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/command.js:43:20)\n at async Object.run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/dist/cli.js:162:47)",
"warnings": []
} plugin-source {
"status": 1,
"result": [
{
"type": "CustomObject",
"name": "CO_Plugin_Source_2__c",
"deleted": false,
"origin": "remote",
"modified": true,
"filenames": [
"force-app/main/default/objects/CO_Plugin_Source_2__c/CO_Plugin_Source_2__c.object-meta.xml"
]
}
],
"name": "SfdxError",
"message": "We couldn't complete the operation due to conflicts. Verify that you want to keep the existing versions, then run the command again with the --forceoverwrite (-f) option.",
"exitCode": 1,
"commandName": "Pull",
"data": [
{
"type": "CustomObject",
"name": "CO_Plugin_Source_2__c",
"deleted": false,
"origin": "remote",
"modified": true,
"filenames": [
"force-app/main/default/objects/CO_Plugin_Source_2__c/CO_Plugin_Source_2__c.object-meta.xml"
]
}
],
"stack": "SfdxError: We couldn't complete the operation due to conflicts. Verify that you want to keep the existing versions, then run the command again with the --forceoverwrite (-f) option.\n at processConflicts (/Users/ewillhoit/dev/plugin-source/src/trackingFunctions.ts:119:17)\n at Object.trackingSetup (/Users/ewillhoit/dev/plugin-source/src/trackingFunctions.ts:60:9)\n at async Pull.preChecks (/Users/ewillhoit/dev/plugin-source/src/commands/force/source/beta/pull.ts:39:25)\n at async Pull.run (/Users/ewillhoit/dev/plugin-source/src/commands/force/source/beta/pull.ts:25:9)\n at async Pull._run (/Users/ewillhoit/dev/plugin-source/node_modules/@salesforce/command/lib/sfdxCommand.js:81:40)\n at async Config.runCommand (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/config/lib/config.js:173:24)\n at async SfdxMain.run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/main.js:27:9)\n at async SfdxMain._run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/node_modules/@oclif/command/lib/command.js:43:20)\n at async Object.run (/Users/ewillhoit/.nvm/versions/node/v14.17.5/lib/node_modules/sfdx-cli/dist/cli.js:162:47)",
"warnings": []
} |
Updated QA Notes🟡
🟢 Resolved! 🟢 Absolute paths are being used as described 🟡
🟡
🟢 Contract on 🟡 RESOLVED (mostly)
🟢 Contract the same on 🟢 Working as designed
|
Awesome, the conflict output now matches! Although, I did just notice that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
What does this PR do?
error structure for push/pull matches toolbelt (well, mostly).
intentional exceptions
What issues does this PR fix or reference?
@W-10830392@
@W-10809263@
forcedotcom/cli#1431