Skip to content

[5.0] Delete demo plugin#40147

Merged
HLeithner merged 10 commits intojoomla:5.0-devfrom
Digital-Peak:task/demo/delete
Jun 21, 2023
Merged

[5.0] Delete demo plugin#40147
HLeithner merged 10 commits intojoomla:5.0-devfrom
Digital-Peak:task/demo/delete

Conversation

@laoneo
Copy link
Copy Markdown
Member

@laoneo laoneo commented Mar 17, 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.

@Kostelano
Copy link
Copy Markdown
Contributor

Language files...?

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

@brianteeman
Copy link
Copy Markdown
Contributor

What if a site is actually using it>?

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 18, 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.

@brianteeman
Copy link
Copy Markdown
Contributor

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

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 18, 2023

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

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Mar 18, 2023

Agree, the record should deleted as well.

@joomla-cms-bot joomla-cms-bot added the Language Change This is for Translators label Mar 18, 2023
…0-2023-03-17.sql

Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Mar 18, 2023

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

@brianteeman
Copy link
Copy Markdown
Contributor

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.

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Mar 18, 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.

@HLeithner
Copy link
Copy Markdown
Member

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?

@HLeithner HLeithner changed the title Delete demo plugin [5.0] Delete demo plugin Apr 2, 2023
@HLeithner HLeithner added the Removal Removes functionality label Apr 7, 2023
@Hackwar Hackwar added the Feature label Apr 8, 2023
@HLeithner
Copy link
Copy Markdown
Member

@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

@richard67
Copy link
Copy Markdown
Member

richard67 commented May 29, 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.

@richard67
Copy link
Copy Markdown
Member

richard67 commented May 29, 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.

@HLeithner
Copy link
Copy Markdown
Member

@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

@richard67
Copy link
Copy Markdown
Member

richard67 commented May 29, 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.

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented May 30, 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.

@richard67
Copy link
Copy Markdown
Member

@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.

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Jun 15, 2023

Updated

@richard67
Copy link
Copy Markdown
Member

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

* Use script.php to uninstall the plugin

* Use script.php to delete the obsolete tasks

* Fix doc block comment

* Revert change to script.php for deleting tasks
@laoneo laoneo removed the Feature label Jun 19, 2023
@HLeithner
Copy link
Copy Markdown
Member

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

@laoneo
Copy link
Copy Markdown
Member Author

laoneo commented Jun 22, 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

richard67 added a commit to richard67/joomla-cms that referenced this pull request Jun 24, 2023
richard67 added a commit to richard67/joomla-cms that referenced this pull request Jun 24, 2023
HLeithner pushed a commit that referenced this pull request Jun 26, 2023
* Add deleted files and folders from PRs #39618 and #40147

* Update to changes from PRs #40743 and #40783
heelc29 added a commit to heelc29/joomla that referenced this pull request Jul 25, 2023
heelc29 added a commit to heelc29/joomla that referenced this pull request Aug 5, 2023
Kostelano added a commit to JPathRu/localisation that referenced this pull request Nov 2, 2023
Kostelano added a commit to JPathRu/localisation that referenced this pull request Nov 2, 2023
Kostelano added a commit to Joomla-Ukraine/uk-UA that referenced this pull request Nov 4, 2023
Kostelano added a commit to Joomla-Ukraine/uk-UA that referenced this pull request Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language Change This is for Translators Removal Removes functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants