erquhart
erquhart8mo ago

Dashboard function default args caused some confusion

Just some user feedback here. - I tried out Ian's (excellent!) migration helper - deployed the migration function, and ran it from the dashboard - got an error saying batch size must be greater than zero - I was certain I had just read that there was a default value of 100, so I manually added a batch size in my code, redeployed, and planned to submit a bug issue to the repo - Ran it again and got the same error - Stared in confusion, went back and read docs - Happened to notice going back forth to the dashboard that an object of values were being passed to the function, which I did not expect - Deleted the object, but that disabled the ability to run the function - Tried with an empty object but that also failed - Read docs a bit more and learned that there was one required argument - Success I don't have a great idea on how this could be improved, but running a function from the dashboard does seem like it becomes more complex when it prepopulates with an object full of defaults, especially in the case where you're using helpers that have a bunch of args you don't need to know about.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?