National-Forestry-Authority / brms

1 stars 1 forks source link

User activity tracker #44

Closed ygoex closed 1 year ago

ygoex commented 1 year ago

Track the activity of users through the system.

ygoex commented 1 year ago

This module might help with this issue: https://www.drupal.org/docs/8/core/modules/tracker-module/overview (still in core).

peacog commented 1 year ago

See this comment in the equivalent farmers issue https://github.com/National-Forestry-Authority/farmers/issues/133#issuecomment-1439961434. We should use the approach described there in a common NFA module that can be used in BRMS and Farmers

ygoex commented 1 year ago

We'll apply here the same approach described here: https://github.com/National-Forestry-Authority/farmers/issues/133#issuecomment-1519801419

peacog commented 1 year ago

NFA tracker module has been installed. The user reports are in the Administration > Reports section of the site https://brms.stg.envs.utils.nfa.go.ug/admin/reports/nfa/tracker

LeScruf commented 1 year ago

@peacog This is looking promising - I am wondering currently it just tells you who accessed what, but the log doesn't provide any more information about what happened when the user accessed a particular node? Is there any built-in functionality within Drupal Core or an existing module that provides further functionality in this regard?

peacog commented 1 year ago

Hi @LeScruf . The report tells you when node was saved and by whom. It doesn't tell you about when nodes are views/accessed. If more information is needed we would have to build a custom solution. @pcambra suggested using the Log module in this related ticket for farmers: https://github.com/National-Forestry-Authority/farmers/issues/133#issuecomment-1439961434.

The first step would be to describe what kinds of activity you want to report on. Could you make a list of what events you would like to track?

peacog commented 1 year ago

@LeScruf I think you have already tested this. Do you want to add more requirements and move to Functional WIP? Or will we mark it Done?

How to test Review the User content activity tracker: https://brms.stg.envs.utils.nfa.go.ug/admin/reports/nfa/tracker/content

Image

ygoex commented 1 year ago

Closing it as it is completed.