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

fix: --include parameter for metadata contained in file #678

Merged
merged 18 commits into from
Aug 28, 2023

Conversation

scolladon
Copy link
Owner

Explain your changes


Include implementation is now done in post processing.
It deals with inFile metadata more gracefully allowing them to be listed in package.xml and copied (when -d is set)
include destructive also benefit from this improvement

README file has been updated to explain the specificity of this implementation as it requires full repo fetch depth.
micromatch has been removed from the dependency and ignore implementation has been reused for include (exact inverted logic)

E2E tests have been added for include, include-destructive, ignore and ignore-destructive cases

Does this close any currently open issues?


closes #677

  • Jest tests added to cover the fix.
  • NUT tests added to cover the fix.
  • E2E tests added to cover the fix.

Any particular element that can be tested locally


You can use the issue/677 branch in the reproduction playground

@codecov
Copy link

codecov bot commented Aug 27, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (2982f02) 100.00% compared to head (9d9b4ca) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #678   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           32        34    +2     
  Lines          905       948   +43     
=========================================
+ Hits           905       948   +43     
Files Changed Coverage Δ
src/main.js 100.00% <100.00%> (ø)
src/post-processor/includeProcessor.js 100.00% <100.00%> (ø)
src/post-processor/postProcessorManager.js 100.00% <100.00%> (ø)
src/service/diffLineInterpreter.js 100.00% <100.00%> (ø)
src/utils/gitConstants.js 100.00% <100.00%> (ø)
src/utils/ignoreHelper.js 100.00% <100.00%> (ø)
src/utils/repoGitDiff.js 100.00% <100.00%> (ø)
src/utils/repoSetup.js 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

README.md Outdated Show resolved Hide resolved
mehdicherf
mehdicherf previously approved these changes Aug 28, 2023
@codeclimate
Copy link

codeclimate bot commented Aug 28, 2023

Code Climate has analyzed commit 9d9b4ca and detected 0 issues on this pull request.

View more on Code Climate.

@scolladon scolladon merged commit 281fa33 into main Aug 28, 2023
21 checks passed
@scolladon scolladon deleted the fix/include-parameter branch August 28, 2023 13:51
@github-actions
Copy link

Shipped in release v5.25.0.
You can install the new version using the version number or the latest-rc channel

$ sfdx plugins:install sfdx-git-delta@latest-rc
$ sfdx plugins:install [email protected]

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.

Not picking up Custom Labels with --include param
2 participants