? ? Pending

User tests: Successful: Unsuccessful:

avatar roland-d
roland-d
17 May 2019

Summary of Changes

This will be a conversion of the com_actionlogs component to use the new Joomla 4 structure.

Testing Instructions

Component Action Logs

  1. Go to Users -> Users Action Log
  2. Check that the table of actions show
  3. Check that the search works
  4. Check that the filtering works
  5. Check that the Options work

User Editing

  1. Go to Users -> Manage
  2. Edit an admin user
  3. Check that the User Actions Log Options tab shows
  4. Check that the options are saved

Latest Action Logs Module

  1. Go to Content -> Administrator Modules
  2. Check that the Latest Actions module is enabled. If not, enable the module
  3. Go to Control Panel
  4. Check that the module shows

Plugins

  1. Go to System -> Plugins
  2. Edit the System - User Actions Log and check that the settings can be saved
  3. Edit the Action Log - Joomla and check that the settings can be saved
  4. Edit the Privacy - Action Logs and check that the settings can be saved

Enable the plugins and check that the functionality still works.

Use Action Logs as usual and make sure it all works as expected.

Expected result

It works as before the changes

Documentation Changes Required

None

avatar roland-d roland-d - open - 17 May 2019
avatar roland-d roland-d - change - 17 May 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 May 2019
Category Administration com_messages
avatar franz-wohlkoenig franz-wohlkoenig - change - 17 May 2019
Title
Start converting actionlogs to new format
[4.0] Start converting actionlogs to new format
avatar franz-wohlkoenig franz-wohlkoenig - edited - 17 May 2019
avatar roland-d roland-d - change - 18 May 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2019
Category Administration com_messages Administration com_modules Modules Front End Plugins
avatar roland-d roland-d - change - 18 May 2019
The description was changed
avatar roland-d roland-d - edited - 18 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2019
Category Administration com_modules Modules Front End Plugins Administration com_modules Language & Strings Modules Front End Plugins
avatar roland-d roland-d - change - 18 May 2019
Labels Added: ?
avatar roland-d roland-d - change - 18 May 2019
The description was changed
avatar roland-d roland-d - edited - 18 May 2019
avatar joomla-cms-bot joomla-cms-bot - change - 18 May 2019
Category Administration com_modules Modules Front End Plugins Language & Strings Administration Language & Strings Modules Front End Plugins
avatar brianteeman
brianteeman - comment - 19 May 2019

Not sure why but the module count is not working. It isnt getting the param from the module

$model->setState('list.limit', $params->get('count', 5));

avatar brianteeman
brianteeman - comment - 19 May 2019

If you remove this line then the width of the filters will be set correctly

HTMLHelper::_('formbehavior.chosen', 'select');

avatar roland-d
roland-d - comment - 19 May 2019

@brianteeman I removed the chosen line and the multi-select line as well. There are no multi-select options on this page.

$model->setState('list.limit', $params->get('count', 5));
This line works fine for me. It is reading the module settings.

I did find something else, the tooltip/popover on the Date column doesn't work. I just don't know why. Anybody any idea?

avatar brianteeman
brianteeman - comment - 20 May 2019

Before applying the pr the debug is showing me the query for the module with ORDER BY a.id DESC LIMIT 5 After applying the pr it is showing me ORDER BY a.id DESC LIMIT 20

avatar brianteeman
brianteeman - comment - 20 May 2019

I did find something else, the tooltip/popover on the Date column doesn't work. I just don't know why. Anybody any idea?

Do you mean this
data-original-title="2019-05-19 20:40:44"

If so then we shouldnt be using a tooltip for that as it is not accessible but instead use the method I show in #24899

avatar roland-d
roland-d - comment - 20 May 2019

@brianteeman I will have a look at the query later. As for the tooltip, yes that is what I meant. Currently in J3 when you hover over it, this shows up as a tooltip. I will take a look at your implementation. Thanks.

avatar roland-d
roland-d - comment - 21 May 2019

@brianteeman You were right about the limit, that is fixed now.

As for the tooltip I have implemented what you have done in #24899 This change is now dependent on your PR being merged. However there is one issue I see:
image

I am hovering on the second row, notice the time showing up above the search field. The same happens for all rows. I would expect it to show up next to the date I am hovering.

avatar brianteeman
brianteeman - comment - 21 May 2019

@roland-d I need to adjust my pr regarding the positioning - thats been noted on the other PR by others

avatar SharkyKZ
SharkyKZ - comment - 24 May 2019

administrator/components/com_actionlogs/Libraries/Actionlogplugin.php must be called ActionLogPlugin.php.

avatar roland-d
roland-d - comment - 24 May 2019

@SharkyKZ Done

avatar SharkyKZ
SharkyKZ - comment - 24 May 2019

