Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create statistics based on the user activity logs #520

Open
stitch opened this issue Jun 18, 2024 · 1 comment
Open

Create statistics based on the user activity logs #520

stitch opened this issue Jun 18, 2024 · 1 comment

Comments

@stitch
Copy link
Collaborator

stitch commented Jun 18, 2024

Many actions are logged, but the totals are not converted to statistics per month. These values can be useful when giving insights in the usage of the dashboard.

Some example data:
image

@stitch
Copy link
Collaborator Author

stitch commented Mar 3, 2025

This is the query to do so:

select da.name as "account", verb as "action", count(*) as amount
from actstream_action
         inner join internet_nl_dashboard_account da on actor_object_id::int = da.id
where actor_content_type_id = 51
  and date(timestamp) > date('2024-01-01')
group by verb, actor_object_id, da.name
having count(*) > 30
order by action, amount desc;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant