Hi, all. I've been tinkering with our custom suite...
# suitescript
j
Hi, all. I've been tinkering with our custom suitescripts here and there. But I'm currently working on my first big customization and getting the jitters as we get close to implementation. I have some new scripts going in, but I also made substantial changes to a few existing scripts. For the existing scripts, I assume the best practice would be to upload new script records entirely, and when we're ready, undeploy the existing script and deploy the new ones. Is that correct? Rather than copying and replacing directly into the existing script? And if that's the case, should I make any changes to the ids? These are user event and map/reduce scripts. I don't think there are id references to them, but it's always possible I'm missing something. Should I change the id as well? (Iterate the old one, give my new script the old id.)
b
it messes with ids, the usual is to just upload all the changes at the same time via sdf, or if you are old with multiple accounts, bundles
keeping the old scripts really only makes sense if you dont think you can revert your changes if something goes wrong, which suggests a problem with revision management
j
So just overwrite the existing js files?
That was my original plan. Maybe download the existing just to have on hand if I need to revert. That is simpler in a way.
b
Version control is what you want to know
with git used in github being the popular system
j
I have some experience with SVN, but I haven't moved into Git yet. Will need to do that.
Thanks.