From 321a7f4fdc23881f0e03b99a236995a99a52f98b Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Wed, 14 Aug 2024 11:21:52 -0300 Subject: [PATCH 01/15] fix(search): remove deprecated flags --- command-snapshot.json | 4 ++-- src/commands/data/search.ts | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/command-snapshot.json b/command-snapshot.json index 5682cae7..536e031b 100644 --- a/command-snapshot.json +++ b/command-snapshot.json @@ -184,9 +184,9 @@ { "alias": [], "command": "data:search", - "flagAliases": ["apiversion", "resultformat", "targetusername", "u"], + "flagAliases": ["resultformat"], "flagChars": ["f", "o", "q", "r"], - "flags": ["api-version", "file", "flags-dir", "json", "loglevel", "query", "result-format", "target-org"], + "flags": ["api-version", "file", "flags-dir", "json", "query", "result-format", "target-org"], "plugin": "@salesforce/plugin-data" }, { diff --git a/src/commands/data/search.ts b/src/commands/data/search.ts index ca48bb1e..906429d7 100644 --- a/src/commands/data/search.ts +++ b/src/commands/data/search.ts @@ -9,7 +9,7 @@ import fs from 'node:fs'; import { Messages } from '@salesforce/core'; import type { SearchResult } from '@jsforce/jsforce-node'; import { SfCommand, Flags } from '@salesforce/sf-plugins-core'; -import { orgFlags, resultFormatFlag } from '../../flags.js'; +import { resultFormatFlag } from '../../flags.js'; import { displaySearchResults } from '../../searchUtils.js'; Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); @@ -21,7 +21,8 @@ export class DataSearchCommand extends SfCommand { public static readonly examples = messages.getMessages('examples'); public static readonly flags = { - ...orgFlags, + 'target-org': Flags.requiredOrg(), + 'api-version': Flags.orgApiVersion(), query: Flags.string({ char: 'q', summary: messages.getMessage('flags.query.summary'), From 044a71ed72b630f955b31f14f5d6d1b07f06b698 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Wed, 14 Aug 2024 11:42:57 -0300 Subject: [PATCH 02/15] fix(search): remove deprecated alias --- command-snapshot.json | 2 +- src/commands/data/search.ts | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/command-snapshot.json b/command-snapshot.json index 536e031b..716ae9d8 100644 --- a/command-snapshot.json +++ b/command-snapshot.json @@ -184,7 +184,7 @@ { "alias": [], "command": "data:search", - "flagAliases": ["resultformat"], + "flagAliases": [], "flagChars": ["f", "o", "q", "r"], "flags": ["api-version", "file", "flags-dir", "json", "query", "result-format", "target-org"], "plugin": "@salesforce/plugin-data" diff --git a/src/commands/data/search.ts b/src/commands/data/search.ts index 906429d7..29efbe01 100644 --- a/src/commands/data/search.ts +++ b/src/commands/data/search.ts @@ -9,8 +9,8 @@ import fs from 'node:fs'; import { Messages } from '@salesforce/core'; import type { SearchResult } from '@jsforce/jsforce-node'; import { SfCommand, Flags } from '@salesforce/sf-plugins-core'; -import { resultFormatFlag } from '../../flags.js'; import { displaySearchResults } from '../../searchUtils.js'; +import { FormatTypes, formatTypes } from '../../reporters/query/reporters.js'; Messages.importMessagesDirectoryFromMetaUrl(import.meta.url); const messages = Messages.loadMessages('@salesforce/plugin-data', 'data.search'); @@ -34,10 +34,13 @@ export class DataSearchCommand extends SfCommand { summary: messages.getMessage('flags.file.summary'), exactlyOne: ['query', 'file'], }), - 'result-format': resultFormatFlag({ + 'result-format': Flags.custom({ + char: 'r', summary: messages.getMessage('flags.result-format.summary'), + options: formatTypes, + default: 'human', exclusive: ['json'], - }), + })(), }; public async run(): Promise { From 555d715854ac1a316f191886af7a24409b9579e4 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Wed, 21 Aug 2024 11:35:27 -0300 Subject: [PATCH 03/15] chore: update workflows --- .github/workflows/create-github-release.yml | 2 +- .github/workflows/test.yml | 2 +- .github/workflows/validate-pr.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index 2021e825..f484dac1 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -15,7 +15,7 @@ on: jobs: release: - uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@main + uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@ew/input-envs secrets: inherit with: prerelease: ${{ inputs.prerelease }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 04639c09..7c124c1c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main nuts: needs: linux-unit-tests - uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main + uses: salesforcecli/github-workflows/.github/workflows/nut.yml@ew/input-envs secrets: inherit strategy: matrix: diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index a312052e..3af5c0ee 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -8,4 +8,4 @@ on: jobs: pr-validation: - uses: salesforcecli/github-workflows/.github/workflows/validatePR.yml@main + uses: salesforcecli/github-workflows/.github/workflows/validatePR.yml@ew/input-envs From cf0bbe787551b310f1ef69b37c15d01ba07cafea Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Wed, 21 Aug 2024 14:51:53 +0000 Subject: [PATCH 04/15] chore(release): 3.6.1-dev.0 [skip ci] --- README.md | 36 ++++++++++++++++++------------------ package.json | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 3195ae95..5120dc76 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ EXAMPLES $ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3 ``` -_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/create/file.ts)_ +_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/create/file.ts)_ ## `sf data create record` @@ -198,7 +198,7 @@ EXAMPLES TracedEntityId=01p17000000R6bLAAS" ``` -_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/create/record.ts)_ +_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/create/record.ts)_ ## `sf data delete bulk` @@ -256,7 +256,7 @@ FLAG DESCRIPTIONS and can be enabled only by a system administrator. ``` -_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/delete/bulk.ts)_ +_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/delete/bulk.ts)_ ## `sf data delete record` @@ -317,7 +317,7 @@ EXAMPLES $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c ``` -_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/delete/record.ts)_ +_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/delete/record.ts)_ ## `sf data delete resume` @@ -356,7 +356,7 @@ EXAMPLES $ sf data delete resume --use-most-recent --target-org my-scratch ``` -_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/delete/resume.ts)_ +_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/delete/resume.ts)_ ## `sf data export tree` @@ -417,7 +417,7 @@ EXAMPLES my-scratch ``` -_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/export/tree.ts)_ +_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/export/tree.ts)_ ## `sf data get record` @@ -481,7 +481,7 @@ EXAMPLES $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c ``` -_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/get/record.ts)_ +_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/get/record.ts)_ ## `sf data import tree` @@ -546,7 +546,7 @@ FLAG DESCRIPTIONS - files(array) - Files: An array of files paths to load ``` -_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/import/tree.ts)_ +_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/import/tree.ts)_ ## `sf data query` @@ -610,7 +610,7 @@ EXAMPLES $ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0 ``` -_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/query.ts)_ +_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/query.ts)_ ## `sf data query resume` @@ -648,7 +648,7 @@ EXAMPLES $ sf data query resume --bulk-query-id 7500x000005BdFzXXX ``` -_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/query/resume.ts)_ +_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/query/resume.ts)_ ## `sf data resume` @@ -685,7 +685,7 @@ EXAMPLES $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA ``` -_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/resume.ts)_ +_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/resume.ts)_ ## `sf data search` @@ -735,7 +735,7 @@ EXAMPLES $ sf data search --file query.txt --target-org my-scratch --result-format csv ``` -_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/search.ts)_ +_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/search.ts)_ ## `sf data update record` @@ -797,7 +797,7 @@ EXAMPLES "ExpirationDate=2017-12-01T00:58:04.000+0000" ``` -_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/update/record.ts)_ +_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/update/record.ts)_ ## `sf data upsert bulk` @@ -850,7 +850,7 @@ EXAMPLES my-scratch ``` -_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/upsert/bulk.ts)_ +_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/upsert/bulk.ts)_ ## `sf data upsert resume` @@ -889,7 +889,7 @@ EXAMPLES $ sf data upsert resume --use-most-recent --target-org my-scratch ``` -_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/data/upsert/resume.ts)_ +_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/upsert/resume.ts)_ ## `sf force data bulk delete` @@ -936,7 +936,7 @@ EXAMPLES $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch ``` -_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/force/data/bulk/delete.ts)_ +_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/force/data/bulk/delete.ts)_ ## `sf force data bulk status` @@ -973,7 +973,7 @@ EXAMPLES $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch ``` -_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/force/data/bulk/status.ts)_ +_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/force/data/bulk/status.ts)_ ## `sf force data bulk upsert` @@ -1031,6 +1031,6 @@ EXAMPLES --target-org my-scratch ``` -_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.0/src/commands/force/data/bulk/upsert.ts)_ +_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/force/data/bulk/upsert.ts)_ diff --git a/package.json b/package.json index 2c580c59..1ef74a3e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@salesforce/plugin-data", - "version": "3.6.0", + "version": "3.6.1-dev.0", "description": "Plugin for salesforce data commands", "author": "Salesforce", "homepage": "https://github.com/salesforcecli/plugin-data", From da132e50454546fab93e7481d2f9edabac1c16a4 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Wed, 21 Aug 2024 12:15:25 -0300 Subject: [PATCH 05/15] chore: update workflows --- .github/workflows/onRelease.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index d9102e0e..21a62fb3 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -19,10 +19,10 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ github.event.release.tag_name || inputs.tag }} - - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main + - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@ew/input-envs id: distTag npm: - uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main + uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@ew/input-envs needs: [getDistTag] with: ctc: true From a9e906377e0e06f564c06a4691adf05026bdc0f5 Mon Sep 17 00:00:00 2001 From: svc-cli-bot Date: Wed, 21 Aug 2024 15:17:37 +0000 Subject: [PATCH 06/15] chore(release): 3.6.1-dev.1 [skip ci] --- README.md | 36 ++++++++++++++++++------------------ package.json | 2 +- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 5120dc76..b3ba0909 100644 --- a/README.md +++ b/README.md @@ -142,7 +142,7 @@ EXAMPLES $ sf data create file --file path/to/astro.png --parent-id a03fakeLoJWPIA3 ``` -_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/create/file.ts)_ +_See code: [src/commands/data/create/file.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/create/file.ts)_ ## `sf data create record` @@ -198,7 +198,7 @@ EXAMPLES TracedEntityId=01p17000000R6bLAAS" ``` -_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/create/record.ts)_ +_See code: [src/commands/data/create/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/create/record.ts)_ ## `sf data delete bulk` @@ -256,7 +256,7 @@ FLAG DESCRIPTIONS and can be enabled only by a system administrator. ``` -_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/delete/bulk.ts)_ +_See code: [src/commands/data/delete/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/delete/bulk.ts)_ ## `sf data delete record` @@ -317,7 +317,7 @@ EXAMPLES $ sf data delete record --use-tooling-api --sobject TraceFlag --record-id 7tf8c ``` -_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/delete/record.ts)_ +_See code: [src/commands/data/delete/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/delete/record.ts)_ ## `sf data delete resume` @@ -356,7 +356,7 @@ EXAMPLES $ sf data delete resume --use-most-recent --target-org my-scratch ``` -_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/delete/resume.ts)_ +_See code: [src/commands/data/delete/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/delete/resume.ts)_ ## `sf data export tree` @@ -417,7 +417,7 @@ EXAMPLES my-scratch ``` -_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/export/tree.ts)_ +_See code: [src/commands/data/export/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/export/tree.ts)_ ## `sf data get record` @@ -481,7 +481,7 @@ EXAMPLES $ sf data get record --use-tooling-api --sobject TraceFlag --record-id 7tf8c ``` -_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/get/record.ts)_ +_See code: [src/commands/data/get/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/get/record.ts)_ ## `sf data import tree` @@ -546,7 +546,7 @@ FLAG DESCRIPTIONS - files(array) - Files: An array of files paths to load ``` -_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/import/tree.ts)_ +_See code: [src/commands/data/import/tree.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/import/tree.ts)_ ## `sf data query` @@ -610,7 +610,7 @@ EXAMPLES $ sf data query --query "SELECT Id FROM Contact" --bulk --wait 0 ``` -_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/query.ts)_ +_See code: [src/commands/data/query.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/query.ts)_ ## `sf data query resume` @@ -648,7 +648,7 @@ EXAMPLES $ sf data query resume --bulk-query-id 7500x000005BdFzXXX ``` -_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/query/resume.ts)_ +_See code: [src/commands/data/query/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/query/resume.ts)_ ## `sf data resume` @@ -685,7 +685,7 @@ EXAMPLES $ sf data resume --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA ``` -_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/resume.ts)_ +_See code: [src/commands/data/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/resume.ts)_ ## `sf data search` @@ -735,7 +735,7 @@ EXAMPLES $ sf data search --file query.txt --target-org my-scratch --result-format csv ``` -_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/search.ts)_ +_See code: [src/commands/data/search.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/search.ts)_ ## `sf data update record` @@ -797,7 +797,7 @@ EXAMPLES "ExpirationDate=2017-12-01T00:58:04.000+0000" ``` -_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/update/record.ts)_ +_See code: [src/commands/data/update/record.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/update/record.ts)_ ## `sf data upsert bulk` @@ -850,7 +850,7 @@ EXAMPLES my-scratch ``` -_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/upsert/bulk.ts)_ +_See code: [src/commands/data/upsert/bulk.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/upsert/bulk.ts)_ ## `sf data upsert resume` @@ -889,7 +889,7 @@ EXAMPLES $ sf data upsert resume --use-most-recent --target-org my-scratch ``` -_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/data/upsert/resume.ts)_ +_See code: [src/commands/data/upsert/resume.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/data/upsert/resume.ts)_ ## `sf force data bulk delete` @@ -936,7 +936,7 @@ EXAMPLES $ sf force data bulk delete --sobject MyObject__c --file files/delete.csv --wait 5 --target-org my-scratch ``` -_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/force/data/bulk/delete.ts)_ +_See code: [src/commands/force/data/bulk/delete.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/force/data/bulk/delete.ts)_ ## `sf force data bulk status` @@ -973,7 +973,7 @@ EXAMPLES $ sf force data bulk status --job-id 750xx000000005sAAA --batch-id 751xx000000005nAAA --target-org my-scratch ``` -_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/force/data/bulk/status.ts)_ +_See code: [src/commands/force/data/bulk/status.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/force/data/bulk/status.ts)_ ## `sf force data bulk upsert` @@ -1031,6 +1031,6 @@ EXAMPLES --target-org my-scratch ``` -_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.0/src/commands/force/data/bulk/upsert.ts)_ +_See code: [src/commands/force/data/bulk/upsert.ts](https://github.com/salesforcecli/plugin-data/blob/3.6.1-dev.1/src/commands/force/data/bulk/upsert.ts)_ diff --git a/package.json b/package.json index 1ef74a3e..b52e7f4c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@salesforce/plugin-data", - "version": "3.6.1-dev.0", + "version": "3.6.1-dev.1", "description": "Plugin for salesforce data commands", "author": "Salesforce", "homepage": "https://github.com/salesforcecli/plugin-data", From 9043b8f21e8dcdaa7b2bcdb03aa6d67df0d22c95 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Mon, 26 Aug 2024 14:37:38 -0300 Subject: [PATCH 07/15] chore: ci re-run From 7aa38ed9def4fbdcd861014746e64c9c5c7a3e73 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Mon, 26 Aug 2024 14:53:21 -0300 Subject: [PATCH 08/15] test(NUT): force to use sf --- test/commands/data/create/file.nut.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/commands/data/create/file.nut.ts b/test/commands/data/create/file.nut.ts index 4f5ff956..a4ab47b1 100644 --- a/test/commands/data/create/file.nut.ts +++ b/test/commands/data/create/file.nut.ts @@ -25,6 +25,7 @@ describe('data create file NUTs', () => { // create one record in the org that we'll use to attach stuff to acctId = execCmd('data:create:record -s Account -v "Name=TestAccount" --json', { ensureExitCode: 0, + cli: 'sf' }).jsonOutput?.result.id; expect(acctId).to.be.a('string'); // make a file we can upload From ce0ff75e9662c1517d2defacadcbeb9dea2d5d91 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Mon, 26 Aug 2024 15:25:22 -0300 Subject: [PATCH 09/15] chore: ci re-run From 57f2076f80218c9ec31b6e50c2bdebad598ad60d Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Mon, 26 Aug 2024 16:52:17 -0300 Subject: [PATCH 10/15] chore: ci re-run From dcaa3e82e0b852e65b9d0e84b744191506d833b0 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Thu, 29 Aug 2024 14:01:03 -0300 Subject: [PATCH 11/15] chore: update workflows --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7c124c1c..78c29142 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,10 @@ jobs: # Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs linux-unit-tests: needs: yarn-lockfile-check - uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main + uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@ew/skip-node-minus windows-unit-tests: needs: linux-unit-tests - uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main + uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@ew/skip-node-minus nuts: needs: linux-unit-tests uses: salesforcecli/github-workflows/.github/workflows/nut.yml@ew/input-envs From 294254b6e4a7af25f5b384afb188427bb84bd01c Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Thu, 29 Aug 2024 14:04:44 -0300 Subject: [PATCH 12/15] chore: update workflows --- .github/workflows/test.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 78c29142..e29eb1a1 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,9 +11,13 @@ jobs: linux-unit-tests: needs: yarn-lockfile-check uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@ew/skip-node-minus + with: + nodeDisablePrevious: true windows-unit-tests: needs: linux-unit-tests uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@ew/skip-node-minus + with: + nodeVersionOverride: '22' nuts: needs: linux-unit-tests uses: salesforcecli/github-workflows/.github/workflows/nut.yml@ew/input-envs From f3093568d13513044bf6fc7ae4ae586aab6b5a61 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Thu, 29 Aug 2024 14:06:34 -0300 Subject: [PATCH 13/15] chore: update workflows --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e29eb1a1..894a4280 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,7 +20,7 @@ jobs: nodeVersionOverride: '22' nuts: needs: linux-unit-tests - uses: salesforcecli/github-workflows/.github/workflows/nut.yml@ew/input-envs + uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main secrets: inherit strategy: matrix: From 7a65678b2d11b37b7e243036fcef9bd3a7ab2102 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Thu, 29 Aug 2024 14:07:53 -0300 Subject: [PATCH 14/15] chore: update workflows --- .github/workflows/test.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 894a4280..45038f10 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,13 +11,9 @@ jobs: linux-unit-tests: needs: yarn-lockfile-check uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@ew/skip-node-minus - with: - nodeDisablePrevious: true windows-unit-tests: needs: linux-unit-tests uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@ew/skip-node-minus - with: - nodeVersionOverride: '22' nuts: needs: linux-unit-tests uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main From cd49f9910bdfe7b378d60dd076c2ef2dde075139 Mon Sep 17 00:00:00 2001 From: Cristian Dominguez Date: Fri, 13 Sep 2024 15:14:33 -0300 Subject: [PATCH 15/15] chore(ci): workflows point back to main --- .github/workflows/create-github-release.yml | 2 +- .github/workflows/onRelease.yml | 4 ++-- .github/workflows/test.yml | 4 ++-- .github/workflows/validate-pr.yml | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/create-github-release.yml b/.github/workflows/create-github-release.yml index f484dac1..2021e825 100644 --- a/.github/workflows/create-github-release.yml +++ b/.github/workflows/create-github-release.yml @@ -15,7 +15,7 @@ on: jobs: release: - uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@ew/input-envs + uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@main secrets: inherit with: prerelease: ${{ inputs.prerelease }} diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index 21a62fb3..d9102e0e 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -19,10 +19,10 @@ jobs: - uses: actions/checkout@v4 with: ref: ${{ github.event.release.tag_name || inputs.tag }} - - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@ew/input-envs + - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main id: distTag npm: - uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@ew/input-envs + uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main needs: [getDistTag] with: ctc: true diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 45038f10..04639c09 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,10 +10,10 @@ jobs: # Since the Windows unit tests take much longer, we run the linux unit tests first and then run the windows unit tests in parallel with NUTs linux-unit-tests: needs: yarn-lockfile-check - uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@ew/skip-node-minus + uses: salesforcecli/github-workflows/.github/workflows/unitTestsLinux.yml@main windows-unit-tests: needs: linux-unit-tests - uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@ew/skip-node-minus + uses: salesforcecli/github-workflows/.github/workflows/unitTestsWindows.yml@main nuts: needs: linux-unit-tests uses: salesforcecli/github-workflows/.github/workflows/nut.yml@main diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index 3af5c0ee..a312052e 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -8,4 +8,4 @@ on: jobs: pr-validation: - uses: salesforcecli/github-workflows/.github/workflows/validatePR.yml@ew/input-envs + uses: salesforcecli/github-workflows/.github/workflows/validatePR.yml@main