Language Change ? NPM Resource Changed PR-4.4-dev Pending

User tests: Successful: Unsuccessful:

avatar mfleeson
mfleeson
9 May 2023

Pull Request for Issue # .

Originally this code was monitored and checked in #40556
I messed up my local installation and then managed to close the original PR when I renamed the branch. Mea Culpa. My apologies.

Summary of Changes

Rewriting the 3.10 End of Service Notification and placing it into Joomla 4 coding structure and style.
Simplified the language definitions to not be hardcoded for 3 to 4
Currently using const EOS_DATE = '2023-10-25'; in file plugins/quickicon/eos/src/Extension/Eos.php The correct date should be 2025-10-25 but then the notification does not appear.
Dimitris converted the jQuery code into working javascript for closing the notification and also calling the com_ajax so the hide me is stored in the plugin parameters.

Testing Instructions

Build.
Check plg_quickicon_eos is enabled.
View Home Dashboard in the back end.

Actual result BEFORE applying this Pull Request

No notification is displayed

Expected result AFTER applying this Pull Request

A notification is displayed

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2023
Category SQL Administration com_admin Postgresql Language & Strings JavaScript Repository NPM Change Installation Front End Plugins
avatar mfleeson mfleeson - open - 9 May 2023
avatar mfleeson mfleeson - change - 9 May 2023
Status New Pending
avatar alikon
alikon - comment - 9 May 2023

I messed up my local installation

@mfleeson: me ? quite often too ?

avatar mfleeson
mfleeson - comment - 9 May 2023

Build is failing due to a missing , in the base.sql file and when that's manually corrected the announcement is displayed and closes. But does not appear to call the ajax to write back to the database. Need to investigate further now I have a working 4.4 site.

avatar mfleeson mfleeson - change - 9 May 2023
Labels Added: Language Change NPM Resource Changed PR-4.4-dev
avatar laoneo
laoneo - comment - 10 May 2023

Please do not catch all the exceptions better to propagate them to the client.

avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2023
Category SQL Administration com_admin Postgresql Language & Strings JavaScript Repository NPM Change Installation Front End Plugins SQL Administration com_admin Postgresql JavaScript com_media NPM Change Language & Strings Repository Installation Front End Plugins
avatar mfleeson
mfleeson - comment - 10 May 2023

I've come to the code this morning knowng that a lot of the changes being requested have been made and git tells me my fork which is based 4.4 is behind. It offered sync the fork which i clicked and it synced it with 4.3! so now it's saying i'm 140 commits ahead of 4.3. I don't understand how even though I created the fork on 4.4 and it worked fine yesterday it's now all gone back to 4.3. And I'm not sure how to get my fork back to 4.4 so I can make these last few uploads. Hope someone can help.

avatar mfleeson
mfleeson - comment - 10 May 2023

Overnight this PR has aquired extra files which are not part of my commit. When I try and remove them from the PR I get Looks like something went wrong!

We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.

avatar mfleeson
mfleeson - comment - 10 May 2023

It just gets better, I have the definitive code but it wont let me push it and gives the error "remote: fatal: bad tree object fa00be88a9b5283659b312b36877286b9c8f1f08 remote: aborting due to possible repository corruption on the remote side.
fatal: protocol error: bad pack header"

avatar joomla-cms-bot joomla-cms-bot - change - 10 May 2023
Category SQL Administration com_admin Postgresql Language & Strings JavaScript Repository NPM Change Installation Front End Plugins com_media SQL Administration com_admin Postgresql Language & Strings JavaScript Repository NPM Change Installation Front End Plugins
avatar laoneo
laoneo - comment - 10 May 2023

I think it should be back to normal, merged 4.3 into 4.4 and updated this pr.

