Hi all, I'm currently trying to deploy a few scri...
# sdf
r
Hi all, I'm currently trying to deploy a few script changes from a large project via SDF. I've identified the scripts being changes via git diff & made a new directory ('build') which reflects the correct folder structure and also contains both deploy.xml & manifest.xml. However, when I preview the deployment, SDF decides it wants to delete every single object in the account. Is this normal behavior / are there any workarounds?
e
Can you show more of what you're looking at? SDF is non-destructive (it doesn't delete anything) unless this is a SuiteApp project
r
Hey @erictgrubaugh, it is a SuiteApp project. Essentially, the directory is structured as such: - FileCabinet/SuiteApps/etc - Objects/ - build/ I'm using a git-diff command to copy only modified script/object files to the build/ dir & then using
sdfcli deploy -p build
from the root directory. My thought process behind this was it would speed up deployments as we could only deploy what we need to, rather than the whole project for each pull request. After running, there's a lot of 'Delete object' entries (I'm guessing every single object in the target account) alongside the 'Upload file' entries. Does that help clarify or do you need any more info?
a
Suiteapp deploys doesnt work like that. For example If you have a suiteapp deployed in the project with 10 objects, in next deployment you just changed 1 object, you still have to deploy all the files. If you just deploy that 1 object which you changed, suiteapp will think that the other files are not needed anymore and hence will be deleted.
r
@Ali Syed (NS DevTools QA) Would it be possible to have a feature request to be able to pass in an extra argument when deploying? Something along the lines of:
-no-delete
. It becomes troublesome deploying large SuiteApps due to gateway time out errors.
l
Hi @Ryan Jones Sure. Normally, you could fill your request in Github but in this case, since we are talking about modifying the way SuiteApps are deployed, I would advise you to contact Customer support for creating a ticket in our internal tracking system. Thanks