{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/9744","repository_url":"https://api.github.com/repos/joomla/joomla-cms","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9744/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9744/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9744/events","html_url":"https://github.com/joomla/joomla-cms/pull/9744","id":146064430,"number":9744,"title":"[com_installer] [updatesites] Add options to delete and rebuild update sites","user":{"login":"andrepereiradasilva","id":9630530,"avatar_url":"https://avatars.githubusercontent.com/u/9630530?v=3","gravatar_id":"","url":"https://api.github.com/users/andrepereiradasilva","html_url":"https://github.com/andrepereiradasilva","followers_url":"https://api.github.com/users/andrepereiradasilva/followers","following_url":"https://api.github.com/users/andrepereiradasilva/following{/other_user}","gists_url":"https://api.github.com/users/andrepereiradasilva/gists{/gist_id}","starred_url":"https://api.github.com/users/andrepereiradasilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrepereiradasilva/subscriptions","organizations_url":"https://api.github.com/users/andrepereiradasilva/orgs","repos_url":"https://api.github.com/users/andrepereiradasilva/repos","events_url":"https://api.github.com/users/andrepereiradasilva/events{/privacy}","received_events_url":"https://api.github.com/users/andrepereiradasilva/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/Language%20Change","name":"Language Change","color":"eb6420"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/PR-staging","name":"PR-staging","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-04-05T18:04:39Z","updated_at":"2016-04-07T16:50:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/joomla/joomla-cms/pulls/9744","html_url":"https://github.com/joomla/joomla-cms/pull/9744","diff_url":"https://github.com/joomla/joomla-cms/pull/9744.diff","patch_url":"https://github.com/joomla/joomla-cms/pull/9744.patch"},"body":"Pull Request for Issue https://github.com/joomla/joomla-cms/issues/8512.\r\n\r\n#### Summary of Changes\r\n\r\nAfter updating Joomla and extensions a lot of times (since 1.7) we get a lot of obsolete update sites from domain changes, url changes, etc that extension developers forget to delete on uninstall.\r\n\r\nThis makes searching for updates more slow. Right now we can disable the update sites, but we cannot delete or even rebuild the update sites table.\r\n\r\nThis PR adds two new options to com_installer updates sites view: delete and rebuild\r\n- delete: deletes an update site (joomla core updates sites cannot be deleted)\r\n- rebuild: the update sites are rebuild from the manifest files.\r\n\r\n#### Testing Instructions\r\n\r\n1. Use latest staging\r\n2. Apply this patch\r\n3. Go to \"Extensions -> Manage -> Update Sites\"\r\n4. Notice the two new buttons\r\n ![image](https://cloud.githubusercontent.com/assets/9630530/14292445/06b6b824-fb60-11e5-9155-609a32a0f4e9.png)\r\n5. Try to Rebuild the update sites and check if everything is fine.\r\n6. Install some extensions with update sites of all the types you can imagine (libraries, templates, plugin, modules, components, etc).\r\n7. Repeat step 5 and check if everything is fine.\r\n8. Delete some update sites (the 4 core joomla update sites will not be allowed to delete) the others you can delete.\r\n9. Repeat step 5 and check if everything is fine.\r\n\r\n#### Observations\r\n\r\nCode revisions, improvements and suggestions are welcomed."},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/206989825","html_url":"https://github.com/joomla/joomla-cms/pull/9744#issuecomment-206989825","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/9744","id":206989825,"user":{"login":"andrepereiradasilva","id":9630530,"avatar_url":"https://avatars.githubusercontent.com/u/9630530?v=3","gravatar_id":"","url":"https://api.github.com/users/andrepereiradasilva","html_url":"https://github.com/andrepereiradasilva","followers_url":"https://api.github.com/users/andrepereiradasilva/followers","following_url":"https://api.github.com/users/andrepereiradasilva/following{/other_user}","gists_url":"https://api.github.com/users/andrepereiradasilva/gists{/gist_id}","starred_url":"https://api.github.com/users/andrepereiradasilva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrepereiradasilva/subscriptions","organizations_url":"https://api.github.com/users/andrepereiradasilva/orgs","repos_url":"https://api.github.com/users/andrepereiradasilva/repos","events_url":"https://api.github.com/users/andrepereiradasilva/events{/privacy}","received_events_url":"https://api.github.com/users/andrepereiradasilva/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T16:50:49Z","updated_at":"2016-04-07T16:50:49Z","body":"ok, now should be ok."}}