Is there a way to tell if/where a python/typescript function is used in a workshop?

Trying to find the usage of a function, for now I’m manually looking up variables, actions & widgets in workshops I believe are using it.

Is there a more automated way?

Goal here is to:

  • see how the function is used in an actual app
  • clean up unused code

Thanks!

There is a section at the bottom of the Function overview in Ontology Manager that details the usage history of a given Function. That section generally will include the application that initially triggered the Function execution, for example Workshop.

Note that this is specifically usage history, so does not provide a concrete guarantee that there are no dependencies even if there’s no usage history.

1 Like

If you need to take it one step further - you can also find out where each function is used and what version within a workshop by going to the left panel Overview → Functions.

Bonus: if you select a function you can bulk upload all instances to a specific version from here as well.

1 Like