Actions
Bug #31218
closedDisable parameter wrapping for reports
Description
Parameter wrapping is a feature of Rails that adds missing root JSON element in case it's missing. The thing is it uses Hash.merge
method which is slow, it does not work similarly to HashWithIndefferentAccess. Our fact/reports clients do send full JSON documents (including the root elements) so we should be able to disable this behavior for those endpoints without any problems, this patch will prevent anyone else from sending without root elements.
This patch can possibly break 3rd party integrations, howevers it's the purpose - to avoid slow JSON processing. We will do upgrade notes on how to fix this.
Actions