Skip to content

Commit

Permalink
chore: add rest to deploy options - needs SDR publish (#108)
Browse files Browse the repository at this point in the history
* chore: deploy NUTs (#84)

* chore: deploy NUTs

* chore: disable other NUTs

* chore: make test:nuts test all nuts

* chore: reduce number of redundant tests

* chore: move from nutshell to source-teskit (#85)

* chore: move from nutshell to source-teskit

* chore: try deploy NUTs

* chore: undo try deploy NUTs

* chore: try new way to find package.xml

* chore: undo find package xml

* chore: bump testkit to 0.0.5

* chore: don't throw if cleanup fails

* chore: parallelize NUTs, add wildcard option to retrieve

* chore: add logging when cleanup fails

* chore: update convert, NUTs to use genUniqueDir: false (#88)

* chore: update convert, NUTs to use genUniqueDir: false

* chore: add large executor to windows

* chore: add findAndMove manifest back

* chore: fix convert NUT output dir

* chore: try new approach

* chore: remove .github/autointegrator.yml (#80)

Authored via Leif

* Update README.md

@W-9260305@

* chore(release): 0.0.17 [ci skip]

* chore(deps-dev): bump @typescript-eslint/parser from 4.24.0 to 4.26.0 (#90)

* chore(deps-dev): bump @typescript-eslint/parser from 4.24.0 to 4.26.0

Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.24.0 to 4.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/parser)

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps-dev): bump sinon from 9.2.4 to 11.1.1

Bumps [sinon](https://github.com/sinonjs/sinon) from 9.2.4 to 11.1.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/CHANGELOG.md)
- [Commits](sinonjs/sinon@v9.2.4...v11.1.1)

Signed-off-by: dependabot[bot] <[email protected]>

* chore(deps-dev): bump @typescript-eslint/eslint-plugin

Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 4.24.0 to 4.26.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.26.0/packages/eslint-plugin)

Signed-off-by: dependabot[bot] <[email protected]>

* chore: update yarn.lock

* chore: pin sinon to v10.0.0

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

* chore: dependabot combined changes (#105)

* chore: bump dep versions

# Conflicts:
#	package.json

* chore: bump dev-scripts

# Conflicts:
#	yarn.lock

* chore: update yarn lock

* chore(deps-dev): bump @oclif/plugin-command-snapshot from 2.0.0 to 2.1.2 (#106)

Bumps [@oclif/plugin-command-snapshot](https://github.com/oclif/plugin-command-snapshot) from 2.0.0 to 2.1.2.
- [Release notes](https://github.com/oclif/plugin-command-snapshot/releases)
- [Changelog](https://github.com/oclif/plugin-command-snapshot/blob/master/CHANGELOG.md)
- [Commits](oclif/plugin-command-snapshot@v2.0.0...v2.1.2)

---
updated-dependencies:
- dependency-name: "@oclif/plugin-command-snapshot"
  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: add rest to deploy options - needs SDR publish

* chore: default to SOAP

Co-authored-by: Benjamin <[email protected]>
Co-authored-by: Steve Hetzel <[email protected]>
Co-authored-by: SF-CLI-BOT <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Peter Hale <[email protected]>
Co-authored-by: peternhale <[email protected]>
  • Loading branch information
7 people authored Jun 10, 2021
1 parent 612d15c commit b650446
Show file tree
Hide file tree
Showing 46 changed files with 1,646 additions and 2,528 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ workflows:
- release-management/test-nut:
name: nuts-on-linux
node_version: lts
size: large
sfdx_version: latest
requires:
- node-latest
- release-management/test-nut:
name: nuts-on-windows
sfdx_version: latest
size: large
node_version: lts
os: windows
requires:
Expand Down
2 changes: 0 additions & 2 deletions .github/autointegrator.yml

This file was deleted.

13 changes: 7 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: "monthly"
interval: 'monthly'
labels:
- "dependencies"
- 'dependencies'
open-pull-requests-limit: 100
pull-request-branch-name:
separator: "-"
separator: '-'
ignore:
- dependency-name: "typescript"
- dependency-name: 'typescript'
- dependency-name: 'sinon'
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.17](https://github.com/salesforcecli/plugin-source/compare/v0.0.16...v0.0.17) (2021-06-03)

### [0.0.16](https://github.com/salesforcecli/plugin-source/compare/v0.0.15...v0.0.16) (2021-05-20)

### [0.0.15](https://github.com/salesforcecli/plugin-source/compare/v0.0.14...v0.0.15) (2021-05-07)
Expand Down
291 changes: 286 additions & 5 deletions README.md

Large diffs are not rendered by default.

54 changes: 29 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,57 +1,60 @@
{
"name": "@salesforce/plugin-source",
"description": "Commands to interact with source formatted metadata",
"version": "0.0.16",
"version": "0.0.17",
"author": "Salesforce",
"bugs": "https://github.com/forcedotcom/cli/issues",
"dependencies": {
"@oclif/config": "^1",
"@salesforce/command": "^3.1.0",
"@salesforce/core": "^2.20.8",
"@salesforce/source-deploy-retrieve": "^2",
"@salesforce/command": "^3.1.3",
"@salesforce/core": "^2.23.4",
"@salesforce/source-deploy-retrieve": "^2.1.5",
"chalk": "^4.1.0",
"cli-ux": "^5.5.1",
"tslib": "^2"
},
"devDependencies": {
"@oclif/dev-cli": "^1",
"@oclif/plugin-command-snapshot": "^2.0.0",
"@salesforce/cli-plugins-testkit": "^1.1.1",
"@salesforce/cli-plugins-testkit": "^1.1.5",
"@salesforce/dev-config": "^2.1.2",
"@salesforce/dev-scripts": "^0.9.11",
"@salesforce/plugin-command-reference": "^1.3.0",
"@salesforce/plugin-config": "^1.2.6",
"@salesforce/dev-scripts": "^0.9.14",
"@salesforce/plugin-command-reference": "^1.3.4",
"@salesforce/plugin-config": "^1.2.8",
"@salesforce/plugin-user": "^1.3.0",
"@salesforce/prettier-config": "^0.0.2",
"@salesforce/ts-sinon": "1.3.5",
"@salesforce/source-testkit": "^0.0.5",
"@salesforce/ts-sinon": "1.3.16",
"@types/debug": "^4.1.5",
"@types/jsforce": "^1.9.29",
"@types/shelljs": "^0.8.8",
"@typescript-eslint/eslint-plugin": "^4.2.0",
"@typescript-eslint/parser": "^4.2.0",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"chai": "^4.2.0",
"chai-each": "^0.0.1",
"cz-conventional-changelog": "^3.3.0",
"debug": "^4.3.1",
"eslint": "^6.8.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^6.11.0",
"eslint-config-salesforce": "^0.1.6",
"eslint-config-salesforce-license": "^0.1.6",
"eslint-config-salesforce-typescript": "^0.2.7",
"eslint-plugin-header": "^3.0.0",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsdoc": "^27.0.3",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jsdoc": "^35.1.3",
"eslint-plugin-prettier": "^3.4.0",
"fast-glob": "^3.2.5",
"husky": "^4.2.5",
"lint-staged": "^10.2.2",
"mocha": "^8.3.0",
"husky": "^4.3.8",
"lint-staged": "^11.0.0",
"mocha": "^8.4.0",
"nyc": "^15.1.0",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"pretty-quick": "^3.1.0",
"salesforcedx-templates": "^49.8.0",
"shelljs": "^0.8.4",
"shx": "0.3.3",
"sinon": "^9.0.2",
"ts-node": "^8.10.2",
"sinon": "10.0.0",
"ts-node": "^10.0.0",
"typescript": "^4.1.3"
},
"config": {
Expand Down Expand Up @@ -84,7 +87,8 @@
"@oclif/plugin-help",
"@salesforce/plugin-command-reference",
"salesforcedx-templates",
"@salesforce/plugin-config"
"@salesforce/plugin-config",
"@salesforce/plugin-user"
],
"topics": {
"force": {
Expand Down Expand Up @@ -120,10 +124,10 @@
"test": "sf-test",
"test:command-reference": "./bin/run commandreference:generate --erroronwarnings",
"test:deprecation-policy": "./bin/run snapshot:compare",
"test:nuts": "ts-node ./test/nuts/generateNuts.ts && nyc mocha \"**/retrieve.*.nut.ts\" --slow 3000 --timeout 600000 --retries 0",
"test:nuts": "ts-node ./test/nuts/generateNuts.ts && nyc mocha \"**/*.nut.ts\" --slow 3000 --timeout 600000 --parallel --retries 0",
"test:nuts:convert": "PLUGIN_SOURCE_SEED_FILTER=\"convert\" ts-node ./test/nuts/generateNuts.ts && nyc mocha \"**/*.nut.ts\" --slow 3000 --timeout 600000 --parallel --retries 0",
"test:nuts:retrieve": "PLUGIN_SOURCE_SEED_FILTER=\"retrieve\" ts-node ./test/nuts/generateNuts.ts && nyc mocha \"**/*.nut.ts\" --slow 3000 --timeout 600000 --parallel --retries 0",
"test:nuts:deploy": "PLUGIN_SOURCE_SEED_FILTER=\"deploy\" ts-node ./test/nuts/generateNuts.ts && nyc mocha \"**/*.nut.ts\" --slow 3000 --timeout 600000 --parallel --retries 0",
"test:nuts:retrieve": "PLUGIN_SOURCE_SEED_FILTER=\"retrieve\" ts-node ./test/nuts/generateNuts.ts && nyc mocha \"**/*.nut.ts\" --slow 3000 --timeout 600000 --parallel --retries 0",
"version": "oclif-dev readme"
},
"husky": {
Expand Down
1 change: 1 addition & 0 deletions src/commands/force/source/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export class Convert extends SourceCommand {
type: 'directory',
outputDirectory: this.getFlag<string>('outputdir'),
packageName: this.getFlag<string>('packagename'),
genUniqueDir: false,
});
}

Expand Down
1 change: 1 addition & 0 deletions src/commands/force/source/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export class Deploy extends DeployCommand {
checkOnly: this.getFlag<boolean>('checkonly', false),
runTests: this.getFlag<string[]>('runtests'),
testLevel: this.getFlag<TestLevel>('testlevel'),
rest: this.isRest,
},
});
this.asyncDeployResult = { id: deploy.id };
Expand Down
1 change: 1 addition & 0 deletions src/componentSetBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export class ComponentSetBuilder {
const compSet = await ComponentSet.fromManifest({
manifestPath: manifest.manifestPath,
resolveSourcePaths: options.manifest.directoryPaths,
forceAddWildcards: true,
});
csAggregator.push(...compSet);
}
Expand Down
5 changes: 3 additions & 2 deletions src/deployCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,12 @@ export abstract class DeployCommand extends SourceCommand {
return false;
} else if (restDeployConfig === 'true') {
this.logger.debug('restDeploy SFDX config === true. Using REST');
return true;
} else {
this.logger.debug('soapdeploy flag unset. restDeploy SFDX config unset. Defaulting to REST');
this.logger.debug('soapdeploy flag unset. restDeploy SFDX config unset. Defaulting to SOAP');
}

return true;
return false;
}

protected async poll(deployId: string, options?: Partial<PollingClient.Options>): Promise<DeployResult> {
Expand Down
2 changes: 2 additions & 0 deletions test/commands/source/componentSetBuilder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ describe('ComponentSetBuilder', () => {
const compSet = await ComponentSetBuilder.build(options);
expect(fromManifestStub.calledOnce).to.equal(true);
expect(fromManifestStub.firstCall.args[0]).to.deep.equal({
forceAddWildcards: true,
manifestPath: options.manifest.manifestPath,
resolveSourcePaths: [packageDir1],
});
Expand All @@ -276,6 +277,7 @@ describe('ComponentSetBuilder', () => {
const compSet = await ComponentSetBuilder.build(options);
expect(fromManifestStub.callCount).to.equal(1);
expect(fromManifestStub.firstCall.args[0]).to.deep.equal({
forceAddWildcards: true,
manifestPath: options.manifest.manifestPath,
resolveSourcePaths: [packageDir1, packageDir2],
});
Expand Down
1 change: 1 addition & 0 deletions test/commands/source/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ describe('force:source:deploy', () => {
checkOnly: false,
runTests: [],
testLevel: 'NoTestRun',
rest: true,
},
};
if (overrides?.apiOptions) {
Expand Down
Loading

0 comments on commit b650446

Please sign in to comment.