Feature Language Change PR-5.2-dev Enhancement Pending

User tests: Successful: Unsuccessful:

avatar brbrbr
brbrbr
17 Jun 2024

Summary of Changes

The email sent by the system plugin task notification contains very little useful information. This adjustment adds the Exception message to the emails.
The emails point to the Joomla! backend for more information, however there is no info in the dashboard since the taskcontent is not stored and the logs are well hidden.

Testing Instructions

Enable email notifications for failure for any active task for example in sessiongc. Is enabled by default.

Throw an exception in that task, for example:
` private function sessionGC(ExecuteTaskEvent $event): int
{

    throw new \Exception('test');

...
`
execute the task

Actual result BEFORE applying this Pull Request

Email with little information

Expected result AFTER applying this Pull Request

Email with the exception message

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 brbrbr brbrbr - open - 17 Jun 2024
avatar brbrbr brbrbr - change - 17 Jun 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2024
Category Administration Language & Strings Front End Plugins
avatar brbrbr brbrbr - change - 17 Jun 2024
Labels Added: Language Change PR-5.1-dev
avatar joomla-cms-bot joomla-cms-bot - change - 17 Jun 2024
Category Administration Language & Strings Front End Plugins Administration Language & Strings Front End Plugins JavaScript Unit Tests
avatar brianteeman
brianteeman - comment - 17 Jun 2024

If the email now includes the message is there any point in telling someone to go to the joomla admin etc?

avatar brbrbr brbrbr - change - 18 Jun 2024
Labels Added: Unit/System Tests
avatar brbrbr
brbrbr - comment - 18 Jun 2024

If the email now includes the message is there any point in telling someone to go to the joomla admin etc?

Good point,

Actually, in the current situation, there is also no point of telling someone to go to the admin. Since there is no information there.
(unless you have an extension to view the logs).

Should I include the debug trace in the email as well? That one is neither stored nor logged.

Bram

2be688a 18 Jun 2024 avatar brbrbr Hello
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jun 2024
Category Administration Language & Strings Front End Plugins JavaScript Unit Tests Administration Language & Strings Front End Plugins
avatar brbrbr brbrbr - change - 18 Jun 2024
Labels Removed: Unit/System Tests
avatar LadySolveig
LadySolveig - comment - 3 Jul 2024

Thank you @brbrbr for your work!
I've rebased this PR to 5.2 as an improvement. 5.1 only gets bugfixes.

avatar brbrbr brbrbr - change - 3 Jul 2024
Labels Added: Feature PR-5.2-dev Enhancement
Removed: PR-5.1-dev
avatar HLeithner
HLeithner - comment - 2 Sep 2024

This pull request has been automatically rebased to 5.3-dev.

avatar HLeithner HLeithner - change - 2 Sep 2024
Title
Added Exception Message to Taks Notification Email
[5.3] Added Exception Message to Taks Notification Email
avatar HLeithner HLeithner - edited - 2 Sep 2024

Add a Comment

Login with GitHub to post a comment