Remove never needed nor used JED Update Server from new installs#13047
Remove never needed nor used JED Update Server from new installs#13047rdeutz merged 13 commits intojoomla:stagingfrom
Conversation
| (2, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0), | ||
| (3, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0); | ||
|
|
||
| SELECT setval('#__update_sites_update_site_id_seq', 5, false); |
There was a problem hiding this comment.
should be 4 the next available sequence id ;)
|
shouldn't be deleted also on update? DELETE FROM `#__updates`
WHERE `update_site_id` = (SELECT `update_site_id` FROM `#__update_sites` WHERE `name` = 'Joomla! Extension Directory' AND `type` = 'collection');
DELETE FROM `#__update_sites_extensions`
WHERE `update_site_id` = (SELECT `update_site_id` FROM `#__update_sites` WHERE `name` = 'Joomla! Extension Directory' AND `type` = 'collection');
DELETE FROM `#__update_sites`
WHERE `name` = 'Joomla! Extension Directory' AND `type` = 'collection'; |
|
is only for new install |
Why? |
|
looking at https://update.joomla.org/jed/list.xml <extensionset name="JED" description="Joomla! Extension Directory">
<!-- TODO: fill this out -->
</extensionset>don't know why |
|
@alikon what i mean is this update sites in all current joomla installs, so should be removed on updated too IMHO. |
|
Thanks. I can fix this later. I have also missed one place to remove that link ;) in the xml. The update part will be done via php as i have no idea how postgres or mssql works with sub querys ;) |
|
I have tested this item ✅ successfully on fa48100 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13047. |
|
|
||
| /** | ||
| * Remove the never used JED Updateserver | ||
| * |
There was a problem hiding this comment.
misses __DEPLOY_VERSION__
| $result = $db->setQuery( | ||
| $db->getQuery(true) | ||
| ->delete($db->quoteName('#__update_sites_extensions')) | ||
| ->where('update_site_id = ' . $id) |
There was a problem hiding this comment.
not essencial, but why only quoteName the database table and not the db fields?
installation/sql/sqlazure/joomla.sql
Outdated
| UNION ALL | ||
| SELECT 3, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0 | ||
| UNION ALL | ||
| SELECT 4, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0; |
There was a problem hiding this comment.
shoudn't the ids be changed here too?
|
should be good now @andrepereiradasilva |
|
I have tested this item ✅ successfully on 830681f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13047. |
|
I have tested this item ✅ successfully on 830681f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13047. |
|
I have tested this item ✅ successfully on 830681f This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13047. |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13047. |
Summary of Changes
Following Michaels tip: #13041 (comment)
Remove never needed nor used JED Update Server from new installs
Testing Instructions
Documentation Changes Required
None as it was never used.
see: joomla/update.joomla.org#31