Skip to content

Commit 476c6fe

Browse files
fix: work through conflicts, UTs, pushing for comparison
2 parents dc4ecc7 + cda88fe commit 476c6fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+6246
-1329
lines changed

.circleci/config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ jobs:
8181
name: remove sf-plugins-core/core
8282
# deletes sf-plugins-core/core to prevent ts conflicts
8383
command: rm -rf node_modules/\@salesforce/sf-plugins-core/node_modules/\@salesforce/core
84+
- run:
85+
name: remove command/core
86+
# deletes command/core to prevent ts conflicts
87+
command: rm -rf node_modules/\@salesforce/command/node_modules/\@salesforce/core
8488
- run:
8589
name: Build
8690
command: |
@@ -120,7 +124,7 @@ workflows:
120124
- linux
121125
- windows
122126
node_version:
123-
- latest
127+
#- latest
124128
- lts
125129
- maintenance
126130
- external-nut:

.vscode/launch.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@
3030
"args": ["--timeout", "999999", "dist/test/unit/**/*.js"],
3131
"sourceMaps": true,
3232
"outFiles": ["${workspaceRoot}/dist/**/*.js"]
33+
},
34+
{
35+
"type": "node",
36+
"request": "launch",
37+
"name": "Debug Active Test",
38+
"protocol": "inspector",
39+
"skipFiles": ["<node_internals>/**"],
40+
"program": "${workspaceFolder}/node_modules/mocha/bin/_mocha",
41+
"args": ["--inspect", "--no-timeouts", "--colors", "${file}"],
42+
"console": "integratedTerminal",
43+
"sourceMaps": true,
44+
"internalConsoleOptions": "openOnSessionStart",
45+
"env": {
46+
"NODE_ENV": "testing"
47+
}
3348
}
3449
]
3550
}

messages/org.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,7 @@ The sandbox %s does not have an authorized username.
4141
# orgPollingTimeout
4242

4343
Sandbox status is %s; timed out waiting for completion.
44+
45+
# NotFoundOnDevHub
46+
47+
The scratch org does not belong to the dev hub username %s.

messages/scratchOrgCreate.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# unsupportedSnapshotOrgCreateOptions
2+
3+
Org snapshots don’t support one or more options you specified: %s.
4+
5+
# SourceStatusResetFailure
6+
7+
Successfully created org with ID: %s and name: %s. Unfortunately, source tracking isn’t working as expected. If you run force:source:status, the results may be incorrect. Try again by creating another scratch org.

messages/scratchOrgErrorCodes.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# signupFailed
2+
3+
The request to create a scratch org failed with error code: %s.
4+
5+
# signupFailedUnknown
6+
7+
An unknown server error occurred. Please try again. If you still see this error, contact Salesforce support for assistance. Include the information from 'sfdx force:data:record:get -s ScratchOrgInfo -i %s -u %s'.
8+
9+
# signupFailedAction
10+
11+
See https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_signuprequest.htm for information on error code %s.
12+
13+
# signupUnexpected
14+
15+
The request to create a scratch org returned an unexpected status
16+
17+
# INVALID_ID_FIELD
18+
19+
Provide a valid template ID, in the format 0TTxxxxxxxxxxxx.
20+
21+
# T-0002
22+
23+
We couldn’t find a template or snapshot with the ID or name specified in the scratch org definition. If you’re sure the ID is correct, contact Salesforce Support.
24+
25+
# T-0003
26+
27+
The template specified in the scratch org definition is unapproved. Contact Salesforce Support to request template approval.
28+
29+
# T-0004
30+
31+
The Trialforce Source Organization (TSO) for the template doesn’t exist or has expired.
32+
33+
# S-1006
34+
35+
Provide a valid email address in your scratch org definition or your %s file.
36+
37+
# S-2006
38+
39+
Provide a valid country code in your scratch org definition or your %s file.
40+
41+
# S-1017
42+
43+
Specify a namespace that’s used by a release org associated with your Dev Hub org.
44+
45+
# S-1018
46+
47+
Provide a valid My Domain value. This value can’t include double hyphens, end in a hyphen, include restricted words, or be more than 40 characters long.
48+
49+
# S-1019
50+
51+
The My Domain value you chose is already in use.
52+
53+
# S-1026
54+
55+
Provide a valid namespace value. This value must begin with a letter. It can’t include consecutive underscores, end in an underscore, be more than 15 characters long, or be a restricted or reserved namespace. Only alphanumeric characters and underscores are allowed.
56+
57+
# S-9999
58+
59+
A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance.
60+
61+
# SH-0001
62+
63+
Can’t create scratch org. Contact the source org admin to add your Dev Hub org ID to Setup > Org Shape. Then try again.
64+
65+
# SH-0002
66+
67+
Can’t create scratch org. No org shape exists for the specified sourceOrg. Create an org shape and try again.
68+
69+
# SH-0003
70+
71+
Can’t create scratch org from org shape. The org shape version is outdated. Recreate the org shape and try again.
72+
73+
# C-1007
74+
75+
The username provided to the org:create command is already in use. Run 'force:org:list --clean' to remove stale org authentications or create the org with a different username.
76+
77+
# C-1015
78+
79+
We encountered a problem while registering your My Domain value with the DNS provider. Please try again.
80+
81+
# C-1016
82+
83+
We encountered a problem while attempting to configure and approve the Connected App for your org. Verify the Connected App configuration with your Salesforce admin.
84+
85+
# C-1017
86+
87+
Provide a valid namespace prefix. This value must begin with a letter. It can’t include consecutive underscores, end in an underscore, be more than 15 characters long, or be a restricted or reserved namespace. Only alphanumeric characters and underscores are allowed.
88+
89+
# C-1020
90+
91+
We couldn't find a template with the ID specified in the scratch org definition. If you’re sure the ID is correct, contact Salesforce Support.
92+
93+
# C-1027
94+
95+
The template specified in the Scratch Definition isn’t supported. Specify a generic edition (such as Developer or Enterprise), or specify a template ID.
96+
97+
# C-9999
98+
99+
A fatal signup error occurred. Please try again. If you still see this error, contact Salesforce Support for assistance
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# quantifiedFeatureWithoutQuantityWarning
2+
3+
The feature %s will be deprecated in a future release. It's been replaced by %s:<value>, which requires you to specify a quantity.
4+
5+
# mappedFeatureWarning
6+
7+
The feature %s has been deprecated. It has been replaced with %s in this scratch org create request.
8+
9+
# deprecatedFeatureWarning
10+
11+
The feature %s has been deprecated. It has been removed from the list of requested features.

