Has anyone found a way to do a bulk update on all ...
# sdf
a
Has anyone found a way to do a bulk update on all objects in your customization project? I am concerned that if I deploy something like a saved search via SDF, but then a user makes modifications in the UI, then I want to be able to fetch the latest definition before I deploy again. I know how to do this individually but a bulk command would be really helpful so I don't have to do them one by one. I'm new to SDF so if I'm going down the wrong path please let me know!
a
right click context menu in webstorm gives you options to update all objects with account versions... not sure how to do that via CLI but I assume there's a way
a
Thanks! I use IntelliJ anyway so I should give that a look
e
Command Line uses the
object:update
command, but you have to specify every Object you want to pull down by its `scriptid`; previously I've built a bash script to read all the IDs in the project, then pass them all to
object:update
. Really wish
object:update
with no params would just pull down all objects in the project
💯 2
a
@erictgrubaugh I was considering writing a bash script like that! I don't suppose you'd be willing to share your code?
e
I would love to, but unfortunately it's no longer my code to share
👍 1
n
I made the mistake yesterday 😱 I forgot to check the possible changes in the account before deploying. Hopefully, anything broke but, that would be great to have that indeed.
a
Update: it does look like I can run the command interactively and press (a) to select all objects
I did try the Webstorm plugin and found it to be crazy buggy
Also it's interesting to me that some objects change every single time I pull an update
💯 1
e
Ah, yes if you want to do it manually every time, you can do the Select All; my brain has been in devops automation mode for months 😄
a
Hope to get there eventually. But before I automate I want to get a feel for all the gotchas, which unfortunately there seem to be a lot of 😕
e
^ The order of the tags in the XML that SDF pulls down seems to be completely arbitrary. I noticed lots of changes that were just XML tags changing order.
🤯 1
a
Same!
w
I have a small node.js script that reads the deploy.xml and only updates the objects mentioned in it. We specify each file&object in deploy.xml.
🤯 1
👍 1