You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently started using VWO at work. We were pointed to this gem to do A/B Fullstack testing.
We are relying on the is_development_modeparameter to ensure we were not polluting our experiments with data from development and staging environments. Unfortunately, that doesn't seem to be the case. We noticed it when we started getting errors from VWO's API when running the web application in our development environments.
# @param[Boolean] :is_development_mode To specify whether the request
# to our server should be sent or not.
We got several errors when, for example, using the VWO client to activate a campaign. Even instantiating the VWO class will fire up a request to get the settings. This is understandable, but not ideal. It makes running automated tests where this class is instantiated more complicated than necessary; we are seeing errors being logged even if the client doesn't raise an error.
I recently started using VWO at work. We were pointed to this gem to do A/B Fullstack testing.
We are relying on the
is_development_mode
parameter to ensure we were not polluting our experiments with data from development and staging environments. Unfortunately, that doesn't seem to be the case. We noticed it when we started getting errors from VWO's API when running the web application in our development environments.vwo-ruby-sdk/lib/vwo.rb
Lines 58 to 59 in 1d897ad
We got several errors when, for example, using the VWO client to activate a campaign. Even instantiating the
VWO
class will fire up a request to get the settings. This is understandable, but not ideal. It makes running automated tests where this class is instantiated more complicated than necessary; we are seeing errors being logged even if the client doesn't raise an error.In this case, following the code, starting here:
vwo-ruby-sdk/lib/vwo.rb
Line 95 in 1d897ad
Which takes us here:
vwo-ruby-sdk/lib/vwo.rb
Line 207 in 1d897ad
Which leads us to the client making a GET request:
vwo-ruby-sdk/lib/vwo/services/settings_file_manager.rb
Line 57 in 1d897ad
Would it be possible for this behavior to be changed to as advertised? We would expect no requests to be made when
is_development_mode
is set totrue
.The text was updated successfully, but these errors were encountered: