-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Delta is not generate for webStoreTemplate and globalValuesSet #884
Comments
Hi @LINDVIOR18 ! Thanks for raising this issue and thanks for contributing in making this project better! I need more information about the context of execution and how to reproduce it exactly from your end. Can you give me those information please:
$ uname -v ; yarn -v ; node -v ; git --version ; sfdx --version ; sfdx plugins
$ git diff --name-status --no-renames <from> <to>
$ git diff --no-prefix <from> <to> -- <path to the global value set>
|
Thank you for that, They should appear in the |
Sorry, I compared a blank branch on local and for that reason it appears as destructive, however I am now committing to a blank branch with no data as example UAT branch. |
Ok, I think I understand better. Could you send me the exact steps to reproduce the issue please (with content) Thanks in advance, it will greatly help me solving this problem precisely |
I'm sorry I can't provide more details such as file names but this is the metadata that is generated and it's ok except for those two that are missing. And here expected package.xml line used for genereation $sf sgd:source:delta --to "HEAD" --from $ORIGIN_BRANCH --output . --generate-delta UPD: Sorry my mistake global values set is present, only WebStoreTemplate is not present. |
I tried to reproduce the issue in our reproduction playground from what I understand here. Here is the branch : output/sgd/reproduction/playground
├── globalValueSets
│ └── MyGVS.globalValueSet-meta.xml
└── webstoretemplate
└── MyWebStoreTemplate.webstoretemplate-meta.xml And it also generates this <?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>MyGVS</members>
<name>GlobalValueSet</name>
</types>
<types>
<members>MyWebStoreTemplate</members>
<name>WebStoreTemplate</name>
</types>
<version>50.0</version>
</Package> You can try on your own with the following commands: git clone https://github.com/scolladon/sfdx-git-delta-reproduction-playground.git
cd sfdx-git-delta-reproduction-playground
git checkout issue/884
sfdx sgd:source:delta -f HEAD~1 -d I think I am not able to reproduce |
I generated it in the repository you sent and yes it's still ok and a year ago it was still ok when I used it for WebStore Template but now I don't understand what the problem is. |
Could you show the path of the webstore template file please ? |
default path .../force-app/main/default/webStoreTemplates/AC.webStoreTemplate-meta.xml |
Ok I see why now... Both the folder and the suffix of the file are incorrect. To fix that you should change the folder name from Let me know if it fixed the issue and your side so we can close it :) |
Yes that's fixed thank you, At the moment when I do retries through the package it generates like this and it's a bit inconvenient to search why and change the name. In any case thanks, so we can close the case and you can update the plugin if you want!?
|
Yes, I think too we should close it then. |
So everything works ok, but there are metadata escapes like for example, Global Values Set and Web Store Template, after generation, they don't appear in changeSet. Even if I do them separately or with all other metadata they never appear in the file as changes.
sfdx-git-delta is used in the pipeline.
Install Salesforce CLI plugin
RUN echo y | sfdx plugins:install sfdx-git-delta
The text was updated successfully, but these errors were encountered: