Skip to content

Commit 9940775

Browse files
authored
Merge pull request #1246 from salesforcecli/sl/W-18522032
fix: remove the 'eslint-disable/messages' line - W-18522032
2 parents ce43dbb + 072d475 commit 9940775

4 files changed

Lines changed: 26 additions & 33 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
"dependencies": {
123123
"@jsforce/jsforce-node": "^3.6.6",
124124
"@oclif/multi-stage-output": "^0.8.13",
125-
"@salesforce/core": "^8.10.3",
125+
"@salesforce/core": "^8.11.0",
126126
"@salesforce/kit": "^3.2.2",
127127
"@salesforce/sf-plugins-core": "^12.2.1",
128128
"@salesforce/ts-types": "^2.0.11",

src/bulkIngest.ts

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,7 @@ export async function bulkIngest(opts: {
140140
throw messages.createError(
141141
'error.failedRecordDetails',
142142
[jobInfo.numberRecordsFailed],
143-
// remove after W-17099874 gets fixed
144-
// eslint-disable-next-line sf-plugin/no-missing-messages
145-
[conn.getUsername(), job.id]
143+
[conn.getUsername(), job.id, conn.getUsername(), job.id]
146144
);
147145
}
148146

@@ -167,14 +165,16 @@ export async function bulkIngest(opts: {
167165

168166
if (jobInfo.state === 'Failed') {
169167
stages.error();
170-
// eslint-disable-next-line sf-plugin/no-missing-messages
171-
throw messages.createError('error.jobFailed', [jobInfo.errorMessage], [conn.getUsername(), job.id]);
168+
throw messages.createError(
169+
'error.jobFailed',
170+
[jobInfo.errorMessage],
171+
[conn.getUsername(), job.id, conn.getUsername(), job.id]
172+
);
172173
}
173174

174175
if (jobInfo.state === 'Aborted') {
175176
stages.stop('aborted');
176-
// eslint-disable-next-line sf-plugin/no-missing-messages
177-
throw messages.createError('error.jobAborted', [], [conn.getUsername(), job.id]);
177+
throw messages.createError('error.jobAborted', [], [conn.getUsername(), job.id, conn.getUsername(), job.id]);
178178
}
179179

180180
throw err;
@@ -247,8 +247,7 @@ export async function bulkIngestResume(opts: {
247247
throw messages.createError(
248248
'error.failedRecordDetails',
249249
[jobInfo.numberRecordsFailed],
250-
// eslint-disable-next-line sf-plugin/no-missing-messages
251-
[conn.getUsername(), job.id]
250+
[conn.getUsername(), job.id, conn.getUsername(), job.id]
252251
);
253252
}
254253

@@ -276,16 +275,20 @@ export async function bulkIngestResume(opts: {
276275
throw messages.createError(
277276
'error.jobFailed',
278277
[jobInfo.errorMessage],
279-
// eslint-disable-next-line sf-plugin/no-missing-messages
280-
[conn.getUsername(), job.id],
278+
[conn.getUsername(), job.id, conn.getUsername(), job.id],
281279
err as Error
282280
);
283281
}
284282

285283
if (jobInfo.state === 'Aborted') {
286284
stages.stop('aborted');
287-
// eslint-disable-next-line sf-plugin/no-missing-messages
288-
throw messages.createError('error.jobAborted', [], [conn.getUsername(), job.id], err as Error);
285+
286+
throw messages.createError(
287+
'error.jobAborted',
288+
[],
289+
[conn.getUsername(), job.id, conn.getUsername(), job.id],
290+
err as Error
291+
);
289292
}
290293

291294
throw err;

test/api/data/tree/importPlan.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ describe('importPlan', () => {
105105
});
106106
});
107107
describe('plan validation', () => {
108+
// ensure no static rootLogger
109+
// @ts-expect-error private stuff
110+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
111+
Logger.rootLogger = undefined;
108112
const logger = new Logger({ name: 'importPlanTest', useMemoryLogger: true });
109113
afterEach(() => {
110114
// @ts-expect-error private stuff

yarn.lock

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,10 +1699,10 @@
16991699
strip-ansi "6.0.1"
17001700
ts-retry-promise "^0.8.1"
17011701

1702-
"@salesforce/core@^8.10.1", "@salesforce/core@^8.10.3", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0", "@salesforce/core@^8.8.5":
1703-
version "8.10.3"
1704-
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.10.3.tgz#3cc2c99d097757cb4b08dab921254cfa3a00c7c1"
1705-
integrity sha512-juqbU304TBrrjb8sZGw+QkeAJISKu4+v2XIMTCxGJoEjs4LLhsyI7/drxCUY+7FNye+veAGeJdn/PCxkKhSgcA==
1702+
"@salesforce/core@^8.10.1", "@salesforce/core@^8.11.0", "@salesforce/core@^8.5.1", "@salesforce/core@^8.8.0", "@salesforce/core@^8.8.5":
1703+
version "8.11.0"
1704+
resolved "https://registry.yarnpkg.com/@salesforce/core/-/core-8.11.0.tgz#23d5ddcc318008230258ab449e70a26f671123c2"
1705+
integrity sha512-S4UgHKUy1hykRQVaoYm+LSktQgRhI3ltAUoLGI25/Q8gYokERTa2E7MpPMb+X/kTpjJJvDlnQqelB/sQJs/AKA==
17061706
dependencies:
17071707
"@jsforce/jsforce-node" "^3.8.1"
17081708
"@salesforce/kit" "^3.2.2"
@@ -2213,21 +2213,7 @@
22132213
"@smithy/types" "^4.2.0"
22142214
tslib "^2.6.2"
22152215

2216-
"@smithy/signature-v4@^5.0.2":
2217-
version "5.0.2"
2218-
resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-5.0.2.tgz#363854e946fbc5bc206ff82e79ada5d5c14be640"
2219-
integrity sha512-Mz+mc7okA73Lyz8zQKJNyr7lIcHLiPYp0+oiqiMNc/t7/Kf2BENs5d63pEj7oPqdjaum6g0Fc8wC78dY1TgtXw==
2220-
dependencies:
2221-
"@smithy/is-array-buffer" "^4.0.0"
2222-
"@smithy/protocol-http" "^5.1.0"
2223-
"@smithy/types" "^4.2.0"
2224-
"@smithy/util-hex-encoding" "^4.0.0"
2225-
"@smithy/util-middleware" "^4.0.2"
2226-
"@smithy/util-uri-escape" "^4.0.0"
2227-
"@smithy/util-utf8" "^4.0.0"
2228-
tslib "^2.6.2"
2229-
2230-
"@smithy/signature-v4@^5.1.0":
2216+
"@smithy/signature-v4@^5.0.2", "@smithy/signature-v4@^5.1.0":
22312217
version "5.1.0"
22322218
resolved "https://registry.yarnpkg.com/@smithy/signature-v4/-/signature-v4-5.1.0.tgz#2c56e5b278482b04383d84ea2c07b7f0a8eb8f63"
22332219
integrity sha512-4t5WX60sL3zGJF/CtZsUQTs3UrZEDO2P7pEaElrekbLqkWPYkgqNW1oeiNYC6xXifBnT9dVBOnNQRvOE9riU9w==

0 commit comments

Comments
 (0)