-
-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add a new command to filter the content of Profile and Pset based on multiple package.xml #90
Conversation
const XML_PARSER_OPTION = { | ||
ignoreAttributes: false, | ||
ignoreNameSpace: false, | ||
arrayMode: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can fix some potential issue in very edge case
220871b
to
ae44c14
Compare
|
||
protected static requiresProject = true | ||
|
||
public async run(): Promise<AnyJson> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function run
has 88 lines of code (exceeds 25 allowed). Consider refactoring.
Also add arrayMode:true in case of only one element child
|
||
protected static requiresProject = true | ||
|
||
public async run(): Promise<AnyJson> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function run
has 87 lines of code (exceeds 25 allowed). Consider refactoring.
Codecov Report
@@ Coverage Diff @@
## main #90 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 23 23
Lines 633 633
=========================================
Hits 633 633 Continue to review full report at Codecov.
|
|
||
protected static requiresProject = true | ||
|
||
public async run(): Promise<AnyJson> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Function run
has 86 lines of code (exceeds 25 allowed). Consider refactoring.
Code Climate has analyzed commit 4df207a and detected 1 issue on this pull request. Here's the issue category breakdown:
View more on Code Climate. |
What does this pull request contains? Explain your changes.
Explain your changes
Add a new command to have the ability to filter the content of a Profile and a Permission Set based on the content of multiple package.xml
The command takes a list of path of package.xml
The command takes a list of path where profile and permissionset should be located (recursively) to apply the filtering into them.
The command takes a list of userPermissions to keep. The actual behaviour is to remove every user permission not present in this white list.
Does this close any currently open issues?
No issue related
Any particular element to being able to test locally
To test it you have to call the command
sfdx sgd:source:ppset -h
Any other comments?
This is WIP, no test case written yet and no traction from the community for this use case.
The current state of the code written is not acceptable
Where has this been tested?
Operating System: Darwin Kernel Version 18.7.0
Yarn version: 1.22.10
Node version: v15.6.0
sgd version: 4.1.0
git version: 2.30.0