avatar laoneo laoneo - change - 10 May 2023
Title
End of Support Plugin for Joomla 4.4 (based on previous PR #40556)
End of Support Plugin for Joomla 4.4
avatar laoneo laoneo - edited - 10 May 2023
avatar mfleeson
mfleeson - comment - 10 May 2023

Once this has built a package, I will download and test it all again and then upload any final changes.

avatar dgrammatiko dgrammatiko - test_item - 10 May 2023 - Tested successfully
avatar dgrammatiko
dgrammatiko - comment - 10 May 2023

I have tested this item ✅ successfully on 5781472


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

avatar dgrammatiko
dgrammatiko - comment - 10 May 2023
avatar basd82 basd82 - test_item - 12 May 2023 - Tested successfully
avatar basd82
basd82 - comment - 12 May 2023

I have tested this item ✅ successfully on fe52b52

In the testing i had to discover the plugin first, enabled plugin
then did the test and it was a suc6


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40565.
avatar mfleeson
mfleeson - comment - 12 May 2023

I tested this using the drone/package produced and a clean install. The plugin was enabled and displayed and functioned correctly.
I am not sure why drone is failing.
It says Disk full - please upload later (failing artifacts-system-tests and phpmin-system-mysql)

avatar dgrammatiko dgrammatiko - test_item - 12 May 2023 - Tested successfully
avatar dgrammatiko
dgrammatiko - comment - 12 May 2023

I have tested this item ✅ successfully on fe52b52


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

avatar richard67
richard67 - comment - 12 May 2023

I will wait with setting RTC as the system tests are still failing at making a new installation, and I don't know yet if that is related to this PR or now. I will test later today making a new installation to see what goes wrong. The SQL looks ok to me now after the last changes, but maybe I'm blind or it's something else.

avatar richard67 richard67 - alter_testresult - 12 May 2023 - basd82: Tested successfully
avatar richard67 richard67 - alter_testresult - 12 May 2023 - dgrammatiko: Tested successfully
avatar richard67
richard67 - comment - 12 May 2023

@mfleeson Due to the branch update you just have made, the test count in the issue tracker was invalidated. I just have restored the count so the previous human tests are counted.

Normally when you made a PR and it has 2 good human tests, you should avoid unnecessary branch updates in order to not invalidate the counter.

This time it was ok because I think you want to see if system tests are passing. If that will not be the case, you or someone else or me should make a new installation with the installation package created with the branch of that PR by drone.

By the way drone might have a problem now due to a full hard disk. People are already working on it.

avatar heelc29
heelc29 - comment - 12 May 2023

Should the plugin added to coreExtensions in ExtensionHelper.php?

avatar richard67
richard67 - comment - 12 May 2023

Should the plugin added to coreExtensions in ExtensionHelper.php?

Yes, and in the previous PR this was the case after my review: https://github.com/joomla/joomla-cms/pull/40556/files#diff-45688fa5398ae3d4bab3daa80bc4d2ea4785370233b82a7326f9676f965ec9eb

But in this PR here it's missing again.

@mfleeson Please add it to the ExtensionHelper.php.

avatar mfleeson
mfleeson - comment - 12 May 2023

Should the plugin added to coreExtensions in ExtensionHelper.php?

Yes, and in the previous PR this was the case after my review: https://github.com/joomla/joomla-cms/pull/40556/files#diff-45688fa5398ae3d4bab3daa80bc4d2ea4785370233b82a7326f9676f965ec9eb

But in this PR here it's missing again.

@mfleeson Please add it to the ExtensionHelper.php.

What is going on? In my code and what I uploaded I added this to ExtensionsHelper but now its not there?

avatar joomla-cms-bot joomla-cms-bot - change - 13 May 2023
Category SQL Administration com_admin Postgresql Language & Strings JavaScript Repository NPM Change Installation Front End Plugins SQL Administration com_admin Postgresql Language & Strings JavaScript Repository NPM Change Installation Libraries Front End Plugins
avatar mfleeson mfleeson - change - 13 May 2023
Labels Added: ?
avatar richard67 richard67 - change - 14 May 2023
Labels Removed: ?
avatar richard67
richard67 - comment - 14 May 2023

@mfleeson There are still some unresolved review comments by @heelc29 . Unfortunately they are hidden by default when you check the conversation comments here, and you have to use a "load more ..." button which is not easy to find. But you can see them when you go to the changed file here on GitHub: https://github.com/joomla/joomla-cms/pull/40565/files#diff-43fd4a40d7409ad1e608154c3e900ae13a92340cf68d97225fccdcc9e300c008 . Could you check them? Thanks in advance.

avatar mfleeson
mfleeson - comment - 14 May 2023

@richard67 I left those changes and tagged you for your input/review. He is suggesting changing the code so that language definitions load if the plugin actually needs to display. As I was told to keep this code as close to the core examples it currently autoloads the definitions so I wanted a 'senior' opinion on whether to implement his changes or not.

avatar richard67
richard67 - comment - 14 May 2023

@mfleeson I think I know why the system tests are failing.

The good news: The installation test does not fail due to an SQL error. The installation succeeds when making a new installation with this branch.

But as described in the description of this PR, the EOS date has not been changed so it is still "2023-10-25", and so the message is shown:

2023-05-14_j4 4_pr-40565_1

This causes the system test to fail because it does not find the button in the statistics message.

@laoneo Could you advise regarding the system tests? Should they be adjusted for the case that the message is shown, otherwise they will stop to work when 4.4 will have reached the time when the message is shown? If so, then @mfleeson should maybe wait with adjusting the EOS date in this PR to the right one so we could first see if the modification of the tests works for that case. And could you advise regarding the necessary change of the system tests?

@mfleeson When the previous question regarding the system tests is clarified and the tests have been adjusted, if necessary, then you should set the EOS date in this PR to the right one and add something to the testing instructions how testers can modify the file to get it shown again, so that we have system tests passing again before people test.

avatar richard67
richard67 - comment - 14 May 2023

@richard67 I left those changes and tagged you for your input/review. He is suggesting changing the code so that language definitions load if the plugin actually needs to display. As I was told to keep this code as close to the core examples it currently autoloads the definitions so I wanted a 'senior' opinion on whether to implement his changes or not.

@mfleeson There were also other review comments, not only those about the language loading, and for the language loading I am not really the right guy to decide how it should be done.

avatar dgrammatiko
dgrammatiko - comment - 14 May 2023

@mfleeson to fix the failing tests change this line

messageContainer.insertAdjacentHTML('beforeend', Joomla.sanitizeHtml(json.html, allowed));

to

messageContainer.insertAdjacentHTML('afterbegin', Joomla.sanitizeHtml(json.html, allowed));
avatar mfleeson mfleeson - change - 14 May 2023
Labels Added: ?
avatar laoneo
laoneo - comment - 15 May 2023

Thank you very much to all the testers and reviewers here, and especially @mfleeson for your great work. Just a short reminder. We will ship the first alpha on 30 May. So it would be cool to heave it ready in a proper state by the end of this week. Then we have enough time to iron out some bugs till the shipping date.

avatar richard67
richard67 - comment - 15 May 2023

Thank you very much to all the testers and reviewers here, and especially @mfleeson for your great work. Just a short reminder. We will ship the first alpha on 30 May. So it would be cool to heave it ready in a proper state by the end of this week. Then we have enough time to iron out some bugs till the shipping date.

@laoneo @mfleeson It still needs to change the EOS date to the right value here: https://github.com/joomla/joomla-cms/pull/40565/files#diff-43fd4a40d7409ad1e608154c3e900ae13a92340cf68d97225fccdcc9e300c008R42 . We can't leave it like it is because the value '2023-10-25' was just for testing purpose.

avatar dgrammatiko
dgrammatiko - comment - 15 May 2023

On top of what @richard67 wrote above there's #40599 which fixes the tests (the last 2-3 commits). I guess @laoneo should decide if he wants the tests fixed with this PR or in another.

avatar laoneo
laoneo - comment - 15 May 2023

All I wanted to point out was that the failing tests should not hold back the progress of this pr. If they can get fixed it is even better.

avatar sandewt
sandewt - comment - 15 May 2023

When you click on the image with the text, a link will open in the same screen. It would be nicer to open the documentation in another screen (target="_blank"), like in the J3 plugin.
I don't see immediately a solution when I look at the code. Because J4 is something different.
Schermafbeelding 2023-05-15 165230
An adjustment is not in a hurry at the moment. Can always do so later if we think this should be done.

avatar richard67
richard67 - comment - 15 May 2023

@sandewt Yes, I've noticed that, too. It might be out of the scope of this PR here to fix that because it seems to be a general thing with the quickicons in J4.

avatar dgrammatiko
dgrammatiko - comment - 15 May 2023

FWIW #40602 should fix the failing tests so only the date should be changed here. @laoneo check the #40602

avatar MacJoom
MacJoom - comment - 22 May 2023

@mfleeson Thank you for your work - could you please change the date to correct value in 2025?

avatar MacJoom MacJoom - close - 24 May 2023
avatar MacJoom MacJoom - merge - 24 May 2023
avatar MacJoom MacJoom - change - 24 May 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-05-24 12:20:40
Closed_By MacJoom
avatar sandewt
sandewt - comment - 24 May 2023

Update Eos.php - set hardcoded date to 2025-10-25

Something is wrong here, the date is not correct according to the roadmap.

avatar mfleeson
mfleeson - comment - 24 May 2023

The reason I hadn't set the final date was because it was being discussed at a recent meeting. Also the text definitions still need to be updated once finalised. Please reopen my branch. The current date from https://developer.joomla.org/roadmap.html is 17th October 2025 for end of support for J4.X

avatar heelc29
heelc29 - comment - 27 Jun 2023

@MacJoom Could you please add the milestone for J4.4?

Add a Comment

Login with GitHub to post a comment