Language Change bug PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar Fedik
Fedik
9 Sep 2023

Summary of Changes

This is the same as

But for 5.0 branch.
I think upmerge will be complicated, so I have re-apply changes.

Testing Instructions

If that #41367 will be tested, then this one also should be good.

Note: The patch #41367 should be applied on 4.x version, before test.

Test normal
Try run update from 4.4 => 5.0
The update should work as usual.

Test with error
Simulate an error, add an exception throw new Exception('Test error'); somehwere here

// Get the PrivacyConsent system plugin's parameters
$row = $db->setQuery(
$db->getQuery(true)
->select([$db->quotename('enabled'), $db->quoteName('params')])
->from($db->quoteName('#__extensions'))
->where($db->quoteName('type') . ' = ' . $db->quote('plugin'))
->where($db->quoteName('folder') . ' = ' . $db->quote('system'))
->where($db->quoteName('element') . ' = ' . $db->quote('privacyconsent'))
)->loadObject();

And do update.

Actual: The update finished with Success message. And nothing in logs.
Expected: The update finished with error message. The error is logged.

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 Sep 2023
Category Administration com_admin com_joomlaupdate Language & Strings Libraries
avatar Fedik Fedik - open - 9 Sep 2023
avatar Fedik Fedik - change - 9 Sep 2023
Status New Pending
avatar Fedik Fedik - change - 9 Sep 2023
Labels Added: Language Change PR-5.0-dev
avatar Fedik Fedik - change - 9 Sep 2023
The description was changed
avatar Fedik Fedik - edited - 9 Sep 2023
avatar Fedik Fedik - change - 10 Sep 2023
The description was changed
avatar Fedik Fedik - edited - 10 Sep 2023
avatar Fedik Fedik - change - 10 Sep 2023
Labels Added: bug
e81224d 10 Sep 2023 avatar Fedik Text
avatar richard67
richard67 - comment - 10 Sep 2023

@Fedik I've allowed myself to trigger a branch update so I have the update package created by Drone consistent with current 5.0-dev. I will then create modified packages for testing like I did for the other 4.3-dev PR #41367 . I hope I can do it with less tests here than for the other one.

avatar Fedik Fedik - change - 10 Sep 2023
The description was changed
avatar Fedik Fedik - edited - 10 Sep 2023
avatar HLeithner
HLeithner - comment - 12 Sep 2023

can I have some tests here please?

avatar richard67
richard67 - comment - 12 Sep 2023

can I have some tests here please?

@HLeithner Until when?

avatar Fedik
Fedik - comment - 12 Sep 2023

@HLeithner the other one PR for 4.3 is tested #41367, and this one is a copy,
Merge this one, and it will be tested all the way untill release ?

avatar HLeithner
HLeithner - comment - 13 Sep 2023

since the other pr is only a copy upmerge would make more sense...

avatar richard67
richard67 - comment - 13 Sep 2023

since the other pr is only a copy upmerge would make more sense...

@HLeithner That would be not easy because there have been made many changes in script.php for updates. Methods have been removed in 5.0-dev, and new methods have been added.

avatar HLeithner
HLeithner - comment - 13 Sep 2023

can you resolve the merge conflict please

avatar richard67
richard67 - comment - 13 Sep 2023

@Fedik Shall I solve the conflicts for you?

avatar Fedik
Fedik - comment - 13 Sep 2023

I will fix it,
@HLeithner Did you added log for COM_JOOMLAUPDATE_UPDATE_LOG_UNINSTALL_EXTENSIONS?
It missing a real text string

avatar HLeithner
HLeithner - comment - 13 Sep 2023

Yes I added it and hope you fix it ;-)

7c78e78 13 Sep 2023 avatar Fedik text
avatar joomla-cms-bot joomla-cms-bot - change - 13 Sep 2023
Category Administration com_admin com_joomlaupdate Language & Strings Libraries Administration com_admin com_joomlaupdate Language & Strings
avatar HLeithner HLeithner - change - 13 Sep 2023
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2023-09-13 14:48:57
Closed_By HLeithner
avatar HLeithner HLeithner - close - 13 Sep 2023
avatar HLeithner HLeithner - merge - 13 Sep 2023
avatar HLeithner
HLeithner - comment - 13 Sep 2023

thanks

Add a Comment

Login with GitHub to post a comment