joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[5.3] [com_scheduler] task execution history view

Open alikon opened this issue 2 years ago • 22 comments

Summary of Changes

Add task execution history view

Testing Instructions

apply pr run the sql script 5.2.0-2023-12-16.sql

Actual result BEFORE applying this Pull Request

N/A

Expected result AFTER applying this Pull Request

click on Execution History button

image

for the task execution history view

image

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

alikon avatar Dec 16 '23 12:12 alikon

@alikon I see that the new table has different default values for some columns for MySQL and PostgreSQL. E.g. the "taskname" column has default value empty string for MySQL and no default value for PostgreSQL. That's just one example, there are more. Shouldn't the default values be consistent?

richard67 avatar Dec 19 '23 12:12 richard67

@alikon I see that the new table has different default values for some columns for MySQL and PostgreSQL. E.g. the "taskname" column has default value empty string for MySQL and no default value for PostgreSQL. That's just one example, there are more. Shouldn't the default values be consistent?

silly me, that i've mimed what was already done for the #__scheduler_tasks table

and yes must be consistent.....i'll do something

alikon avatar Dec 19 '23 17:12 alikon

Move Actions dropdown next to New button to have consistent UI.

Quy avatar Dec 22 '23 15:12 Quy

Move Actions dropdown next to New button to have consistent UI.

done

alikon avatar Dec 23 '23 07:12 alikon

Add/update tooltip.

42530-tooltip

Quy avatar Dec 23 '23 16:12 Quy

Don't capitalize ascending/descending.

42530-sort-by

Quy avatar Dec 23 '23 21:12 Quy

Task Type and Times Executed not listed in Sort by dropdown.

Quy avatar Dec 23 '23 21:12 Quy

Enable Delete button only if there are selections.

Quy avatar Dec 27 '23 22:12 Quy

Selecting Task Type dropdown in Filter Options should not collapse it.

Quy avatar Dec 27 '23 23:12 Quy

all the reported reviews should be fixed now thank you @Quy

alikon avatar Dec 28 '23 08:12 alikon

Edit task should be in edit mode and not display a modal listing the task as it is confusing.

Quy avatar Dec 29 '23 04:12 Quy

Admin that does not have delete permission.

42530-delete

Quy avatar Dec 31 '23 16:12 Quy

I have tested this item :white_check_mark: successfully on 585ebdd5ad8cbf2264990c64057fd1817733094f

I tested this successfully. [including Clear History button which works perfectly in the Execution History area].

The only thing I would mention [which may not at all be important], after you press Run Test [on any of them], there is a rather 'slower' than normal refresh of the page (after clicking on the X on the Task window) where all of the icons on the page are squares before loading their appropriate fontawesome equivalents


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

exlemor avatar Mar 25 '24 00:03 exlemor

I have tested this item :white_check_mark: successfully on 585ebdd5ad8cbf2264990c64057fd1817733094f


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

dautrich avatar Mar 29 '24 08:03 dautrich

RTC


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

Quy avatar Mar 29 '24 16:03 Quy

no interest

alikon avatar Apr 11 '24 19:04 alikon

What happened to this PR? Obviously, it's not included in 5.1.1. Will it be part of 5.2?

IMHO it would be a great tool to trace the executions of task plugins in case of any issues. At the moment I have such an issue with a task plugin.

dautrich avatar Jun 20 '24 11:06 dautrich

This should be rebased for 5.2

Quy avatar Jun 26 '24 00:06 Quy

no interest

I like it, maybe was to late for 5.1, rebase to 5.2 would be good

rdeutz avatar Jul 30 '24 06:07 rdeutz

I have tested this item :red_circle: unsuccessfully on 585ebdd5ad8cbf2264990c64057fd1817733094f

Tested on a fresh installation of 5.2.0-beta1. Note that there was no execution history for any of the default tasks and I did not run SQL script 5.2.0-2023-12-16.sql (Testing Instructions need updating). Got the following error when I clicked the "Execution History" button for each of them. This should be preventable and should not require the table to exist.

An error has occurred. 500 42S02, 1146, Table 'ua887228_scherzingertest.j52test_scheduler_logs' doesn't exist 42S02, 1146, Table 'ua887228_scherzingertest.j52test_scheduler_logs' doesn't exist Call Stack

Function Location

1 () JROOT/administrator/components/com_scheduler/src/View/Logs/HtmlView.php:97 2 Joomla\Component\Scheduler\Administrator\View\Logs\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697 3 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_scheduler/src/Controller/DisplayController.php:59 4 Joomla\Component\Scheduler\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730 5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143 6 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361 7 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150 8 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:195 9 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306 10 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58 11 require_once() JROOT/administrator/index.php:32

After executing the SQL script, which creates the missing table, the error was eliminated.


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

bascherz avatar Aug 24 '24 15:08 bascherz

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

HLeithner avatar Sep 02 '24 08:09 HLeithner

On mobile, no columns except the Check All Items checkbox.

execution-history

Quy avatar Oct 05 '24 17:10 Quy

@Quy mobile should be ok

alikon avatar Oct 26 '24 12:10 alikon

In general I would love to see it a bit more inline with the other components. Using the Table class more, etc.

laoneo avatar Nov 12 '24 10:11 laoneo

Some improvements on coding are needed Allon made good suggestions. We target 5.3 for this feature @alikon

rdeutz avatar Nov 13 '24 16:11 rdeutz

the improvments requested has been done

alikon avatar Nov 25 '24 15:11 alikon

This is a nice feature, thank you very much.

laoneo avatar Dec 06 '24 13:12 laoneo

I will add the changes to the release doc. @alikon can yo maybe update docs.joomla.org?

laoneo avatar Dec 06 '24 13:12 laoneo