ActionLogPlugin.php, not ActionlogPlugin.php.

avatar roland-d
roland-d - comment - 24 May 2019

@SharkyKZ Second try ;)

avatar wilsonge
wilsonge - comment - 24 Jun 2019

This needs a test before merging

avatar roland-d roland-d - change - 28 Jun 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-06-28 19:29:28
Closed_By roland-d
avatar roland-d roland-d - close - 28 Jun 2019
avatar brianteeman
brianteeman - comment - 28 Jun 2019

Why did you close this?

avatar roland-d
roland-d - comment - 28 Jun 2019

@brianteeman I accidentally removed the branch. No intention to close it before it is merged :)

avatar roland-d roland-d - change - 28 Jun 2019
Status Closed New
Closed_Date 2019-06-28 19:29:28
Closed_By roland-d
avatar roland-d roland-d - change - 28 Jun 2019
Status New Pending
avatar roland-d roland-d - reopen - 28 Jun 2019
avatar wilsonge
wilsonge - comment - 28 Jun 2019

@Quy / @richard67 / @brianteeman / @SharkyKZ can one of you fine people please give this a test so we can make this nice and consistent?

avatar brianteeman
brianteeman - comment - 28 Jun 2019

will try to tomorrow

avatar richard67
richard67 - comment - 29 Jun 2019

@roland-d Maybe you should mention in the testing instructions to remove file libraries/autoload_psr4.php after having applied the changes in this PR, so the file gets rebuilt, otherwise you get a PHP fatal error:

PHP Fatal error: Class 'Joomla\Component\Actionlogs\Administrator\Libraries\ActionLogPlugin' not found in /home/richard/lamp/public_html/joomla-cms-4.0-dev/plugins/actionlog/joomla/joomla.php on line 24

I know this is clear for insiders, but to be sure it should be included in testing instructions.

avatar richard67 richard67 - test_item - 29 Jun 2019 - Tested successfully
avatar richard67
richard67 - comment - 29 Jun 2019

I have tested this item successfully on 9dabcfd


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

avatar richard67
richard67 - comment - 29 Jun 2019

I get a PHP notice about undefined variable when using the CSV export buttons, but that does not come from this PR here. It is also there in current 4.0-dev.

Without this PR: PHP Notice: Undefined variable: app in /home/richard/lamp/public_html/joomla-cms-4.0-dev/administrator/components/com_actionlogs/controllers/actionlogs.php on line 122

With this PR: PHP Notice: Undefined variable: app in /home/richard/lamp/public_html/joomla-cms-4.0-dev/administrator/components/com_actionlogs/Controller/ActionlogsController.php on line 122

Everything else seems to be ok, works like before.

avatar Quy Quy - test_item - 29 Jun 2019 - Tested successfully
avatar Quy
Quy - comment - 29 Jun 2019

I have tested this item successfully on 9dabcfd


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

avatar Quy Quy - change - 29 Jun 2019
Status Pending Ready to Commit
avatar Quy
Quy - comment - 29 Jun 2019

RTC


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

avatar richard67
richard67 - comment - 29 Jun 2019

@Quy The PHP notice I mentioned above in my comment (and which is not caused by this PR) comes when I use one of the 2 CVS export buttons. I've updated my comment above accordingly. Maybe you want to have a look on it?

avatar Quy
Quy - comment - 29 Jun 2019

@richard67 Please test PR #25369 for the export buttons fix.

avatar wilsonge
wilsonge - comment - 29 Jun 2019

@roland-d let’s fix the conflicts here and get this in then :)

avatar brianteeman
brianteeman - comment - 29 Jun 2019

Sorry a bit late to the party but there are a few mainly codestyle changes I have marked plus

<td>
<?php echo ActionlogsHelper::getHumanReadableLogMessage($item); ?>
</td>

This should be <th scope="row">

avatar Quy Quy - change - 29 Jun 2019
Status Ready to Commit Pending
avatar Quy
Quy - comment - 29 Jun 2019

Remove RTC.


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

avatar roland-d
roland-d - comment - 30 Jun 2019

First of all, thank you all for chipping in.
@richard67 I wasn't aware we had to delete the autoloader file.
@brianteeman I learned something new, I wasn't aware we could use td in thead and tr in tbody :)
@wilsonge All updated.

avatar brianteeman
brianteeman - comment - 30 Jun 2019

Always a good day when you learn something new

avatar wilsonge wilsonge - change - 30 Jun 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-06-30 07:36:35
Closed_By wilsonge
avatar wilsonge wilsonge - close - 30 Jun 2019
avatar wilsonge wilsonge - merge - 30 Jun 2019
avatar wilsonge
wilsonge - comment - 30 Jun 2019

Thanks everyone!

Add a Comment

Login with GitHub to post a comment