Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.0] SQL fix and update scripts for PR #41259 #41417

Merged
merged 19 commits into from
Aug 22, 2023

Conversation

richard67
Copy link
Member

@richard67 richard67 commented Aug 21, 2023

Follow-up Pull Request (PR) for PR #41259 .

Summary of Changes

Add update SQL scripts for migrating the filter parameters of relevant core field plugins and the fieldparams of relevant custom fields on update.

Testing Instructions

Have a clean 5.0.0-alpha3 or previous 5.0.0 alpha version or a 4.4-alpha3.

Create a few custom fields of types "text", "textarea" or "editor" for articles, and for some of these fields use the "Text" filter, for some use the filter from the plugin and for others use some other filter.

Now update to a new package build on the 5.0-dev branch for the actual result, or update to the patched package or custom update URL created by Drone for this PR for the expected result.

Then check the filter parameter of the fields plugins in the #__extensions table.

Then check the filter parameter of the field's fieldparams plugins in the #__fields table.

Finally create an article using the custom fields created before the update and save that article.

Actual result BEFORE applying this Pull Request

After an update, the parameters and fieldparams have not been migrated.

Expected result AFTER applying this Pull Request

After an update, the parameters and fieldparams have been migrated.

Saving the article with the custom fields works.

Link to documentations

Please select:

  • No documentation changes for docs.joomla.org needed

  • No documentation changes for manual.joomla.org needed

HLeithner and others added 4 commits July 26, 2023 22:30
This commit changes all usages of JComponentHelper to \Joomla\CMS\Component\ComponentHelper.
Additionally an exception is thrown when JComponehtHelper is used as filter but is not resolvable.

Existing entries have to converted manually or per migration script.
@laoneo laoneo deleted the branch joomla:5.0-dev August 22, 2023 06:44
@laoneo laoneo closed this Aug 22, 2023
@richard67
Copy link
Member Author

@laoneo Why did you close this PR? The new update SQL scripts are missing in Harald's PR.

@laoneo laoneo reopened this Aug 22, 2023
@richard67 richard67 changed the base branch from 5.0/fix/formfilter to 5.0-dev August 22, 2023 06:48
@richard67
Copy link
Member Author

Rebased to 5.0-dev after PR #41259 has been merged.

@laoneo
Copy link
Member

laoneo commented Aug 22, 2023

I have tested this item ✅ successfully on 64883f4


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

@richard67
Copy link
Member Author

@laoneo Have you tested with both MySQL and PostgreSQL? Or only MySQL?

@HLeithner HLeithner merged commit 2c0f4bb into joomla:5.0-dev Aug 22, 2023
0 of 3 checks passed
@HLeithner
Copy link
Member

thanks richard and allon

@richard67 richard67 deleted the 5.0-dev-fix-formfilter-mod-1 branch August 22, 2023 08:38
@laoneo
Copy link
Member

laoneo commented Aug 22, 2023

Only mysql

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.

None yet

4 participants