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

update tool-use-by-group query #153

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion parts/22-query.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1140,9 +1140,11 @@ query_tool-last-used-date() { ## : When was the most recent invocation of every
EOF
}

query_tool-use-by-group() { ##? <years_month> [--group=<name>]: Lists count of tools used by all users in a group
query_tool-use-by-group() { ##? <year_month> <group>: Lists count of tools used by all users in a group
meta <<-EOF
ADDED: 19
cat-bro marked this conversation as resolved.
Show resolved Hide resolved
UPDATED: 22
AUTHORS: gavindi
EOF
handle_help "$@" <<-EOFhelp
Lists tools use count by users in group.
Expand Down Expand Up @@ -1172,6 +1174,8 @@ EOFhelp
user_group_association.user_id = galaxy_user.id
AND
date_trunc('month', job.create_time) = '$arg_year_month-01'
AND
galaxy_group.name = '$arg_group'
GROUP BY
job.tool_id, galaxy_user.username
EOF
Expand Down
Loading