Skip to content

[4.0] Uninstall and remove 3.10 EOS plugin on update#34895

Merged
wilsonge merged 2 commits intojoomla:4.0-devfrom
richard67:4.0-dev-remove-3.10-eol-plugin-on-update
Jul 25, 2021
Merged

[4.0] Uninstall and remove 3.10 EOS plugin on update#34895
wilsonge merged 2 commits intojoomla:4.0-devfrom
richard67:4.0-dev-remove-3.10-eol-plugin-on-update

Conversation

@richard67
Copy link
Copy Markdown
Member

@richard67 richard67 commented Jul 25, 2021

Pull Request for Issue # .

Summary of Changes

This pull request (PR) implements uninstalling the 3.10 EOS plugin and removing its files and folders when updating from 3.10.

The code for the new function uninstallEosPlugin has been taken from relevant parts of the existing function uninstallRepeatableFieldsPlugin, that's why names quoting is not used everywhere in the query.

Since the unquoted names will never be reserved words in any SQL dialect, it should be ok.

But if I get feedback here that I shall change that, I should change it in uninstallRepeatableFieldsPlugin, too.

For updating https://github.com/joomla/joomla-cms/blob/4.0-dev/build/deleted_file_check.php so it doesn't detect the files and folders of the eos310 plugin as to be deleted, see #34898 .

Testing Instructions

Requirement: It needs a current 3.10-dev branch which includes the 3.10 EOS plugin. The 3.10 nightly doesn't include that yet.

  1. Update a current 3.10-dev branch to latest 4.0 nightly build.
    Result: See section "Actual result BEFORE applying this Pull Request" below.

  2. Update a current 3.10-dev branch to the update package or custom update server provided by drone for this PR.
    Result: See section "Expected result AFTER applying this Pull Request" below.

Actual result BEFORE applying this Pull Request

After updating an installation with the current 3.10-dev branch which includes the 3.10 EOS plugin to 4.0, the plugin is still present.

Expected result AFTER applying this Pull Request

After updating an installation with the current 3.10-dev branch which includes the 3.10 EOS plugin to 4.0, the plugin is uninstalled and its files and folders have been removed.

Documentation Changes Required

None.

@joomdonation
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 4fe5bd7


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

@dgrammatiko
Copy link
Copy Markdown
Contributor

I have tested this item ✅ successfully on 4fe5bd7


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

@richard67
Copy link
Copy Markdown
Member Author

RTC


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

@joomla-cms-bot joomla-cms-bot removed this from the Joomla 4.0 milestone Jul 25, 2021
@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jul 25, 2021
@richard67 richard67 added this to the Joomla 4.0 milestone Jul 25, 2021
@wilsonge wilsonge merged commit 7115883 into joomla:4.0-dev Jul 25, 2021
@wilsonge
Copy link
Copy Markdown
Contributor

Thanks!

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jul 25, 2021
@richard67 richard67 deleted the 4.0-dev-remove-3.10-eol-plugin-on-update branch July 25, 2021 20:50
@richard67
Copy link
Copy Markdown
Member Author

Thanks all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants