{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/4191","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/4191/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/4191/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/4191/events","html_url":"https://github.com/magento/magento2/issues/4191","id":149185125,"number":4191,"title":"Can not change product attributes in Console\\Command","user":{"login":"bkristl","id":4640143,"avatar_url":"https://avatars.githubusercontent.com/u/4640143?v=3","gravatar_id":"","url":"https://api.github.com/users/bkristl","html_url":"https://github.com/bkristl","followers_url":"https://api.github.com/users/bkristl/followers","following_url":"https://api.github.com/users/bkristl/following{/other_user}","gists_url":"https://api.github.com/users/bkristl/gists{/gist_id}","starred_url":"https://api.github.com/users/bkristl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkristl/subscriptions","organizations_url":"https://api.github.com/users/bkristl/orgs","repos_url":"https://api.github.com/users/bkristl/repos","events_url":"https://api.github.com/users/bkristl/events{/privacy}","received_events_url":"https://api.github.com/users/bkristl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/acknowledged","name":"acknowledged","color":"02d7e1"},{"url":"https://api.github.com/repos/magento/magento2/labels/PS","name":"PS","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-18T15:28:35Z","updated_at":"2016-05-17T20:09:15Z","closed_at":null,"body":"If **Google Analytics** is **enabled** and **Enable Content Experiments** is **enabled** in web administration (menu - stores->configuration->sales->Google API->Google Analytics), then you **can not change products attributes values** in Console\\Command.\r\n\r\nWHY ?\r\n\r\nBecause Google Analytics observer (**Magento\\GoogleOptimizer\\Observer\\Product\\SaveGoogleExperimentScriptObserver**) is run when an event **catalog_product_save_after** is triggered.\r\n\r\n**Magento\\GoogleOptimizer\\Observer\\Product\\SaveGoogleExperimentScriptObserver** extends **\\Magento\\GoogleOptimizer\\Observer\\AbstractSave** in which is defined initialization request params \r\n**function _initRequestParams**.\r\n\r\nBut when you use **Console\\Command** there is  **no HTTP request** !!!! So this observer must not run when is used CLI environment. \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/219837895","html_url":"https://github.com/magento/magento2/issues/4191#issuecomment-219837895","issue_url":"https://api.github.com/repos/magento/magento2/issues/4191","id":219837895,"user":{"login":"duhon","id":124924,"avatar_url":"https://avatars.githubusercontent.com/u/124924?v=3","gravatar_id":"","url":"https://api.github.com/users/duhon","html_url":"https://github.com/duhon","followers_url":"https://api.github.com/users/duhon/followers","following_url":"https://api.github.com/users/duhon/following{/other_user}","gists_url":"https://api.github.com/users/duhon/gists{/gist_id}","starred_url":"https://api.github.com/users/duhon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duhon/subscriptions","organizations_url":"https://api.github.com/users/duhon/orgs","repos_url":"https://api.github.com/users/duhon/repos","events_url":"https://api.github.com/users/duhon/events{/privacy}","received_events_url":"https://api.github.com/users/duhon/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T20:09:15Z","updated_at":"2016-05-17T20:09:15Z","body":"@bkristl  please specify the version where you can reproduce the problem, because the function of the isDataAvailable is to prevent the run of _initRequestParams. You have created a custom console command?"}}