On another topic: in a SS2 service file, I want to pull a value from the configuration file, in the past I had done some pretty squirrelly stuff to get these values. Is there a more standard way to do this in 2025?
t
texmc
08/28/2025, 5:55 PM
it would be nice but I had a similar thread 2 or 3 months ago and native config value getting was only available in 1.0
texmc
08/28/2025, 5:56 PM
as a work around you can pass in the values from the front end since it is better supported there or write your own utility
👏🏻 1
c
Chris
08/28/2025, 5:56 PM
So I should post what I did here.
Chris
08/28/2025, 5:57 PM
I did a sql query on the SC Configuration record, parsed it and pulled the value out. As an efficiency exercise, I cached the parsed version for subsequent requests.
Chris
08/28/2025, 5:58 PM
The request parameters have enough data to filter the SC Configuration records for the correct version.
2|<http://www.somesite.com|www.somesite.com>
Chris
08/28/2025, 6:00 PM
I wish there was more documentation on how to modularize ss2.0 files in the backend b/c I'd like to create a library for this type of thing.