Closed jasonkarns closed 1 year ago
My apologies for the delay in response to this issue. The team is updating our processes and reviewing all open issues and PR's. If this Feature Request is still relevant, please add your suggestion to our idea portal here https://feedback.optimizely.com/ where it can be evaluated with the other ideas for the product. From here it will be appropriately prioritized and brought to the engineering team.
Given that the
DatafileProjectConfig
represents the object form of the datafile JSON structure, it seems reasonable to expect that his object could be re-serialized to JSON. A compelling use-case is for servers to use the ruby-sdk for polling/fetching/storing the datafile and inline the datafile into (cached) page requests. This way the client-side optimizely sdk can avoid another costly HTTP request to fetch data that the server already has.A rough spike of this feature: (this proof of concept implementation relies on ActiveSupport extensions
as_json
anddeep_transform_keys
.)Even without the use-case described above, I would generally expect any library class which represents a serialized data structure to be round-trippable.