Skip to content

Remove never needed nor used JED Update Server from new installs#13047

Merged
rdeutz merged 13 commits intojoomla:stagingfrom
zero-24:remove_jedUpdateserv
Dec 11, 2016
Merged

Remove never needed nor used JED Update Server from new installs#13047
rdeutz merged 13 commits intojoomla:stagingfrom
zero-24:remove_jedUpdateserv

Conversation

@zero-24
Copy link
Contributor

@zero-24 zero-24 commented Nov 29, 2016

Summary of Changes

Following Michaels tip: #13041 (comment)

we should just delete that never used JED channel already)

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

(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);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be 4 the next available sequence id ;)

@andrepereiradasilva
Copy link
Contributor

andrepereiradasilva commented Nov 29, 2016

shouldn't be deleted also on update?
something like this?

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';

@alikon
Copy link
Contributor

alikon commented Nov 29, 2016

is only for new install

@andrepereiradasilva
Copy link
Contributor

is only for new install

Why?

@alikon
Copy link
Contributor

alikon commented Nov 29, 2016

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

@andrepereiradasilva
Copy link
Contributor

@alikon what i mean is this update sites in all current joomla installs, so should be removed on updated too IMHO.

@zero-24
Copy link
Contributor Author

zero-24 commented Nov 29, 2016

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 ;)

@alikon
Copy link
Contributor

alikon commented Dec 1, 2016

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
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

misses __DEPLOY_VERSION__

$result = $db->setQuery(
$db->getQuery(true)
->delete($db->quoteName('#__update_sites_extensions'))
->where('update_site_id = ' . $id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not essencial, but why only quoteName the database table and not the db fields?

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shoudn't the ids be changed here too?

@zero-24
Copy link
Contributor Author

zero-24 commented Dec 4, 2016

should be good now @andrepereiradasilva

@brianteeman
Copy link
Contributor

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.

@zero-24 zero-24 added this to the Joomla 3.7.0 milestone Dec 10, 2016
@alikon
Copy link
Contributor

alikon commented Dec 11, 2016

I have tested this item ✅ successfully on 830681f

on code review


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13047.

@jeckodevelopment
Copy link
Member

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.

@jeckodevelopment
Copy link
Member

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/13047.

@joomla-cms-bot joomla-cms-bot removed this from the Joomla 3.7.0 milestone Dec 11, 2016
@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 11, 2016
@jeckodevelopment jeckodevelopment added this to the Joomla 3.7.0 milestone Dec 11, 2016
@rdeutz rdeutz merged commit 46bca9a into joomla:staging Dec 11, 2016
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Dec 11, 2016
@zero-24 zero-24 deleted the remove_jedUpdateserv branch December 11, 2016 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants