scolladon / sfdx-git-delta

Generate the sfdx content in source format from two git commits
Other
414 stars 112 forks source link

sfdx git delta is unable to generate package.xml for the omni supervisor configuration #789

Closed narmadakankuri9 closed 6 months ago

narmadakankuri9 commented 6 months ago

Issue verification check:

What is the problem?

  1. We have code change which consist of omni supervisor configuration in my code base. When I generate the package.xml using sfdx git delta. I was not able to se any members in the package.xml

What is the parameter and the value you used with it?

sfdx sgd:source:delta --from --output ./git-delta-diff

What is the expected result?

What is the actual result?

command is generated the pakage.xml but it is without omni supervisor configuration changes

Steps to reproduce

  1. do some code base changes with omni supervisor configuration

folder structure : force-app/main/default/omniSupervisorConfigs

Execution context

sfdx sgd:source:delta --from --output ./git-delta-diff

Operating System: … windows

sfdx version: … 7.144.2

sgd plugin version: … 5.2.0

More information (optional)

scolladon commented 6 months ago

Hi @narmadakankuri9 !

Thanks for raising this issue and thanks for contributing in making this project better!

I see you are using the version v5.2.0 of sgd. omniSupervisorConfigs metadata support has been introduce in v5.29.0.

Could you update the plugin (using latest-rc channel would be best) and try again please ?

$ sfdx plugins:update
# or
$ sfdx plugins:install sfdx-git-delta@latest-rc
narmadakankuri9 commented 6 months ago

Hello @scolladon - I have update the git-delta to sfdx-git-delta 5.34.0 version and tried to generate the package.xml. Still I see empty package.xml.

scolladon commented 6 months ago

Could you send the result of this command please :

$ git diff --name-status --no-renames <from> HEAD
# where <from> is the commit sha or git shortcut used with the `--from` parameter of sgd
narmadakankuri9 commented 6 months ago

@scolladon - Here is the output of the command

git diff --name-status --no-renames <--from> <--to>

D force-app/main/default/omniSupervisorConfigs/Test3.omniSupervisorConfig-meta.xml

scolladon commented 6 months ago

I think the omni supervisor config should be in the destructiveChanges.xml file as git tells it is deleted (D) @narmadakankuri9

narmadakankuri9 commented 6 months ago

Sorry my bad! It's typo mistake. After upgrading the sfdx-git-delta to latest version I can see omni configurations in package.xml and as a source files. Thank you for the inputs!