epam / cloud-pipeline

Cloud agnostic genomics analysis, scientific computation and storage platform
https://cloud-pipeline.com
Apache License 2.0
145 stars 58 forks source link

Send platform usage statistics to users #3161

Open mzueva opened 1 year ago

mzueva commented 1 year ago

Background It would be useful to send to users a letter on scheduled basis with insights on the platform usage.

Approach Let's create a python script which generates letters with user's stats for the specified period. Script arguments: from (date), to (date), list of users (reports shall be generated for all specified users), list of roles (reports shall be generated for all users belonging to groups). Lists of users and roles may be specified simultaneously.

Report shall include the following data:

Overall:

Most-used:

maryvictol commented 1 year ago

@mzueva , @okolesn Bug: The report isn't generated for a list of users (separated by a comma or space). Message in the log: No users found to collect and send statistics.

maryvictol commented 1 year ago

@mzueva , @okolesn Bug: Values Storage write requests count: 0. Storage read requests count: 0. are returned in reports for all users.

maryvictol commented 1 year ago

@mzueva , @okolesn Bug: Method POST /pipeline/restapi/user-notification/message gives error {"message":"Failed to evaluate expression 'hasRole('ADMIN') OR @notificationPermissionManager.hasPermission(#notification)'","status":"ERROR"} for non-admin users. As result non-admin user can't close the notification.

maryvictol commented 1 year ago

@mzueva , @okolesn Bug: Method POST /pipeline/restapi/user-notification/message gives error {"message":"Failed to evaluate expression 'hasRole('ADMIN') OR @notificationPermissionManager.hasPermission(#notification)'","status":"ERROR"} for non-admin users. As result non-admin user can't close the notification.

Verified as fixed