generated from salesforcecli/lerna-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: use jsforce v3/improve perf on commands (#843)
originally created to QA for W-14996843 ### What does this PR do? - continued refactoring work for jsforce3 (esp async query to not return results or check even once) - use jsforce3 bulk2 polling events - ~~allow --use-tooling-api with --bulk on query (forcedotcom/cli#2667 - reorganize the reporters, mostly using functions. If I created a bug, it's somewhere in there. split them into different files, along with their tests - more UT for reporter logic - 1 nut fix where bulk delete resume human output wasn't being tested - drop support for "sfdx" and ":" in help/message output. only sf and spaces - improve the perf and reduce API call usages for monitoring bulk jobs - improve the error result if you send an uparseable csv file - improve the output of the bulk job event updates - remove the unused chai-as-promised devDep `Job a07EE00001l5rHsYAI Status Job Complete Records processed 500 Records failed 0.` => `Job a07EE00001l5rHsYAI | Status Job Complete | Records processed 500 | Records failed 0.` there are some // ts-expect-error because `jsforce-node.Connection` isn't **exactly** identical to `sfdx-core.Connection` that extends jsforce v2 one obvious difference is that they have a different implementation of `conn.bulk/.bulk2` but there are others about private members (ex: sfdx-core inserts its own logger) When jsforce-node is rolled out in sfdx-core and sfCommand those will start failing, hopefully, and we can remove them
- Loading branch information
Showing
61 changed files
with
78,861 additions
and
2,722 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# bulkV2Result | ||
|
||
Job %s Status %s Records processed %d. Records failed %d. | ||
Job %s | Status %s | Records processed %d | Records failed %d |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.