{"action":"created","issue":{"url":"https://api.github.com/repos/relaxedws/drupal-relaxed/issues/36","labels_url":"https://api.github.com/repos/relaxedws/drupal-relaxed/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/relaxedws/drupal-relaxed/issues/36/comments","events_url":"https://api.github.com/repos/relaxedws/drupal-relaxed/issues/36/events","html_url":"https://github.com/relaxedws/drupal-relaxed/pull/36","id":111561590,"number":36,"title":"Fix error on module uninstall.","user":{"login":"jeqq","id":2793969,"avatar_url":"https://avatars.githubusercontent.com/u/2793969?v=3","gravatar_id":"","url":"https://api.github.com/users/jeqq","html_url":"https://github.com/jeqq","followers_url":"https://api.github.com/users/jeqq/followers","following_url":"https://api.github.com/users/jeqq/following{/other_user}","gists_url":"https://api.github.com/users/jeqq/gists{/gist_id}","starred_url":"https://api.github.com/users/jeqq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeqq/subscriptions","organizations_url":"https://api.github.com/users/jeqq/orgs","repos_url":"https://api.github.com/users/jeqq/repos","events_url":"https://api.github.com/users/jeqq/events{/privacy}","received_events_url":"https://api.github.com/users/jeqq/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-15T07:41:36Z","updated_at":"2015-11-13T12:21:25Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/relaxedws/drupal-relaxed/pulls/36","html_url":"https://github.com/relaxedws/drupal-relaxed/pull/36","diff_url":"https://github.com/relaxedws/drupal-relaxed/pull/36.diff","patch_url":"https://github.com/relaxedws/drupal-relaxed/pull/36.patch"},"body":"This fixes the errors when uninstalling the module. Errors are caused by missing `relaxed:*` plugins (when we uninstall the module these plugins are missing but the information about them is still stored in `rest.settings` configuration).\r\nThis will remove information about `relaxed` plugins from `rest.settings` on module uninstall."},"comment":{"url":"https://api.github.com/repos/relaxedws/drupal-relaxed/issues/comments/156417323","html_url":"https://github.com/relaxedws/drupal-relaxed/pull/36#issuecomment-156417323","issue_url":"https://api.github.com/repos/relaxedws/drupal-relaxed/issues/36","id":156417323,"user":{"login":"dickolsson","id":112085,"avatar_url":"https://avatars.githubusercontent.com/u/112085?v=3","gravatar_id":"","url":"https://api.github.com/users/dickolsson","html_url":"https://github.com/dickolsson","followers_url":"https://api.github.com/users/dickolsson/followers","following_url":"https://api.github.com/users/dickolsson/following{/other_user}","gists_url":"https://api.github.com/users/dickolsson/gists{/gist_id}","starred_url":"https://api.github.com/users/dickolsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dickolsson/subscriptions","organizations_url":"https://api.github.com/users/dickolsson/orgs","repos_url":"https://api.github.com/users/dickolsson/repos","events_url":"https://api.github.com/users/dickolsson/events{/privacy}","received_events_url":"https://api.github.com/users/dickolsson/received_events","type":"User","site_admin":false},"created_at":"2015-11-13T12:21:25Z","updated_at":"2015-11-13T12:21:25Z","body":"Let's add a test for this, I think we can create a new test class that extends `\\Drupal\\system\\Tests\\Module\\ModuleTestBase` and do something like:\r\n\r\n```php\r\nfunction setUp() {\r\n  // Don't install Multiversion or Relaxed yet.\r\n}\r\n\r\nfunction testModuleInstallAndUninstall() {\r\n  $modules = ['multiversion', 'relaxed'];\r\n  $this->moduleInstaller->enableModules($modules);\r\n  $this->assertModules($modules);\r\n  $this->assertModuleConfig('relaxed');\r\n  // Only uninstall Relaxed.\r\n  $this->moduleInstaller->uninstallModules(['relaxed']);\r\n  $this->assertModules(['relaxed'], FALSE);\r\n  $this->assertNoModuleConfig('relaxed');\r\n}\r\n```\r\n"}}