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:
- within ./event-scripts/data.bin
- 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.
@PGriffith and @Leor_Fishman, many thanks for your feedback and insights. It's good to know I am not missing something obvious.
Another example of why we are very excited for 8.3!
Would still recommend putting your gateway events as one liners for scoping reasons and because it's neater code organization imo.