rubyforgood/casa

New Line Chart: WAU (Weekly Active Users) by Role

sarvaiyanidhi opened this issue · 25 comments

What type(s) of user does this feature affect?

  • supervisors?
  • admins?

Description

On the /health page, add a new line chart.
-WAU: count unique users by role (Volunteer, Supervisor, Admin) who logged in a given week on that month

Create a json endpoint for the chart data. Make sure the json contains the minimum amount of data for the chart. Make sure the endpoint is accessible to users who are logged out.

If chart creation fails, display an error to the user explaining why. Print a detailed version of the error in the console.

No testing required but prove your solution works.

See:

https://github.com/rubyforgood/casa/blob/main/app/controllers/health_controller.rb
https://github.com/rubyforgood/casa/blob/main/app/javascript/src/display_app_metric.js

We use chart.js for graphs

See: https://github.com/rubyforgood/casa/wiki/Working-with-Frontend-Assets

More details in issue #5530

How to access the QA site

Login Details:
Link to QA site

Login Emails:

password for all users: 12345678

Questions? Join Slack!

We highly recommend that you join us in slack #casa channel to ask questions quickly. And discord for office hours (currently Tuesday 5-7pm Pacific), stakeholder news, and upcoming new issues.

@bcastillo32 I am unable to self assign issue to myself.. can you please do it?

This issue has been inactive for 243 hours (10.13 days) and will be unassigned after 117 more hours (4.88 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

This issue has been inactive for 261 hours (10.88 days) and will be unassigned after 99 more hours (4.13 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

WIP

This issue has been inactive for 242 hours (10.08 days) and will be unassigned after 118 more hours (4.92 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

Raised PR for related issue #5652

Cool :)

Hey @bcastillo32 ,

Just a quick update that I have raised separate PR which implements functionality to track each login of user. Once that PR is merged in main code I will continue further to implement MAU and WAU functionality asap.

This issue has been inactive for 261 hours (10.88 days) and will be unassigned after 99 more hours (4.13 days). If you have questions, please

If you are still working on this, comment here to tell the bot to give you more time

WIP.. Fixed MAU chart by fetching details now from login_activity table and merged with separate PR. Working on WAU chart.

WIP.. Fixed MAU chart by fetching details now from login_activity table and merged with separate PR. Working on WAU chart.

Thank you @sarvaiyanidhi very much so looking forward to this one :)

Sure @bcastillo32 Will try to close this asap. Thanks