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

[4.2] Mail Templates htmlbody #37701

Merged
merged 5 commits into from
Jun 16, 2022
Merged

Conversation

brianteeman
Copy link
Contributor

@brianteeman brianteeman commented Apr 30, 2022

Summary of Changes

html emails are much much bigger than plain text emails. Using some email templates from beefree.io was almost impossible as they were all too big to be saved. Checking the database the field type was TEXT and yet for the fulltext field in #__content MEDIUMTEXT was used. So it wasnt even possible to use an entire article in the mail template.

This PR changes the field to MEDIUMTEXT in mysql for updates and new installations. Note postgres doesnt need any change as it only has one datatype for text.

Testing Instructions

Upgrade with the prebuilt test packages and check the datatype of the htmlbody field in the #__mail_templates table
Clean install with he prebuilt test packages and check the datatype of the htmlbody field in the #__mail_templates table

check of the database checker in the system dashboard.
. In case of an update to the patched package for the PR, the checker should only show the usual error about not matching CMS version when using such packages, and in case of a new installation no errors should be shown.

Actual result BEFORE applying this Pull Request

TEXT

Expected result AFTER applying this Pull Request

MEDIUMTEXT

Documentation Changes Required

none

brianteeman and others added 2 commits April 30, 2022 13:51
@richard67
Copy link
Member

@brianteeman To make it perfect you could add the check of the database checker in each case (update or new install) to the testing instructions. In case of an update to the patched package for the PR, the checker should only show the usual error about not matching CMS version when using such packages, and in case of a new installation no errors should be shown.

@richard67 richard67 added the Maintainers Checked Used if the PR is conceptional useful label Apr 30, 2022
@Kostelano
Copy link
Contributor

I have tested this item ✅ successfully on 594d6b9


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

@richard67
Copy link
Member

@brianteeman It needs to rename the update SQL script. Assuming that this PR remains on the 4.1-dev branch, it should be a name with version 4.1.5, and when 4.1.5 is released before this PR is merged, it needs a name with version 4.1.6. But I think the PR should be rebased to 4.2-dev. If this is the case, it needs a name with version 4.2.0 and a later date than 2022-05-15 (because "4.2.0-2022-05-15.sql" is the latest 4.2.0 update SQL script).

@roland-d Shall this PR be rebased to 4.2-dev?

@brianteeman
Copy link
Contributor Author

I await your response before making any changes. To be clear this is NOT a new feature it is fixing a bug

@richard67
Copy link
Member

I await your response before making any changes. To be clear this is NOT a new feature it is fixing a bug

@brianteeman I know. But 4.1.5 is already in RC phase, so @bembelimen will merge only extremely urgent bug fixes (or release blocker), and very likely will be the last 4.1.x release, as far as I know, so it will go in 4.2-dev anyway.

@brianteeman brianteeman changed the base branch from 4.1-dev to 4.2-dev June 15, 2022 21:38
@brianteeman brianteeman changed the title [4.1] Mail Templates htmlbody [4.2] Mail Templates htmlbody Jun 15, 2022
@brianteeman
Copy link
Contributor Author

Rebased to 4.2 and changed the filename

@richard67
Copy link
Member

I’ve restored the previous human test result in the issue tracker because the changes which invalidated the test count were just a clean rebase and the rename of the update SQL script (which I reviewed).

@alikon
Copy link
Contributor

alikon commented Jun 16, 2022

I have tested this item ✅ successfully on b033c55


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

@alikon
Copy link
Contributor

alikon commented Jun 16, 2022

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Jun 16, 2022
@alikon alikon removed the PR-4.1-dev label Jun 16, 2022
@roland-d roland-d merged commit 1e16355 into joomla:4.2-dev Jun 16, 2022
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Jun 16, 2022
@roland-d
Copy link
Contributor

Thanks everybody

@roland-d roland-d added this to the Joomla 4.2.0 milestone Jun 16, 2022
@brianteeman brianteeman deleted the mail_templates_html branch September 5, 2022 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Maintainers Checked Used if the PR is conceptional useful
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants