Skip to content
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

Add --ignore-destructive parameter #112

Merged
merged 6 commits into from
Apr 2, 2021

Conversation

scolladon
Copy link
Owner

What does this pull request contains? Explain your changes.


  • Added for new features.
  • Changed for changes in existing functionality.
  • Deprecated for soon-to-be removed features.
  • Removed for now removed features.
  • Fixed for any bug fixes.
  • Security in case of vulnerabilities.

Explain your changes


Add --ignore-destructive parameter to the cli
When specified it will override --ignore (if specified) and filter Deletion diff allowing to not have element in the ignore file added in the destructiveChanges

Does this close any currently open issues?


closes #98

  • Jest test to check the fix is applied are added.

Any particular element to being able to test locally


New parameter is added --ignore-destructive [-D]
When specified it will override --ignore (if specified) and filter Deletion diff allowing to not have element in the ignore file added in the destructiveChanges

Where has this been tested?


Operating System: Darwin Kernel Version 18.7.0: Tue Jan 12 22:04:47 PST 2021; root:xnu-4903.278.56~1/RELEASE_X86_64

yarn version: 1.22.10

node version: v15.12.0

git version: 2.31.0

sfdx version: sfdx-cli/7.93.1 darwin-x64 node-v15.12.0

sgd plugin version: sfdx-git-delta 4.2.3

Separate ignore filter function to improve maintainability
Add ignore setup in the filter function to ensure test isolation
Add test cases 1 by 1, 2 by 2 and mutually excluded
@scolladon scolladon requested a review from mehdicherf March 27, 2021 17:57
Copy link
Collaborator

@mehdicherf mehdicherf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@scolladon I've updated a few things is the Readme for this PR, are those changes ok for you too?

@scolladon
Copy link
Owner Author

@scolladon I've updated a few things is the Readme for this PR, are those changes ok for you too?

I'm totally ok, thanks for that!

@scolladon scolladon merged commit 4a934b0 into master Apr 2, 2021
@scolladon scolladon deleted the feature/destructive-change-ignore branch April 2, 2021 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Destructive changes - "metadata is standard and cannot be deleted"
2 participants