messages/scratchOrgInfoApi.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# signupFieldsMissing
2+
3+
Required fields are missing for org creation: [%s]
4+
5+
# signupDuplicateSettingsSpecified
6+
7+
You cannot use 'settings' and `'orgPreferences' in your scratch definition file, please specify one or the other.
8+
9+
# deprecatedPrefFormat
10+
11+
We've deprecated OrgPreferences. Update the scratch org definition file to replace OrgPreferences with their corresponding settings.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# errorpackage2AncestorIdsKeyNotSupported
2+
3+
The package2AncestorIds key is no longer supported in a scratch org definition. Ancestors defined in sfdx-project.json will be included in the scratch org.",
4+
5+
# errorInvalidAncestorVersionFormat
6+
7+
The ancestor versionNumber must be in the format major.minor.patch but the value found is %s",
8+
9+
# errorNoMatchingAncestor
10+
11+
The ancestorId for ancestorVersion %s can't be found. Package ID %s.",
12+
13+
# errorAncestorNotReleased
14+
15+
The ancestor package version [%s] specified in the sfdx-project.json file may exist hasn’t been promoted and released. Release the ancestor package version before specifying it as the ancestor in a new package or patch version.",
16+
17+
# errorAncestorIdVersionMismatch
18+
19+
The ancestorVersion in sfdx-project.json is not the version expected for the ancestorId you supplied. ancestorVersion %s. ancestorID %s."

messages/user.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ Invalid complexity value. Specify a value between 0 and 5, inclusive.
2929
# lengthOutOfBound
3030

3131
Invalid length value. Specify a value between 8 and 1000, inclusive.
32+
33+
# problemsDescribingTheUserObject
34+
35+
Problems occurred while attempting to describe the user object.

package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
"@types/graceful-fs": "^4.1.5",
4343
"@types/mkdirp": "^1.0.2",
4444
"@types/semver": "^7.3.9",
45+
"archiver": "^5.3.0",
46+
"js2xmlparser": "^4.0.1",
4547
"change-case": "^4.1.2",
4648
"debug": "^3.2.7",
4749
"faye": "^1.4.0",
@@ -58,6 +60,7 @@
5860
"@salesforce/dev-scripts": "^2.0.0",
5961
"@salesforce/prettier-config": "^0.0.2",
6062
"@salesforce/ts-sinon": "^1.3.21",
63+
"@types/archiver": "^5.3.1",
6164
"@types/debug": "0.0.31",
6265
"@types/jsen": "0.0.21",
6366
"@types/jsonwebtoken": "8.5.7",
@@ -66,14 +69,14 @@
6669
"@typescript-eslint/parser": "4.33.0",
6770
"chai": "^4.3.4",
6871
"commitizen": "^3.1.2",
69-
"eslint": "^6.8.0",
72+
"eslint": "^7.27.0",
7073
"eslint-config-prettier": "^6.15.0",
7174
"eslint-config-salesforce": "^0.1.6",
7275
"eslint-config-salesforce-license": "^0.1.6",
7376
"eslint-config-salesforce-typescript": "^0.2.8",
7477
"eslint-plugin-header": "^3.1.1",
7578
"eslint-plugin-import": "^2.25.4",
76-
"eslint-plugin-jsdoc": "^27.1.2",
79+
"eslint-plugin-jsdoc": "^35.1.2",
7780
"eslint-plugin-prettier": "^3.1.3",
7881
"husky": "^7.0.4",
7982
"mocha": "^9.1.3",

0 commit comments

Comments
 (0)