The module records the numeric UID of the current user, but the implementation of hook_views_data does not relate this back to the user entity. If this relationship was created and added to the default view included with the module it would allow the View to show usernames and be filtered by roles as well as other advanced uses by site builders.

Comments

benjaminarthurt created an issue. See original summary.

jofitz’s picture

Assigned: benjaminarthurt » Unassigned
Status: Active » Needs review
StatusFileSize
new1.36 KB

Here is the patch that will relate uids to user entities.

RAFA3L’s picture

StatusFileSize
new1.36 KB

The #2 previous patch doesn't work for me with composer, this one probably works

RAFA3L’s picture

StatusFileSize
new1.4 KB

Sorry, previous doesn't work too, maybe this one...

  • benjaminarthurt committed 22feeb37 on 2.x
    Issue #2949657 by RAFA3L, jofitz, benjaminarthurt: Default View Doesn't...
benjaminarthurt’s picture

Version: 8.x-1.0-beta1 » 2.0.1
Status: Needs review » Fixed

This has been released as 2.0.1

jasonluttrell’s picture

Question for anyone here: Is there any way to do something similar to this but for entities in general?

See new issue: https://www.drupal.org/project/simple_access_log/issues/3350303

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.