-
-
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
Issue with the package.xml for einstein bot deployment #685
Comments
Hi @sairohith1009 ! Thanks for raising this issue and thanks for contributing in making this project better! I wonder if it is because the Can you tell me more about this issue ? |
Can you tell me more about this issue ? :
What is the output of this command? git diff --name-status --no-renames : What is the expected result ? : we should get the package.xml getting created with the bot folder and bot component in it and no validation failures. How can I reproduce it locally the simplest way ?
What is the context? |
Ok, thanks for all the information. I need one more information:
|
Hi @scolladon |
I asked if there is a
We fixed a similar issue (#219) by adding the related version file every time the bot file is changed (and vice versa). And this is why I asked if the repo is fully deployable. If it is not the case and if the error is the same then the issue is not from the scoping done by the plugin, but from the versioning. One last thing, I highly recommend you to use the |
To preface, I personally haven't used this plugin yet to create a delta package for a bot deployment. But I do have plans to implement this plugin into my work repo in the future which has Bots so it will affect me at some point. But, something I learned through some trial and error with manually deploying Bots through the CLI was that most of my issues deploying Bots were resolved by just using the 'Bot' metadata type and omitting the 'BotVersion' metadata type entirely from the package.XML. Especially when you start adding intent sets to the Bot, which will show in the overall Bot meta file and the version specific file. Main obstacle I saw was that you need to manually disable the active bot version in the org, if one is active, before deploying this way. The CLI doesn't automatically disable active bot versions in the org before deploying. Change Sets appear to do this based on tests with the CLI and Change Sets. In terms of this Plugin, I would recommend just using the 'Bot' metadata type and detect changes specific to the Bot folder. If any file under the Bot folder changed (whether it's 1 version file or the overall bot meta file), I would say the plug-in should just look at the relative folder name and use the 'Bot' type to ensure everything gets deployed. Any retrievals from a sandbox org into a Git branch would need to use the 'Bot' type to ensure all changes are captured. Obviously it adds the manual pre-deployment step with deactivating any active bot versions, but I have not found any better way to deploy Bots using the CLI. |
Hi @mcarvin8, Thanks for this detailed explanation of how it works. Very clear. Today the plugin behave the following way with
If you want the I think this behavior of the plugin support your suggestion. From what you said it seems the deployment will still need a manual task pre deployment. |
Thanks @scolladon. Yea I agree the behavior of the plugin in regards to bots is good as-is. I think I'll look into the I agree that the plugin shouldn't be responsible for disabling the active bot version via the Metadata API before deployment. That's something I'll probably submit as a feature request on the Salesforce CLI repo. |
Just to update this, I did just figure out a way to get around the Pre-Deployment step of de-activating the active bot version before deploying through the CLI. You can just update the # Ignore active bot version
**/bots/Test_Bot/v19.botVersion-meta.xml |
Issue verification check:
What is the problem?
We are trying to deploy einstein bot for the first time via GitHub Repo using this SGD plugin.
when doing the validation we are facing an issue with the component.
error : bots/CA_ChatBot.bot (CA_ChatBot.v2) -- Error: Not in package.xml
package.xml which is getting generated during the run time :
What is the parameter and the value you used with it?
What is the expected result?
What is the actual result?
Steps to reproduce
Execution context
Operating System: …
yarn version: …
node version: …
git version: …
sfdx version: …
sgd plugin version: …
More information (optional)
The text was updated successfully, but these errors were encountered: