Tracking content of Gateway Event Scripts in Github

We use Github to track projects. Being able to compare different versions of Python scripts under ./script-python/*.py is awesome.

As far as I can tell, the source code of Gateway Event Scripts is stored:

  1. within ./event-scripts/data.bin
  2. as binary

Hence, to "diff" running vs dev, I must restore the two versions of data.bin and copy/paste from Designer.

Wondering if there is any clever things people are doing to make this more streamlined. For example, I have contemplated manually maintaining the script content in a separate folder. However, I assume this would necessitate an entirely separate Github repo so that the sources don't get pulled into the Project Library.

Many thanks!

The only reasonable thing to do in 8.1 is to make your actual gateway event scripts one-line callouts to the project library.

In 8.3 event scripts are 'exploded' out into distinct resources and stored in as .py files on disk.

2 Likes

you can actually probably diff these, if you're careful about it and they're only one-liners. they're gzipped java serialized hashmaps, but the actual 1 line scripts themselves are decodable in ascii.