Budibase / budibase

Low code platform for building business apps and workflows in minutes. Supports PostgreSQL, MySQL, MariaDB, MSSQL, MongoDB, Rest API, Docker, K8s, and more 🚀
https://budibase.com
Other
21.78k stars 1.49k forks source link

Cannot use snippets in automations, these work elsewhere in Budibase #13590

Open ConorWebb96 opened 4 months ago

ConorWebb96 commented 4 months ago

Checklist

Hosting Self

Describe the bug Snippets don't seem to work in automations

To Reproduce Steps to reproduce the behavior:

  1. Create a snippet in the design or data screen
  2. Use it in either of these screens, see that it works
  3. Go to the automation tab and use a snippet inside it
  4. See that this doesn't work here.

Expected behavior Snippet functions should be able to be used within automations. (Anywhere that has a bindable field, should allow js snippets to be used.)

Additional Notes It might be a good idea to allow snippets to be used within the JS scripting step within Automations as having these reusable functions may come in handy here.

linear[bot] commented 4 months ago

BUDI-8214 Cannot use snippets in automations, these work elsewhere in Budibase

aptkingston commented 4 months ago

Just confirming that this issue is an enhancement to add snippets to automations, right? I deliberately didn't include snippets there since automations do so many unique things with bindings. If you were able to see snippets somewhere in automations and they just didn't work then that's definitely a bug, because you shouldn't be able to see them anywhere.

Otherwise I'm just gonna remove the bug label from this since this is as intended - automations should not have snippets right now.

Can't remember those details off the top of my head from our chat about this one.

ConorWebb96 commented 4 months ago

Yes, Sorry selected the wrong template which auto adds the bug tag!