Skip to content

Commit

Permalink
sf-ified prerelease (#777)
Browse files Browse the repository at this point in the history
* Wr/sf command (#775)

* feat: remove force:source:open command, now in plugin-org

* chore: move mdapi:describemetadata and mdapi:listmetadata to plugin-org

* feat: move commands to SfCommand, first pass through src

* chore: only table errors preventing building

* chore: src/ building

* chore: revert commits to create a clean src PR

* docs: convert json to md

* chore: bump testkit

* chore: restore test GHA

* test: working through UTs

* test: working through UTs

* test: all UTs passing when run individually

* test: attempt to remove sandbox - before

* test: move TestContext setup into describes

* chore: renable UTs in GHA

* test: remove sinon.createSandbox calls

* test: use 3762.stubConfig instead of push -o

* test: convert 1 ut to new style

* feat: deprecate and remove migrated commands

* refactor: devScripts update (#747)

* chore: updates from devScripts

* test: cheaper ci

* fix(deps): bump all the deps

* chore: lockfile dedupe

---------

Co-authored-by: mshanemc <[email protected]>

* fix(deps): bump jsforce from 2.0.0-beta.19 to 2.0.0-beta.20 (#745)

Bumps [jsforce](https://github.com/jsforce/jsforce) from 2.0.0-beta.19 to 2.0.0-beta.20.
- [Release notes](https://github.com/jsforce/jsforce/releases)
- [Changelog](https://github.com/jsforce/jsforce/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jsforce/jsforce/commits)

---
updated-dependencies:
- dependency-name: jsforce
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): 2.5.5 [skip ci]

* chore(dev-deps): bump @typescript-eslint/parser from 5.49.0 to 5.54.0 (#753)

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.49.0 to 5.54.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.54.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(dev-deps): bump prettier from 2.8.3 to 2.8.4 (#752)

Bumps [prettier](https://github.com/prettier/prettier) from 2.8.3 to 2.8.4.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@2.8.3...2.8.4)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(dev-deps): bump @oclif/plugin-help from 5.2.2 to 5.2.6 (#751)

Bumps [@oclif/plugin-help](https://github.com/oclif/plugin-help) from 5.2.2 to 5.2.6.
- [Release notes](https://github.com/oclif/plugin-help/releases)
- [Changelog](https://github.com/oclif/plugin-help/blob/main/CHANGELOG.md)
- [Commits](oclif/plugin-help@5.2.2...5.2.6)

---
updated-dependencies:
- dependency-name: "@oclif/plugin-help"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* test: update tracking nuts for e-bikes changes

* test: update tracking nuts for e-bikes changes

* chore(dev-deps): bump @salesforce/plugin-templates from 55.1.0 to 55.4.4 (#750)

Bumps [@salesforce/plugin-templates](https://github.com/salesforcecli/plugin-templates) from 55.1.0 to 55.4.4.
- [Release notes](https://github.com/salesforcecli/plugin-templates/releases)
- [Changelog](https://github.com/salesforcecli/plugin-templates/blob/main/CHANGELOG.md)
- [Commits](https://github.com/salesforcecli/plugin-templates/commits/55.4.4)

---
updated-dependencies:
- dependency-name: "@salesforce/plugin-templates"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore: delete everything that's been moved to PDR

* chore: deprecate commands, remove ones moved to PDR

* feat: get types from sdr registry

* feat: get types from sdr registry

* test: only assert require properties

* chore(release): 2.6.0 [skip ci]

* chore(dev-deps): bump @salesforce/cli-plugins-testkit (#761)

Bumps [@salesforce/cli-plugins-testkit](https://github.com/salesforcecli/cli-plugins-testkit) from 3.2.23 to 3.2.24.
- [Release notes](https://github.com/salesforcecli/cli-plugins-testkit/releases)
- [Changelog](https://github.com/salesforcecli/cli-plugins-testkit/blob/main/CHANGELOG.md)
- [Commits](salesforcecli/cli-plugins-testkit@3.2.23...3.2.24)

---
updated-dependencies:
- dependency-name: "@salesforce/cli-plugins-testkit"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump @sideway/formula in /test/nuts/nestedLWCProject (#763)

Bumps [@sideway/formula](https://github.com/sideway/formula) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/sideway/formula/releases)
- [Commits](hapijs/formula@v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: "@sideway/formula"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(dev-deps): bump @salesforce/plugin-info from 2.4.2 to 2.5.1 (#760)

Bumps [@salesforce/plugin-info](https://github.com/salesforcecli/plugin-info) from 2.4.2 to 2.5.1.
- [Release notes](https://github.com/salesforcecli/plugin-info/releases)
- [Changelog](https://github.com/salesforcecli/plugin-info/blob/main/CHANGELOG.md)
- [Commits](salesforcecli/plugin-info@2.4.2...2.5.1)

---
updated-dependencies:
- dependency-name: "@salesforce/plugin-info"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix(deps): bump @salesforce/source-deploy-retrieve from 7.11.0 to 7.11.3 (#759)

Bumps [@salesforce/source-deploy-retrieve](https://github.com/forcedotcom/source-deploy-retrieve) from 7.11.0 to 7.11.3.
- [Release notes](https://github.com/forcedotcom/source-deploy-retrieve/releases)
- [Changelog](https://github.com/forcedotcom/source-deploy-retrieve/blob/main/CHANGELOG.md)
- [Commits](forcedotcom/source-deploy-retrieve@7.11.0...7.11.3)

---
updated-dependencies:
- dependency-name: "@salesforce/source-deploy-retrieve"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): 2.6.1 [skip ci]

* fix(deps): bump @salesforce/source-tracking from 2.2.22 to 2.2.24 (#764)

Bumps [@salesforce/source-tracking](https://github.com/forcedotcom/source-tracking) from 2.2.22 to 2.2.24.
- [Release notes](https://github.com/forcedotcom/source-tracking/releases)
- [Changelog](https://github.com/forcedotcom/source-tracking/blob/main/CHANGELOG.md)
- [Commits](forcedotcom/source-tracking@2.2.22...2.2.24)

---
updated-dependencies:
- dependency-name: "@salesforce/source-tracking"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(release): 2.6.2 [skip ci]

* feat: verbose deploys without progress bar update with each poll (#757)

* chore(release): 2.7.0 [skip ci]

* feat: remove force:source:open command, now in plugin-org

* feat: remove force:source:open command, now in plugin-org

* chore: move mdapi:describemetadata and mdapi:listmetadata to plugin-org

---------

Co-authored-by: mshanemc <[email protected]>

* chore(release): 2.8.0 [skip ci]

* test: align tests with pjson

* test: there are no delete nuts

* test: specify cli for manifest generation

* test: unskip a test

* test: use sfdx for convert

* test: mock project because cwd

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: mshanemc <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: Steve Hetzel <[email protected]>

* refactor: move deprecation warnings to messages

* feat: remove beta aliases

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: mshanemc <[email protected]>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: Steve Hetzel <[email protected]>

* Wr/remove plugin config (#772)

* chore: remove plugin-config dep

* chore: fix NUT

* chore: replace config with settings

* chore: set pjson version to -beta

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: mshanemc <[email protected]>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: Steve Hetzel <[email protected]>

* chore: empty

* fix: publish empty

* chore(release): 2.8.0-beta.1 [skip ci]

* fix: change deprecation messages to avoid undefined command id (#779)

* fix: change deprecation messages to avoid undefined command id

* chore: deprecate source:push

* chore(release): 2.8.0-beta.2 [skip ci]

* fix: regen yarn.lock, cherry-pick Juliet's messages (#780)

* chore(release): 2.8.0-beta.3 [skip ci]

* fix: remove force:source:ignored:list command, in PDR

* fix: remove force:source:ignored:list command, in PDR

* fix: delete schema

* test: remove ignored:list NUT call

* chore(release): 2.8.0-beta.4 [skip ci]

* test: add e2e tests (NUTs) for deb and de md types

* feat: add e2e tests (NUTs) for deb and de md types

deb - DigitalExperienceBundle
de - DigitalExperience

* chore: fix network meta xmls

* chore: add site page delete tests

* chore: fix incorrect manifest file name

* chore: remove unnecessary assertion

* chore: add french variant to de_view_home

* chore: add helper function to assert de count of single deb

* chore: rename constants and helper function

* test: run deb nut tests

* test: skip tests until manifest create migrates

* test: deb nut only on linux

---------

Co-authored-by: Santhosh Emmadoju <[email protected]>

* fix: change "deprecate soon" to "in the future" (#788)

* chore(release): 2.8.0-beta.5 [skip ci]

* chore: lockfile build

* chore: snapshot

* chore: swc back to good version

* chore: rerun GHAs

* test: fullnames are forward-slash

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: mshanemc <[email protected]>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: svc-cli-bot <[email protected]>
Co-authored-by: Steve Hetzel <[email protected]>
Co-authored-by: Santhosh Emmadoju <[email protected]>
Co-authored-by: Juliet Shackell <[email protected]>
  • Loading branch information
8 people authored Mar 29, 2023
1 parent a88dfdd commit a034525
Show file tree
Hide file tree
Showing 285 changed files with 9,342 additions and 5,957 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
*/
module.exports = {
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'prettier'],
extends: ['eslint-config-salesforce-typescript', 'eslint-config-salesforce-license', 'prettier','plugin:sf-plugin/migration'],
ignorePatterns: ['test/nuts/ebikes-lwc/**', 'test/nuts/nestedLWCProject/**'],
};
12 changes: 6 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
command:
- 'yarn test:nuts:convert'
- 'yarn test:nuts:commands:other'
- 'yarn test:nuts:delete'
- 'yarn test:nuts:deploy'
- 'yarn test:nuts:deploy:async'
- 'yarn test:nuts:deploy:destructive'
- 'yarn test:nuts:deploy:rest'
- 'yarn test:nuts:manifest:create'
- 'yarn test:nuts:mdapi'
- 'yarn test:nuts:retrieve'
- 'yarn test:nuts:specialTypes'
- 'yarn test:nuts:deploy:destructive'
- 'yarn test:nuts:tracking'
- 'yarn test:nuts:mdapi'
- 'yarn test:nuts:deb'
exclude:
- os: windows-latest
command: yarn test:nuts:deb
fail-fast: false
with:
os: ${{ matrix.os }}
Expand Down
742 changes: 166 additions & 576 deletions CHANGELOG.md

Large diffs are not rendered by default.

116 changes: 25 additions & 91 deletions command-snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,14 @@
{
"command": "force",
"plugin": "@salesforce/plugin-source",
"flags": ["json", "loglevel"],
"flags": ["json"],
"alias": []
},
{
"command": "force:mdapi:convert",
"plugin": "@salesforce/plugin-source",
"flags": ["json", "loglevel", "manifest", "metadata", "metadatapath", "outputdir", "rootdir"],
"alias": ["force:mdapi:beta:convert"]
},
{
"command": "force:mdapi:deploy",
"plugin": "@salesforce/plugin-source",
"flags": [
"apiversion",
"api-version",
"checkonly",
"concise",
"coverageformatters",
Expand All @@ -30,38 +24,38 @@
"runtests",
"singlepackage",
"soapdeploy",
"targetusername",
"target-org",
"testlevel",
"validateddeployrequestid",
"verbose",
"wait",
"zipfile"
],
"alias": ["force:mdapi:beta:deploy"]
"alias": []
},
{
"command": "force:mdapi:deploy:cancel",
"plugin": "@salesforce/plugin-source",
"flags": ["apiversion", "jobid", "json", "loglevel", "targetusername", "wait"],
"flags": ["api-version", "jobid", "json", "loglevel", "target-org", "wait"],
"alias": []
},
{
"command": "force:mdapi:deploy:report",
"plugin": "@salesforce/plugin-source",
"flags": [
"apiversion",
"api-version",
"concise",
"coverageformatters",
"jobid",
"json",
"junit",
"loglevel",
"resultsdir",
"targetusername",
"target-org",
"verbose",
"wait"
],
"alias": ["force:mdapi:beta:deploy:report"]
"alias": []
},
{
"command": "force:mdapi:retrieve",
Expand All @@ -74,63 +68,37 @@
"retrievetargetdir",
"singlepackage",
"sourcedir",
"targetusername",
"target-org",
"unpackaged",
"unzip",
"verbose",
"wait",
"zipfilename"
],
"alias": ["force:mdapi:beta:retrieve"]
"alias": []
},
{
"command": "force:mdapi:retrieve:report",
"plugin": "@salesforce/plugin-source",
"flags": [
"apiversion",
"api-version",
"jobid",
"json",
"loglevel",
"retrievetargetdir",
"targetusername",
"target-org",
"unzip",
"verbose",
"wait",
"zipfilename"
],
"alias": ["force:mdapi:beta:retrieve:report"]
},
{
"command": "force:source:convert",
"plugin": "@salesforce/plugin-source",
"flags": ["json", "loglevel", "manifest", "metadata", "outputdir", "packagename", "rootdir", "sourcepath"],
"alias": []
},
{
"command": "force:source:delete",
"plugin": "@salesforce/plugin-source",
"flags": [
"apiversion",
"checkonly",
"forceoverwrite",
"json",
"loglevel",
"metadata",
"noprompt",
"sourcepath",
"targetusername",
"testlevel",
"tracksource",
"verbose",
"wait"
],
"alias": []
},
{
"command": "force:source:deploy",
"plugin": "@salesforce/plugin-source",
"flags": [
"apiversion",
"api-version",
"checkonly",
"coverageformatters",
"forceoverwrite",
Expand All @@ -148,7 +116,7 @@
"runtests",
"soapdeploy",
"sourcepath",
"targetusername",
"target-org",
"testlevel",
"tracksource",
"validateddeployrequestid",
Expand All @@ -160,65 +128,43 @@
{
"command": "force:source:deploy:cancel",
"plugin": "@salesforce/plugin-source",
"flags": ["apiversion", "jobid", "json", "loglevel", "targetusername", "wait"],
"flags": ["api-version", "jobid", "json", "loglevel", "target-org", "wait"],
"alias": []
},
{
"command": "force:source:deploy:report",
"plugin": "@salesforce/plugin-source",
"flags": [
"apiversion",
"api-version",
"coverageformatters",
"jobid",
"json",
"junit",
"loglevel",
"resultsdir",
"targetusername",
"target-org",
"verbose",
"wait"
],
"alias": []
},
{
"command": "force:source:ignored:list",
"plugin": "@salesforce/plugin-source",
"flags": ["json", "loglevel", "sourcepath"],
"alias": []
},
{
"command": "force:source:manifest:create",
"plugin": "@salesforce/plugin-source",
"flags": [
"apiversion",
"fromorg",
"includepackages",
"json",
"loglevel",
"manifestname",
"manifesttype",
"metadata",
"outputdir",
"sourcepath"
],
"alias": []
},
{
"command": "force:source:pull",
"plugin": "@salesforce/plugin-source",
"flags": ["apiversion", "forceoverwrite", "json", "loglevel", "targetusername", "wait"],
"alias": ["force:source:beta:pull"]
"flags": ["api-version", "forceoverwrite", "json", "loglevel", "target-org", "verbose", "wait"],
"alias": []
},
{
"command": "force:source:push",
"plugin": "@salesforce/plugin-source",
"flags": ["apiversion", "forceoverwrite", "ignorewarnings", "json", "loglevel", "quiet", "targetusername", "wait"],
"alias": ["force:source:beta:push"]
"flags": ["api-version", "forceoverwrite", "ignorewarnings", "json", "loglevel", "quiet", "target-org", "wait"],
"alias": []
},
{
"command": "force:source:retrieve",
"plugin": "@salesforce/plugin-source",
"flags": [
"api-version",
"apiversion",
"forceoverwrite",
"json",
Expand All @@ -228,7 +174,7 @@
"packagenames",
"retrievetargetdir",
"sourcepath",
"targetusername",
"target-org",
"tracksource",
"verbose",
"wait"
Expand All @@ -238,19 +184,7 @@
{
"command": "force:source:status",
"plugin": "@salesforce/plugin-source",
"flags": ["apiversion", "concise", "json", "local", "loglevel", "remote", "targetusername"],
"alias": ["force:source:beta:status"]
},
{
"command": "force:source:tracking:clear",
"plugin": "@salesforce/plugin-source",
"flags": ["apiversion", "json", "loglevel", "noprompt", "targetusername"],
"alias": ["force:source:beta:tracking:clear"]
},
{
"command": "force:source:tracking:reset",
"plugin": "@salesforce/plugin-source",
"flags": ["apiversion", "json", "loglevel", "noprompt", "revision", "targetusername"],
"alias": ["force:source:beta:tracking:reset"]
"flags": ["api-version", "concise", "json", "local", "loglevel", "remote", "target-org"],
"alias": []
}
]
15 changes: 0 additions & 15 deletions messages/cancel.json

This file was deleted.

39 changes: 39 additions & 0 deletions messages/cancel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# summary

Cancel a source deployment.

# description

Use this command to cancel a specified asynchronous source deployment. You can also specify a wait time (in minutes) to check for updates to the canceled deploy status.

To run the command asynchronously, set --wait to 0, which immediately returns the job ID. This way, you can continue to use the CLI. To check the status of the job, use "force source deploy report".

# examples

- Cancel a deployment and wait two minutes:

<%= config.bin %> <%= command.id %> --wait 2

- If you have multiple deployments in progress and want to cancel a specific one, specify the job ID:

<%= config.bin %> <%= command.id %> --jobid <jobid>

# flags.wait.summary

Number of minutes to wait for the command to complete and display results.

# flags.jobid.summary

Job ID of the deployment you want to cancel; defaults to your most recent CLI deployment if not specified.

# flags.wait.description

If the command continues to run after the wait period, the CLI returns control of the terminal window to you.

# CancelFailed

The cancel command failed due to: %s

# deprecation

We plan to deprecate this command in the future. Try using the "%s" command instead.
27 changes: 0 additions & 27 deletions messages/convert.json

This file was deleted.

20 changes: 0 additions & 20 deletions messages/create.json

This file was deleted.

Loading

0 comments on commit a034525

Please sign in to comment.