-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Not adding Bot or BotVersion #219
Comments
I tried to push my example to https://github.com/scolladon/sfdx-git-delta-reproduction-playground, but I have no access. |
Hi @marioconcilio ! Thanks for this very well documented issue ! You should now have access to the reproduction playground, if you could create a branch there ( I'll look at it soon and let you know here my findings ! Thanks for your compliments about the plugin, it is always very nice to hear that, thank you from the whole team |
Hi @scolladon! Thanks for the prompt response! |
You should have receive an email to accept the access to the repo |
Oops, my mistake! I've just pushed the new branch. I am at your disposal to test the new solution and clarify any doubts. Thanks again for your attention! |
Thanks for providing data to isolate the behaviour I am trying to compare what is in the reproduction-playground with what the doc says Bot and BotVersion are already in our metadata file so they should be handled (and they are but not with this form). What I can see with this issue and the reproduction playground is that it is expected Bot and BotVersion to be retrieved each in their own files. But when I look at the doc I can see only one file ( But ! the Bot suffix and Directory location section can also be understood as if there is 2 different files, one of the bot definition and one for the bot version, with the same file extension... (weird) @marioconcilio if you have any experience with that, answers to those questions, documentations, please share with us. |
@scolladon I've performed a few tests, and I confirm that a bot is actually composed of several files (one For example, I've created 3 bots in a scratch org, and here is the retrieved metadata after running a |
Hi @scolladon, sorry for the late response.
The botVersion is related to the Bot that is on the same subfolder. It is just as @mehdisfdc stated. The documentation is indeed misleading regarding the bot suffix.
Bots are retrieved using the following command: This retrieves the FULL NAME TYPE PROJECT PATH
─────────────────── ────────── ────────────────────────────────────────────────────────────────────────
BR_WhatsApp_Bot Bot force-app/main/default/bots/BR_WhatsApp_Bot/BR_WhatsApp_Bot.bot-meta.xml
v25 BotVersion force-app/main/default/bots/BR_WhatsApp_Bot/v25.botVersion-meta.xml Additionally, it is possible to retrieve a single bot version running: This retrieves a single file representing the bot version ( FULL NAME TYPE PROJECT PATH
───────── ────────── ───────────────────────────────────────────────────────────────────
v25 BotVersion force-app/main/default/bots/BR_WhatsApp_Bot/v25.botVersion-meta.xml |
Hi @marioconcilio ! I just created a new version (currently under review). Could you try it (how to here) and give feedback ? |
Hi @scolladon! I tested and it worked! The plugin added the Can you please make sgd automatically include |
Hi @marioconcilio ! I just added this behaviour in the PR #226 Let me know ! |
Hi @scolladon! I just tested and the <types>
<members>BRAcquisitionWhatsAppBot</members>
<members>BR_WhatsApp_Bot</members>
<members>Sam_Web_IT</members>
<name>bots</name>
</types>
<types>
<members>BRAcquisitionWhatsAppBot.v5</members>
<members>BR_WhatsApp_Bot.v26</members>
<members>Sam_Web_IT.v12</members>
<name>BotVersion</name>
</types> The expected output is: <types>
<members>BRAcquisitionWhatsAppBot</members>
<members>BR_WhatsApp_Bot</members>
<members>Sam_Web_IT</members>
<name>Bot</name>
</types>
<types>
<members>BRAcquisitionWhatsAppBot.v5</members>
<members>BR_WhatsApp_Bot.v26</members>
<members>Sam_Web_IT.v12</members>
<name>BotVersion</name>
</types> When we change only the bot ( <types>
<members>BR_WhatsApp_Bot</members>
<name>Bot</name>
</types> Please let me know when it is ready to test! |
@marioconcilio nice catch 👁️ !! Thanks for the review I have pushed a fix to address that. |
It is working perfectly fine @scolladon ! I tested creating a new bot, and the sgd:
I also tested creating just a new bot version, and the sgd:
Additionally, I tested deleting one single bot version, and the sgd:
Finally, I tested deleting the entire bot, and the sgd:
In summary, sfdx-git-delta is working:
Thanks a lot for this huge fix! I am looking forward to seeing this new version published! |
Thank you very much for the QA and all the help ! |
Thank you @scolladon for the code, and thank you @marioconcilio for find the issue and testing the new version! The plugin is getting better every week 😄 |
New version (4.12.0) available ! |
Issue verification check :
What is the problem
We are looking into using sgd to automate our deployments. During testing, we noticed that neither bots nor botVersions are being added to the package, although they have changed.
What is the parameter and their value you used
sfdx sgd:source:delta \ --from $(git merge-base issue/219 master) \ --to HEAD \ --output changed_sources \ --api-version=53.0 \ --source sgd \
What is the expected result
What is the actual result
Steps to reproduce
bot-meta.xml
andbotVersion-meta.xml
filesExecution context
Operating System: MacOs Catalina (Darwin Kernel Version 19.4.0; root:xnu-6153.101.6~15/RELEASE_X86_640)
node version: v16.13.1
git version: git version 2.24.3 (Apple Git-128)
sfdx version: sfdx-cli/7.129.0 darwin-x64 node-v16.13.1
sgd plugin version: sfdx-git-delta 4.11.0
Optional more information
git diff --name-status --no-renames $(git merge-base issue/219 master) HEAD
Output:
The text was updated successfully, but these errors were encountered: