Language Change PR-5.0-dev Removal Pending

User tests: Successful: Unsuccessful:

avatar laoneo
laoneo
17 Mar 2023

Delete the demo task plugin. This is not needed anymore as the scheduler has other plugins in core and extension developers have started to create their own ones.

avatar joomla-cms-bot joomla-cms-bot - change - 17 Mar 2023
Category SQL Administration com_admin Postgresql Installation Libraries Front End Plugins
avatar laoneo laoneo - open - 17 Mar 2023
avatar laoneo laoneo - change - 17 Mar 2023
Status New Pending
avatar Kostelano
Kostelano - comment - 17 Mar 2023

Language files...?

SITE\administrator\language\en-GB\plg_task_demotasks.ini
SITE\administrator\language\en-GB\plg_task_demotasks.sys.ini

avatar brianteeman
brianteeman - comment - 17 Mar 2023

What if a site is actually using it>?

avatar zero-24
zero-24 - comment - 18 Mar 2023

What if a site is actually using it>?

We would need to check the sheduler table before i guess. Not sure whether we should actually do that with j4.4 but 5.0 and within j4.4 or 4.3 we alert the users of stuff we intent to remove by 5.0.

In practical terms i would say the impact is low but you are right it should be tested too.

avatar brianteeman
brianteeman - comment - 18 Mar 2023

The real world problem is that on a site that has enabled any of the demo tasks (to see what they did) simply removing the plugin will leave an orphaned record

avatar zero-24
zero-24 - comment - 18 Mar 2023

Yes said record could be removed too but i personally would say thats something for 5.0 not 4.4.

avatar laoneo
laoneo - comment - 18 Mar 2023

Agree, the record should deleted as well.

avatar joomla-cms-bot joomla-cms-bot - change - 18 Mar 2023
Category SQL Administration com_admin Postgresql Installation Libraries Front End Plugins SQL Administration com_admin Postgresql Language & Strings Installation Libraries Front End Plugins
avatar laoneo laoneo - change - 18 Mar 2023
Labels Added: PR-5.0-dev
avatar laoneo laoneo - change - 18 Mar 2023
Labels Added: Language Change
avatar zero-24
zero-24 - comment - 18 Mar 2023

Ah got confused looks like this PR is already against 5.0. ;)

avatar brianteeman
brianteeman - comment - 18 Mar 2023

Agree, the record should deleted as well.

The problem is that we really should not be removing something from a users site without their knowledge. They might, for example, be using one of those demo tasks as part of their own server monitoring.

avatar laoneo
laoneo - comment - 18 Mar 2023

They might, for example, be using one of those demo tasks as part of their own server monitoring.

How do you want to use it for monitoring? All this task does is to wait for the defined amount of time.

avatar HLeithner
HLeithner - comment - 2 Apr 2023

We need a documentation entry and this plugin in the documentation as example how to create a plugin like this?

What would you say to an own repository which can be used as source for automatically installing the plugin within the system tests?

avatar HLeithner HLeithner - change - 2 Apr 2023
Title
Delete demo plugin
[5.0] Delete demo plugin
avatar HLeithner HLeithner - edited - 2 Apr 2023
avatar laoneo laoneo - change - 20 Apr 2023
Labels Added: ? Removal
avatar laoneo laoneo - change - 20 Apr 2023
The description was changed
avatar laoneo laoneo - edited - 20 Apr 2023
avatar laoneo laoneo - change - 11 May 2023
Labels Added: Feature
Removed: ?
avatar HLeithner
HLeithner - comment - 29 May 2023

@laoneo can you remove the sql files, so if the plugin exists from an update it still exists but no longer available on new installations?

@richard67 please keep this in mind when creating the deleted files array for j5 thanks

avatar richard67
richard67 - comment - 29 May 2023

@richard67 please keep this in mind when creating the deleted files array for j5 thanks

It just needs to add the files to the list of exclusions here so it does not produce false alarms: https://github.com/joomla/joomla-cms/blob/5.0-dev/build/deleted_file_check.php#L63 . Will do so.

avatar richard67
richard67 - comment - 29 May 2023

@laoneo can you remove the sql files, so if the plugin exists from an update it still exists but no longer available on new installations?

It doesn't need to remove any SQL files. The 4.x update SQL (among which are those which have added the task scheduler stuff) are already removed in 5.0-dev.

Update: Ah, I see, it needs to remove the update SQL in this PR so the plugin isn't deleted when updating.

Update 2: Not sure if it also needs to revert the removal from the ExtensionsHelper here https://github.com/joomla/joomla-cms/pull/40147/files#diff-45688fa5398ae3d4bab3daa80bc4d2ea4785370233b82a7326f9676f965ec9ebL311 so the plugin is still considered a core plugin when it still exists after an update.

avatar HLeithner
HLeithner - comment - 29 May 2023

@laoneo can you remove the sql files, so if the plugin exists from an update it still exists but no longer available on new installations?

It doesn't need to remove any SQL files. The 4.x update SQL (among which are those which have added the task scheduler stuff) are already removed in 5.0-dev.

Update: Ah, I see, it needs to remove the update SQL in this PR so the plugin isn't deleted when updating.

Update 2: Not sure if it also needs to revert the removal from the ExtensionsHelper here https://github.com/joomla/joomla-cms/pull/40147/files#diff-45688fa5398ae3d4bab3daa80bc4d2ea4785370233b82a7326f9676f965ec9ebL311 so the plugin is still considered a core plugin when it still exists after an update.

since it's no longer a core extensions I think it should be removed

avatar richard67
richard67 - comment - 29 May 2023

since it's no longer a core extensions I think it should be removed

Agree. I just checked and we don't have weblinks or search in the extensions helper, which are similar cases.

avatar laoneo
laoneo - comment - 30 May 2023

@laoneo can you remove the sql files, so if the plugin exists from an update it still exists but no longer available on new installations?

I don't think this is a good idea as it is not maintained anymore and when we change something in the scheduler, it can break your site. There is really no need to have a demo plugin in core which can only do a sleep call.

avatar richard67
richard67 - comment - 15 Jun 2023

@laoneo As my PR #40768 just has been merged into 5.0-dev: Could you update your branch for this PR here so it is up to date with that? I can then make a PR against your branch for your PR using the new method instead of the update SQL for uninstalling the old plugin. Thanks in advance.

avatar laoneo
laoneo - comment - 15 Jun 2023

Updated

avatar richard67
richard67 - comment - 15 Jun 2023

@laoneo PR for you is Digital-Peak#30 .

avatar laoneo laoneo - change - 19 Jun 2023
Labels Removed: Feature
avatar HLeithner
HLeithner - comment - 21 Jun 2023

motion for this removal was successful in production, @laoneo can you create a documentation entry on manual (b/c break)

avatar HLeithner HLeithner - close - 21 Jun 2023
avatar HLeithner HLeithner - merge - 21 Jun 2023
avatar HLeithner HLeithner - change - 21 Jun 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-06-21 14:38:27
Closed_By HLeithner
avatar laoneo
laoneo - comment - 22 Jun 2023

motion for this removal was successful in production, @laoneo can you create a documentation entry on manual (b/c break)

Here we go joomla/Manual#132

Add a Comment

Login with GitHub to post a comment