{"action":"created","issue":{"url":"https://api.github.com/repos/claroline/Distribution/issues/124","repository_url":"https://api.github.com/repos/claroline/Distribution","labels_url":"https://api.github.com/repos/claroline/Distribution/issues/124/labels{/name}","comments_url":"https://api.github.com/repos/claroline/Distribution/issues/124/comments","events_url":"https://api.github.com/repos/claroline/Distribution/issues/124/events","html_url":"https://github.com/claroline/Distribution/issues/124","id":147380197,"number":124,"title":"[CoreBundle] Plugin enable/disable","user":{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-11T10:14:51Z","updated_at":"2016-04-11T11:45:29Z","closed_at":null,"body":"A few use cases wich should be clarified imo.\r\n\r\n1) Cache clearing and bundles.ini. When a plugin is disabled, the cache could be cleared after the bundles.ini file is updated. Cache clearing is very dicey through gui... it's much more safe to do it manually. Also it could have a lot of weird side effects for the user if we're not carreful (like a partial update or sthg like that).\r\n\r\n2) Let's assume you created the last post widget of a forum and a forum. Now you disable the plugin. What does happen ? it stays ? it goes away ? New creations are disabled ?\r\n\r\nMore issues will probably come later on."},"comment":{"url":"https://api.github.com/repos/claroline/Distribution/issues/comments/208304941","html_url":"https://github.com/claroline/Distribution/issues/124#issuecomment-208304941","issue_url":"https://api.github.com/repos/claroline/Distribution/issues/124","id":208304941,"user":{"login":"ngodfraind","id":1397430,"avatar_url":"https://avatars.githubusercontent.com/u/1397430?v=3","gravatar_id":"","url":"https://api.github.com/users/ngodfraind","html_url":"https://github.com/ngodfraind","followers_url":"https://api.github.com/users/ngodfraind/followers","following_url":"https://api.github.com/users/ngodfraind/following{/other_user}","gists_url":"https://api.github.com/users/ngodfraind/gists{/gist_id}","starred_url":"https://api.github.com/users/ngodfraind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ngodfraind/subscriptions","organizations_url":"https://api.github.com/users/ngodfraind/orgs","repos_url":"https://api.github.com/users/ngodfraind/repos","events_url":"https://api.github.com/users/ngodfraind/events{/privacy}","received_events_url":"https://api.github.com/users/ngodfraind/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T11:45:29Z","updated_at":"2016-04-11T11:45:29Z","body":"Reminder file here: https://github.com/claroline/Distribution/blob/bundle-activation/main/core/PLUGIN_DISABLED.md\r\n\r\nIf the plugin is disabled, related updates may not be fired although it would still be needed.\r\n\r\nAlso, please note that I'm using the bundles.ini file to know what's already installed or not (instead of the composer.json) simply because this file already exists in old platforms.\r\n\r\nsee\r\n-  Claroline\\CoreBundle\\Library\\Installation\\OperationExecutor::buildOperationList()\r\n- Claroline\\CoreBundle\\Library\\Installation\\OperationExecutor::execute()\r\n\r\nFinally, I'd like to remove the installFromKernel method in order to have a unified installation (it's still used in the webinstaller and that's all)."}}