Skip to content

Commit

Permalink
adding deprecate notice to picklist and permset patch commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mani committed Jan 22, 2020
1 parent 050fa4a commit e5a8487
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ EXAMPLE

_See code: [src\commands\sfpowerkit\package\dependencies\install.ts](https://github.com/Accenture/sfpowerkit/blob/master/src/commands/sfpowerkit/package/dependencies/install.ts)_

## `sfpowerkit:source:picklist:generatepatch`
## `sfpowerkit:source:picklist:generatepatch [Deprecate]`

This command generates a patch in the format of a metadata packed together as a static resource with the intent of solving the following issues.

Expand All @@ -358,6 +358,8 @@ This command generates a patch in the format of a metadata packed together as a

These command is to be run just before the package:version: create command and any changes made by the command should not be committed to the repo. Once a patch is generated and the package is installed in the target org, run the apply patch command tofix the above issues.

This command is now deprecated and will be removed shortly, please use standard methods.

```
USAGE
$ sfdx sfpowerkit:source:picklist:generatepatch [-p <string>] [-d <string>] [-f <boolean>] [-r <boolean>]
Expand Down Expand Up @@ -388,9 +390,11 @@ EXAMPLE

_See code: [src\commands\sfpowerkit\source\picklist\generatepatch.ts](https://github.com/Accenture/sfpowerkit/blob/master/src/commands/sfpowerkit/source/picklist/generatepatch.ts)_

## `sfpowerkit:source:permissionset:generatepatch`
## `sfpowerkit:source:permissionset:generatepatch [Deprecate]`

Search permissionsets inside project and create a static resource file with permissionsets, used to solve the recordtype assignment upgrade issue in dx unlock package.

Search permissionsets inside project and create a static resource file with permissionsets, used to solve the recordtype assignment upgrade issue in dx unlock package
This command is now deprecated and will be removed shortly, please use standard methods. refer https://success.salesforce.com/issues_view?id=a1p3A0000003UjTQAU for more information.

```
USAGE
Expand Down
8 changes: 8 additions & 0 deletions src/commands/sfpowerkit/source/permissionset/generatepatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ export default class Generatepatch extends SfdxCommand {
rimraf.sync("temp_sfpowerkit");

SFPowerkit.setLogLevel(this.flags.loglevel, this.flags.json);
//Deprecation notice
SFPowerkit.log(
"--------DEPRECATION NOTICE--------\n" +
"This command is now deprecated and will be removed shortly, please use standard methods.\n" +
"refer https://success.salesforce.com/issues_view?id=a1p3A0000003UjTQAU for more information.\n" +
"-------------------------------------------------------------------------------",
LoggerLevel.WARN
);

// Getting Project config
const project = await SfdxProject.resolve();
Expand Down
8 changes: 7 additions & 1 deletion src/commands/sfpowerkit/source/picklist/generatepatch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,13 @@ export default class Generatepatch extends SfdxCommand {
rimraf.sync("temp_sfpowerkit");

SFPowerkit.setLogLevel(this.flags.loglevel, this.flags.json);
//
//Deprecation notice
SFPowerkit.log(
"--------DEPRECATION NOTICE--------\n" +
"This command is now deprecated and will be removed shortly, please use standard methods.\n" +
"-------------------------------------------------------------------------------",
LoggerLevel.WARN
);

// Getting Project config
const project = await SfdxProject.resolve();
Expand Down

0 comments on commit e5a8487

Please sign in to comment.