payload: {"action":"created","issue":{"url":"https://api.github.com/repos/algolia/algoliasearch-magento-2/issues/801","repository_url":"https://api.github.com/repos/algolia/algoliasearch-magento-2","labels_url":"https://api.github.com/repos/algolia/algoliasearch-magento-2/issues/801/labels{/name}","comments_url":"https://api.github.com/repos/algolia/algoliasearch-magento-2/issues/801/comments","events_url":"https://api.github.com/repos/algolia/algoliasearch-magento-2/issues/801/events","html_url":"https://github.com/algolia/algoliasearch-magento-2/issues/801","id":458556266,"node_id":"MDU6SXNzdWU0NTg1NTYyNjY=","number":801,"title":"Error on Magento Cloud environment","user":{"login":"francescopis","id":767681,"node_id":"MDQ6VXNlcjc2NzY4MQ==","avatar_url":"https://avatars2.githubusercontent.com/u/767681?v=4","gravatar_id":"","url":"https://api.github.com/users/francescopis","html_url":"https://github.com/francescopis","followers_url":"https://api.github.com/users/francescopis/followers","following_url":"https://api.github.com/users/francescopis/following{/other_user}","gists_url":"https://api.github.com/users/francescopis/gists{/gist_id}","starred_url":"https://api.github.com/users/francescopis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescopis/subscriptions","organizations_url":"https://api.github.com/users/francescopis/orgs","repos_url":"https://api.github.com/users/francescopis/repos","events_url":"https://api.github.com/users/francescopis/events{/privacy}","received_events_url":"https://api.github.com/users/francescopis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-06-20T09:52:46Z","updated_at":"2019-07-09T08:14:40Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\non system.log i have this error\r\n report.CRITICAL: Can't create directory /app/my-platform-code/generated/code/Algolia/AlgoliaSearch/ViewModel/Adminhtml/Common/.\r\nClass Algolia\\AlgoliaSearch\\ViewModel\\Adminhtml\\Common\\Interceptor generation error: The requested class did not generate properly, because the 'generated' directory permission is read-only. If --- after running the 'bin/magento setup:di:compile' CLI command when the 'generated' directory permission is set to write --- the requested class did not generate properly, then you must add the generated class object to the signature of the related construct method, only. [] []\r\n\r\nOn magento cloud we can't change directory permission\r\n"},"comment":{"url":"https://api.github.com/repos/algolia/algoliasearch-magento-2/issues/comments/509539871","html_url":"https://github.com/algolia/algoliasearch-magento-2/issues/801#issuecomment-509539871","issue_url":"https://api.github.com/repos/algolia/algoliasearch-magento-2/issues/801","id":509539871,"node_id":"MDEyOklzc3VlQ29tbWVudDUwOTUzOTg3MQ==","user":{"login":"kalvis-o","id":52694608,"node_id":"MDQ6VXNlcjUyNjk0NjA4","avatar_url":"https://avatars0.githubusercontent.com/u/52694608?v=4","gravatar_id":"","url":"https://api.github.com/users/kalvis-o","html_url":"https://github.com/kalvis-o","followers_url":"https://api.github.com/users/kalvis-o/followers","following_url":"https://api.github.com/users/kalvis-o/following{/other_user}","gists_url":"https://api.github.com/users/kalvis-o/gists{/gist_id}","starred_url":"https://api.github.com/users/kalvis-o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalvis-o/subscriptions","organizations_url":"https://api.github.com/users/kalvis-o/orgs","repos_url":"https://api.github.com/users/kalvis-o/repos","events_url":"https://api.github.com/users/kalvis-o/events{/privacy}","received_events_url":"https://api.github.com/users/kalvis-o/received_events","type":"User","site_admin":false},"created_at":"2019-07-09T08:14:40Z","updated_at":"2019-07-09T08:14:40Z","author_association":"NONE","body":"Update.\r\n\r\nA temporary solution would be to write a plugin for one of the methods in the Common class to generate the interceptor. It will get rid of the error.\r\n\r\nExample code:\r\n```\r\nclass Common\r\n{\r\n    /**\r\n     * Temporary fix to generate class interceptor\r\n     * @param BaseCommon $subject\r\n     * @param $section\r\n     * @return null\r\n     */\r\n    public function beforeGetLinksConfig(BaseCommon $subject, $section) // @codingStandardsIgnoreLine UnusedFunctionParameter\r\n    {\r\n        return null;\r\n    }\r\n}\r\n```"}}
other: {"actor":{"display_login":"kalvis-o"}}